/* ==========================================
   GOVT EXAM PREP EBOOK READER
========================================== */

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

html{
    scroll-behavior:smooth;
}

body{

    font-family:'Poppins',sans-serif;

    background:#eef2f7;

    background-image:
    radial-gradient(circle at top left,#ffffff 0%,transparent 35%),
    radial-gradient(circle at bottom right,#dfe8f7 0%,transparent 30%);

    min-height:100vh;

    display:flex;
    flex-direction:column;

    color:#1d2939;

}



/* =========================
        NAVBAR
========================= */

.navbar{

    position:sticky;

    top:0;

    z-index:999;

    backdrop-filter:blur(20px);

    background:rgb(135, 0, 0);

    border-bottom:1px solid rgba(246, 245, 245, 0.893);

    display:flex;

    justify-content:space-between;

    align-items:center;

    padding:18px 40px;

}

.logo{

    display:flex;

    align-items:center;

    gap:15px;

}

.logo-icon{

    font-size:34px;

}

.logo h2{

    font-size:23px;

    font-weight:700;

    color:#dcd7d7;

}

.logo small{

    color:#777;

    font-size:13px;

}

.nav-right{

    display:flex;

    gap:12px;

}

.icon-btn{

    width:45px;

    height:45px;

    border-radius:50%;

    border:none;

    cursor:pointer;

    background:white;

    font-size:18px;

    transition:.30s;

    box-shadow:0 10px 25px rgba(0,0,0,.08);

}

.icon-btn:hover{

    transform:translateY(-3px);

    box-shadow:0 15px 35px rgba(0,0,0,.15);

}



/* =========================
      BOOK INFO
========================= */

.book-header{

    max-width:1200px;

    margin:35px auto 15px;

    width:92%;

}

.book-header h1{

    font-size:34px;

    color:#111827;

    margin-bottom:5px;

}

.book-header p{

    color:#667085;

}



/* =========================
      PROGRESS BAR
========================= */

.progress-section{

    width:92%;

    max-width:1200px;

    margin:auto;

}

.progress-top{

    display:flex;

    justify-content:space-between;

    margin-bottom:12px;

    font-size:15px;

    color:#555;

}

.progress-bar{

    width:100%;

    height:12px;

    border-radius:50px;

    overflow:hidden;

    background:#d8dee9;

}

#progress{

    width:0%;

    height:100%;

    background:linear-gradient(
        90deg,
        #800000,
        #c0392b
    );

    transition:.4s;

}



/* =========================
      PDF VIEW
========================= */

.viewer-area{

    flex:1;

    display:flex;

    justify-content:center;

    align-items:center;

    padding:45px 20px;

}



.pdf-card{

    width:900px;

    max-width:100%;

    background:white;

    padding:35px;

    border-radius:18px;

    box-shadow:

    0 20px 60px rgba(0,0,0,.08),

    0 5px 15px rgba(0,0,0,.05);

}



#pdf-render{

    width:100%;

    display:block;

    border-radius:8px;

}



/* =========================
        FOOTER
========================= */

.reader-footer{

    position:sticky;

    bottom:0;

    background:white;

    border-top:1px solid #e4e7ec;

    padding:18px 40px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    box-shadow:0 -10px 30px rgba(0,0,0,.05);

}

.page-box{

    display:flex;

    align-items:center;

    gap:10px;

    font-size:17px;

}

.page-box strong{

    color:#800000;

}



/* =========================
      BUTTONS
========================= */

.navigation{

    display:flex;

    gap:18px;

}

.nav-btn{

    padding:13px 28px;

    border:none;

    border-radius:12px;

    cursor:pointer;

    font-size:15px;

    font-weight:600;

    transition:.30s;

    background:#eceff4;

}

.nav-btn:hover{

    transform:translateY(-3px);

}

.primary{

    background:#800000;

    color:white;

}

.primary:hover{

    background:#650000;

}



/* =========================
      RESPONSIVE
========================= */

@media(max-width:900px){

.navbar{

padding:15px 20px;

}

.book-header{

width:95%;

}

.progress-section{

width:95%;

}

.reader-footer{

padding:18px;

flex-direction:column;

gap:15px;

}

.navigation{

width:100%;

}

.nav-btn{

flex:1;

}

.pdf-card{

padding:15px;

}

.book-header h1{

font-size:26px;

}

}

body.dark{

    background:#121212;

    color:white;

}

body.dark .navbar{

    background:#1d1d1d;

}

body.dark .reader-footer{

    background:#1d1d1d;

}

body.dark .pdf-card{

    background:#2b2b2b;

}

body.dark .book-header h1{

    color:white;

}

body.dark .icon-btn{

    background:#2c2c2c;

    color:white;

}
.logo img{

width:55px;

height:55px;

object-fit:contain;

border-radius:12px;

}