body{
    margin:0;
    padding:0;
    height:100%;
    background:#f5eee4;
    font-family:system-ui, -apple-system, Segoe UI, Roboto, Arial;
    overflow-x:hidden;
}

/* Animation */
/* ================= HEADER ANIMATION ================= */
@keyframes wipeIn {
    from{ transform:translateX(-25px); opacity:0; }
    to{ transform:translateX(0); opacity:1; }
}
/* ================= CARD ANIMATION ================= */
@keyframes wipeUp {
    from{ transform:translatey(25px); opacity:0; }
    to{ transform:translateX(0); opacity:1; }
}

/* ================= SIDEBAR ================= */
.sidebar{
    width:80px;
    height:100vh;
    position:fixed;
    top:0;
    left:-80px;
    background:#f5eee4;
    transition:0.15s ease;
    z-index:1001;

    display:flex;
    flex-direction:column;
    align-items:stretch;
}

.sidebar.active{
    left:0;
}

/* ================= PROFILE ================= */

.profile-default-icon{
    font-size:38px;
}

.sidebar-profile{
    height:90px;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
}

.sidebar-profile .material-symbols-rounded{
    font-size:38px;
}


#profileIcon{
    width:45px;
    height:45px;
    border-radius:50%;
    overflow:hidden;
    display:flex;
    align-items:center;
    justify-content:center;
}


#profileIcon img{
    width:100%;
    height:100%;
    object-fit:cover;
    border-radius:50%;
}


#profileIcon .profile-initial{
    width:45px;
    height:45px;
    border-radius:50%;
    
    display:flex;
    align-items:center;
    justify-content:center;
    
    font-size:16px;
    font-weight:600;

    background:#7a1230;
    color:white;
}



    .overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    display: none;
    z-index: 1000;
}

.overlay.active {
    display: block;
}


/* ================= MENU ITEM ================= */
.menu-item{
    height:75px;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:3px;

    cursor:pointer;
    transition:0.2s ease;
}

.menu-item .material-symbols-rounded{
    font-size:26px;
    color:#111;
}

.label{
    font-size:11px;
    color:#333;
}

/* ================= HOVER ================= */
.menu-item:hover{
    background:#f0dde4;
}

/* ================= ACTIVE ================= */
.menu-item.active{
    background:#f0dde4;
    color:#850a37;
}

/* ================= HEADER ================= */
.header{
    background:#f5eee3;
    padding:16px 18px;
    display:flex;
    align-items:center;
    gap:12px;
    border-bottom:1px solid #ddd;
    
}

.logo{
    font-weight:600;
    color:#7a1230;
    font-size:20px;
    animation:wipeIn 1.5s ease;
}

.hamburger{
    cursor:pointer;
    font-size:22px;
    color:#7a1230;
    animation:wipeIn 1.5s ease;
}

.pdf-card{
    background:#fff;
    margin:14px 18px;
    padding:16px;
    border-radius:14px;
    animation:wipeUp 1.5s ease;

    display:flex;
    align-items:center;
    gap:14px;

    cursor:pointer;
    transition:.2s ease;

    box-shadow:0 2px 8px rgba(0,0,0,.06);
}

.pdf-link{
    width:40px;
    height:40px;
    display:flex;
    align-items:center;
    justify-content:center;
    cursor:pointer;
    border-radius:10px;
    transition:.2s;
}

.pdf-link:hover{
    background:#f5f5f5;
}

.pdf-link .material-symbols-rounded{
    font-size:22px;
    color:#7a1230;
}

.pdf-card:hover{
    transform:translateY(-2px);
    box-shadow:0 6px 16px rgba(0,0,0,.10);
}


.pdf-icon{
    width:50px;
    height:50px;
    border-radius:12px;
    background:#f0dde4;

    display:flex;
    align-items:center;
    justify-content:center;
}

.pdf-icon .material-symbols-rounded{
    font-size:28px;
    color:#7a1230;
}

.pdf-info{ flex:1;}

.pdf-title{
    font-size:12px;
    font-weight:600;
    color:#222;
    margin-bottom:4px;
}

.pdf-author{
    font-size:13px;
    color:#777;
}

.pdf-arrow .material-symbols-rounded{
    color:#999;
    font-size:24px;
}

/* ================= MODAL PDF ================= */
#pdfModal{
    position:fixed;
    inset:0;
    background:#fff;
    display:none;
    z-index:3000;
    flex-direction:column;
    overflow:hidden;
}

#pdfHeader{
    height:50px;
    background:#7a1230;
    color:#fff;

    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:0 18px;

    position:relative;
    z-index:9999;
}

#pdfFrame{
    flex:1;
    width:100%;
    border:none;
}

