/* E-Ujian visual layer. No external fonts or layout libraries. */
:root{--ujian-ink:#173331;--ujian-muted:#617873;--ujian-line:#dbe8e4;--ujian-teal:#116b5b}
body.ujian-modern{background:#eef5f2;color:var(--ujian-ink)}
body.ujian-modern main{background:linear-gradient(135deg,#f4f9f7 0%,#eaf3f0 62%,#f4f9f7 100%)!important}
body.ujian-modern #mainContent{max-width:none;padding:22px clamp(16px,2.5vw,44px) 45px}
body.ujian-modern #sidebar{width:258px;background:linear-gradient(165deg,#123a34,#0a5548 70%,#0b3a35)!important;box-shadow:12px 0 36px rgba(13,55,47,.10)}
body.ujian-modern #sidebar>div:first-child{background:rgba(4,35,31,.34)!important;border-color:rgba(255,255,255,.15)!important;padding-block:20px}
body.ujian-modern #sidebar .custom-scroll{scrollbar-color:#91b7aa transparent}
body.ujian-modern #sideNav a{margin:3px 10px!important;padding:11px 13px!important;border-radius:12px!important;color:#e1f2eb!important}
body.ujian-modern #sideNav a.nav-active{background:rgba(255,255,255,.18)!important;box-shadow:inset 3px 0 0 #a7e2b9;color:#fff!important}
body.ujian-modern #sideNav a:not(.nav-active):hover{background:rgba(255,255,255,.1)!important}
body.ujian-modern #topbar{background:rgba(255,255,255,.94)!important;border-color:var(--ujian-line)!important;box-shadow:0 5px 18px rgba(25,71,62,.04);padding:13px clamp(16px,2.5vw,44px)}
body.ujian-modern #topbar h1{font-size:1rem;font-weight:800;letter-spacing:.015em;text-transform:none}
body.ujian-modern #mainContent .bg-white{background:rgba(255,255,255,.96);border-color:var(--ujian-line);box-shadow:0 8px 28px rgba(19,67,57,.045)}
body.ujian-modern #mainContent .rounded-2xl,body.ujian-modern #mainContent .rounded-xl{border-radius:18px}
body.ujian-modern #mainContent :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea){max-width:100%;border-radius:10px;min-height:38px}
body.ujian-modern #mainContent :is(button,a){transition:background-color .16s ease,color .16s ease,border-color .16s ease,box-shadow .16s ease}
body.ujian-modern #mainContent :is(button,a):focus-visible,body.ujian-modern #sideNav a:focus-visible,body.login-modern :is(button,input):focus-visible{outline:2px solid #12a387;outline-offset:2px}
body.ujian-modern #mainContent :is(.overflow-x-auto,.table-responsive){max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;scrollbar-width:thin;scrollbar-color:#b5d3c9 transparent}
body.ujian-modern #mainContent :is(.overflow-x-auto,.table-responsive)>table{min-width:max-content;width:100%}
body.ujian-modern #mainContent table{font-variant-numeric:tabular-nums}
body.ujian-modern #mainContent table thead{background:#eff7f3;color:#32574e}
body.ujian-modern #mainContent table th{font-size:.72rem;letter-spacing:.035em;white-space:nowrap}
body.ujian-modern #mainContent table td{vertical-align:middle}
body.ujian-modern #mainContent table tbody tr:hover{background:#f4faf7}
body.ujian-modern #mobileBottomNav{background:rgba(255,255,255,.97);border-color:var(--ujian-line);padding-bottom:env(safe-area-inset-bottom)}
html.dark body.ujian-modern{background:#0b1919;color:#e6f2ee}
html.dark body.ujian-modern main{background:#102020!important}
html.dark body.ujian-modern #sidebar{background:linear-gradient(165deg,#102d2a,#0a4139)!important}
html.dark body.ujian-modern #topbar{background:#192e2b!important;border-color:#34514b!important}
html.dark body.ujian-modern #mainContent .bg-white{background:#1d3330;border-color:#3b5b54}
html.dark body.ujian-modern #mainContent table thead{background:#24433b;color:#d5ede2}
html.dark body.ujian-modern #mainContent table tbody tr:hover{background:#24443c}
@media(max-width:767px){
  body.ujian-modern #sidebar{width:min(290px,85vw)}
  body.ujian-modern #topbar{padding:12px 16px}
  body.ujian-modern #mainContent{padding:16px 12px calc(92px + env(safe-area-inset-bottom))!important}
  body.ujian-modern #mainContent .overflow-x-auto>table{min-width:max-content}
  body.ujian-modern #mainContent :is(.rounded-2xl,.rounded-xl){border-radius:14px}
  body.ujian-modern #mainContent table :is(th,td){padding:10px 12px}
}
@media(max-width:480px){body.ujian-modern #topbar h1{font-size:.9rem;max-width:180px}}

/* Searchable subject selects keep the original select and its change handlers. */
.subject-combobox{position:relative;display:inline-flex;vertical-align:middle;min-width:145px;max-width:100%;width:auto}
.subject-combobox.subject-wide{display:flex;width:100%}
.subject-combobox select.subject-original{position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;pointer-events:none!important;min-height:1px!important;padding:0!important;overflow:hidden}
.subject-trigger{width:100%;min-height:40px;padding:9px 36px 9px 12px;background:#fff;color:#183d35;border:1px solid #cbded6;border-radius:10px;font-size:.875rem;line-height:1.35;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;position:relative}
.subject-trigger:after{content:'⌕';position:absolute;right:12px;top:50%;transform:translateY(-50%);font-size:1.25rem;color:#568477}
.subject-trigger:disabled{opacity:.55;cursor:not-allowed}
.subject-popover{position:fixed;z-index:100000;max-height:min(350px,65dvh);background:#fff;color:#183d35;border:1px solid #bdd9cf;border-radius:14px;box-shadow:0 16px 42px rgba(9,58,47,.2);padding:8px;display:flex;flex-direction:column;gap:6px}
.subject-popover[hidden]{display:none}
.subject-search{width:100%;min-height:43px;padding:10px 12px;border:1px solid #cbded6;border-radius:10px;background:#fff;font-size:16px;color:#183d35;outline:none}
.subject-search:focus{border-color:#168f76;box-shadow:0 0 0 3px rgba(22,143,118,.15)}
.subject-results{overflow:auto;max-height:270px;overscroll-behavior:contain}
.subject-option{width:100%;display:block;text-align:left;padding:10px 12px;border:0;background:none;color:inherit;border-radius:9px;cursor:pointer;line-height:1.3;font-size:.875rem}
.subject-option:hover,.subject-option:focus-visible,.subject-option[aria-selected=true]{background:#e7f6ee;color:#075d48;outline:0}
.subject-empty{padding:12px;color:#617873;font-size:.875rem}
html.dark .subject-trigger,html.dark .subject-popover,html.dark .subject-search{background:#1d3330;color:#e6f2ee;border-color:#476a61}
html.dark .subject-option:hover,html.dark .subject-option:focus-visible,html.dark .subject-option[aria-selected=true]{background:#2b5548;color:#fff}

/* Standalone login and exam screens. */
body.login-modern{--theme-main:#116b5b;background:radial-gradient(circle at 12% 8%,#267b6a 0,#114d43 34%,#0c332e 75%)!important;padding:24px}
body.login-modern>div.bg-white.rounded-2xl{border-radius:26px;box-shadow:0 28px 80px rgba(3,29,26,.28);min-height:min(620px,calc(100dvh - 48px))!important;border:1px solid rgba(255,255,255,.65)}
body.login-modern>div.bg-white.rounded-2xl>div:last-child{padding:clamp(25px,4vw,58px)}
body.login-modern :is(input,button){border-radius:12px}
body.login-modern #loginDarkBtn{background:rgba(255,255,255,.18)}
body.exam-modern{background:#edf6f2!important}
body.exam-modern #examContainer .bg-white{background:rgba(255,255,255,.97);border-color:#d6e9e0}
body.exam-modern #examContainer .side-panel{border-radius:18px}
@media(max-width:767px){
  body.login-modern{padding:12px;align-items:center}
  body.login-modern>div.bg-white.rounded-2xl{min-height:0!important;border-radius:20px}
  body.login-modern>div.bg-white.rounded-2xl>div:last-child{padding:24px 18px}
  body.exam-modern #examContainer{max-width:100vw;overflow-x:hidden}
  body.exam-modern #examContainer .side-panel{border-radius:16px 16px 0 0!important;padding-bottom:calc(14px + env(safe-area-inset-bottom))}
  body.exam-modern #navBtns{grid-template-columns:repeat(6,minmax(0,1fr));max-height:132px;overflow-y:auto}
  body.exam-modern #navBtns button{min-height:38px}
}
@media(prefers-reduced-motion:reduce){.fade-in,.slide-up{animation:none!important}body.ujian-modern #mainContent :is(button,a){transition:none}}
@media print{body.ujian-modern main{background:#fff!important}body.ujian-modern #mainContent{padding:0!important}.subject-combobox select.subject-original{position:static!important;width:auto!important;height:auto!important;opacity:1!important}}

/* October refresh: actual login, student navigation, and student pages. */
body.login-modern{background:linear-gradient(125deg,#0a302d,#0d594b 56%,#17836b)!important}
body.login-modern .login-shell{max-width:1060px;min-height:630px!important;border-radius:28px!important;background:#fff;box-shadow:0 28px 75px rgba(3,31,28,.28)}
body.login-modern .login-shell>.login-hero{background:linear-gradient(155deg,#092f2b,#0c604e 68%,#178c70)!important;color:#fff;position:relative;overflow:hidden;border:0}
body.login-modern .login-hero:after{content:'';position:absolute;width:360px;height:360px;border:1px solid rgba(255,255,255,.12);border-radius:50%;right:-145px;bottom:-150px;box-shadow:0 0 0 56px rgba(255,255,255,.035),0 0 0 112px rgba(255,255,255,.025);pointer-events:none}
.login-hero>.max-w-sm{position:relative;z-index:1}
.login-eyebrow,.student-eyebrow{display:inline-flex;align-items:center;gap:7px;font-size:11px;font-weight:800;letter-spacing:.12em;border:1px solid rgba(255,255,255,.3);border-radius:100px;padding:9px 13px;color:#def8e7;background:rgba(255,255,255,.08)}
.login-hero-logo{width:auto;max-width:230px;max-height:150px;margin:35px 0 26px;filter:drop-shadow(0 14px 24px rgba(0,0,0,.2))}
.login-hero-mark{display:grid;place-items:center;width:78px;height:78px;margin:35px 0 26px;border-radius:22px;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.3)}
.login-hero-title{font-size:clamp(2.1rem,3vw,3rem);font-weight:900;letter-spacing:-.04em;line-height:1.12;margin:0 0 15px}
.login-hero-description{max-width:390px;color:#d5eee5;font-size:14px;line-height:1.7}
.login-feature-list{display:flex;flex-wrap:wrap;gap:9px;margin-top:30px}
.login-feature{display:flex;align-items:center;gap:8px;color:#e5fff2;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.14);padding:9px 12px;border-radius:11px;font-size:12px;font-weight:700}
body.login-modern .login-form-panel{min-width:0;background:#fff!important}
.login-brand{display:flex;align-items:center;gap:15px;text-align:left}
.login-brand-mark,.login-brand-logo{flex-shrink:0;width:62px;height:62px;border-radius:17px;display:grid;place-items:center;background:linear-gradient(145deg,#11846b,#0c574b);box-shadow:0 10px 25px rgba(10,93,75,.22)}
.login-brand-logo{object-fit:contain;background:#eff9f2;padding:7px}
.login-brand-overline{font-size:10px;letter-spacing:.17em;font-weight:850;color:#168169}
body.login-modern .login-brand h1{line-height:1.2;letter-spacing:-.035em;font-size:clamp(1.4rem,2.4vw,1.9rem)}
.login-section-label{font-size:11px;font-weight:800;letter-spacing:.12em;color:#648479;text-transform:uppercase;margin-bottom:12px}
.login-roles{display:flex;flex-direction:column;gap:11px}
.login-role{display:flex;align-items:center;gap:14px;text-align:left;min-height:72px;width:100%;padding:12px 15px;border-radius:15px;border:1px solid #d8e8df;background:#fff;color:#194038;box-shadow:0 3px 15px rgba(11,76,61,.04);transition:transform .15s ease,border-color .15s ease,box-shadow .15s ease}
.login-role:hover{transform:translateY(-2px);border-color:#81c3a7;box-shadow:0 10px 22px rgba(11,76,61,.1)}
.login-role-icon{display:grid;place-items:center;flex-shrink:0;width:42px;height:42px;border-radius:12px;background:#e9f6ee;color:#0b8064;font-size:17px}
.login-role-text{display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}
.login-role-text strong{font-size:14px;font-weight:800}
.login-role-text small{font-size:11px;color:#69867b}
.login-role-arrow{font-size:13px;color:#608c78}
.login-role-primary{background:linear-gradient(120deg,#116e59,#159b76);border-color:transparent;color:#fff}
.login-role-primary .login-role-icon{background:rgba(255,255,255,.18);color:#fff}
.login-role-primary .login-role-text small,.login-role-primary .login-role-arrow{color:#d9f5e8}
.login-role-primary:hover{border-color:transparent;box-shadow:0 11px 28px rgba(15,109,87,.25)}
body.login-modern .login-form input{min-height:46px;border:1px solid #c8ddd2;border-radius:12px}
body.login-modern .login-form #submitBtn{background:#10715a!important;min-height:49px;border-radius:12px}
body.login-modern .login-form #formTitle{letter-spacing:-.02em}
html.dark body.login-modern .login-shell,html.dark body.login-modern .login-form-panel{background:#162c29!important;color:#e6f2ed}
html.dark body.login-modern .login-role:not(.login-role-primary){background:#1c3934;color:#e6f2ed;border-color:#3f6157}
html.dark body.login-modern .login-role-text small{color:#accbbd}

body.ujian-modern.student-user{--bottom-nav-h:76px}
body.ujian-modern.student-user #sideNav a.nav-active{background:rgba(207,245,217,.2)!important}
body.ujian-modern.student-user .student-mobile-name{max-width:96px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:700;font-size:11px;color:#176950}
@media(max-width:767px){
 body.ujian-modern.student-user #mobileBottomNav{height:calc(74px + env(safe-area-inset-bottom));align-items:center;justify-content:space-around;padding:7px 6px calc(7px + env(safe-area-inset-bottom));box-shadow:0 -8px 26px rgba(8,52,42,.09)}
 body.ujian-modern.student-user #mobileBottomNav .student-nav-item{flex:1;min-width:0;height:58px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;border-radius:13px;font-size:10px;font-weight:800;color:#72857e;text-decoration:none;background:transparent}
 body.ujian-modern.student-user #mobileBottomNav .student-nav-item i{font-size:18px}
 body.ujian-modern.student-user #mobileBottomNav .student-nav-active{color:#09755b;background:#e9f7ef}
 body.ujian-modern.student-user #mobileBottomNav .student-nav-exam{flex:1.15;color:#0a775c}
 body.ujian-modern.student-user #mobileBottomNav .student-nav-exam i{width:38px;height:34px;border-radius:11px;background:#ddf5e6;display:grid;place-items:center}
 body.ujian-modern.student-user #mobileBottomNav .student-nav-exam.student-nav-active i{background:#128564;color:#fff}
 body.ujian-modern.student-user #mobileBottomNav .student-nav-logout{color:#a84b4b}
 body.ujian-modern.student-user #topbar #topbar-clock{display:none}
 body.ujian-modern.student-user #topbar h1{max-width:135px;font-size:13px}
 body.ujian-modern.student-user #mainContent{padding-bottom:calc(95px + env(safe-area-inset-bottom))!important}
}

.student-home,.student-cbt{max-width:1250px;margin:auto}
.student-welcome{position:relative;display:flex;align-items:center;justify-content:space-between;min-height:244px;padding:32px clamp(24px,4vw,54px);overflow:hidden;border-radius:24px;color:#fff;background:linear-gradient(115deg,#0c443a,#107b60 72%,#14a47a);box-shadow:0 18px 34px rgba(17,93,70,.13)}
.student-welcome:before{content:'';position:absolute;inset:auto -40px -160px auto;width:370px;height:370px;border:1px solid rgba(255,255,255,.17);border-radius:50%;box-shadow:0 0 0 48px rgba(255,255,255,.035),0 0 0 104px rgba(255,255,255,.025)}
.student-welcome-copy{position:relative;z-index:1;max-width:660px}
.student-greeting{margin:20px 0 4px;font-size:14px;color:#d9f4e7}
.student-welcome h2{font-size:clamp(1.6rem,3.3vw,2.8rem);font-weight:900;letter-spacing:-.035em;line-height:1.17;overflow-wrap:anywhere}
.student-welcome-desc{font-size:14px;color:#ddf1e5;margin:9px 0 20px}
.student-primary-link{display:inline-flex;align-items:center;gap:10px;padding:12px 17px;background:#fff;color:#0d7257;font-size:13px;font-weight:800;border-radius:12px;min-height:44px}
.student-primary-link:hover{background:#e9fff0}
.student-welcome-art{display:grid;place-items:center;width:135px;height:135px;flex-shrink:0;border-radius:35px;background:rgba(255,255,255,.12);color:#e5fff1;font-size:66px;transform:rotate(-7deg)}
.student-quick-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.student-quick-card{display:flex;align-items:center;gap:15px;padding:19px 20px;border:1px solid #d9e9e0;border-radius:18px;background:#fff;color:#20443b;min-width:0;box-shadow:0 6px 24px rgba(21,67,53,.04)}
.student-quick-card:hover{border-color:#6cb99e;transform:translateY(-2px)}
.student-quick-icon,.student-announcement-icon{display:grid;place-items:center;flex-shrink:0;width:48px;height:48px;border-radius:14px;background:#e6f6eb;color:#0e8969;font-size:20px}
.student-quick-card>span:nth-child(2){display:flex;flex-direction:column;flex:1;min-width:0}
.student-quick-card strong{font-size:15px;font-weight:800}
.student-quick-card small{font-size:12px;color:#668479;margin-top:3px}
.student-quick-card>.fa-arrow-right{color:#82a59a;font-size:13px}
.student-announcements{border-radius:20px;border:1px solid #d9e9e0;background:rgba(255,255,255,.96);overflow:hidden}
.student-section-head{display:flex;align-items:end;justify-content:space-between;gap:12px;padding:21px 24px;border-bottom:1px solid #e4eee8}
.student-section-kicker{font-size:10px;letter-spacing:.16em;color:#158466;font-weight:850}
.student-section-head h3,.student-cbt-heading h2{font-size:clamp(1.35rem,2vw,1.75rem);font-weight:900;color:#1b3d33;letter-spacing:-.03em;margin-top:4px}
.student-count,.student-cbt-count{font-size:11px;font-weight:800;border-radius:20px;padding:8px 11px;background:#e7f7ed;color:#0c7458;white-space:nowrap}
.student-announcement-list{padding:0 24px}
.student-announcement{display:flex;gap:15px;padding:18px 0;border-bottom:1px solid #eef2ef}
.student-announcement:last-child{border-bottom:0}
.student-announcement h4{font-weight:800;font-size:14px;color:#244a3f;overflow-wrap:anywhere}
.student-announcement p{font-size:13px;color:#617c70;line-height:1.55;margin-top:5px;overflow-wrap:anywhere}
.student-announcement time{display:block;font-size:11px;color:#92a79b;margin-top:7px}
.student-empty{display:flex;flex-direction:column;align-items:center;text-align:center;padding:45px 12px;color:#718b7e;font-size:13px;gap:8px}
.student-empty i{font-size:25px;color:#1c9874;margin-bottom:4px}
.student-empty strong{font-size:15px;color:#244a3f}
.student-cbt-heading{display:flex;justify-content:space-between;align-items:center;gap:10px;background:linear-gradient(110deg,#e7f6ee,#f7fbf8);border:1px solid #d4e9dd;border-radius:20px;padding:24px 27px}
.student-cbt-heading p{font-size:13px;color:#668277;margin-top:5px}
.student-exam-card{border:1px solid #dae9e1;border-radius:18px;overflow:hidden;box-shadow:0 6px 20px rgba(15,77,57,.04)}
.student-exam-card-head{display:flex;justify-content:space-between;align-items:start;gap:12px;padding:17px 17px 0}
.student-exam-card-head>span:last-child{flex-shrink:0}
.student-exam-subject{display:inline-flex;align-items:center;gap:7px;min-width:0;color:#0a775b;font-size:12px;font-weight:800;overflow-wrap:anywhere}
.student-exam-card-body{padding:11px 17px 16px}
.student-exam-card h3{font-size:17px;font-weight:850;line-height:1.3;color:#173e34;overflow-wrap:anywhere}
.student-exam-meta{display:grid;gap:9px;margin-top:13px;color:#668277;font-size:12px;line-height:1.4}
.student-exam-meta>span{display:flex;align-items:flex-start;gap:8px}
.student-exam-meta i{color:#10a079;margin-top:2px}
.student-exam-results{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px;font-size:11px;color:#577b6a}
.student-exam-results span{background:#edf7f0;border-radius:8px;padding:6px 9px}
.student-exam-results b{font-size:13px;color:#145740}
.student-exam-actions{padding:0 17px 17px}
.student-exam-actions button{min-height:45px;border-radius:11px;font-size:13px}
.student-password-heading{padding:25px 27px;margin-bottom:16px;border-radius:19px;background:linear-gradient(110deg,#e7f6ee,#f7fbf8);border:1px solid #d4e9dd}
.student-password-heading h2{font-size:24px;font-weight:900;letter-spacing:-.03em;color:#1b3d33;margin-top:5px}
.student-password-heading p{font-size:13px;color:#668277;margin-top:5px}
.student-password-card{border-radius:19px;padding:27px}
.student-password-icon{background:#e6f6eb;color:#0e8969}
.student-password-submit{background:#107a5d;min-height:47px}
.student-password-submit:hover{background:#0b5b47}
html.dark body.ujian-modern .student-quick-card,html.dark body.ujian-modern .student-announcements,html.dark body.ujian-modern .student-exam-card{background:#1d3330;border-color:#3b5b54}
html.dark body.ujian-modern :is(.student-section-head h3,.student-cbt-heading h2,.student-quick-card strong,.student-announcement h4,.student-exam-card h3,.student-empty strong){color:#e5f4ea}
html.dark body.ujian-modern .student-cbt-heading{background:#223f35;border-color:#3b5b54}
html.dark body.ujian-modern .student-password-heading{background:#223f35;border-color:#3b5b54}
html.dark body.ujian-modern .student-password-heading h2{color:#e5f4ea}
html.dark body.ujian-modern .student-quick-card small,html.dark body.ujian-modern .student-announcement p,html.dark body.ujian-modern .student-cbt-heading p{color:#b1cabe}

body.exam-modern{background:#edf5f1!important;color:#1b3c32}
.exam-topbar{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:13px clamp(16px,3vw,44px);background:#0c5141;color:#fff;box-shadow:0 5px 24px rgba(9,52,42,.11)}
.exam-topbar-brand{display:flex;align-items:center;gap:11px;min-width:0}
.exam-topbar-brand>span:last-child{display:flex;flex-direction:column;min-width:0}
.exam-topbar-brand strong{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.exam-topbar-brand small{font-size:10px;color:#d6f1e2}
.exam-topbar-icon{width:38px;height:38px;display:grid;place-items:center;flex-shrink:0;border-radius:11px;background:rgba(255,255,255,.17)}
.exam-live{display:inline-flex;align-items:center;gap:7px;padding:8px 11px;border:1px solid rgba(255,255,255,.2);border-radius:20px;font-size:11px;white-space:nowrap;font-weight:800;color:#e6fff0}
.exam-live i{font-size:7px;color:#72f0ac}
body.exam-modern .exam-question-panel,body.exam-modern #navPanel{border-radius:19px;border:1px solid #d9e8df;box-shadow:0 10px 28px rgba(12,71,52,.055)}
.exam-toolbar{background:#f9fcfa;border-radius:19px 19px 0 0;min-height:76px}
.exam-question-position{display:flex;flex-direction:column;gap:3px;font-weight:850;color:#174532}
.exam-position-label{font-size:10px;letter-spacing:.14em;color:#789489}
.exam-question-position div{font-size:17px;line-height:1.2}
.exam-question-position #soalNo{font-size:26px;color:#0d7558}
#questionProgress{font-size:13px;color:#6b8175;font-weight:700}
.exam-time{display:flex;flex-direction:column;align-items:end;gap:3px;padding:8px 12px;border-radius:12px;background:#e8f5ed;color:#0e674e}
.exam-time span{font-size:10px;letter-spacing:.13em;font-weight:800}
.exam-time strong{font-size:19px;line-height:1.1;letter-spacing:.035em}
body.exam-modern #soalText{background:#f9fcfa;border-color:#d6e6dc;border-radius:15px;box-shadow:none;overflow-wrap:anywhere}
body.exam-modern #soalOptions label{padding:14px 15px;border:1px solid #d6e6dc;border-radius:13px;background:#fff;transition:background-color .15s,border-color .15s;min-height:54px}
body.exam-modern #soalOptions label:hover,body.exam-modern #soalOptions label:focus-within{border-color:#50aa85;background:#f4fbf6}
body.exam-modern #soalOptions label:has(input:checked){border-color:#0a916c;background:#e9f8ee}
.exam-actions{border-radius:0 0 19px 19px}
.exam-actions button,.exam-actions label{min-height:43px;border-radius:10px}
.exam-nav-jump{display:none}
.exam-nav-title{display:flex;align-items:center;gap:11px;margin-bottom:17px}
.exam-nav-title h3{font-size:15px;font-weight:850;color:#214c3b}
.exam-nav-title p{font-size:11px;color:#769286;margin-top:2px}
.exam-nav-icon{width:38px;height:38px;display:grid;place-items:center;flex-shrink:0;border-radius:11px;background:#e4f5e9;color:#10795b}
.exam-save-status{padding:10px;border-radius:10px;background:#eaf8ee;color:#0c7958}
body.exam-modern #navBtns button{border-radius:10px;min-height:40px}
html.dark body.exam-modern{background:#11221e!important;color:#eaf7ef}
html.dark body.exam-modern .exam-topbar{background:#0a332a}
html.dark body.exam-modern .exam-toolbar,html.dark body.exam-modern #soalText{background:#1a3530}
html.dark body.exam-modern #soalOptions label{background:#1e3631;border-color:#426254}
html.dark body.exam-modern #soalOptions label:has(input:checked){background:#225545}
html.dark body.exam-modern .exam-nav-title h3{color:#d9f2e1}
@media(max-width:767px){
 body.login-modern .login-shell{max-width:560px;min-height:0!important}
 body.ujian-modern.student-user #mainContent{padding:14px 12px calc(95px + env(safe-area-inset-bottom))!important}
 .student-welcome{min-height:235px;padding:23px 20px}
 .student-welcome-art{position:absolute;right:-22px;bottom:-33px;opacity:.22;width:120px;height:120px;font-size:56px}
 .student-welcome-copy{max-width:100%}
 .student-welcome h2{max-width:95%;font-size:26px}
 .student-greeting{margin-top:17px}
 .student-quick-grid{grid-template-columns:1fr;gap:10px}
 .student-quick-card{padding:16px}
 .student-cbt-heading{padding:20px}
 .student-password-heading{padding:20px}
 .student-password-card{padding:22px 18px}
 body.exam-modern .exam-grid{padding:12px;gap:14px}
 body.exam-modern .exam-topbar{padding:10px 14px}
 body.exam-modern .exam-live{font-size:0;padding:9px}
 body.exam-modern .exam-live i{font-size:8px}
 body.exam-modern #examContainer .side-panel{position:relative;bottom:auto;z-index:auto;border-top:1px solid #d9e8df;border-radius:17px!important;box-shadow:0 10px 28px rgba(12,71,52,.055)}
 body.exam-modern .exam-toolbar{padding:13px 15px;min-height:69px}
 body.exam-modern .exam-question-body{padding:18px 15px}
 body.exam-modern #soalText{min-height:100px;padding:16px;margin-bottom:17px}
 body.exam-modern #soalOptions label{padding:13px;min-height:52px}
 body.exam-modern .exam-actions{display:grid;grid-template-columns:1fr 1fr;gap:9px;padding:12px}
 body.exam-modern .exam-actions #btnPrev{grid-column:1;grid-row:1}
 body.exam-modern .exam-actions #btnNext{grid-column:2;grid-row:1}
 body.exam-modern .exam-actions .exam-ragu{grid-column:1/-1;grid-row:2;justify-content:center}
 body.exam-modern .exam-actions .exam-nav-jump{grid-column:1/-1;grid-row:3;background:#e7f3ed;color:#175f4a;display:flex;align-items:center;justify-content:center;gap:9px;font-weight:800}
 body.exam-modern .exam-actions button{padding:10px 8px;font-size:12px}
 body.exam-modern #navBtns{grid-template-columns:repeat(6,minmax(0,1fr));max-height:192px}
}
@media(max-width:390px){.student-exam-card-head{flex-wrap:wrap}.student-exam-card-head>span:last-child{flex-shrink:1}body.ujian-modern.student-user #topbar h1{max-width:118px}.student-section-head{padding:18px}.student-announcement-list{padding:0 18px}}
/* Shared dashboard surfaces for administrator and teacher. */
body.ujian-modern .stat-card,body.ujian-modern .section-card{border-radius:18px;border-color:#dbe9e1;box-shadow:0 8px 26px rgba(16,73,54,.05)}
body.ujian-modern .stat-icon{border-radius:13px}
body.ujian-modern .stat-val{color:#164937;letter-spacing:-.03em}
body.ujian-modern .section-header{padding:17px 20px;color:#214e3d;border-color:#e6efe8}
body.ujian-modern .quick-btn{border-radius:13px;border-color:#dbe9e1;min-height:77px}
html.dark body.ujian-modern .stat-card,html.dark body.ujian-modern .section-card{background:#1d3330;border-color:#3b5b54}
html.dark body.ujian-modern .stat-val,html.dark body.ujian-modern .section-header{color:#e2f5e8}
@media(max-width:480px){body.ujian-modern #pageWrap .grid.grid-cols-3{grid-template-columns:repeat(2,minmax(0,1fr))}body.ujian-modern #pageWrap .stat-card{padding:14px 10px;gap:8px}body.ujian-modern #pageWrap .stat-val{font-size:19px}}
@media(prefers-reduced-motion:reduce){.login-role,.student-quick-card,body.exam-modern #soalOptions label{transition:none!important}}

/* Navigation follows the clear grouped sidebar used by E-Siswa. */
body.ujian-modern #sidebar{width:276px;flex-shrink:0;background:rgba(255,255,255,.98)!important;border-right:1px solid #dcebe5;box-shadow:12px 0 36px rgba(13,55,47,.07)}
body.ujian-modern #mainContent button.bg-blue-600,body.ujian-modern #mainContent a.bg-blue-600{background:#0d8067!important}
body.ujian-modern #mainContent button.bg-blue-600:hover,body.ujian-modern #mainContent a.bg-blue-600:hover{background:#0a6755!important}
body.ujian-modern #sidebar .sidebar-brand{background:#fff!important;border-bottom:1px solid #e4eee9!important;padding:19px 16px}
body.ujian-modern #sidebar .sidebar-brand-title{color:#193b34}
body.ujian-modern #sidebar .sidebar-brand-subtitle{color:#66887c}
body.ujian-modern #sidebar .sidebar-brand .bg-white\/20{background:#e3f4ea;color:#0a8061}
body.ujian-modern #sidebar .sidebar-brand .text-white{color:#0a8061}
body.ujian-modern #sidebar #closeSidebar{color:#275d4a;background:#e8f5ee}
.sidebar-search-box{margin:16px 13px 7px;position:relative}
.sidebar-search-box i{position:absolute;left:14px;top:50%;transform:translateY(-50%);font-size:13px;color:#198368;pointer-events:none}
.sidebar-search-box input{width:100%;height:43px;padding:9px 11px 9px 38px;border:1px solid #d7e9df;border-radius:12px;background:#f5faf7;color:#234c3c;font-size:13px;outline:0}
.sidebar-search-box input:focus{border-color:#27a583;box-shadow:0 0 0 3px rgba(39,165,131,.12)}
body.ujian-modern #sideNav{padding:5px 10px 16px}
body.ujian-modern #sideNav a.sidebar-link{display:flex;align-items:center;gap:11px;margin:2px 0!important;padding:11px 12px!important;min-height:44px;border-radius:12px!important;color:#4b675e!important;text-decoration:none;font-size:13px;font-weight:700}
body.ujian-modern #sideNav a.sidebar-link:hover{background:#ebf7f0!important;color:#087a5e!important}
body.ujian-modern #sideNav a.sidebar-link.nav-active{color:#076d54!important;background:#dff3e9!important;box-shadow:none!important}
.sidebar-link-icon{width:20px;flex-shrink:0;text-align:center;color:#6e9786;font-size:15px}
body.ujian-modern #sideNav a.nav-active .sidebar-link-icon{color:#087a5e}
.sidebar-nav-group{border-radius:14px;border:1px solid transparent;margin:6px 0}
.sidebar-nav-group[open]{background:#f4faf7;border-color:#e0eee6}
.sidebar-nav-heading{display:flex;align-items:center;gap:12px;min-height:44px;padding:11px 13px;list-style:none;cursor:pointer;color:#496e5d;font-size:12px;font-weight:850;letter-spacing:.035em;user-select:none}
.sidebar-nav-heading::-webkit-details-marker{display:none}
.sidebar-nav-heading>i:first-child{width:19px;text-align:center;font-size:15px;color:#148568}
.sidebar-chevron{margin-left:auto;font-size:10px;transition:transform .17s}
.sidebar-nav-group[open] .sidebar-chevron{transform:rotate(180deg)}
.sidebar-nav-children{margin-left:21px;padding:0 7px 7px 13px;border-left:2px solid #d4eadd}
body.ujian-modern #sideNav .sidebar-nav-children a.sidebar-link{padding:9px 10px!important;font-size:12px}
body.ujian-modern #sideNav a[hidden],body.ujian-modern #sideNav details[hidden]{display:none!important}
body.ujian-modern #sidebar>div:last-child{background:#f7fbf8;border-top:1px solid #e4eee9!important}
body.ujian-modern #sidebar>div:last-child>div{background:#e9f5ee!important}
body.ujian-modern #sidebar>div:last-child .text-white{color:#234e3c}
body.ujian-modern #sidebar>div:last-child .text-blue-200{color:#68877a}
body.ujian-modern #sidebar>div:last-child .bg-white\/30{background:#d1eadd;color:#0c7156}
.sidebar-logout-btn{width:100%;display:flex;align-items:center;gap:12px;margin-top:9px;padding:11px 14px;min-height:44px;color:#a53e45;font-size:13px;font-weight:800;border-radius:11px}
.sidebar-logout-btn:hover{background:#fff0f0}
html.dark body.ujian-modern #sidebar{background:#172d29!important;border-color:#39574c}
html.dark body.ujian-modern #sidebar .sidebar-brand{background:#172d29!important;border-color:#39574c!important}
html.dark body.ujian-modern #sidebar .sidebar-brand-title,html.dark body.ujian-modern #sidebar>div:last-child .text-white{color:#e4f4e9}
html.dark body.ujian-modern #sideNav a.sidebar-link{color:#c0d8ca!important}
html.dark body.ujian-modern #sideNav a.sidebar-link.nav-active{background:#225545!important;color:#e5f7e8!important}
html.dark .sidebar-nav-group[open]{background:#203d32;border-color:#3c5d49}
html.dark .sidebar-nav-heading{color:#cfebd9}
html.dark .sidebar-search-box input{background:#203c34;color:#e7f3e9;border-color:#3e5d4c}
html.dark body.ujian-modern #sidebar>div:last-child,html.dark body.ujian-modern #sidebar>div:last-child>div{background:#203b33!important}

/* The data table itself scrolls inside the card on narrow screens. */
body.ujian-modern #mainContent .data-table-shell{width:100%;max-width:100%;min-width:0}
body.ujian-modern main,body.ujian-modern #mainContent,body.ujian-modern #pageWrap,body.ujian-modern #bankTblWrap,body.ujian-modern #ruangTblWrap{min-width:0;max-width:100%}
body.ujian-modern #mainContent .table-responsive{display:block;width:100%;max-width:100%;min-width:0;overflow-x:auto!important;overflow-y:hidden;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y;overscroll-behavior-x:contain}
body.ujian-modern #mainContent .table-responsive>table{width:max-content!important;min-width:100%!important;table-layout:auto}
.table-scroll-hint{display:none;padding:8px 12px;background:#edf8f1;color:#377760;font-size:11px;font-weight:700;border-bottom:1px solid #dceee2}
.table-scroll-hint i{margin-left:5px}
@media(max-width:767px){
 body.ujian-modern #mobileBottomNav{display:none!important}
 body.ujian-modern #mainContent,body.ujian-modern.student-user #mainContent{padding-bottom:22px!important}
 body.ujian-modern #sidebar{width:min(290px,85vw)}
 body.ujian-modern #topbar #toggleSidebar{display:inline-flex}
 body.ujian-modern #mainContent .data-table-shell .table-scroll-hint{display:block}
 body.ujian-modern #mainContent .data-table-shell .p-2\.5.flex.flex-wrap{justify-content:flex-start}
}
