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;
}

.video-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);
}

.video-card:hover{
    transform:translateY(-2px);
    box-shadow:0 6px 16px rgba(0,0,0,.10);
}

.video-icon{
    width:50px;
    height:50px;
    border-radius:12px;
    background:#f0dde4;

    display:flex;
    align-items:center;
    justify-content:center;
}

.video-icon .material-symbols-rounded{
    font-size:28px;
    color:#7a1230;
}

.video-info{ flex:1; }

.video-title{
    font-size:12px;
    font-weight:600;
    color:#222;
    margin-bottom:4px;
}

.video-author{
    font-size:13px;
    color:#777;
}

.video-arrow .material-symbols-rounded{
    color:#999;
    font-size:24px;
}

.video-thumbnail{

width:110px;

height:62px;

object-fit:cover;

border-radius:10px;

flex-shrink:0;

}

/* ================= MODAL PDF ================= */
#videoModal{
    position:fixed;
    inset:0;
    background:#fff;
    display:none;
    z-index:3000;
    flex-direction:column;
    overflow:hidden;
}

#videoHeader{
    height:50px;
    background:#7a1230;
    color:#fff;

    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:0 18px;

    position:relative;
    z-index:9999;
}

#videofFrame{
    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);
    }
}

.loading{
    animation: pulse 2s infinite ease-in-out;
    font-weight: 200;
    font-size: 15px;
}

/* ================= FIX Z-INDEX ================= */
#app{ position:relative; z-index:1; }
.card{ position:relative; z-index:1; }
.sidebar{ z-index:1001; }
#pdfModal{ z-index:3000; }


.video-wrapper{
    width:100%;
    max-width:900px;
    margin:15px auto;
    aspect-ratio:16/9;
background: transparent;
}

.video-wrapper iframe{
    width:100%;
    height:100%;
    border:none;
    border-radius:12px;
}

.tabs{
    display:flex;
    position:relative;
    margin-left:20px;
    padding:4px;
    background:#f0dde4;
    border-radius:999px;
    width:fit-content;
    overflow:visible; /* tukar sini */
    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;
}


/* ================= LOCKED CHAPTER ================= */

.locked{

opacity:0.45;
cursor:not-allowed;

}


.locked:hover{

transform:none;

}

#loadingScreen{

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;

}


.loader{

width:45px;
height:45px;

border:5px solid #ddd;
border-top:5px solid #7a1230;

border-radius:50%;

animation:spin 1s linear infinite;

margin-bottom:15px;

}


@keyframes spin{

0%{
transform:rotate(0deg);
}

100%{
transform:rotate(360deg);
}

}


#closeLoadingBtn{

position:absolute;

top:20px;
right:20px;

border:none;
background:transparent;

color:#7a1230;

display:flex;
align-items:center;
justify-content:center;

cursor:pointer;

padding:0;

}


#closeLoadingBtn span{

font-size:24px;

}

.video-item{

background:white;
margin:10px 18px;
padding:8px;
border-radius:14px;
animation:wipeUp 1.5s ease;

display:flex;

align-items:center; 

gap:12px;

    cursor:pointer;
    transition:.2s ease;

box-shadow:0 2px 8px rgba(0,0,0,.06);

}

.video-item:hover{
    transform:translateY(-2px);
    box-shadow:0 6px 16px rgba(0,0,0,.10);
}


.video-item .video-thumbnail{

width:150px;

height:85px;

object-fit:cover;

border-radius:10px;

flex-shrink:0;

}


.video-item .video-info{

flex:1;

min-width:0;

}


.video-item .video-title{

font-size:14px;

font-weight:600;

line-height:1.3;

}


.video-item .video-author{

font-size:12px;

color:#777;

margin-top:3px;

}

#videoList{
    width:100%;
}




/* ================= VIDEO PLAYER POPUP ================= */

#playerOverlay{

position:fixed;
inset:0;

background:rgba(0,0,0,0.65);

display:none;

align-items:center;
justify-content:center;

z-index:5000;

}


#playerBox{

width:90%;
max-width:850px;

aspect-ratio:16/9;

background:black;

border-radius:15px;

overflow:hidden;

}


#youtubePlayer{

width:100%;
height:100%;

border:none;

}


.video-search{

margin:15px 18px;

background:white;

border-radius:14px;

padding:12px 15px;

display:flex;

align-items:center;

gap:10px;

box-shadow:
0 3px 10px rgba(0,0,0,.06);

}


.video-search span{

color:#777;

}


.video-search input{

border:none;

outline:none;

font-size:15px;

width:100%;

background:none;

}

.year-dropdown{
position:relative;
}


.year-dropdown .tab{
display:flex;
align-items:center;
justify-content:space-between;
gap:25px;
background:#7a1230;
color:white;
border-radius:999px;
padding:8px 14px 8px 18px;
min-width:90px;
}

.year-dropdown .material-symbols-rounded{
font-size:15px;
}



.year-menu{

position:absolute;
top:45px;
right:0;

background:white;

border-radius:16px;

box-shadow:0 10px 30px rgba(0,0,0,.15);

padding:8px;

z-index:9999;

min-width:100px;

display:none;

}


.year-menu.show{

display:block;

}


.year-menu div{

padding:10px 15px;

border-radius:10px;

cursor:pointer;

font-size:14px;

color:#333;

}


.year-menu div:hover{

background:#f0dde4;

}


/* ================= BOOKMARK ================= */

.bookmark-icon{

    font-size:22px;
    color:#7a1230;

    font-variation-settings:
    'FILL' 0,
    'wght' 300,
    'GRAD' 0,
    'opsz' 24;

    transition:.2s ease;

}


.bookmark-icon.active{

    font-variation-settings:
    'FILL' 1,
    'wght' 300,
    'GRAD' 0,
    'opsz' 24;

}


input,
textarea,
select{
    font-size:16px;
    -webkit-text-size-adjust:100%;
}