button{
    background:transparent;
    border:1px solid #fff;
    color:#fff;
    padding:8px 12px;
    cursor:pointer;
    font-size:14px;
    border-radius:5px;
}

@keyframes pulse {
    0%{
        opacity: 0.4;
        transform: scale(1);
    }
    50%{
        opacity: 1;
        transform: scale(1.01);
    }
    100%{
        opacity: 0.4;
        transform: scale(1);
    }
}


/* ================= FIX Z-INDEX ================= */
#app{ position:relative; z-index:1; }
.card{ position:relative; z-index:1; }
.sidebar{ z-index:1001; }
#pdfModal{ z-index:3000; }

.tabs{
    display:flex;
    position:relative;
    margin-left:20px;
    padding:4px;
    background:#f0dde4;
    border-radius:999px;
    width:fit-content;
    overflow:hidden;
    animation:wipeIn 1.5s ease;
}

/* SLIDER (AUTO WIDTH, NO DUPLICATE LOOK) */
.tab-slider{
    position:absolute;
    top:4px;
    left:4px;
    height:calc(100% - 8px);
    width:calc(50% - 4px);
    background:#7a1230;
    border-radius:999px;
    transition:0.15s cubic-bezier(0.4, 0, 0.2, 1);
    z-index:0;
}

/* TAB BUTTON */
.tab{
    position:relative;
    z-index:1;
    flex:1;
    padding:8px 22px;
    cursor:pointer;
    font-size:14px;
    font-weight:500;
    text-align:center;
    color:#4c4b4b;
    transition:0.2s ease;
    white-space:nowrap;
}

.tab.active{
    color:#fff;
}

.loading-screen{
    height:100vh;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:15px;
}

.spinner{
    width:40px;
    height:40px;
    border:4px solid #ddd;
    border-top:4px solid #7a1230;
    border-radius:50%;
    animation:spin .8s linear infinite;
}

.search-box{

position:relative;
margin:15px 20px;

}


.search-box input{

width:100%;
padding:12px 45px 12px 15px;

border-radius:15px;
border:1px solid #ddd;

font-size:15px;

outline:none;

box-sizing:border-box;

}


.search-box span{

position:absolute;

right:15px;
top:50%;

transform:translateY(-50%);

color:#7a1230;

}


@keyframes spin{
    from{
        transform:rotate(0deg);
    }
    to{
        transform:rotate(360deg);
    }
}

.bookmark-icon{

    font-size:22px;
    color:#7a1230;

    font-variation-settings:
    'FILL' 0,
    'wght' 300,
    'GRAD' 0,
    'opsz' 24;

}


.bookmark-icon.active{

    font-variation-settings:
    'FILL' 1,
    'wght' 300,
    'GRAD' 0,
    'opsz' 24;

}

/* ================= LOADING ================= */

#loadingScreen{

position:fixed;
inset:0;

background:#ffffff;

display:flex;
flex-direction:column;
align-items:center;
justify-content:center;

z-index:9999;

color:#777;

font-size:14px;

}




/* ================= FAVOURITE TITLE ================= */


.fav-title{

margin:30px 20px 15px;

font-size:17px;

font-weight:700;

letter-spacing:.3px;

color:#7a1230;

display:flex;

align-items:center;

gap:12px;

}


/* premium accent */

.fav-title::before{

content:"";

width:6px;

height:26px;

background:#7a1230;

border-radius:20px;

box-shadow:
0 0 8px rgba(122,18,48,.35);

}


/* garis halus sebelah kanan */

.fav-title::after{

content:"";

height:1px;

flex:1;

background:linear-gradient(
90deg,
rgba(122,18,48,.25),
transparent
);

margin-left:5px;

}


/* ================= FAVOURITE LOADING ================= */

#favouriteLoading{

position:fixed;

top:0;
left:0;

width:100%;
height:100vh;

background:#f6efe6;

display:flex;

flex-direction:column;

justify-content:center;

align-items:center;

z-index:9999;

font-family:Arial,sans-serif;

color:#7a1230;

}



/* Spinner */

.favourite-loader{

width:45px;

height:45px;

border:5px solid #ddd;

border-top:5px solid #7a1230;

border-radius:50%;

animation:favouriteSpin 1s linear infinite;

margin-bottom:15px;

}



@keyframes favouriteSpin{

0%{
transform:rotate(0deg);
}

100%{
transform:rotate(360deg);
}

}

#closeFavouriteLoadingBtn{

position:absolute;

top:20px;
right:20px;

border:none;

background:transparent;

color:#7a1230;

cursor:pointer;

display:flex;

align-items:center;

justify-content:center;

padding:0;

}


#closeFavouriteLoadingBtn span{

font-size:28px;

}


input,
textarea,
select{
    font-size:16px;
    -webkit-text-size-adjust:100%;
}
