/* =====================================================================
 * CBT Enterprise - lapisan desain di atas AdminLTE (dimuat TERAKHIR)
 * Prinsip: warna SOLID (tanpa gradasi), kontras tinggi, ukuran besar.
 * Font: Inter (variable, SIL OFL 1.1) disajikan lokal dari ../fonts/inter/
 * ===================================================================== */
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/inter/inter-latin-ext-wght-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Inter";
	font-style: normal;
	font-weight: 100 900;
	font-display: swap;
	src: url("../fonts/inter/inter-latin-wght-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--ink: #0b1220;
	--ink-2: #111827;
	--text: #1f2937;
	--muted: #475569;
	--line: #cbd5e1;
	--line-soft: #e2e8f0;
	--bg: #eef2f7;
	--card: #ffffff;

	--brand: #1d4ed8;
	--brand-600: #1d4ed8;
	--brand-700: #1e40af;
	--brand-100: #dbeafe;
	--brand-50: #eff6ff;

	--teal: #0f766e;
	--green: #15803d;
	--amber: #d97706;
	--amber-dk: #b45309;
	--rose: #e11d48;
	--rose-dk: #be123c;
	--violet: #6d28d9;
	--sky: #0369a1;

	--nav: #0b1f4d;
	--nav-dk: #071533;
	--nav-line: #1e3a8a;

	--radius: 10px;
	--shadow: 0 1px 3px rgba(11, 18, 32, .14);
	--fs: 15px;
}

/* ---------- dasar ---------- */
html, body, h1, h2, h3, h4, h5, h6, .main-header .logo, .btn, .form-control, .table, .box-title, input, select, textarea, button {
	font-family: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}
