/*==================================
    Google Font
==================================*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');


/*==================================
    Reset
==================================*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family:'Inter',sans-serif;
    background:#f5f7fb;
    color:#1f2937;
}


/*==================================
    Main Container
==================================*/

.print-page{
    max-width:500px;
    margin:auto;
    padding:16px;
    padding-bottom:120px;   /* pehle 120px tha */
}


/*==================================
    Header
==================================*/

.print-header{
    display:flex;
    align-items:center;
    gap:14px;
    margin-bottom:18px;
}

.back-btn{
    width:42px;
    height:42px;
    border:none;
    border-radius:12px;
    background:#fff;
    box-shadow:0 2px 10px rgba(0,0,0,.06);
    cursor:pointer;
    transition:.3s;
}

.back-btn:hover{
    background:#f3f4f6;
}

.back-btn i{
    font-size:16px;
    color:#111827;
}

.header-content{
    flex:1;
}

.header-content h1{
    font-size:22px;
    font-weight:700;
    color:#111827;
}

.header-content p{
    margin-top:3px;
    font-size:13px;
    color:#6b7280;
}


/*==================================
    Upload Section
==================================*/

.upload-section{
    margin-bottom:20px;
}

.upload-box{
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    text-align:center;

    height:140px;
    padding:20px;

    background:#fff;
    border:2px dashed #22c55e;
    border-radius:18px;

    cursor:pointer;
    transition:.3s;
}

.upload-box:hover{
    background:#f0fdf4;
    border-color:#16a34a;
}

.upload-icon{
    width:52px;
    height:52px;
    border-radius:50%;
    background:#dcfce7;

    display:flex;
    align-items:center;
    justify-content:center;

    margin-bottom:10px;
}

.upload-icon i{
    font-size:22px;
    color:#16a34a;
}

.upload-box h2{
    font-size:18px;
    font-weight:600;
    color:#111827;
}

.upload-box p{
    margin-top:5px;
    font-size:13px;
    color:#6b7280;
}
/*==================================
    Preview Section
==================================*/

.preview-section{
    margin-bottom:22px;
}

.section-title{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin-bottom:12px;
}

.section-title h2{
    font-size:17px;
    font-weight:600;
    color:#111827;
}

.page-navigation{
    display:flex;
    align-items:center;
    gap:10px;
}

.nav-btn{
    width:34px;
    height:34px;
    border:none;
    border-radius:10px;
    background:#fff;
    box-shadow:0 2px 8px rgba(0,0,0,.06);
    cursor:pointer;
    transition:.3s;
}

.nav-btn:hover{
    background:#22c55e;
    color:#fff;
}

#pageIndicator{
    font-size:13px;
    font-weight:600;
    color:#6b7280;
}

.preview-box{
    width:100%;
    height:260px;
    background:#fff;
    border-radius:18px;
    overflow:hidden;
    display:flex;
    align-items:center;
    justify-content:center;
    box-shadow:0 2px 12px rgba(0,0,0,.06);
}

.empty-preview{
    text-align:center;
}

.empty-preview i{
    font-size:50px;
    color:#d1d5db;
    margin-bottom:10px;
}

.empty-preview p{
    font-size:14px;
    color:#9ca3af;
}


/*==================================
    Uploaded Files
==================================*/

.uploaded-files-section{
    margin-bottom:22px;
}

#fileCount{
    font-size:13px;
    color:#6b7280;
}

.uploaded-files-list{
    display:flex;
    flex-direction:column;
    gap:10px;
}

.uploaded-file{
    display:flex;
    align-items:center;
    justify-content:space-between;
    background:#fff;
    border-radius:14px;
    padding:12px 14px;
    cursor:pointer;
    border:2px solid transparent;
    transition:.25s;
    box-shadow:0 2px 10px rgba(0,0,0,.05);
}

.uploaded-file:hover{
    transform:translateY(-2px);
}

.uploaded-file.active{
    border-color:#22c55e;
    background:#f0fdf4;
}

.file-left{
    display:flex;
    align-items:center;
    gap:12px;
}

.file-icon{
    width:42px;
    height:42px;
    border-radius:12px;
    background:#ecfdf5;
    display:flex;
    align-items:center;
    justify-content:center;
}

.file-icon i{
    font-size:18px;
    color:#16a34a;
}

.file-info h4{
    font-size:14px;
    font-weight:600;
    color:#111827;
}

.file-info p{
    margin-top:3px;
    font-size:12px;
    color:#6b7280;
}

.file-right{
    display:flex;
    align-items:center;
    gap:8px;
}

.file-action{
    width:34px;
    height:34px;
    border:none;
    border-radius:10px;
    background:#f3f4f6;
    cursor:pointer;
    transition:.25s;
}

