/* cyrillic-ext */
@font-face {
  font-family: 'Roboto Slab';
  font-style: normal;
  font-weight: 400;
  src: local('Roboto Slab Regular'), local('RobotoSlab-Regular'), url(./fonts/roboto1.woff2) format('woff2');
  unicode-range: U+0460-052F, U+20B4, U+2DE0-2DFF, U+A640-A69F;
}
/* cyrillic */
@font-face {
  font-family: 'Roboto Slab';
  font-style: normal;
  font-weight: 400;
  src: local('Roboto Slab Regular'), local('RobotoSlab-Regular'), url(../fonts/roboto2.woff2) format('woff2');
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* greek-ext */
@font-face {
  font-family: 'Roboto Slab';
  font-style: normal;
  font-weight: 400;
  src: local('Roboto Slab Regular'), local('RobotoSlab-Regular'), url(../fonts/roboto3.woff2) format('woff2');
  unicode-range: U+1F00-1FFF;
}
/* greek */
@font-face {
  font-family: 'Roboto Slab';
  font-style: normal;
  font-weight: 400;
  src: local('Roboto Slab Regular'), local('RobotoSlab-Regular'), url(../fonts/roboto4.woff2) format('woff2');
  unicode-range: U+0370-03FF;
}
/* vietnamese */
@font-face {
  font-family: 'Roboto Slab';
  font-style: normal;
  font-weight: 400;
  src: local('Roboto Slab Regular'), local('RobotoSlab-Regular'), url(../fonts/roboto5.woff2) format('woff2');
  unicode-range: U+0102-0103, U+1EA0-1EF1, U+20AB;
}
/* latin-ext */
@font-face {
  font-family: 'Roboto Slab';
  font-style: normal;
  font-weight: 400;
  src: local('Roboto Slab Regular'), local('RobotoSlab-Regular'), url(../fonts/roboto6.woff2) format('woff2');
  unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Roboto Slab';
  font-style: normal;
  font-weight: 400;
  src: local('Roboto Slab Regular'), local('RobotoSlab-Regular'), url(../fonts/roboto7.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2212, U+2215, U+E0FF, U+EFFD, U+F000;
}

body {
	background: url(https://img.freepik.com/free-vector/flat-arabic-pattern-background_79603-1826.jpg?semt=ais_hybrid&w=740&q=80);
	font-family: 'Roboto Slab', serif;
}
a {text-decoration: none}

/* ==============================
   LOGIN PAGE (REDESIGN)
   ============================== */
body.page-login {
    background: url(https://img.freepik.com/free-vector/flat-arabic-pattern-background_79603-1826.jpg?semt=ais_hybrid&w=740&q=80) center/cover fixed;
    min-height: 100vh;
    margin: 0;
    position: relative;
}
body.page-login::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(0,123,94,.88) 0%, rgba(14,45,97,.9) 100%);
    z-index: 0;
}

.login-wrapper {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 30px 16px;
    box-sizing: border-box;
}

.login-card {
    background: #fff;
    border-radius: 14px;
    padding: 32px 36px 28px;
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
    max-width: 440px;
    width: 100%;
    animation: loginFadeIn .45s ease;
}

@keyframes loginFadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Branding section */
.login-brand {
    text-align: center;
    padding-bottom: 18px;
    border-bottom: 1px dashed #e6e6e6;
    margin-bottom: 18px;
}
.login-logo {
    width: 72px;
    height: 72px;
    margin: 0 auto 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00a676 0%, #007b5e 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 8px 20px rgba(0,123,94,.35);
}
.login-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #1a2b4a;
    letter-spacing: .3px;
}
.login-subtitle {
    margin: 6px 0 0;
    font-size: 13px;
    color: #6a6a6a;
}
.badge-ver {
    background: #00a676;
    color: #fff;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    margin-left: 4px;
    letter-spacing: .5px;
}

/* Role info */
.login-roles {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
}
.role-item {
    flex: 1 1 0;
    text-align: center;
    background: #f3f5f9;
    border-radius: 8px;
    padding: 10px 6px;
    font-size: 12px;
    color: #555;
    border: 1px solid transparent;
    transition: .2s;
}
.role-item i {
    display: block;
    font-size: 18px;
    margin-bottom: 4px;
    color: #007b5e;
}
.role-item .role-name {
    display: block;
    font-weight: 600;
    color: #1a2b4a;
}
.role-item .role-desc {
    display: block;
    font-size: 11px;
    color: #888;
    margin-top: 2px;
}
.role-item:hover {
    border-color: #00a676;
    background: #eaf7f2;
}

/* Form */
.login-card .form-group { margin-bottom: 14px; }
.login-card .form-group label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
    display: block;
}
.login-card .lbl-hint {
    font-weight: normal;
    color: #999;
    font-size: 11px;
    margin-left: 4px;
}
.login-card .input-group {
    margin-top: 0;
    width: 100%;
}
.login-card .input-group-addon {
    background: #f3f5f9;
    border: 1px solid #dfe3eb;
    color: #6c7a93;
}
.login-card .input-group .form-control {
    border: 1px solid #dfe3eb;
    box-shadow: none;
    height: 42px;
    font-size: 14px;
    border-radius: 0;
}
.login-card .input-group .form-control:focus {
    border-color: #00a676;
    box-shadow: 0 0 0 3px rgba(0,166,118,.15);
}
.toggle-pass {
    cursor: pointer;
    transition: background .15s;
    user-select: none;
}
.toggle-pass:hover { background: #e5eaf2; }

/* Caps lock warning */
.caps-warning {
    display: none;
    margin-top: 6px;
    font-size: 12px;
    color: #b35c00;
    background: #fff4e0;
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid #ffd48a;
}

/* Feedback box */
#konfirmasi .alert {
    border-radius: 8px;
    padding: 10px 14px;
    font-size: 13px;
    margin-bottom: 14px;
}