body { background: var(--bg); color: var(--text); font-size: var(--fs); line-height: 1.55; -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss03"; }
.content-wrapper, .right-side, .main-footer { background: var(--bg); }
a { color: var(--brand); }
a:hover, a:focus { color: var(--brand-700); }
h1, h2, h3, h4 { color: var(--ink); font-weight: 700; }
p { font-size: var(--fs); }
small, .small { font-size: 13px; }
.text-muted { color: var(--muted); }
.text-green { color: var(--green) !important; }
.text-red { color: var(--rose-dk) !important; }
.text-yellow { color: var(--amber-dk) !important; }

/* ---------- header & sidebar ---------- */
.skin-purple .main-header .logo,
.skin-purple .main-header .logo:hover,
.skin-blue .main-header .logo { background: var(--nav-dk); color: #fff; font-weight: 800; letter-spacing: .2px; border-bottom: 1px solid var(--nav-line); }
.main-header { max-height: 56px; }
.main-header .logo { height: 56px; line-height: 56px; padding: 0 12px; }
.main-header .navbar { min-height: 56px; }
.main-header .sidebar-toggle { height: 56px; line-height: 26px; font-size: 18px; }
.content-wrapper, .right-side { padding-top: 0; }
.skin-purple .main-header .logo .brand-mark, .brand-mark { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark img { width: 34px; height: 34px; border-radius: 8px; }
.brand-mark small { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: #93c5fd; line-height: 1; margin-top: 3px; }
.brand-mark .t { line-height: 1.1; text-align: left; font-size: 16px; }

.skin-purple .main-header .navbar { background: #fff; border-bottom: 1px solid var(--line); box-shadow: none; }
.skin-purple .main-header .navbar .sidebar-toggle { color: var(--ink-2); }
.skin-purple .main-header .navbar .sidebar-toggle:hover { background: var(--bg); color: var(--ink); }
.skin-purple .main-header .navbar .nav > li > a { color: var(--ink-2); font-weight: 600; font-size: 14.5px; line-height: 26px; padding-top: 15px; padding-bottom: 15px; }
.skin-purple .main-header .navbar .nav > li > a:hover, .skin-purple .main-header .navbar .nav .open > a { background: var(--bg); color: var(--ink); }
.skin-purple .main-header .navbar .user-menu .user-image { border: 2px solid var(--line); width: 30px; height: 30px; margin-top: -3px; }
.main-header .navbar-custom-menu .dropdown-menu { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(11, 18, 32, .18); overflow: hidden; }
.user-header { background: var(--nav) !important; }
.user-header > p { font-size: 16px; font-weight: 600; }
.navbar-nav > .user-menu > .dropdown-menu > li.user-footer { background: #f8fafc; }

.skin-purple .main-sidebar, .skin-purple .left-side, .skin-purple .wrapper { background: var(--nav); }
.main-sidebar { padding-top: 56px; }
.skin-purple .user-panel > .info, .skin-purple .user-panel > .info > a { color: #f1f5f9; font-size: 15px; }
.skin-purple .user-panel .info small { color: #93c5fd; font-size: 12.5px; }
.skin-purple .sidebar-menu > li.header { color: #93c5fd; background: transparent; font-size: 12px; letter-spacing: .14em; font-weight: 700; padding: 16px 25px 8px; }
.skin-purple .sidebar-menu > li > a { color: #e2e8f0; border-left: 4px solid transparent; font-weight: 600; font-size: 15px; padding: 13px 16px 13px 18px; }
.skin-purple .sidebar-menu > li:hover > a { color: #fff; background: var(--nav-line); }
.skin-purple .sidebar-menu > li.active > a,
.skin-purple .sidebar-menu > li.menu-open > a { color: #fff; background: var(--brand); border-left-color: #93c5fd; }
.skin-purple .sidebar-menu > li > .treeview-menu { background: var(--nav-dk); margin: 0; }
.skin-purple .treeview-menu > li > a { color: #cbd5e1; font-size: 14.5px; padding: 9px 5px 9px 30px; }
.skin-purple .treeview-menu > li.active > a, .skin-purple .treeview-menu > li > a:hover { color: #fff; }
.skin-purple .treeview-menu > li.active > a { font-weight: 700; }
.skin-purple .sidebar a { color: #e2e8f0; }
.skin-purple .sidebar-menu > li > a > .fa { width: 26px; font-size: 16px; }

/* layout top-nav (peserta ujian): bar gelap */
.skin-blue .main-header .navbar { background: var(--nav-dk); border: 0; }
.skin-blue .main-header .navbar .nav > li > a { color: #f1f5f9; font-weight: 600; }
.skin-blue .main-header .navbar .nav > li > a:hover, .skin-blue .main-header .navbar .nav .open > a { background: var(--nav-line); color: #fff; }
.skin-blue .main-header .navbar .navbar-brand { color: #fff; font-weight: 800; font-size: 17px; height: 56px; line-height: 26px; }
.layout-top-nav .content-wrapper { background: var(--bg); }

/* ---------- judul halaman ---------- */
.content-header { padding: 26px 24px 8px; }
.content-header > h1 { font-size: 27px; font-weight: 800; color: var(--ink); letter-spacing: -.015em; }
.content-header > h1 > small { color: var(--muted); font-size: 15px; font-weight: 500; margin-left: 8px; }
.content-header > .breadcrumb { background: transparent; font-size: 13.5px; padding-top: 14px; }
.content-header > .breadcrumb > li > a { color: var(--muted); font-weight: 500; }
.content { padding: 18px 24px 28px; }

/* ---------- kartu (box) ---------- */
.box { border: 1px solid var(--line); border-top: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); background: var(--card); margin-bottom: 22px; }
.box.box-primary, .box.box-info, .box.box-success, .box.box-warning, .box.box-danger { border-top: 4px solid var(--brand); }
.box.box-success { border-top-color: var(--green); }
.box.box-warning { border-top-color: var(--amber); }
.box.box-danger { border-top-color: var(--rose); }
.box.box-info { border-top-color: var(--sky); }
.box-header.with-border { border-bottom: 1px solid var(--line); padding: 16px 20px; }
.box-header { padding: 16px 20px; }
.box-title { font-size: 17px; font-weight: 700; color: var(--ink); }
.box-body { padding: 20px; }
.box-footer { border-top: 1px solid var(--line); background: #f8fafc; border-radius: 0 0 var(--radius) var(--radius); padding: 16px 20px; }
.box.box-solid > .box-header { border-radius: var(--radius) var(--radius) 0 0; }
.box-header.bg-purple { background: var(--nav) !important; color: #fff; }
.box-header > .box-tools .btn-box-tool { font-size: 15px; color: var(--muted); }

/* kartu informasi lama (alert.bg-*) pada halaman daftar */
.alert.bg-green, .alert.bg-blue, .alert.bg-yellow, .alert.bg-red, .alert.bg-purple {
	border: 0; border-radius: var(--radius); box-shadow: var(--shadow); color: #fff !important; padding: 18px 20px; font-size: 15px;
}
.alert.bg-green { background: var(--green) !important; }
.alert.bg-blue { background: var(--brand) !important; }
.alert.bg-yellow { background: var(--amber-dk) !important; }
.alert.bg-red { background: var(--rose-dk) !important; }
.alert.bg-purple { background: var(--nav) !important; }
.alert.bg-green h4, .alert.bg-blue h4, .alert.bg-yellow h4, .alert.bg-red h4, .alert.bg-purple h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .09em; font-weight: 700; margin-top: 0; opacity: .92; }

/* ---------- KPI dashboard ---------- */
.kpi { display: flex; align-items: center; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); margin-bottom: 22px; height: calc(100% - 22px); }
.kpi .ico { flex: 0 0 58px; width: 58px; height: 58px; border-radius: 12px; display: grid; place-items: center; font-size: 25px; color: #fff; }
.kpi .val { font-size: 32px; font-weight: 800; color: var(--ink); line-height: 1.05; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.kpi .lbl { color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; margin-top: 3px; }
.kpi .sub { font-size: 13.5px; color: var(--muted); margin-top: 3px; }
.ico-blue { background: var(--brand); }
.ico-teal { background: var(--teal); }
.ico-amber { background: var(--amber); }
.ico-rose { background: var(--rose); }
.ico-violet { background: var(--violet); }
.ico-green { background: var(--green); }
.ico-slate { background: #334155; }

.panel-chart { position: relative; height: 300px; width: 100%; }
.panel-chart canvas { max-width: 100%; }
.stat-list { list-style: none; margin: 0; padding: 0; }
.stat-list li { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line-soft); gap: 12px; }
.stat-list li:last-child { border-bottom: 0; }
.stat-list .nm { font-weight: 700; color: var(--ink-2); }
.stat-list .mt { color: var(--muted); font-size: 13.5px; }
.empty-state { text-align: center; color: var(--muted); padding: 32px 10px; font-size: 15px; }
.empty-state i { font-size: 32px; display: block; margin-bottom: 10px; opacity: .65; }

/* status & lencana: solid, teks gelap di atas latar terang */
.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; line-height: 1.4; }
.pill-live { background: #bbf7d0; color: #14532d; }
.pill-soon { background: #bfdbfe; color: #1e3a8a; }
.pill-done { background: #cbd5e1; color: #1e293b; }
.pill-warn { background: #fde68a; color: #78350f; }
.pill-late { background: #fecdd3; color: #881337; }
.pill-live:before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #15803d; margin-right: 7px; animation: denyut-live 1.4s ease-in-out infinite; }
@keyframes denyut-live { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .pill-live:before { animation: none; } }
.token-chip { font-family: Consolas, "Courier New", monospace; font-weight: 800; font-size: 14px; letter-spacing: .14em; background: var(--ink); color: #fff; padding: 4px 11px; border-radius: 6px; }
.score { font-weight: 800; font-variant-numeric: tabular-nums; }
.score.s-hi { color: #166534; } .score.s-mid { color: #92400e; } .score.s-lo { color: #9f1239; }

/* ---------- tombol ---------- */
.btn { border-radius: 8px; font-weight: 600; font-size: 15px; padding: 9px 18px; line-height: 1.4; }
.btn-flat { border-radius: 8px; border-width: 1px; }
.btn-lg { font-size: 16.5px; padding: 12px 24px; }
.btn-sm, .btn-group-sm > .btn { font-size: 14px; padding: 7px 13px; }
.btn-xs, .btn-group-xs > .btn { font-size: 13px; padding: 4px 10px; }
.btn-primary, .btn.bg-purple, .bg-purple.btn, .btn-flat.bg-purple { background-color: var(--brand) !important; border-color: var(--brand) !important; color: #fff !important; }
.btn-primary:hover, .btn.bg-purple:hover, .btn-primary:focus { background-color: var(--brand-700) !important; border-color: var(--brand-700) !important; }
.btn-info { background-color: var(--sky); border-color: var(--sky); color: #fff; }
.btn-info:hover, .btn-info:focus { background-color: #075985; border-color: #075985; color: #fff; }
.btn-success { background-color: var(--green); border-color: var(--green); color: #fff; }
.btn-success:hover, .btn-success:focus { background-color: #166534; border-color: #166534; color: #fff; }
.btn-warning { background-color: var(--amber); border-color: var(--amber); color: #fff; }
.btn-warning:hover, .btn-warning:focus { background-color: var(--amber-dk); border-color: var(--amber-dk); color: #fff; }
.btn-danger { background-color: var(--rose); border-color: var(--rose); color: #fff; }
.btn-danger:hover, .btn-danger:focus { background-color: var(--rose-dk); border-color: var(--rose-dk); color: #fff; }
.btn-default { background: #fff; border-color: #94a3b8; color: var(--ink-2); }
.btn-default:hover, .btn-default:focus { background: var(--line-soft); border-color: #64748b; color: var(--ink); }
.label.bg-purple, .badge.bg-purple { background-color: var(--brand) !important; }
.label { font-size: 12.5px; padding: .35em .7em; font-weight: 700; }
.badge { font-size: 13px; font-weight: 700; padding: 5px 10px; }

/* ---------- form ---------- */
.form-control { border-radius: 8px; border: 1px solid #94a3b8; box-shadow: none; height: 44px; font-size: 15px; padding: 9px 14px; color: var(--ink); background: #fff; }
textarea.form-control { height: auto; }
.form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(29, 78, 216, .25); }
.input-group-addon { border-color: #94a3b8; background: #f1f5f9; color: var(--ink-2); font-size: 15px; }
.select2-container--default .select2-selection--single { border: 1px solid #94a3b8; border-radius: 8px; height: 44px; }
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 42px; font-size: 15px; color: var(--ink); padding-left: 14px; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 42px; }
.select2-container--default .select2-selection--multiple { border: 1px solid #94a3b8; border-radius: 8px; min-height: 44px; }
.select2-results__option { font-size: 15px; padding: 8px 12px; }
.has-error .form-control { border-color: var(--rose); }
.help-block { font-size: 13.5px; }
label { color: var(--ink-2); font-weight: 700; font-size: 14.5px; }

/* ---------- tabel & DataTables ---------- */
.table { font-size: 15px; color: var(--text); }
.table > thead > tr > th { background: #e2e8f0; color: #0f172a; font-size: 12.5px; text-transform: uppercase; letter-spacing: .06em; border-bottom: 2px solid #94a3b8 !important; font-weight: 800; padding: 13px 14px; }
.table > tbody > tr > td { vertical-align: middle; border-top: 1px solid var(--line-soft); padding: 13px 14px; }
.table-bordered { border: 1px solid var(--line); }
.table-bordered > thead > tr > th, .table-bordered > tbody > tr > td, .table-bordered > tfoot > tr > th { border-color: var(--line); }
.table-striped > tbody > tr:nth-of-type(odd) { background: #f8fafc; }
.table-hover > tbody > tr:hover { background: var(--brand-50); }
.dataTables_wrapper .dataTables_filter input, .dataTables_wrapper .dataTables_length select { border-radius: 8px; border: 1px solid #94a3b8; padding: 7px 12px; height: 40px; font-size: 15px; }
.dataTables_wrapper .dataTables_info { font-size: 14px; color: var(--muted); }
.pagination > li > a, .pagination > li > span { border-color: var(--line); color: var(--ink-2); font-size: 14.5px; padding: 8px 14px; font-weight: 600; }
.pagination > .active > a, .pagination > .active > a:hover, .pagination > .active > span { background: var(--brand); border-color: var(--brand); color: #fff; }
div.dataTables_wrapper div.dataTables_processing { border-radius: 8px; border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 15px; }
table.dataTable tfoot th { background: #e2e8f0; }
.dt-buttons .btn { font-size: 14px; padding: 7px 13px; }

/* callout & alert */
.callout { border-radius: var(--radius); border-left-width: 6px; font-size: 15px; padding: 14px 18px; }
.callout h4 { font-size: 16.5px; font-weight: 800; }
.alert { border-radius: var(--radius); font-size: 15px; }
.modal-content { border-radius: var(--radius); border: 0; box-shadow: 0 20px 60px rgba(11, 18, 32, .35); }
.modal-header { border-bottom: 1px solid var(--line); padding: 16px 20px; }
.modal-title { font-weight: 800; font-size: 18px; }
.modal-body { padding: 20px; font-size: 15px; }

/* ---------- footer ---------- */
.main-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; background: #fff; padding: 16px 24px; }
.main-footer a { color: var(--muted); text-decoration: underline; }

/* ---------- halaman login ---------- */
body.auth-page { background: var(--nav); min-height: 100vh; margin: 0; }
.auth-shell { display: flex; min-height: 100vh; }
.auth-hero { flex: 1 1 54%; color: #e2e8f0; padding: 60px 72px; display: flex; flex-direction: column; justify-content: space-between; background: var(--nav); border-right: 6px solid var(--brand); }
.auth-hero .brand { display: flex; align-items: center; gap: 14px; font-size: 20px; font-weight: 800; color: #fff; }
.auth-hero .brand img { width: 50px; height: 50px; border-radius: 12px; }
.auth-hero .brand small { display: block; font-size: 12px; font-weight: 600; letter-spacing: .18em; color: #93c5fd; text-transform: uppercase; }
.auth-hero h1 { color: #fff; font-size: 42px; line-height: 1.15; font-weight: 800; letter-spacing: -.025em; max-width: 580px; margin: 0 0 16px; }
.auth-hero p.lead { color: #e2e8f0; font-size: 17.5px; max-width: 580px; line-height: 1.6; }
.auth-hero ul { list-style: none; padding: 0; margin: 30px 0 0; max-width: 580px; }
.auth-hero li { display: flex; gap: 14px; margin-bottom: 18px; align-items: flex-start; color: #e2e8f0; font-size: 16px; }
.auth-hero li i { flex: 0 0 44px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; background: var(--brand); color: #fff; font-size: 18px; }
.auth-hero li b { color: #fff; display: block; font-size: 17px; }
.auth-hero li span { color: #bfdbfe; font-size: 15px; }
.auth-hero .foot { color: #93c5fd; font-size: 13.5px; }
.auth-panel { flex: 0 0 min(560px, 100%); background: #fff; display: flex; align-items: center; justify-content: center; padding: 40px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h2 { font-size: 30px; font-weight: 800; margin: 0 0 8px; letter-spacing: -.02em; color: var(--ink); }
.auth-card .sub { color: var(--muted); margin-bottom: 28px; font-size: 16px; }
.auth-card .form-group { margin-bottom: 20px; }
.auth-card .input-icon { position: relative; display: flex; align-items: center; width: 100%; }
.auth-card .input-icon .fa.fa-lock,
.auth-card .input-icon .fa.fa-envelope-o { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #475569; font-size: 16px; pointer-events: none; z-index: 2; }
.auth-card .input-icon .form-control { padding-left: 44px; padding-right: 48px; height: 50px; font-size: 16px; width: 100%; }
.btn-toggle-password {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	background: transparent;
	border: none;
	color: #64748b;
	cursor: pointer;
	font-size: 17px;
	padding: 8px 10px;
	line-height: 1;
	border-radius: 6px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: color .15s ease, background-color .15s ease;
	z-index: 5;
}
.btn-toggle-password:hover {
	color: var(--brand);
	background-color: var(--brand-50);
}
.btn-toggle-password:focus {
	outline: 2px solid var(--brand);
	outline-offset: 1px;
}
.auth-card .btn-masuk { height: 52px; font-weight: 800; font-size: 17px; width: 100%; }
.auth-card .help-block { color: var(--rose-dk); font-weight: 600; }
.auth-card .extras { display: flex; justify-content: space-between; align-items: center; margin: 6px 0 22px; font-size: 14.5px; }
.auth-card .extras label { font-weight: 500; color: var(--text); margin: 0; font-size: 14.5px; }
#infoMessage { margin-bottom: 16px; }
#infoMessage.callout { padding: 12px 16px; margin: 0 0 16px; }
.auth-note { margin-top: 26px; font-size: 13.5px; color: var(--muted); text-align: center; }
@media (max-width: 960px) {
	.auth-hero { display: none; }
	.auth-panel { flex: 1 1 100%; background: var(--bg); }
	.auth-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px; box-shadow: var(--shadow); }
}

/* ---------- lembar ujian (fokus, mudah dibaca) ---------- */
.exam-progress { height: 8px; background: var(--line-soft); border-radius: 999px; overflow: hidden; margin: 0 0 18px; }
.exam-progress > span { display: block; height: 100%; width: 0; background: var(--brand); transition: width .25s ease; }
.step .teks-soal { font-size: 18px; line-height: 1.75; color: var(--ink); margin-bottom: 20px; }
.step .teks-soal table { margin: 12px 0; background: #fff; font-size: 16px; }
.step .teks-soal pre, .teks-soal pre { background: #0b1220; color: #f1f5f9; border: 0; border-radius: 10px; padding: 16px 18px; font-size: 14.5px; line-height: 1.6; }
.step .teks-soal pre code { background: transparent; color: inherit; padding: 0; white-space: pre; font-size: inherit; }
.step .teks-soal code { background: #dbeafe; color: #1e3a8a; border-radius: 5px; padding: 2px 7px; font-size: .92em; }
.soal-media { text-align: center; margin: 4px 0 22px; }
.soal-media img { max-width: 100%; max-height: 460px; width: auto; height: auto; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 8px; box-shadow: var(--shadow); cursor: zoom-in; }

/* kartu pilihan jawaban */
.funkyradio div { margin-bottom: 12px; }
.funkyradio label { border-radius: 10px; border: 2px solid #94a3b8; background: #fff; color: var(--ink); font-weight: 500; font-size: 17px; padding: 8px 14px 8px 70px; margin-top: 0 !important; line-height: 1.55 !important; min-height: 56px; display: block; transition: border-color .12s, background-color .12s; }
.funkyradio input[type="radio"]:empty ~ label:before, .funkyradio input[type="checkbox"]:empty ~ label:before { width: 54px; background: #e2e8f0; border-radius: 8px 0 0 8px; border-right: 2px solid #94a3b8; }
.funkyradio .huruf_opsi { position: absolute; left: 0; top: 0; bottom: 0; width: 54px; margin: 0; display: flex; align-items: center; justify-content: center; font-size: 19px; font-weight: 800; text-transform: uppercase; color: var(--ink); z-index: 1; }
.funkyradio input[type="radio"]:hover:not(:checked) ~ label, .funkyradio input[type="checkbox"]:hover:not(:checked) ~ label { color: var(--ink); border-color: var(--brand); background: var(--brand-50); }
.funkyradio input[type="radio"]:hover:not(:checked) ~ label:before, .funkyradio input[type="checkbox"]:hover:not(:checked) ~ label:before { padding: 0; background: var(--brand-100); }
.funkyradio input[type="radio"]:checked ~ label, .funkyradio input[type="checkbox"]:checked ~ label { color: var(--ink); background: var(--brand-100); border-color: var(--brand); font-weight: 700; }
.funkyradio input[type="radio"]:checked ~ label:before, .funkyradio input[type="checkbox"]:checked ~ label:before,
.funkyradio-success input[type="radio"]:checked ~ label:before, .funkyradio-success input[type="checkbox"]:checked ~ label:before { background: var(--brand); color: #fff; padding: 0; border-right-color: var(--brand); }
.funkyradio input[type="radio"]:checked ~ label .huruf_opsi { color: #fff; }
.funkyradio input[type="radio"]:focus ~ label:before { box-shadow: 0 0 0 4px rgba(29, 78, 216, .35); }
.step .isi-opsi { max-width: 100%; }

.sisawaktu { background: transparent; font-size: 15px; font-weight: 800; }
.box-title .badge, .box-tools .badge { font-size: 14px; padding: 7px 12px; }
.badge.bg-red { background: var(--rose-dk) !important; }
.badge.bg-blue { background: var(--brand) !important; }
#tampil_jawaban { gap: 8px; }
#tampil_jawaban .btn_soal { border-radius: 8px; min-width: 46px; height: 42px; font-size: 15px; font-weight: 800; padding: 0; }
.btn_soal.aktif { box-shadow: 0 0 0 4px rgba(29, 78, 216, .45); }
.legenda { font-size: 14px !important; }
.layout-top-nav .content-wrapper > .container { max-width: 1280px; }
.box-footer .btn { font-size: 16px; padding: 11px 22px; }
.lightbox { position: fixed; inset: 0; background: rgba(11, 18, 32, .9); display: none; align-items: center; justify-content: center; z-index: 2000; padding: 24px; cursor: zoom-out; }
.lightbox.on { display: flex; }
.lightbox img { max-width: 96vw; max-height: 92vh; background: #fff; border-radius: 10px; }

/* ---------- responsif ---------- */
@media (max-width: 767px) {
	:root { --fs: 15px; }
	.content-header { padding: 18px 14px 6px; }
	.content { padding: 14px; }
	.content-header > h1 { font-size: 22px; }
	.kpi .val { font-size: 27px; }
	.kpi .ico { flex-basis: 50px; width: 50px; height: 50px; font-size: 21px; }
	.auth-panel { padding: 18px; }
	.step .teks-soal { font-size: 17px; }
	.funkyradio label { font-size: 16px; padding-left: 62px; }
	.main-sidebar { padding-top: 112px; }
}

/* baris KPI: kartu sama tinggi tanpa float yang saling mengganjal */
.kpi-row { display: flex; flex-wrap: wrap; }
.kpi-row:before, .kpi-row:after { display: none; }
.kpi-row > [class*="col-"] { display: flex; }
.kpi-row .kpi { width: 100%; height: auto; }
@media (max-width: 767px) { .kpi-row > [class*="col-"] { width: 100%; } }

@media (max-width: 1280px) {
	.auth-hero { padding: 44px 44px; }
	.auth-hero h1 { font-size: 34px; }
	.auth-hero p.lead { font-size: 16px; }
	.auth-panel { flex-basis: 480px; padding: 28px; }
}

/* warna kontekstual AdminLTE (aqua/hijau/kuning/merah) diganti solid & kontras tinggi */
.bg-aqua, .bg-light-blue, .alert-info, .label-info, .badge.bg-aqua, .callout.callout-info { background-color: var(--sky) !important; color: #fff !important; }
.bg-blue { background-color: var(--brand) !important; color: #fff !important; }
.bg-green, .alert-success, .label-success, .callout.callout-success { background-color: var(--green) !important; color: #fff !important; }
.bg-yellow, .alert-warning, .label-warning, .callout.callout-warning { background-color: var(--amber-dk) !important; color: #fff !important; }
.bg-red, .alert-danger, .label-danger, .callout.callout-danger { background-color: var(--rose-dk) !important; color: #fff !important; }
.bg-gray, .label-default { background-color: #e2e8f0 !important; color: var(--ink) !important; }
.callout.callout-info { border-color: #075985; }
.callout.callout-success { border-color: #166534; }
.callout.callout-warning { border-color: #78350f; }
.callout.callout-danger { border-color: #881337; }
.callout a, .alert a { color: #fff; text-decoration: underline; font-weight: 700; }
.callout p, .callout li { font-size: 15px; }
.text-aqua, .text-light-blue, .text-blue { color: var(--brand) !important; }
.alert-dismissable .close, .alert-dismissible .close { color: #fff; opacity: .9; }
.sweet-alert, .swal2-popup { font-family: "Inter", "Segoe UI", system-ui, sans-serif; }
.swal2-title { font-size: 24px; color: var(--ink); }
.swal2-content { font-size: 16px; color: var(--text); }
.swal2-styled { font-size: 15px !important; font-weight: 700 !important; border-radius: 8px !important; padding: 11px 24px !important; }
.swal2-styled.swal2-confirm { background: var(--brand) !important; }

/* =====================================================================
 * ANTI-GRADIENT: Semua gradasi dinonaktifkan (100% Solid & Flat)
 * ===================================================================== */
[class*="-gradient"],
.bg-teal-gradient, .bg-light-blue-gradient, .bg-blue-gradient,
.bg-aqua-gradient, .bg-yellow-gradient, .bg-purple-gradient,
.bg-green-gradient, .bg-red-gradient, .bg-black-gradient,
.bg-maroon-gradient {
	background-image: none !important;
	filter: none !important;
}
.bg-teal-gradient { background-color: var(--teal) !important; color: #fff !important; }
.bg-light-blue-gradient, .bg-blue-gradient { background-color: var(--brand) !important; color: #fff !important; }
.bg-aqua-gradient { background-color: var(--sky) !important; color: #fff !important; }
.bg-yellow-gradient { background-color: var(--amber-dk) !important; color: #fff !important; }
.bg-purple-gradient { background-color: var(--nav) !important; color: #fff !important; }
.bg-green-gradient { background-color: var(--green) !important; color: #fff !important; }
.bg-red-gradient { background-color: var(--rose-dk) !important; color: #fff !important; }
.bg-black-gradient { background-color: #1e293b !important; color: #fff !important; }
.bg-maroon-gradient { background-color: #881337 !important; color: #fff !important; }

/* =====================================================================
 * ANTI-OVERFLOW: Penataan responsif & perapihan overflow
 * ===================================================================== */
html, body {
	overflow-x: hidden !important;
	max-width: 100vw;
	width: 100%;
}
.wrapper, .content-wrapper, .main-header, .main-sidebar, .main-footer, .container, .container-fluid {
	max-width: 100% !important;
	box-sizing: border-box !important;
}

/* Tabel dan DataTables agar tidak meluap keluar box/layar */
.table-responsive,
.dataTables_wrapper {
	width: 100% !important;
	overflow-x: auto !important;
	-webkit-overflow-scrolling: touch;
	margin-bottom: 12px;
}
.table {
	width: 100% !important;
	max-width: 100%;
}
.table td, .table th {
	overflow-wrap: break-word;
	word-break: normal;
}

/* Lembar Ujian & Navigasi */
.step {
	overflow-wrap: anywhere;
	word-break: break-word;
	max-width: 100%;
}
.step .teks-soal {
	overflow-wrap: anywhere;
	word-break: break-word;
	max-width: 100%;
}
.step .teks-soal table {
	display: block;
	max-width: 100%;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
}
.step .teks-soal pre {
	overflow-x: auto;
	max-width: 100%;
	white-space: pre-wrap;
	word-break: break-all;
}
.step .teks-soal img,
.soal-media img {
	max-width: 100%;
	height: auto;
	object-fit: contain;
}
.funkyradio {
	max-width: 100%;
}
.funkyradio div {
	max-width: 100%;
}
.funkyradio label {
	max-width: 100%;
	overflow-wrap: anywhere;
	word-break: break-word;
	white-space: normal;
}
.step .isi-opsi {
	display: inline-block;
	vertical-align: middle;
	max-width: calc(100% - 70px);
	overflow-wrap: anywhere;
	word-break: break-word;
}

/* Kotak Navigasi Soal (#tampil_jawaban) */
#tampil_jawaban {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: flex-start;
	max-width: 100%;
	overflow: hidden;
	padding: 4px;
}
#tampil_jawaban .btn_soal {
	flex: 0 0 calc(20% - 6px);
	max-width: calc(20% - 6px);
	min-width: 42px;
	height: 42px;
	margin: 0;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
}

/* Sidebar & Header teks panjang */
.user-panel .info p,
.user-panel .info small {
	max-width: 155px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	display: block;
}
.main-header .navbar-nav > li > a {
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.navbar-brand.brand-mark {
	max-width: 250px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