.file-action:hover{
    background:#22c55e;
    color:#fff;
}
/*==================================
    Print Options
==================================*/

.print-options{
    display:flex;
    flex-direction:column;
    gap:18px;
    margin-bottom:62px;
}

.option-card{
    background:#fff;
    border-radius:16px;
    padding:16px;
    box-shadow:0 2px 10px rgba(0,0,0,.05);
}

.option-card h3{
    font-size:15px;
    font-weight:600;
    color:#111827;
    margin-bottom:12px;
}


/*==================================
    Option Chips
==================================*/

.option-chips{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}

.chip{
    flex:1;
    min-width:90px;
    height:42px;

    border:2px solid #e5e7eb;
    border-radius:12px;

    background:#fff;
    color:#374151;

    font-size:14px;
    font-weight:600;

    cursor:pointer;
    transition:.25s;
}

.chip:hover{
    border-color:#22c55e;
    color:#16a34a;
}

.chip.active{
    background:#22c55e;
    border-color:#22c55e;
    color:#fff;
}


/*==================================
    Copies
==================================*/

.copies-box{
    width:140px;
    height:46px;

    border:2px solid #e5e7eb;
    border-radius:14px;

    display:flex;
    align-items:center;
    justify-content:space-between;

    overflow:hidden;
}

.copies-box button{
    width:44px;
    height:100%;

    border:none;
    background:#f9fafb;

    font-size:16px;
    cursor:pointer;
    transition:.25s;
}

.copies-box button:hover{
    background:#22c55e;
    color:#fff;
}

#copiesCount{
    flex:1;
    text-align:center;
    font-size:16px;
    font-weight:700;
    color:#111827;
}
/*==================================
    Sticky Bottom Cart
==================================*/

.bottom-cart{
    position:fixed;
    left:0;
    bottom:0;
    width:100%;
    background:#ffffff;
    border-top:1px solid #e5e7eb;
    padding:14px 16px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:15px;
    box-shadow:0 -5px 18px rgba(0,0,0,.08);
    z-index:999;
}

.cart-details{
    display:flex;
    flex-direction:column;
    gap:3px;
}

#bottomPages{
    font-size:15px;
    font-weight:700;
    color:#111827;
}

#bottomSheets{
    font-size:12px;
    color:#6b7280;
}

.price-info strong{
    font-size:22px;
    font-weight:700;
    color:#16a34a;
}

.add-cart-btn{
    flex:1;
    height:50px;
    border:none;
    border-radius:14px;
    background:#22c55e;
    color:#ffffff;
    font-size:15px;
    font-weight:600;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    transition:.3s;
}

.add-cart-btn:hover{
    background:#16a34a;
}

.add-cart-btn:active{
    transform:scale(.98);
}


/*==================================
    Scrollbar
==================================*/

::-webkit-scrollbar{
    width:6px;
}

::-webkit-scrollbar-thumb{
    background:#d1d5db;
    border-radius:20px;
}

.file-thumb{
    width:48px;
    height:48px;
    border-radius:10px;
    object-fit:cover;
    flex-shrink:0;
    display:block;
}

.delete-file{
    width:36px;
    height:36px;
    border:none;
    border-radius:10px;
    background:#f3f4f6;
    cursor:pointer;
    transition:.25s;
    flex-shrink:0;
}

.delete-file:hover{
    background:#ef4444;
    color:#fff;
}

.preview-paper{
    width:100%;
    height:100%;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:15px;
}

.preview-paper canvas{
    display:block;
    max-width:100%;
    max-height:100%;
}

.preview-loading{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:12px;
    height:100%;
}

.preview-loading i{
    font-size:34px;
    color:#22c55e;
}

.nav-btn:disabled{
    opacity:.45;
    cursor:not-allowed;
}


.preview-image{
    max-width:100%;
    max-height:100%;
    object-fit:contain;
    display:block;
}

.file-info{
    min-width:0;
    flex:1;
}

.file-info h4{
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}



.file-left{
    flex:1;
    min-width:0;
}
.nav-btn:disabled:hover{
    background:#fff;
    color:inherit;
}

button:focus-visible{
    outline:2px solid #22c55e;
    outline-offset:2px;
}
/*==================================
    Responsive
==================================*/

@media(max-width:480px){

    .print-page{
        padding:14px;
        padding-bottom:110px;
    }

    .header-content h1{
        font-size:20px;
    }

    .preview-box{
        height:220px;
    }

    .chip{
        min-width:80px;
        height:40px;
        font-size:13px;
    }

    .copies-box{
        width:130px;
        height:44px;
    }

    .add-cart-btn{
        height:48px;
        font-size:14px;
    }

    .price-info strong{
    font-size:20px;
}
}