/* Button */
.btn-login {
    display: block;
    width: 100%;
    margin-top: 6px;
    padding: 12px;
    background: linear-gradient(135deg, #00a676 0%, #007b5e 100%);
    color: #fff;
    border-radius: 8px;
    border: none;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all .2s ease;
    box-shadow: 0 6px 14px rgba(0,123,94,.3);
}
.btn-login:hover {
    background: linear-gradient(135deg, #008f65 0%, #006a52 100%);
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0,123,94,.4);
    color: #fff;
}
.btn-login:active { transform: translateY(0); }
.btn-login:focus { outline: none; }
.btn-login .btn-loading { display: none; }
.btn-login.loading { pointer-events: none; opacity: .85; }
.btn-login.loading .btn-text { display: none; }
.btn-login.loading .btn-loading { display: inline-block; }

/* Help text */
.login-help {
    margin-top: 16px;
    text-align: center;
    font-size: 12px;
    color: #6a6a6a;
    background: #f7f9fc;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px dashed #dfe3eb;
}
.login-help i { color: #0089c1; }

/* Footer */
.login-footer {
    text-align: center;
    margin-top: 22px;
    font-size: 13px;
}
.login-footer a {
    color: #fff;
    font-weight: 600;
}
.login-footer a:hover { color: #fff; text-decoration: underline; }
.login-footer .small {
    color: rgba(255,255,255,.75);
    margin-top: 4px;
    font-size: 12px;
}

/* Responsive */
@media (max-width: 480px) {
    .login-card { padding: 24px 20px; border-radius: 10px; }
    .login-logo { width: 60px; height: 60px; font-size: 26px; }
    .login-title { font-size: 18px; }
    .role-item { font-size: 11px; padding: 8px 4px; }
    .role-item i { font-size: 16px; }
}
 

/* Footer */
.ctr {
    margin-top: 20px;
    text-align: center;
    font-size: 14px;
}
.table-form>thead>tr, .table-form>tbody>tr, .table-form>tbody>tr>td {
	padding: 4px;
	vertical-align: middle;
	border: none;
}
.table-form-bordered>thead>tr, .table-form-bordered>tbody>tr, .table-form-bordered>tbody>tr>td {
	padding: 4px;
	vertical-align: middle;
	border: solid #DDDDDD 1px;
}
.table-form .lbl {
	text-align: right;
	padding-right: 15px;
	font-weight: bold;
}

.table-bordered > thead > tr > th, .table-bordered > thead > tr > td { text-align: center; background: #eee}

.ctr {text-align: center}
.rgt {text-align: right}

.panel-heading > a, .panel-heading > small, .panel-heading > .small, .panel-heading > small > a, .panel-heading > .small > a {
	text-decoration: none;
}

.panel-heading > .tombol-kanan {margin-top: -5px; float: right;}
.panel-heading > .tbl-kanan-soal {float: right;}

.panel-heading > .tombol-kanan > .btn-xs {	margin-top: 4px;}

.top15 {margin-top: 15px;}
.top25 {margin-top: 25px;}

.top150 {margin-top: 150px;}


/* NAVBAR */
nav.navbar-findcond { background: #fff; border-color: #ccc; box-shadow: 0 0 2px 0 #ccc; }
nav.navbar-findcond a { color: #f14444; }
nav.navbar-findcond ul.navbar-nav a { color: #f14444; border-style: solid; border-width: 0 0 2px 0; border-color: #fff; }
nav.navbar-findcond ul.navbar-nav a:hover,
nav.navbar-findcond ul.navbar-nav a:visited,
nav.navbar-findcond ul.navbar-nav a:focus,
nav.navbar-findcond ul.navbar-nav a:active { background: #fff; }
nav.navbar-findcond ul.navbar-nav a:hover { border-color: #f14444; }
nav.navbar-findcond li.divider { background: #ccc; }
nav.navbar-findcond button.navbar-toggle { background: #f14444; border-radius: 2px; }
nav.navbar-findcond button.navbar-toggle:hover { background: #999; }
nav.navbar-findcond button.navbar-toggle > span.icon-bar { background: #fff; }
nav.navbar-findcond ul.dropdown-menu { border: 0; background: #fff; border-radius: 4px; margin: 4px 0; box-shadow: 0 0 4px 0 #ccc; }
nav.navbar-findcond ul.dropdown-menu > li > a { color: #444; }
nav.navbar-findcond ul.dropdown-menu > li > a:hover { background: #f14444; color: #fff; }
nav.navbar-findcond span.badge { background: #f14444; font-weight: normal; font-size: 11px; margin: 0 4px; }
nav.navbar-findcond span.badge.new { background: rgba(255, 0, 0, 0.8); color: #fff; }

/* button flat */
.btn-sq-lg {width: 150px !important; height: 150px !important;}
.btn-sq {width: 100px !important; height: 100px !important;font-size: 10px; margin-right: 10px;}
.btn-sq-sm {width: 50px !important;height: 50px !important;font-size: 10px; margin-right: 8px;}
.btn-sq-xs {width: 25px !important;height: 25px !important;padding:2px; margin-right: 6px;}

/* glyphicon */
.g2x{ font-size: 30px; } 
.g3x{ font-size: 60px; } 


/*==================================
 Hanging Chatbox
==================================== */
.popup-box {
   background-color: #ffffff;
    border: 1px solid #b0b0b0;
    bottom: 0;
    display: none;
    height: 415px;
    position: fixed;
    right: 70px;
    width: 300px;
}
.popup-box-on {
    display: block !important;
    z-index: 9999;
}
.popup-box .popup-head {
    background-color: #fff;
    clear: both;
    color: #7b7b7b;
    display: inline-table;
    font-size: 21px;
    padding: 7px 10px;
    width: 100%;
}
.popup-box .popup-head .popup-head-right {
    margin: 5px 7px 0;
}
.popup-messages-footer {
    background: #fff none repeat scroll 0 0;
    bottom: 0;
    position: absolute;
    width: 100%;
}
.popup-messages-footer .btn-footer {
    overflow: hidden;
    padding: 2px 5px 10px 6px;
    width: 100%;
}

/* TAMBAHAN ME */
.fgsoal {
  margin-top: 14px;
  margin-bottom: 14px;
}

.mceEditor > table {
  width: 1050px !important;
}


input.upload {
  padding: 3px;
  width: 100%;
}

blink {
  -webkit-animation: blink 1s step-end infinite;
  -moz-animation: blink 1s step-end infinite;
-o-animation: blink 1s step-end infinite;
animation: blink 1s step-end infinite;
font-weight: bold;
}

@-webkit-keyframes blink { 67% { opacity: 0 }}
@-moz-keyframes blink {  67% { opacity: 0 }}
@-o-keyframes blink {  67% { opacity: 0 }}
@keyframes blink {  67% { opacity: 0 }}

.btn_soal {
  margin: 0 6px 5px 5px;
  width: 55px;
}
#tampil_jawaban {
  overflow: auto;
}

/* styling opsi */
.funkyradio div {
  clear: both;
  overflow: hidden;
}

.funkyradio label {
  width: 100%;
  border-radius: 3px;
  border: 1px solid #D1D3D4;
  font-weight: normal;
  padding: 5px 0 5px 50px;  
}

.funkyradio input[type="radio"]:empty,
.funkyradio input[type="checkbox"]:empty {
  display: none;
}

.funkyradio input[type="radio"]:empty ~ label,
.funkyradio input[type="checkbox"]:empty ~ label {
  position: relative;
  line-height: 2em;
  /*text-indent: 3.25em;*/
  margin-top: 5px;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
      -ms-user-select: none;
          user-select: none;
}

.funkyradio input[type="radio"]:empty ~ label:before,
.funkyradio input[type="checkbox"]:empty ~ label:before {
  position: absolute;
  display: block;
  top: 0;
  bottom: 0;
  left: 0;
  content: '';
  width: 2.5em;
  background: #D1D3D4;
  border-radius: 3px 0 0 3px;
}

.funkyradio input[type="radio"]:hover:not(:checked) ~ label,
.funkyradio input[type="checkbox"]:hover:not(:checked) ~ label {
  color: #888;
}

.funkyradio input[type="radio"]:hover:not(:checked) ~ label:before,
.funkyradio input[type="checkbox"]:hover:not(:checked) ~ label:before {
  /*content: '\2714';*/
  text-indent: .9em;
  color: #000;
  font-weight: bold;
  padding: 5px 0 0 0;
}

.funkyradio input[type="radio"]:checked ~ label,
.funkyradio input[type="checkbox"]:checked ~ label {
  color: #fff;
  background: #86C186;
  font-weight: bold;
}

.funkyradio input[type="radio"]:checked ~ label:before,
.funkyradio input[type="checkbox"]:checked ~ label:before {
  /*content: '\2714';*/
  text-indent: .9em;
  color: #333;
  background-color: #ccc;
  padding: 5px 0 0 0;
}

.funkyradio input[type="radio"]:focus ~ label:before,
.funkyradio input[type="checkbox"]:focus ~ label:before {
  box-shadow: 0 0 0 3px #999;
}

.funkyradio-default input[type="radio"]:checked ~ label:before,
.funkyradio-default input[type="checkbox"]:checked ~ label:before {
  color: #333;
  background-color: #ccc;
}

.funkyradio-primary input[type="radio"]:checked ~ label:before,
.funkyradio-primary input[type="checkbox"]:checked ~ label:before {
  color: #fff;
  background-color: #337ab7;
}

.funkyradio-success input[type="radio"]:checked ~ label:before,
.funkyradio-success input[type="checkbox"]:checked ~ label:before {
  color: #fff;
  background-color: #5cb85c;
}

.funkyradio-danger input[type="radio"]:checked ~ label:before,
.funkyradio-danger input[type="checkbox"]:checked ~ label:before {
  color: #fff;
  background-color: #d9534f;
}

.funkyradio-warning input[type="radio"]:checked ~ label:before,
.funkyradio-warning input[type="checkbox"]:checked ~ label:before {
  color: #fff;
  background-color: #f0ad4e;
}

.funkyradio-info input[type="radio"]:checked ~ label:before,
.funkyradio-info input[type="checkbox"]:checked ~ label:before {
  color: #fff;
  background-color: #5bc0de;
}

/* footer */
.footer {
background: #fff;
border-color: #ccc;
box-shadow: 0 0 2px 0 #ccc;
bottom: 0;
border-width: 0 0 1px;
position: fixed;
right: 0;
left: 0;
z-index: 1030;
padding: 10px;
text-align: center;
}

.huruf_opsi {
  margin-left: -36px;
    margin-top: 9px;
    position: absolute;
}

.ini_bodi {
 margin-bottom: 60px;
}

.zoom {
  display:inline-block;
  position: relative;
}

/* magnifying glass icon */
.zoom:after {
  content:'';
  display:block; 
  width:33px; 
  height:33px; 
  position:absolute; 
  top:0;
  right:0;
  background:url(icon.png);
}

.zoom img {
  display: block;
}

.zoom img::selection { background-color: transparent; }


/* ==========================================================================
   APP SHELL — redesign 2026
   ========================================================================== */

:root {
    --brand: #00a676;
    --brand-dark: #007b5e;
    --brand-light: #e6f7f1;
    --ink: #1b2733;
    --ink-soft: #455a64;
    --muted: #8a99a8;
    --line: #e4e9ef;
    --line-soft: #eef2f6;
    --bg: #f4f6f9;
    --card: #ffffff;
    --shadow-sm: 0 1px 2px rgba(16,40,60,.06);
    --shadow: 0 4px 14px rgba(16,40,60,.08);
    --shadow-md: 0 8px 24px rgba(16,40,60,.1);
    --radius: 10px;
    --radius-lg: 14px;
}

body.page-app {
    background: var(--bg) !important;
    font-family: 'Roboto Slab','Segoe UI',Tahoma,Helvetica,Arial,sans-serif;
    color: var(--ink);
    font-size: 14px;
    padding-top: 64px;
}

/* ==========================================================================
   TOP NAVBAR
   ========================================================================== */
.app-navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 64px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    z-index: 1030;
}
.app-navbar .navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--ink) !important;
    text-decoration: none !important;
}
.brand-link:hover { color: var(--brand) !important; }
.brand-logo {
    width: 40px; height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    display: inline-flex;
    align-items: center; justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(0,166,118,.3);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-title { font-weight: 700; font-size: 15px; letter-spacing: .2px; }
.brand-sub   { font-size: 11px; color: var(--muted); }
.brand-ver {
    display: inline-block;
    background: var(--brand-light);
    color: var(--brand-dark);
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 10px;
    margin-left: 4px;
    font-weight: 600;
}
.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 6px 10px;
    color: var(--ink);
}

/* User chip */
.nav-user { position: relative; }
.user-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 40px;
    background: #f8fafc;
    border: 1px solid var(--line);
    color: var(--ink) !important;
    text-decoration: none !important;
    transition: all .15s ease;
}
.user-chip:hover { background: var(--brand-light); border-color: var(--brand); }
.user-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    display: inline-flex;
    align-items: center; justify-content: center;
    font-weight: 700;
    font-size: 14px;
}
.user-meta { display: flex; flex-direction: column; line-height: 1.2; text-align: left; }
.user-name { font-weight: 600; font-size: 13px; }
.user-role { font-size: 11px; color: var(--muted); }

.user-dropdown {
    min-width: 220px;
    border-radius: 10px;
    border: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    padding: 6px;
    margin-top: 8px !important;
}
.user-dropdown .dd-header {
    padding: 10px 12px 8px;
    border-bottom: 1px solid var(--line-soft);
    margin-bottom: 4px;
}
.user-dropdown .dd-name { font-weight: 700; color: var(--ink); font-size: 13px; }
.user-dropdown .dd-user { font-size: 12px; color: var(--muted); }
.user-dropdown > li > a {
    padding: 9px 12px !important;
    border-radius: 7px;
    color: var(--ink) !important;
    font-size: 13px;
}
.user-dropdown > li > a:hover {
    background: var(--brand-light) !important;
    color: var(--brand-dark) !important;
}
.user-dropdown > li > a > i { width: 18px; color: var(--muted); }
.user-dropdown > li > a:hover > i { color: var(--brand-dark); }

/* ==========================================================================
   SUBMENU (secondary horizontal)
   ========================================================================== */
.app-submenu {
    background: #fff;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 64px;
    z-index: 1020;
    box-shadow: 0 2px 6px rgba(16,40,60,.03);
}
.submenu-list {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    gap: 2px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.submenu-list::-webkit-scrollbar { height: 0; }
.submenu-item > a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 16px;
    color: var(--ink-soft);
    text-decoration: none !important;
    font-size: 13.5px;
    font-weight: 500;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
    transition: all .15s ease;
}
.submenu-item > a > i {
    font-size: 15px;
    color: var(--muted);
}
.submenu-item > a:hover {
    color: var(--brand-dark);
    background: var(--brand-light);
}
.submenu-item > a:hover > i { color: var(--brand); }
.submenu-item.active > a {
    color: var(--brand-dark);
    border-bottom-color: var(--brand);
    background: var(--brand-light);
}
.submenu-item.active > a > i { color: var(--brand); }

/* ==========================================================================
   MAIN & FOOTER
   ========================================================================== */
.app-main {
    padding: 24px 0 40px;
    min-height: calc(100vh - 64px - 56px - 46px);
}
.app-footer {
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 12px 0;
    font-size: 12px;
    color: var(--muted);
}
.app-footer .container-fluid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}
.app-footer a { color: var(--brand-dark); text-decoration: none; font-weight: 600; }
.app-footer a:hover { color: var(--brand); }
.foot-sep { margin: 0 8px; color: var(--line); }
.foot-right i { margin-right: 3px; color: var(--brand); }

/* ==========================================================================
   DASHBOARD
   ========================================================================== */
.dashboard-wrapper { display: flex; flex-direction: column; gap: 20px; }

/* Welcome banner */
.dashboard-banner {
    background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 28px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,123,94,.2);
}
.dashboard-banner::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 200px; height: 200px;
    background: rgba(255,255,255,.08);
    border-radius: 50%;
}
.dashboard-banner::after {
    content: '';
    position: absolute;
    bottom: -60px; right: 80px;
    width: 140px; height: 140px;
    background: rgba(255,255,255,.05);
    border-radius: 50%;
}
.banner-left { position: relative; z-index: 1; flex: 1 1 50%; min-width: 260px; }
.banner-greeting { font-size: 14px; opacity: .85; }
.banner-name { font-size: 26px; font-weight: 700; margin: 4px 0 10px; color: #fff; }
.banner-role {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.banner-role > i {
    background: rgba(255,255,255,.18);
    padding: 6px;
    width: 28px; height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center; justify-content: center;
    font-size: 12px;
}
.role-badge {
    background: rgba(255,255,255,.22);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .3px;
}
.role-user { font-size: 12px; opacity: .85; }
.banner-desc { font-size: 13px; opacity: .92; max-width: 500px; margin: 0; }

.banner-right { position: relative; z-index: 1; }
.banner-date {
    text-align: right;
    background: rgba(255,255,255,.1);
    padding: 14px 20px;
    border-radius: 12px;
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255,255,255,.15);
    min-width: 180px;
}
.date-day { font-size: 12px; opacity: .8; text-transform: uppercase; letter-spacing: 1.5px; }
.date-full { font-size: 15px; font-weight: 600; margin: 3px 0; }
.date-time { font-size: 28px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Stat cards */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 16px;
}
.stat-card {
    background: var(--card);
    border-radius: var(--radius);
    padding: 18px 20px 14px;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
    overflow: hidden;
    transition: all .2s ease;
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    height: 3px;
    width: 100%;
    background: var(--_c, var(--brand));
}
.stat-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center; justify-content: center;
    font-size: 20px;
    background: var(--_bg, var(--brand-light));
    color: var(--_c, var(--brand));
}
.stat-body { flex: 1; }
.stat-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 3px; }
.stat-value { font-size: 28px; font-weight: 700; color: var(--ink); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-sub { font-size: 11.5px; color: var(--ink-soft); margin-top: 5px; display: flex; align-items: center; gap: 5px; }
.stat-link {
    font-size: 12px;
    color: var(--_c, var(--brand));
    font-weight: 600;
    text-decoration: none !important;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding-top: 6px;
    border-top: 1px dashed var(--line-soft);
}
.stat-link:hover { gap: 7px; }

.stat-blue   { --_c: #2d7ff9; --_bg: #e8f1ff; }
.stat-green  { --_c: #00a676; --_bg: #e0f7ee; }
.stat-orange { --_c: #f39c12; --_bg: #fff4df; }
.stat-purple { --_c: #7b4fd3; --_bg: #efe8ff; }
.stat-red    { --_c: #e74c3c; --_bg: #ffe5e1; }
.stat-teal   { --_c: #17a2b8; --_bg: #d9f5fa; }

.dot {
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--muted);
}
.dot-green { background: #00c288; box-shadow: 0 0 0 3px rgba(0,194,136,.2); }

/* Dashboard panel */
.dash-panel {
    background: var(--card);
    border-radius: var(--radius);
    border: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.dash-panel-head {
    padding: 16px 20px;
    border-bottom: 1px solid var(--line-soft);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.dph-title {
    font-weight: 700;
    color: var(--ink);
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.dph-title > i {
    color: var(--brand);
    font-size: 16px;
    background: var(--brand-light);
    padding: 8px;
    border-radius: 8px;
}
.dph-link {
    font-size: 12.5px;
    color: var(--brand-dark) !important;
    font-weight: 600;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.dph-link:hover { color: var(--brand) !important; gap: 7px; }
.dash-panel-body { padding: 20px; }
.dash-panel-body.p0 { padding: 0; }

/* Modern table */
.table-modern {
    margin: 0 !important;
    width: 100%;
}
.table-modern > thead > tr > th {
    background: #f8fafc !important;
    color: var(--ink-soft) !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: .5px !important;
    padding: 12px 16px !important;
    border: none !important;
    border-bottom: 1px solid var(--line) !important;
    text-align: left !important;
}
.table-modern > tbody > tr > td {
    padding: 13px 16px !important;
    border-top: 1px solid var(--line-soft) !important;
    vertical-align: middle !important;
    font-size: 13px !important;
    color: var(--ink);
}
.table-modern > tbody > tr:hover { background: #fafcfe; }
.table-modern .text-center { text-align: center !important; }
.table-modern .text-muted { color: var(--muted) !important; }
.ujian-name { font-weight: 600; color: var(--ink); }

/* Chips */
.chip {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 11.5px;
    font-weight: 600;
    background: var(--line-soft);
    color: var(--ink-soft);
}
.chip-mapel { background: var(--brand-light); color: var(--brand-dark); }
.chip-waktu { background: #fff4df; color: #b5730d; }
.chip i { margin-right: 3px; }

/* Empty state */
.empty-state {
    padding: 50px 20px;
    text-align: center;
    color: var(--muted);
}
.empty-state > i {
    font-size: 46px;
    color: var(--line);
    margin-bottom: 12px;
}
.empty-state .empty-title { font-size: 16px; font-weight: 600; color: var(--ink-soft); }
.empty-state .empty-desc { font-size: 13px; margin-top: 4px; }

/* ==========================================================================
   GLOBAL: OVERRIDE BOOTSTRAP 3 PANELS (used by m_siswa, m_guru, etc.)
   ========================================================================== */
.app-main .ini_bodi {
    float: none;
    padding: 0;
    margin: 0;
    width: 100%;
}
.app-main .ini_bodi[class*="col-"] { padding: 0 !important; }

.app-main .panel {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
    overflow: hidden;
}
.app-main .panel-default,
.app-main .panel-info,
.app-main .panel-primary {
    border-color: var(--line);
}
.app-main .panel-heading {
    background: #fff !important;
    color: var(--ink) !important;
    border-bottom: 1px solid var(--line-soft) !important;
    padding: 16px 20px !important;
    font-size: 15px;
    font-weight: 700;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    min-height: 54px;
}
.app-main .panel-heading::before {
    content: '';
    position: absolute;
    left: 0; top: 12px; bottom: 12px;
    width: 3px;
    background: var(--brand);
    border-radius: 0 3px 3px 0;
}
.app-main .panel-title { font-size: 15px; font-weight: 700; color: var(--ink); margin: 0; }
.app-main .panel-body { padding: 20px !important; background: #fff; }

.app-main .panel-heading > .tombol-kanan,
.app-main .panel-heading > .tbl-kanan-soal {
    float: none !important;
    margin: 0 !important;
    display: inline-flex;
    gap: 6px;
    flex-wrap: wrap;
}

/* Buttons */
.app-main .btn {
    border-radius: 7px;
    font-weight: 600;
    font-size: 13px;
    padding: 7px 14px;
    border: 1px solid transparent;
    transition: all .15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    line-height: 1.4;
}
.app-main .btn-xs {
    font-size: 11.5px;
    padding: 4px 9px;
    border-radius: 5px;
}
.app-main .btn-sm { font-size: 12.5px; padding: 5px 11px; }
.app-main .btn-lg { font-size: 15px; padding: 10px 18px; }

.app-main .btn-primary {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}
.app-main .btn-primary:hover,
.app-main .btn-primary:focus {
    background: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #fff;
}
.app-main .btn-success {
    background: #2da44e;
    border-color: #2da44e;
    color: #fff;
}
.app-main .btn-success:hover { background: #24843e; border-color: #24843e; color: #fff; }
.app-main .btn-info {
    background: #1976d2;
    border-color: #1976d2;
    color: #fff;
}
.app-main .btn-info:hover { background: #155fa0; border-color: #155fa0; color: #fff; }
.app-main .btn-warning {
    background: #f39c12;
    border-color: #f39c12;
    color: #fff;
}
.app-main .btn-warning:hover { background: #cf820d; border-color: #cf820d; color: #fff; }
.app-main .btn-danger {
    background: #e53935;
    border-color: #e53935;
    color: #fff;
}
.app-main .btn-danger:hover { background: #b92824; border-color: #b92824; color: #fff; }
.app-main .btn-default {
    background: #fff;
    border-color: var(--line);
    color: var(--ink);
}
.app-main .btn-default:hover { background: #f4f6f9; border-color: var(--muted); color: var(--ink); }

/* Tables */
.app-main .table {
    margin: 0;
    font-size: 13px;
    color: var(--ink);
    background: #fff;
}
.app-main .table > thead > tr > th {
    background: #f8fafc !important;
    color: var(--ink-soft) !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: .5px !important;
    padding: 12px !important;
    border-bottom: 2px solid var(--line) !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    text-align: left !important;
    vertical-align: middle !important;
}
.app-main .table > tbody > tr > td {
    padding: 11px 12px !important;
    border-top: 1px solid var(--line-soft) !important;
    border-left: none !important;
    border-right: none !important;
    vertical-align: middle !important;
}
.app-main .table-bordered {
    border: 1px solid var(--line) !important;
    border-radius: 8px;
    overflow: hidden;
}
.app-main .table-bordered > thead > tr > th,
.app-main .table-bordered > tbody > tr > td {
    border: 1px solid var(--line-soft) !important;
}
.app-main .table-striped > tbody > tr:nth-of-type(odd) { background: #fafcfe; }
.app-main .table-hover > tbody > tr:hover { background: var(--brand-light); }

/* DataTables tweaks */
.app-main .dataTables_wrapper { padding: 0; }
.app-main .dataTables_wrapper .dataTables_length select,
.app-main .dataTables_wrapper .dataTables_filter input {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 5px 10px;
    font-size: 13px;
}
.app-main .dataTables_wrapper .dataTables_filter input:focus,
.app-main .dataTables_wrapper .dataTables_length select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 2px rgba(0,166,118,.15);
}
.app-main .dataTables_wrapper .dataTables_info { color: var(--muted); font-size: 12.5px; }
.app-main .pagination > li > a,
.app-main .pagination > li > span {
    color: var(--ink-soft);
    border-color: var(--line);
    font-size: 13px;
}
.app-main .pagination > .active > a,
.app-main .pagination > .active > a:hover,
.app-main .pagination > .active > span {
    background: var(--brand) !important;
    border-color: var(--brand) !important;
    color: #fff !important;
}
.app-main .pagination > li > a:hover { background: var(--brand-light); color: var(--brand-dark); border-color: var(--brand); }

/* Forms */
.app-main .form-control {
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 8px 12px;
    font-size: 13px;
    height: auto;
    box-shadow: none;
    transition: all .15s ease;
}
.app-main .form-control:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(0,166,118,.15);
    outline: none;
}
.app-main .control-label,
.app-main label { font-size: 13px; color: var(--ink-soft); font-weight: 600; }
.app-main .input-group-addon {
    background: #f8fafc;
    border-color: var(--line);
    color: var(--muted);
    font-size: 13px;
}

/* Modal */
.modal-content {
    border: none;
    border-radius: var(--radius);
    box-shadow: 0 20px 60px rgba(16,40,60,.2);
    overflow: hidden;
}
.modal-header {
    background: #fff;
    border-bottom: 1px solid var(--line-soft);
    padding: 16px 20px;
}
.modal-header .modal-title {
    font-weight: 700;
    color: var(--ink);
    font-size: 16px;
}
.modal-header .close {
    font-size: 22px;
    opacity: .6;
    text-shadow: none;
}
.modal-header .close:hover { opacity: 1; color: var(--brand-dark); }
.modal-body { padding: 20px; background: #fff; }
.modal-footer {
    background: #f8fafc;
    border-top: 1px solid var(--line-soft);
    padding: 14px 20px;
}

/* Alert */
.app-main .alert {
    border-radius: 8px;
    border: 1px solid transparent;
    padding: 12px 16px;
    font-size: 13px;
}
.app-main .alert-info {
    background: var(--brand-light);
    color: var(--brand-dark);
    border-color: rgba(0,166,118,.25);
}
.app-main .alert-success { background: #e6f7ed; color: #1d7a35; border-color: #b6e4c4; }
.app-main .alert-warning { background: #fff6e2; color: #8b5d0a; border-color: #f3d58b; }
.app-main .alert-danger  { background: #fde7e7; color: #8a1f1b; border-color: #f3b4b2; }

/* Panel sub-heading (for info stripes inside detail pages) */
.app-main .well {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: none;
    padding: 14px 18px;
}

/* View page heading subtitle */
.page-title {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}
.page-title-icon {
    width: 36px; height: 36px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center; justify-content: center;
    background: var(--brand-light);
    color: var(--brand);
    font-size: 16px;
    flex-shrink: 0;
}
.page-title-text .ptt-title { font-weight: 700; font-size: 15px; color: var(--ink); line-height: 1.2; }
.page-title-text .ptt-sub { font-size: 12px; color: var(--muted); font-weight: 400; margin-top: 2px; }

/* Remove old legacy styles that clash */
.app-main .panel-heading > .tombol-kanan > .btn-xs { margin-top: 0 !important; }

/* Info grid (detail pages) */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}
.info-card {
    background: #f8fafc;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 8px 4px;
}
.info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-bottom: 1px dashed var(--line);
    font-size: 13px;
}
.info-row:last-child { border-bottom: none; }
.info-k {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.info-k > i { color: var(--brand); width: 14px; text-align: center; }
.info-v {
    color: var(--ink);
    font-weight: 600;
    text-align: right;
}

.stat-mini-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    height: 100%;
}
.stat-mini {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px 14px;
    position: relative;
    overflow: hidden;
    text-align: center;
}
.stat-mini::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 3px;
    background: var(--_mc, var(--brand));
}
.stat-mini-label {
    font-size: 11px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: .5px;
    font-weight: 600;
}
.stat-mini-value {
    font-size: 22px;
    font-weight: 700;
    color: var(--_mc, var(--brand));
    font-variant-numeric: tabular-nums;
    margin-top: 3px;
}
.stat-mini-blue   { --_mc: #2d7ff9; }
.stat-mini-green  { --_mc: #00a676; }
.stat-mini-red    { --_mc: #e74c3c; }
.stat-mini-purple { --_mc: #7b4fd3; }

.section-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-title > i {
    color: var(--brand);
    background: var(--brand-light);
    width: 26px; height: 26px;
    border-radius: 7px;
    display: inline-flex;
    align-items: center; justify-content: center;
    font-size: 12px;
}

@media (max-width: 768px) {
    .info-grid { grid-template-columns: 1fr; }
    .stat-mini-grid { grid-template-columns: repeat(2, 1fr); }
}


/* ==========================================================================
   EXAM TAKING (v_ujian.php) — redesign 2026
   ========================================================================== */

body.page-ujian {
    background: #eef2f6;
    font-family: 'Roboto Slab','Segoe UI',Tahoma,Helvetica,Arial,sans-serif;
    color: var(--ink);
    padding-top: 0;
    margin: 0;
}

/* Loading overlay */
body.page-ujian .se-pre-con {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #fff center no-repeat url(../img/facebook.gif);
}
body.page-ujian .ajax-loading {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(14,45,80,.7);
    color: #fff;
    font-size: 18px;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    backdrop-filter: blur(3px);
}
body.page-ujian .ajax-loading > i { font-size: 22px; }

/* ==========================================================================
   TOP BAR (timer + brand + selesai)
   ========================================================================== */
.ujian-navbar {
    position: sticky;
    top: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 2px 10px rgba(16,40,60,.06);
    z-index: 100;
}
.ujian-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    min-height: 68px;
}
.ujian-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1;
}
.ujian-brand .brand-logo {
    width: 42px; height: 42px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--brand), var(--brand-dark));
    color: #fff;
    display: inline-flex;
    align-items: center; justify-content: center;
    font-size: 20px;
    box-shadow: 0 4px 12px rgba(0,166,118,.3);
    flex-shrink: 0;
}
.ujian-brand .brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.ujian-brand .brand-title { font-weight: 700; font-size: 15px; color: var(--ink); }
.ujian-brand .brand-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Timer */
.ujian-timer-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 6px 18px;
    background: linear-gradient(135deg, #0e2d50, #1b4b83);
    border-radius: 12px;
    color: #fff;
    min-width: 170px;
    box-shadow: 0 4px 14px rgba(14,45,80,.2);
    transition: all .3s ease;
}
.timer-label {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    opacity: .85;
    display: flex;
    align-items: center;
    gap: 6px;
}
.timer-label > i { font-size: 11px; }
.timer-value,
#clock {
    font-size: 24px !important;
    font-weight: 800 !important;
    font-variant-numeric: tabular-nums;
    letter-spacing: 1px;
    color: #fff !important;
    line-height: 1.1;
    display: block !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
    height: auto !important;
    width: auto !important;
}
#clock table,
#clock tr,
#clock td { background: transparent !important; border: none !important; padding: 0 !important; margin: 0 !important; color: #fff !important; font-family: inherit !important; }
#clock td { font-size: 24px !important; font-weight: 800 !important; padding: 0 2px !important; }
#clock .hour_dv,
#clock .min_dv,
#clock .sec_dv { display: inline-block; }
.ujian-timer-wrap.timer-alarm {
    background: linear-gradient(135deg, #c62828, #8a0f0f) !important;
    box-shadow: 0 4px 20px rgba(198,40,40,.45) !important;
    animation: pulseRed 1s ease-in-out infinite;
}
@keyframes pulseRed {
    0%,100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}

/* Actions */
.ujian-actions { display: flex; align-items: center; gap: 10px; }
.btn-nav-toggle {
    display: none;
    width: 42px; height: 42px;
    border-radius: 10px;
    background: #f4f6f9;
    border: 1px solid var(--line);
    color: var(--ink);
    font-size: 17px;
    cursor: pointer;
    align-items: center; justify-content: center;
}
.btn-nav-toggle:hover { background: var(--brand-light); color: var(--brand-dark); border-color: var(--brand); }
.btn-selesai {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #e53935;
    color: #fff !important;
    border-radius: 10px;
    font-weight: 600;
    font-size: 13.5px;
    text-decoration: none !important;
    box-shadow: 0 4px 12px rgba(229,57,53,.25);
    transition: all .15s ease;
}
.btn-selesai:hover { background: #b92824; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(229,57,53,.35); }

/* Progress bar */
.ujian-progress {
    height: 4px;
    background: var(--line-soft);
    border-radius: 0;
    overflow: hidden;
    margin: 0 -15px -1px;
}
.ujian-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--brand), #3fd6a9);
    width: 0%;
    transition: width .35s ease;
}

/* ==========================================================================
   BODY GRID
   ========================================================================== */
.ujian-body { padding: 24px 0 40px; }
.ujian-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 20px;
    align-items: start;
}

/* ==========================================================================
   SIDEBAR NAVIGATOR
   ========================================================================== */
.ujian-sidebar { position: sticky; top: 92px; }
.sidebar-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}
.sidebar-head {
    padding: 12px 16px;
    background: #fff;
    border-bottom: 1px solid var(--line-soft);
    font-weight: 700;
    color: var(--ink);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}
.sidebar-head > i { color: var(--brand); }
.sidebar-close {
    display: none;
    margin-left: auto;
    background: transparent;
    border: none;
    color: var(--muted);
    font-size: 16px;
    padding: 2px 8px;
    cursor: pointer;
}
.sidebar-close:hover { color: var(--ink); }
.sidebar-body {
    padding: 14px;
    max-height: 420px;
    overflow-y: auto;
}
#tampil_jawaban {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}
.btn-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6px 2px;
    border-radius: 7px;
    background: #f4f6f9;
    color: var(--ink-soft);
    border: 2px solid transparent;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all .12s ease;
    min-height: 44px;
    line-height: 1.1;
}
.btn-nav:hover { transform: translateY(-1px); border-color: var(--brand); color: var(--brand-dark); }
.btn-nav .bn-n { font-size: 13px; font-weight: 700; }
.btn-nav .bn-a { font-size: 10px; margin-top: 1px; opacity: .7; font-weight: 600; }
.btn-nav-blank { background: #f4f6f9; color: var(--muted); }
.btn-nav-answered { background: #e0f7ee; color: #007b5e; }
.btn-nav-doubt { background: #fff3d6; color: #b5730d; }
.btn-nav-current {
    border-color: var(--brand) !important;
    background: var(--brand) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(0,166,118,.35);
}
.btn-nav-current .bn-a { opacity: .95; }

.sidebar-legend {
    padding: 10px 16px 14px;
    border-top: 1px solid var(--line-soft);
    background: #fafcfe;
    font-size: 11.5px;
}
.lg-row { display: flex; align-items: center; gap: 8px; padding: 3px 0; color: var(--ink-soft); }
.lg-dot { width: 12px; height: 12px; border-radius: 3px; display: inline-block; flex-shrink: 0; }
.lg-dot-current { background: var(--brand); }
.lg-dot-answered { background: #00c288; }
.lg-dot-doubt { background: #f39c12; }
.lg-dot-blank { background: #d5dbe3; }

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(14,30,50,.5);
    z-index: 95;
}
body.nav-open .sidebar-backdrop { display: block; }

/* ==========================================================================
   QUESTION CARD
   ========================================================================== */
.ujian-main { min-width: 0; }
.question-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    overflow: hidden;
}

/* Head */
.question-head {
    padding: 16px 24px;
    border-bottom: 1px solid var(--line-soft);
    background: linear-gradient(135deg, #f8fafc, #fff);
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}
.qh-left { display: flex; align-items: baseline; gap: 6px; }
.qh-label {
    font-size: 13px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}
.qh-number {
    font-size: 28px;
    font-weight: 800;
    color: var(--brand-dark);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.qh-sep { font-size: 20px; color: var(--muted); font-weight: 300; }
.qh-total { font-size: 16px; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.qh-status .chip { font-size: 12px; padding: 4px 10px; border-radius: 20px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.chip-doubt { background: #fff3d6; color: #b5730d; }

/* Body */
.question-body {
    padding: 28px 32px;
    font-size: 15.5px;
    line-height: 1.7;
    color: var(--ink);
    min-height: 300px;
}
.question-body .step { animation: fadeSlide .25s ease; }
@keyframes fadeSlide {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}
.question-body img { max-width: 100%; height: auto; border-radius: 6px; }
.question-body video, .question-body audio { max-width: 100%; }

/* Options — override funkyradio with modern cards */
.question-body .funkyradio {
    margin-top: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.question-body .funkyradio > div[class*="funkyradio-"] {
    clear: none;
    overflow: visible;
    position: relative;
}
.question-body .funkyradio input[type="radio"] { display: none; }
.question-body .funkyradio label {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    background: #fff;
    border: 2px solid var(--line);
    border-radius: 10px;
    padding: 14px 16px 14px 14px !important;
    font-weight: 500 !important;
    font-size: 14.5px;
    color: var(--ink);
    cursor: pointer;
    transition: all .15s ease;
    margin: 0;
    line-height: 1.5;
    position: relative;
    text-indent: 0 !important;
}
.question-body .funkyradio label::before {
    content: none !important;
}
.question-body .funkyradio label:hover {
    border-color: var(--brand);
    background: #f8fdfb;
    color: var(--ink);
    transform: translateX(2px);
}
.question-body .funkyradio .huruf_opsi {
    position: static !important;
    margin: 0 !important;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: var(--brand-light);
    color: var(--brand-dark);
    font-weight: 800;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    text-transform: uppercase;
    transition: all .15s ease;
}
.question-body .funkyradio label p { margin: 0; display: inline; }
.question-body .funkyradio label p:empty { display: none; }

/* Checked state — single rule for all funkyradio variants */
.question-body .funkyradio input[type="radio"]:checked ~ label {
    background: var(--brand-light) !important;
    border-color: var(--brand) !important;
    color: var(--ink) !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 12px rgba(0,166,118,.15);
}
.question-body .funkyradio input[type="radio"]:checked ~ label .huruf_opsi {
    background: var(--brand) !important;
    color: #fff !important;
    box-shadow: 0 4px 10px rgba(0,166,118,.35);
}
.question-body .funkyradio input[type="radio"]:checked ~ label::after {
    content: '\f00c';
    font-family: FontAwesome;
    margin-left: auto;
    color: var(--brand);
    font-size: 16px;
    flex-shrink: 0;
}

/* Footer buttons */
.question-footer {
    padding: 16px 24px;
    border-top: 1px solid var(--line-soft);
    background: #fafcfe;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}
.qf-left, .qf-center, .qf-right { display: flex; gap: 10px; align-items: center; }
.qf-right { flex: 1; justify-content: flex-end; }
.btn-q {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none !important;
    cursor: pointer;
    transition: all .15s ease;
    border: 1px solid transparent;
    line-height: 1.3;
}
.btn-q i { font-size: 12px; }
.btn-q-ghost {
    background: #fff;
    color: var(--ink-soft);
    border-color: var(--line);
}
.btn-q-ghost:hover { background: #f4f6f9; color: var(--ink); border-color: var(--muted); }
.btn-q-warn {
    background: #fff;
    color: #b5730d;
    border-color: #f39c12;
}
.btn-q-warn:hover { background: #fff3d6; color: #8b5d0a; }
.btn-q-warn-active {
    background: #f39c12 !important;
    color: #fff !important;
    border-color: #f39c12 !important;
}
.btn-q-primary {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
    box-shadow: 0 4px 12px rgba(0,166,118,.25);
}
.btn-q-primary:hover { background: var(--brand-dark); transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,166,118,.35); color: #fff; }
.btn-q-danger {
    background: #e53935;
    color: #fff;
    border-color: #e53935;
    box-shadow: 0 4px 12px rgba(229,57,53,.25);
}
.btn-q-danger:hover { background: #b92824; color: #fff; }

/* ==========================================================================
   RESPONSIVE — EXAM PAGE
   ========================================================================== */
@media (max-width: 900px) {
    .ujian-grid { grid-template-columns: 1fr; }
    .ujian-sidebar {
        position: fixed;
        top: 0; right: -320px; bottom: 0;
        width: 300px;
        z-index: 100;
        transition: right .25s ease;
        background: #fff;
        box-shadow: -4px 0 20px rgba(0,0,0,.15);
    }
    body.nav-open .ujian-sidebar { right: 0; }
    .sidebar-card { border-radius: 0; height: 100%; border: none; display: flex; flex-direction: column; }
    .sidebar-body { max-height: none; flex: 1; }
    .sidebar-close { display: inline-flex; }
    .btn-nav-toggle { display: inline-flex; }
}
@media (max-width: 640px) {
    .ujian-nav-inner { flex-wrap: wrap; padding: 10px 0; }
    .ujian-brand .brand-title { font-size: 13px; }
    .ujian-brand .brand-sub { font-size: 11px; }
    .ujian-brand .brand-logo { width: 36px; height: 36px; font-size: 16px; }
    .ujian-timer-wrap { min-width: 0; padding: 6px 12px; order: 3; width: 100%; flex-direction: row; justify-content: space-between; }
    .timer-label { margin-right: 10px; }
    #clock td, .timer-value, #clock { font-size: 20px !important; }
    .btn-selesai { padding: 8px 12px; font-size: 12.5px; }
    .btn-selesai span { display: none; }
    .question-head { padding: 14px 18px; }
    .qh-number { font-size: 24px; }
    .question-body { padding: 20px 18px; font-size: 14.5px; }
    .question-footer { padding: 14px 16px; flex-direction: column; align-items: stretch; }
    .qf-left, .qf-center, .qf-right { justify-content: space-between; }
    .qf-right { flex-direction: column; }
    .btn-q { justify-content: center; width: 100%; }
    #tampil_jawaban { grid-template-columns: repeat(4, 1fr); }
}

/* Responsive */
@media (max-width: 768px) {
    .app-navbar .navbar-inner { padding: 0 12px; }
    .nav-toggle { display: inline-flex; }
    .brand-sub { display: none; }
    .user-meta { display: none; }
    .user-chip { padding: 6px 8px; }
    .dashboard-banner { padding: 20px; }
    .banner-name { font-size: 22px; }
    .banner-right { width: 100%; }
    .banner-date { text-align: left; min-width: 0; }
    .stat-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
    .stat-value { font-size: 22px; }
    .app-footer .container-fluid { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
    .stat-grid { grid-template-columns: 1fr 1fr; }
    .dashboard-banner { padding: 18px; flex-direction: column; align-items: flex-start; }
    .app-main .panel-heading { flex-direction: column; align-items: flex-start; }
}
