/* ==========================================
   OfficeMitra - Delete PDF Pages
   Version 1.0
========================================== */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial,Helvetica,sans-serif;
}

body{
    background:#f4f7fb;
    color:#333;
}

/* Header */

header{
    background:#dc3545;
    color:#fff;
    text-align:center;
    padding:30px 20px;
}

header h1{
    font-size:34px;
    margin-bottom:10px;
}

header p{
    font-size:16px;
    opacity:.9;
}

/* Container */

.container{
    max-width:1200px;
    margin:40px auto;
    padding:20px;
}

/* Upload Box */

.upload-box{
    background:#fff;
    border:3px dashed #dc3545;
    border-radius:12px;
    padding:50px 20px;
    text-align:center;
    cursor:pointer;
    transition:.3s;
}

.upload-box:hover{
    background:#fff3f4;
}

.upload-box button{
    background:#dc3545;
    color:#fff;
    border:none;
    padding:14px 30px;
    border-radius:8px;
    font-size:16px;
    cursor:pointer;
    transition:.3s;
}

.upload-box button:hover{
    background:#bb2d3b;
}

.upload-box p{
    margin-top:15px;
    color:#666;
}

/* Info Box */

.info-box{
    margin-top:30px;
    background:#fff;
    padding:25px;
    border-radius:10px;
    box-shadow:0 2px 8px rgba(0,0,0,.08);
}

.info-box h2{
    margin-bottom:20px;
}

.info-grid{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:20px;
}

.info-grid div{
    background:#f8f9fa;
    padding:15px;
    border-radius:8px;
}

/* Toolbar */

.toolbar{
    margin-top:30px;
    display:flex;
    flex-wrap:wrap;
    justify-content:center;
    gap:15px;
}

.toolbar button{
    border:none;
    border-radius:8px;
    padding:12px 20px;
    color:#fff;
    cursor:pointer;
    font-size:15px;
    font-weight:bold;
    transition:.3s;
}

#selectAllBtn{
    background:#6c757d;
}

#clearSelectionBtn{
    background:#0d6efd;
}

#deleteSelectedBtn{
    background:#dc3545;
}

#deleteOddBtn{
    background:#fd7e14;
}

#deleteEvenBtn{
    background:#6f42c1;
}

.toolbar button:hover{
    transform:translateY(-2px);
}

/* Preview */

#previewContainer{
    margin-top:40px;
}

#previewContainer h2{
    margin-bottom:20px;
}

#pageGrid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(220px,1fr));
    gap:20px;
}

/* Card */

.page-card{
    background:#fff;
    border-radius:12px;
    overflow:hidden;
    box-shadow:0 4px 10px rgba(0,0,0,.12);
    transition:.3s;
}

.page-card:hover{
    transform:translateY(-5px);
}

.page-card canvas{
    width:100%;
    display:block;
}

.card-body{
    padding:15px;
}

.card-body h3{
    text-align:center;
    margin-bottom:12px;
}

.page-select{
    display:flex;
    justify-content:center;
    margin-bottom:15px;
}

.page-select input{
    transform:scale(1.3);
    cursor:pointer;
}

/* Range */

.range-box{
    margin-top:40px;
    background:#fff;
    padding:25px;
    border-radius:10px;
    box-shadow:0 2px 8px rgba(0,0,0,.08);
}

.range-box h2{
    margin-bottom:20px;
}

.range-inputs{
    display:flex;
    gap:15px;
    flex-wrap:wrap;
}

.range-inputs input{
    flex:1;
    min-width:180px;
    padding:12px;
    border:1px solid #ccc;
    border-radius:8px;
    font-size:15px;
}

.range-inputs button{
    background:#dc3545;
    color:#fff;
    border:none;
    border-radius:8px;
    padding:12px 25px;
    cursor:pointer;
    font-size:15px;
    transition:.3s;
}

.range-inputs button:hover{
    background:#bb2d3b;
}

/* Bottom */

.bottom-action{
    margin-top:40px;
    display:flex;
    justify-content:center;
    gap:20px;
    flex-wrap:wrap;
}

.bottom-action button{
    min-width:220px;
    border:none;
    border-radius:8px;
    padding:15px 25px;
    color:#fff;
    font-size:18px;
    font-weight:bold;
    cursor:pointer;
    transition:.3s;
}

#undoBtn{
    background:#6c757d;
}

#downloadBtn{
    background:#198754;
}

.bottom-action button:hover{
    transform:translateY(-2px);
}

/* Status */

#status{
    margin-top:25px;
    text-align:center;
    font-size:18px;
    font-weight:bold;
    color:#dc3545;
}

/* Footer */

footer{
    margin-top:60px;
    padding:20px;
    text-align:center;
    background:#fff;
    border-top:1px solid #ddd;
    color:#666;
}

/* Responsive */

@media(max-width:768px){

    header h1{
        font-size:28px;
    }

    .info-grid{
        grid-template-columns:1fr;
    }

    .toolbar{
        flex-direction:column;
    }

    .toolbar button{
        width:100%;
    }

    #pageGrid{
        grid-template-columns:1fr;
    }

    .range-inputs{
        flex-direction:column;
    }

    .range-inputs input,
    .range-inputs button{
        width:100%;
    }

    .bottom-action{
        flex-direction:column;
    }

    .bottom-action button{
        width:100%;
    }

}