/**
 * Aura Enterprise Theme for TCExam - Public Area
 * Inspired by CBT SMANCA & Modern Corporate Design System
 */

:root {
  --surface: #f7f9fb;
  --surface-dim: #d8dadc;
  --surface-bright: #f7f9fb;
  --surface-container-lowest: #ffffff;
  --surface-container-low: #f2f4f6;
  --surface-container: #eceef0;
  --surface-container-high: #e6e8ea;
  --surface-container-highest: #e0e3e5;
  --on-surface: #191c1e;
  --on-surface-variant: #45464d;
  --inverse-surface: #2d3133;
  --inverse-on-surface: #eff1f3;
  --outline: #76777d;
  --outline-variant: #c6c6cd;
  --primary: #0f172a;
  --on-primary: #ffffff;
  --primary-container: #131b2e;
  --on-primary-container: #7c839b;
  --secondary: #0058be;
  --on-secondary: #ffffff;
  --secondary-container: #2170e4;
  --secondary-hover: #004395;
  --on-secondary-container: #fefcff;
  --error: #ba1a1a;
  --on-error: #ffffff;
  --error-container: #ffdad6;
  --on-error-container: #93000a;
  --success: #009668;
  --on-success: #ffffff;
  --success-container: #e6f7f0;
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
}

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background-color: var(--surface-container-low);
  color: var(--on-surface);
  font-family: var(--font-family);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--secondary-hover);
  text-decoration: underline;
}

/* Accessibility skip link */
a.skiplink {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--primary);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  z-index: 9999;
  transition: top 0.2s ease;
}
a.skiplink:focus {
  top: 16px;
}

/* Accessibility screen-reader only utility */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ========================================================
   TOP HEADER / NAVBAR (Logged in & Public Views)
   ======================================================== */
header.header {
  background-color: var(--surface-container-lowest);
  border-bottom: 1px solid var(--outline-variant);
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header .left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.header .brand-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.header .brand-title .accent {
  color: var(--secondary);
}

.header .brand-logo {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.header .right {
  display: flex;
  align-items: center;
  gap: 12px;
}

#timerform {
  margin: 0;
}

#timerform div {
  display: inline-flex;
  align-items: center;
  background: var(--surface-container-low);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-full);
  padding: 3px 12px;
  gap: 6px;
}

.timerlabel {
  display: none;
}

#timersection input#timer {
  background: transparent;
  border: none;
  color: var(--on-surface-variant);
  font-family: 'SF Mono', 'Roboto Mono', Menlo, Consolas, monospace;
  font-weight: 600;
  font-size: 12.5px;
  padding: 2px 4px;
  text-align: center;
  outline: none;
  width: auto;
  min-width: 250px;
}

/* ========================================================
   USER PROFILE DROPDOWN (Header Right)
   ======================================================== */
.user-profile-dropdown {
  position: relative;
  display: inline-block;
}

.header-user-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-container-low, #f8fafc);
  border: 1px solid var(--outline-variant, #e2e8f0);
  border-radius: var(--radius-full, 9999px);
  padding: 4px 10px 4px 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.header-user-trigger:hover,
.user-profile-dropdown.is-open .header-user-trigger {
  background: var(--surface-container-high, #e2e8f0);
  border-color: var(--outline, #cbd5e1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.header-user-role {
  font-size: 13px;
  font-weight: 600;
  color: var(--primary, #0058be);
}

.header-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--secondary-container, #0058be);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 4px rgba(0, 88, 190, 0.2);
  overflow: hidden;
}

.header-user-avatar-img,
.dropdown-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.header-user-avatar .material-symbols-outlined {
  font-size: 19px;
  line-height: 1;
}

.dropdown-chevron {
  font-size: 18px !important;
  color: var(--on-surface-variant, #64748b);
  transition: transform 0.2s ease;
}

.user-profile-dropdown.is-open .dropdown-chevron {
  transform: rotate(180deg);
}

.user-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 250px;
  background: var(--surface-container-lowest, #ffffff);
  border: 1px solid var(--outline-variant, #e2e8f0);
  border-radius: 14px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
  padding: 8px;
  z-index: 1000;
  animation: dropdownFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.user-profile-dropdown.is-open .user-dropdown-menu {
  display: block;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dropdown-profile-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px 12px 12px;
}

.dropdown-avatar-large {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0058be 0%, #1e40af 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 88, 190, 0.25);
}

.dropdown-avatar-large .material-symbols-outlined {
  font-size: 24px;
}

.dropdown-user-info {
  flex: 1;
  min-width: 0;
}

.dropdown-user-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--on-surface, #0f172a);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-user-role-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #0284c7;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 12px;
  padding: 1px 8px;
  margin-top: 2px;
}

.dropdown-divider {
  height: 1px;
  background: var(--surface-container-high, #f1f5f9);
  margin: 6px 0;
}

.dropdown-section-title {
  font-size: 10.5px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 12px 2px 12px;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--on-surface, #1e293b);
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.15s ease;
}

.dropdown-item:hover {
  background: var(--surface-container, #f1f5f9);
  color: var(--primary, #0058be);
}

.dropdown-item .material-symbols-outlined {
  font-size: 18px;
  color: #64748b;
  transition: color 0.15s ease;
}

.dropdown-item:hover .material-symbols-outlined {
  color: var(--primary, #0058be);
}

.dropdown-item-admin {
  color: #4338ca;
}

.dropdown-item-admin:hover {
  background: #eef2ff;
  color: #3730a3;
}

.dropdown-item-admin .material-symbols-outlined {
  color: #6366f1;
}

.dropdown-item-admin .admin-pill-badge {
  margin-left: auto;
  font-size: 10.5px;
  font-weight: 700;
  background: #e0e7ff;
  color: #4338ca;
  padding: 2px 7px;
  border-radius: 10px;
  text-transform: uppercase;
}

.dropdown-item-logout {
  color: #ef4444;
}

.dropdown-item-logout:hover {
  background: #fef2f2;
  color: #dc2626;
}

.dropdown-item-logout .material-symbols-outlined {
  color: #ef4444;
}

.dropdown-item-logout:hover .material-symbols-outlined {
  color: #dc2626;
}

/* Navigation menu - Modern horizontal pill tabs */
nav.scrollmenu {
  background: var(--surface-container-lowest);
  border-bottom: 1px solid var(--surface-container-high);
  padding: 10px 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

nav.scrollmenu::-webkit-scrollbar {
  display: none;
}

nav.scrollmenu ul.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
  white-space: nowrap;
}

nav.scrollmenu ul.menu li {
  margin: 0;
  flex-shrink: 0;
  position: relative;
}

nav.scrollmenu ul.menu li a,
nav.scrollmenu ul.menu li span.nav-item,
nav.scrollmenu ul.menu li span.active {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-decoration: none;
  transition: all 0.2s ease;
  color: var(--on-surface-variant);
  background: var(--surface);
  border: 1px solid var(--outline-variant);
}

nav.scrollmenu ul.menu li a:hover {
  background: var(--surface-container-high);
  color: var(--on-surface);
  border-color: var(--outline);
}

nav.scrollmenu ul.menu li span.active,
nav.scrollmenu ul.menu li a.active {
  background: var(--secondary);
  color: #ffffff;
  border-color: var(--secondary);
  box-shadow: 0 2px 6px rgba(0, 88, 190, 0.25);
}

nav.scrollmenu ul.menu li span.active .material-symbols-outlined,
nav.scrollmenu ul.menu li a.active .material-symbols-outlined {
  color: #ffffff;
}

nav.scrollmenu ul.menu li .material-symbols-outlined {
  font-size: 18px;
}

/* Submenu dropdown */
nav.scrollmenu ul.menu li ul {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  z-index: 250;
  min-width: 190px;
  list-style: none;
}

nav.scrollmenu ul.menu li:hover > ul,
nav.scrollmenu ul.menu li:focus-within > ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

nav.scrollmenu ul.menu li ul li a {
  width: 100%;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  padding: 8px 12px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--on-surface);
  justify-content: flex-start;
}

nav.scrollmenu ul.menu li ul li a:hover {
  background: var(--surface-container);
  color: var(--secondary);
}

/* ========================================================
   MAIN CONTENT WRAPPER
   ======================================================== */
main.body {
  max-width: 1140px;
  margin: 0 auto;
  padding: 24px 20px 48px 20px;
  width: 100%;
}

/* Clean isolation for login page */
body.login-active {
  background-color: var(--surface-container-low);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.login-active header.header,
body.login-active nav#scrollayer.scrollmenu,
body.login-active nav.scrollmenu,
body.login-active .page-title-banner,
body.login-active main.body > h1,
body.login-active main.body > .content > h1,
body.login-active .content > h1,
body.login-active h1:not(.school-name),
body.login-active footer.footer,
body.login-active a.skiplink {
  display: none !important;
}

body.login-active main.body {
  max-width: 100%;
  padding: 0;
  margin: auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========================================================
   LOGIN PAGE (CBT SMANCA AESTHETICS)
   ======================================================== */
.login-page-wrapper {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.cbt-login-card {
  width: 100%;
  max-width: 440px;
  background-color: var(--surface-container-lowest);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--outline-variant);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin: auto;
}

.cbt-login-header {
  padding: 28px 24px 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  border-bottom: 1px solid var(--surface-container-highest);
  text-align: center;
}

.cbt-login-header .logo-container {
  width: 72px;
  height: 72px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cbt-login-header .logo-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cbt-login-header h1.school-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--on-surface);
  margin: 0;
  line-height: 1.3;
}

.cbt-login-header p.school-subtitle {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--secondary);
  margin: 4px 0 0 0;
  letter-spacing: 0.02em;
}

.cbt-login-body {
  padding: 24px 28px 28px 28px;
  flex: 1;
}

.cbt-info-badge {
  background-color: #eef4ff;
  border: 1px solid #d8e2ff;
  color: #004395;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
}

.cbt-info-badge .material-symbols-outlined {
  color: var(--secondary);
  font-size: 20px;
  flex-shrink: 0;
}

.cbt-error-badge {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #ba1a1a;
  border-radius: var(--radius-md);
  padding: 10px 14px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  animation: shake 0.3s ease;
}

.cbt-error-badge .material-symbols-outlined {
  color: #ba1a1a;
  font-size: 20px;
  flex-shrink: 0;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

.cbt-form-group {
  margin-bottom: 16px;
}

.cbt-form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--on-surface-variant);
  margin-bottom: 6px;
}

.cbt-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.cbt-input-wrapper .input-icon {
  position: absolute;
  left: 12px;
  color: var(--outline);
  font-size: 20px;
  pointer-events: none;
}

.cbt-input-wrapper input[type="text"],
.cbt-input-wrapper input[type="password"] {
  width: 100%;
  height: 46px;
  padding: 10px 14px 10px 42px;
  background-color: var(--surface);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-lg);
  font-family: var(--font-family);
  font-size: 14px;
  color: var(--on-surface);
  transition: all 0.2s ease;
  outline: none;
}

.cbt-input-wrapper input:focus {
  border-color: var(--secondary);
  background-color: var(--surface-container-lowest);
  box-shadow: 0 0 0 3px rgba(0, 88, 190, 0.15);
}

.cbt-input-wrapper .password-toggle-btn {
  position: absolute;
  right: 12px;
  background: none;
  border: none;
  padding: 0;
  color: var(--outline);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cbt-input-wrapper .password-toggle-btn:hover {
  color: var(--on-surface);
}

.cbt-login-btn {
  width: 100%;
  height: 46px;
  background-color: var(--secondary);
  color: var(--on-secondary);
  border: none;
  border-radius: var(--radius-lg);
  font-family: var(--font-family);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  margin-top: 8px;
  box-shadow: 0 2px 4px rgba(0, 88, 190, 0.2);
}

.cbt-login-btn:hover {
  background-color: var(--secondary-hover);
  box-shadow: 0 4px 8px rgba(0, 88, 190, 0.3);
}

.cbt-login-btn:active {
  transform: translateY(1px);
}

.cbt-login-footer {
  background-color: var(--surface-container);
  border-top: 1px solid var(--surface-container-highest);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: var(--on-surface-variant);
  line-height: 1.4;
}

.cbt-login-footer .material-symbols-outlined {
  color: var(--on-surface-variant);
  font-size: 20px;
  flex-shrink: 0;
}

.cbt-login-brand-strip {
  background-color: var(--surface-container-low);
  border-top: 1px solid var(--surface-container-highest);
  padding: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cbt-login-brand-strip img {
  height: 26px;
  opacity: 0.75;
}

.cbt-page-footer {
  text-align: center;
  font-size: 13.5px;
  color: var(--outline);
  margin-top: 24px;
}

.cbt-page-footer strong {
  color: var(--primary);
  font-weight: 700;
}

.cbt-page-footer .cbt-footer-sep {
  margin: 0 10px;
  color: var(--outline-variant);
}

/* ========================================================
   DAFTAR UJIAN / PUBLIC EXAM LIST
   ======================================================== */
.exam-list-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.exam-list-header .header-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background-color: var(--surface-container);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.exam-list-header h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--on-surface);
  margin: 0;
  letter-spacing: -0.01em;
}

.exam-list-header p {
  font-size: 14px;
  color: var(--on-surface-variant);
  margin: 2px 0 0 0;
}

.exam-card-container {
  background-color: var(--surface-container-lowest);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--outline-variant);
  padding: 24px;
  margin-bottom: 32px;
}

.exam-welcome-text {
  font-size: 15px;
  color: var(--on-surface);
  margin-bottom: 16px;
  font-weight: 400;
}

.exam-welcome-text strong {
  color: var(--primary);
  font-weight: 600;
}

.exam-motivation-box {
  background-color: #eef4ff;
  border: 1px solid #d8e2ff;
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #131b2e;
  font-size: 14px;
  line-height: 1.45;
}

.exam-motivation-box .material-symbols-outlined {
  color: var(--secondary);
  font-size: 22px;
  flex-shrink: 0;
  margin-top: 1px;
}

.exam-empty-alert {
  background-color: var(--error);
  color: var(--on-error);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  font-weight: 600;
  box-shadow: 0 2px 4px rgba(186, 26, 26, 0.2);
}

.exam-empty-alert .material-symbols-outlined {
  font-size: 22px;
}

/* ========================================================
   AURA TEST LIST & RESPONSIVE CARDS (Mobile-First)
   ======================================================== */
.aura-test-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
  width: 100%;
}

.aura-test-card {
  background-color: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-xl);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
}

.aura-test-card:hover {
  box-shadow: var(--shadow-card);
  border-color: #93c5fd;
  transform: translateY(-1px);
}

.aura-test-card.is-expired {
  opacity: 0.75;
  background-color: #f8fafc;
}

.aura-test-card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex: 1;
  min-width: 0;
}

.aura-test-main-info {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1.2;
  min-width: 200px;
}

.aura-test-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  background: #eff6ff;
  color: #0058be;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
  border: 1px solid #dbeafe;
}

.aura-test-title-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.aura-test-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.35;
}

.aura-test-title a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

.aura-test-title a:hover {
  color: #0058be;
  text-decoration: underline;
}

.aura-test-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.aura-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.02em;
}

.aura-pill .material-symbols-outlined {
  font-size: 13px;
  line-height: 1;
}

.aura-pill-token {
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.aura-pill-duration {
  background-color: #eff6ff;
  color: #1e40af;
  border: 1px solid #dbeafe;
}

.aura-pill-kkm {
  background-color: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.aura-pill-repeat {
  background-color: #f5f3ff;
  color: #6b21a8;
  border: 1px solid #e9d5ff;
}

.aura-test-meta-grid {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1.8;
  justify-content: flex-start;
}

.aura-meta-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12.5px;
  min-width: 130px;
}

.aura-meta-col .meta-label {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--on-surface-variant);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.aura-meta-col .meta-label .material-symbols-outlined {
  font-size: 14px;
  color: var(--secondary);
}

.aura-meta-col .meta-val {
  font-weight: 600;
  color: var(--on-surface);
  white-space: nowrap;
}

/* Status Badges */
.aura-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.aura-status-badge .material-symbols-outlined {
  font-size: 14px;
}

.aura-status-badge.is-new {
  background-color: #f1f5f9;
  color: #475569;
}

.aura-status-badge.is-progress {
  background-color: #eff6ff;
  color: #1d4ed8;
}

.aura-status-badge.is-done {
  background-color: #f8fafc;
  color: #334155;
  border: 1px solid #e2e8f0;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #2563eb;
  animation: pulseDot 1.5s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.4; }
}

.aura-score-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 12px;
  text-decoration: none;
  font-weight: 700;
  transition: transform 0.15s ease;
}

.aura-score-badge:hover {
  transform: translateY(-1px);
}

.aura-score-badge.is-passed {
  background-color: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.aura-score-badge.is-failed {
  background-color: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.aura-test-card-actions {
  flex-shrink: 0;
  min-width: 140px;
  display: flex;
  justify-content: flex-end;
}

.aura-btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 20px;
  height: 42px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.aura-btn-start {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff !important;
  box-shadow: 0 3px 10px rgba(5, 150, 105, 0.3);
}

.aura-btn-start:hover {
  background: linear-gradient(135deg, #047857 0%, #065f46 100%);
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.45);
  transform: translateY(-1px);
}

.aura-btn-continue {
  background: linear-gradient(135deg, #0058be 0%, #004395 100%);
  color: #ffffff !important;
  box-shadow: 0 3px 10px rgba(0, 88, 190, 0.3);
}

.aura-btn-continue:hover {
  background: linear-gradient(135deg, #004395 0%, #00306c 100%);
  box-shadow: 0 4px 14px rgba(0, 88, 190, 0.45);
  transform: translateY(-1px);
}

.aura-btn-repeat {
  background-color: #f8fafc;
  color: #0058be !important;
  border: 1.5px solid #93c5fd;
}

.aura-btn-repeat:hover {
  background-color: #eff6ff;
  border-color: #0058be;
}

.aura-btn-disabled {
  background-color: #f1f5f9;
  color: #94a3b8 !important;
  cursor: not-allowed;
  border: 1px solid #e2e8f0;
}

/* Fallback Responsive Table */
.testlist-scroll-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  margin-top: 16px;
}

table.testlist {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

table.testlist thead th {
  background-color: var(--surface-container-low);
  color: var(--on-surface-variant);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 12px 16px;
  border-bottom: 1px solid var(--outline-variant);
  text-align: left;
}

table.testlist tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--surface-container-high);
  color: var(--on-surface);
  font-size: 13.5px;
}

table.testlist tbody tr:last-child td {
  border-bottom: none;
}

table.testlist tbody tr:hover {
  background-color: var(--surface);
}

/* Responsive Rules for Test List */
@media (max-width: 960px) {
  .aura-test-card {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
    padding: 18px 20px;
  }
  .aura-test-card-body {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .aura-test-main-info {
    min-width: 0;
  }
  .aura-test-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    background-color: var(--surface-container-low);
    padding: 12px 14px;
    border-radius: var(--radius-md);
  }
  .aura-meta-status {
    grid-column: span 2;
  }
  .aura-test-card-actions {
    width: 100%;
  }
  .aura-btn-action {
    width: 100% !important;
    height: 44px;
  }
}

@media (max-width: 640px) {
  .exam-card-container {
    padding: 16px 12px !important;
    border-radius: var(--radius-lg) !important;
    margin-bottom: 20px;
  }
  .exam-list-header {
    margin-bottom: 16px;
    gap: 12px;
  }
  .exam-list-header .header-icon-box {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
  }
  .exam-list-header h2 {
    font-size: 20px;
  }
  .exam-welcome-text {
    font-size: 13.5px;
    margin-bottom: 12px;
    line-height: 1.45;
  }
  .exam-motivation-box {
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.45;
    gap: 10px;
    margin-bottom: 16px;
  }
  .aura-test-card {
    padding: 14px 12px;
    border-radius: var(--radius-lg);
  }
  .aura-test-icon-box {
    width: 38px;
    height: 38px;
    font-size: 20px;
  }
  .aura-test-title {
    font-size: 15px;
  }
  .aura-test-meta-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 10px 12px;
  }
  .aura-meta-status {
    grid-column: span 1;
  }
  .aura-meta-col {
    min-width: 0;
  }
  .aura-meta-col .meta-val {
    white-space: normal;
    font-size: 12.5px;
  }
  .aura-btn-action {
    height: 46px;
    font-size: 15px;
  }
}

/* Action Buttons & Button System */
.btn,
button.tcebutton,
.buttongreen,
.buttonblue,
.xmlbutton,
input[type="submit"],
input[type="button"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 20px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  line-height: 1;
  user-select: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}

.btn:hover,
button.tcebutton:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.btn .material-symbols-outlined,
.btn-icon {
  font-size: 19px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-primary {
  background: #0058be;
  color: #ffffff !important;
  border-color: #0058be;
}
.btn-primary:hover {
  background: #004bb0;
  border-color: #004bb0;
}

.btn-success,
.buttongreen {
  background-color: var(--success);
  color: #ffffff !important;
}
.btn-success:hover,
.buttongreen:hover {
  background-color: #007a54;
  box-shadow: 0 4px 8px rgba(0, 150, 104, 0.25);
}

.btn-danger {
  background: #ba1a1a;
  color: #ffffff !important;
  border-color: #ba1a1a;
}
.btn-danger:hover {
  background: #9b1414;
  border-color: #9b1414;
}

.btn-secondary {
  background: #f1f5f9;
  color: #334155 !important;
  border-color: #cbd5e1;
}
.btn-secondary:hover {
  background: #e2e8f0;
  color: #0f172a !important;
}

.btn-outline {
  background: #ffffff;
  color: #475569 !important;
  border-color: #cbd5e1;
}
.btn-outline:hover {
  background: #f8fafc;
  color: #0f172a !important;
  border-color: #94a3b8;
}

.buttonblue {
  background-color: var(--secondary-container);
  color: #ffffff !important;
}
.buttonblue:hover {
  background-color: var(--secondary);
  box-shadow: 0 2px 4px rgba(33, 112, 228, 0.25);
}

.xmlbutton {
  background-color: var(--secondary);
  color: #ffffff !important;
}
.xmlbutton:hover {
  background-color: var(--secondary-hover);
  box-shadow: 0 2px 4px rgba(0, 88, 190, 0.25);
}

.row.row-buttons {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

/* ========================================================
   TEST EXECUTION (Soal & Jawaban)
   ======================================================== */
#qTopBar {
  background: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  border-bottom: none;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#qNum {
  background: var(--secondary-container);
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  padding: 4px 14px;
  border-radius: var(--radius-full);
}

#fontResizer {
  display: flex;
  align-items: center;
  gap: 8px;
}

#fontplus, #fontminus {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-md);
  background: var(--surface);
  cursor: pointer;
  font-weight: bold;
  user-select: none;
}
#fontplus:hover, #fontminus:hover {
  background: var(--surface-container);
}

#unsure {
  padding: 6px 12px;
  border-radius: var(--radius-md);
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

#testform {
  background: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-card);
}

/* Standard Questions & Answer list */
.qtext {
  font-size: 16px;
  font-weight: 500;
  color: var(--primary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.answertable {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 10px;
}

.answertable td {
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--outline-variant);
  transition: all 0.2s ease;
}

.answertable tr:hover td {
  border-color: var(--secondary);
  background: #f0f7ff;
}

/* ========================================================
   COMPACT & MODERN FORM SYSTEM (Public Area)
   ======================================================== */
.tceformbox,
.gsoformbox,
form.form-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 24px 28px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  margin-bottom: 24px;
  width: 100%;
  box-sizing: border-box;
}

.tceformbox form,
.gsoformbox form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 22px;
  row-gap: 16px;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}

.row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 0;
}

.row > .label,
.row > span.label {
  width: 100%;
  min-width: 0;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  padding-top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.row > .label label,
.row > span.label label {
  cursor: pointer;
  color: #334155;
  font-weight: 600;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.row > .formw,
.row > span.formw {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  position: relative;
}

abbr.required {
  color: #f43f5e;
  font-weight: 700;
  text-decoration: none;
  margin-left: 2px;
}

input[type="text"],
input[type="password"],
input[type="number"],
input[type="email"],
input[type="date"],
input[type="datetime-local"],
select {
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #0f172a;
  font-family: var(--font-family);
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

select {
  padding-right: 34px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' height='18' viewBox='0 -960 960 960' width='18' fill='%2364748b'%3E%3Cpath d='M480-345 240-585l56-56 184 184 184-184 56 56-240 240Z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #2563eb;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

input.disabled,
input[readonly="readonly"],
input:disabled,
select:disabled,
textarea.disabled {
  background: #f8fafc !important;
  color: #334155 !important;
  border-color: #e2e8f0 !important;
  font-family: 'SF Mono', 'Roboto Mono', Menlo, Consolas, monospace;
  font-size: 12.5px;
  font-weight: 500;
  cursor: default;
}

span.labeldesc {
  display: block;
  width: 100%;
  font-size: 11.5px;
  color: #64748b;
  margin-top: 3px;
  line-height: 1.4;
  font-style: italic;
}

.row:has(hr),
.row:has(textarea),
.row:has(table),
.row:has(fieldset),
.row.row-full,
.row.row-buttons,
.row:has(button.btn, button.tcebutton, input[type="submit"]) {
  grid-column: 1 / -1;
}

.row.row-buttons,
.row:has(button[type="submit"]),
.row:has(input[type="submit"]) {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding-top: 16px;
  margin-top: 8px;
  border-top: 1px solid #e2e8f0;
}

.btn,
button.tcebutton,
input[type="submit"],
input[type="button"],
input[type="reset"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid transparent;
  text-decoration: none;
  line-height: 1;
  user-select: none;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  white-space: nowrap;
  box-sizing: border-box;
}

.btn:hover,
button.tcebutton:hover,
input[type="submit"]:hover,
input[type="button"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
}

.btn-primary {
  background: #1d4ed8;
  color: #ffffff;
  border-color: #1d4ed8;
}
.btn-primary:hover {
  background: #1e40af;
  border-color: #1e40af;
}

.btn-secondary,
.btn-outline,
.btn-clear,
.btn-cancel {
  background: #ffffff;
  color: #334155;
  border-color: #cbd5e1;
}
.btn-secondary:hover,
.btn-outline:hover,
.btn-clear:hover,
.btn-cancel:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #94a3b8;
}

.btn-success {
  background: #059669;
  color: #ffffff;
  border-color: #059669;
}
.btn-success:hover {
  background: #047857;
  border-color: #047857;
}

.btn-danger {
  background: #dc2626;
  color: #ffffff;
  border-color: #dc2626;
}
.btn-danger:hover {
  background: #b91c1c;
  border-color: #b91c1c;
}

.btn .material-symbols-outlined,
.btn-icon {
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ========================================================
   GLOBAL ERROR & MESSAGE BOXES
   ======================================================== */
div.error, div.warning, div.confirmbox {
  border-radius: var(--radius-lg);
  padding: 14px 18px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
}

div.error {
  background-color: var(--error-container);
  color: var(--on-error-container);
  border: 1px solid rgba(186, 26, 26, 0.3);
}

div.warning {
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

div.confirmbox {
  background-color: var(--success-container);
  color: #065f46;
  border: 1px solid rgba(0, 150, 104, 0.3);
}

/* ========================================================
   FOOTER
   ======================================================== */
footer.footer {
  background-color: var(--surface-container-lowest);
  border-top: 1px solid var(--outline-variant);
  padding: 20px 24px;
  text-align: center;
  font-size: 13.5px;
  color: var(--on-surface-variant);
}

.cbt-footer-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.cbt-footer-text {
  margin: 0;
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.6;
}

.cbt-footer-brand {
  font-weight: 700;
  color: #0f172a;
}

.cbt-footer-divider,
.cbt-footer-sep {
  margin: 0 10px;
  color: #cbd5e1;
}

footer.footer .userbar {
  margin-bottom: 10px;
}

footer.footer .minibutton {
  margin: 8px 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

footer.footer .minibutton a,
footer.footer .minibutton a.white {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--on-surface-variant) !important;
  text-decoration: none !important;
  border-radius: var(--radius-full);
  background: var(--surface-container-low);
  border: 1px solid var(--outline-variant);
  transition: all 0.2s ease;
}

footer.footer .minibutton a:hover,
footer.footer .minibutton a.white:hover {
  color: var(--secondary) !important;
  background: var(--surface-container-high);
  border-color: var(--secondary);
}

footer.footer .minibutton span {
  display: none !important;
}

footer.footer .langselector a {
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  color: var(--on-surface-variant);
  text-decoration: none;
}

footer.footer .langselector a:hover {
  color: var(--secondary);
  text-decoration: underline;
}

footer.footer .langselector span.selected {
  font-weight: 700;
  color: var(--secondary);
  background: var(--surface-container);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
}

@media (max-width: 768px) {
  header.header {
    height: 56px !important;
    padding: 0 14px !important;
  }
  .header .brand-title {
    font-size: 16px !important;
  }
  .header .brand-logo {
    height: 28px !important;
  }
  #timersection #timerform {
    display: none !important;
  }
  .header-user-trigger {
    padding: 3px 6px 3px 3px !important;
    gap: 4px !important;
  }
  .header-user-role {
    display: none !important;
  }
  .user-dropdown-menu {
    right: 0 !important;
    max-width: calc(100vw - 24px) !important;
    min-width: 240px !important;
  }
  nav.scrollmenu {
    padding: 8px 12px !important;
  }
  main.body {
    padding: 16px 12px 36px 12px !important;
  }
  .exam-list-header {
    margin-bottom: 16px;
    gap: 12px;
  }
  .exam-list-header .header-icon-box {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-md);
  }
  .exam-list-header .header-icon-box .material-symbols-outlined {
    font-size: 22px !important;
  }
  .exam-list-header h2 {
    font-size: 18px;
  }
  .exam-list-header p {
    font-size: 12.5px;
  }
  .exam-card-container {
    padding: 16px 14px !important;
    border-radius: var(--radius-lg) !important;
    margin-bottom: 20px !important;
  }
  .exam-welcome-text {
    font-size: 13.5px !important;
    margin-bottom: 12px !important;
  }
  .exam-motivation-box {
    padding: 12px 14px !important;
    font-size: 13px !important;
    gap: 10px !important;
    border-radius: var(--radius-md) !important;
    margin-bottom: 16px !important;
  }
  .exam-motivation-box .material-symbols-outlined {
    font-size: 20px;
  }
  .exam-empty-alert {
    padding: 12px 14px !important;
    font-size: 13.5px !important;
    border-radius: var(--radius-md) !important;
    gap: 8px !important;
  }
  .exam-empty-alert .material-symbols-outlined {
    font-size: 20px;
  }
  .tceformbox,
  .gsoformbox,
  form.form-box {
    padding: 16px 14px !important;
    border-radius: 12px !important;
    margin-bottom: 16px !important;
  }
  .tceformbox form,
  .gsoformbox form {
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
  }
  .row.row-buttons,
  .row:has(button[type="submit"]),
  .row:has(input[type="submit"]) {
    flex-direction: column !important;
    width: 100% !important;
  }
  .row.row-buttons button,
  .row.row-buttons .btn {
    width: 100% !important;
    justify-content: center !important;
    height: 42px !important;
  }
  .cbt-login-card {
    border-radius: var(--radius-lg);
  }
  .cbt-login-body {
    padding: 20px 16px;
  }
  footer.footer {
    padding: 20px 12px;
  }
  footer.footer .minibutton {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }
  footer.footer .langselector {
    font-size: 11.5px;
    line-height: 1.8;
  }
}

/* ========================================================
   CBT EXAM INTERFACE (AURA ENTERPRISE ENGINE)
   ======================================================== */

/* --- 1. Halaman Konfirmasi Mulai Ujian (tce_test_start.php) --- */
.exam-start-wrapper {
  max-width: 900px;
  margin: 20px auto 40px auto;
  background-color: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.exam-start-container {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.exam-start-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--surface-container-high);
}

.exam-start-icon-box {
  width: 54px;
  height: 54px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #0058be 0%, #1e40af 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 10px rgba(0, 88, 190, 0.25);
}

.exam-start-icon-box .material-symbols-outlined {
  font-size: 30px;
}

.exam-badge-sub {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #0058be;
  text-transform: uppercase;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  display: inline-block;
  margin-bottom: 6px;
}

.exam-start-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.3;
}

.exam-start-desc {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #0058be;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  font-size: 14px;
  color: var(--on-surface-variant);
  line-height: 1.6;
}

.exam-start-desc .desc-icon {
  color: #0058be;
  font-size: 22px;
  flex-shrink: 0;
  margin-top: 1px;
}

.exam-specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.exam-spec-card {
  background-color: var(--surface-container-low);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.spec-card-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--surface-container-highest);
}

.spec-card-title .material-symbols-outlined {
  font-size: 18px;
  color: #0058be;
}

.spec-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.spec-label {
  color: var(--on-surface-variant);
}

.spec-value {
  font-weight: 600;
  color: var(--on-surface);
}

.spec-item.highlight .spec-label {
  font-weight: 600;
}

.badge-blue {
  background-color: #dbeafe;
  color: #1e40af;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 12px;
}

.badge-indigo {
  background-color: #e0e7ff;
  color: #3730a3;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 12px;
}

.badge-amber {
  background-color: #fef3c7;
  color: #92400e;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 12px;
}

.text-success {
  color: #009668 !important;
}

.text-danger {
  color: #dc2626 !important;
}

.exam-start-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--surface-container-high);
}

.btn-exam-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #0058be 0%, #1e40af 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 88, 190, 0.3);
  transition: all 0.2s ease;
}

.btn-exam-primary:hover {
  background: linear-gradient(135deg, #004395 0%, #1d4ed8 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 88, 190, 0.4);
}

.btn-exam-cancel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: var(--surface-container-lowest);
  color: var(--on-surface-variant);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-md);
  padding: 14px 22px;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-exam-cancel:hover {
  background-color: var(--surface-container-low);
  color: var(--primary);
  text-decoration: none;
  border-color: var(--outline);
}

/* Loading Backdrop */
.exam-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 9990;
}

.exam-loader-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #ffffff;
  padding: 36px 40px;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 420px;
  width: 90%;
}

.exam-spinner {
  width: 46px;
  height: 46px;
  border: 4px solid #e2e8f0;
  border-top-color: #0058be;
  border-radius: 50%;
  animation: examSpin 0.9s linear infinite;
  margin-bottom: 20px;
}

@keyframes examSpin {
  to { transform: rotate(360deg); }
}

.exam-loader-title {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.exam-loader-text {
  margin: 0;
  font-size: 13.5px;
  color: var(--on-surface-variant);
}

/* --- 2. Halaman Pelaksanaan Ujian (tce_test_execute.php) --- */
.cbt-exam-container {
  max-width: 1040px;
  margin: 12px auto 40px auto;
  padding: 0 16px;
}

/* Topbar CBT Ujian */
.cbt-exam-topbar {
  background-color: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-lg);
  padding: 12px 20px;
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-card);
  gap: 16px;
}

.cbt-brand-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cbt-brand-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: #eff6ff;
  color: #0058be;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}

.cbt-brand-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cbt-test-name {
  font-size: 15.5px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.3;
}

.cbt-student-name {
  font-size: 12.5px;
  color: var(--on-surface-variant);
  display: flex;
  align-items: center;
  gap: 4px;
}

.user-tiny-icon {
  font-size: 14px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cbt-timer-card {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-md);
  padding: 8px 14px;
  font-size: 16px;
  font-weight: 800;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  color: #0f172a;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.cbt-timer-card .timer-icon {
  font-size: 18px;
  color: #0058be;
}

.cbt-timer-card.is-warning {
  background-color: #fef2f2;
  border-color: #fca5a5;
  color: #b91c1c;
  animation: timerPulse 1.5s infinite;
}

.cbt-timer-card.is-warning .timer-icon {
  color: #dc2626;
}

@keyframes timerPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

.cbt-btn-fullscreen {
  background-color: var(--surface-container-low);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-md);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--on-surface-variant);
  cursor: pointer;
  transition: all 0.2s ease;
}

.cbt-btn-fullscreen:hover {
  background-color: var(--surface-container-high);
  color: var(--primary);
}

/* Lembar Soal (tcecontentbox) */
.cbt-exam-container .tcecontentbox {
  background-color: var(--surface-container-lowest) !important;
  border: 1px solid var(--outline-variant) !important;
  border-radius: var(--radius-xl) !important;
  padding: 28px !important;
  box-shadow: var(--shadow-card) !important;
  margin-bottom: 20px !important;
  font-size: var(--cbt-font-size, 16px);
  line-height: 1.75;
  color: var(--on-surface);
}

.cbt-exam-container .tcecontentbox img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 10px 0;
}

.cbt-exam-container .tcecontentbox hr {
  border: none;
  border-top: 1px solid var(--surface-container-high);
  margin: 20px 0;
}

/* Question Content Formatted Lists (nested inside question description) */
.cbt-exam-container .tcecontentbox ol:not(.answer):not(.answer_inline),
.cbt-exam-container .tcecontentbox ul {
  padding-left: 24px;
  margin: 12px 0;
}

.cbt-exam-container .tcecontentbox ol:not(.answer):not(.answer_inline) li,
.cbt-exam-container .tcecontentbox ul li {
  margin-bottom: 6px;
  line-height: 1.6;
}

/* Reset fieldset & legend for answergroup */
.cbt-exam-container fieldset.answergroup {
  border: none !important;
  padding: 0 !important;
  margin: 16px 0 0 0 !important;
}

.cbt-exam-container fieldset.answergroup legend {
  display: none !important;
}

/* Sembunyikan header/footer legacy saat kontainer CBT aktif */
body:has(.cbt-exam-container) header.header,
body:has(.cbt-exam-container) #scrollayer,
body:has(.cbt-exam-container) footer.footer {
  display: none !important;
}

/* Opsi Pilihan Jawaban (ol.answer) */
.cbt-exam-container ol.answer,
.cbt-exam-container ol.answer_inline {
  list-style: none;
  counter-reset: choice-counter;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  margin: 16px 0 0 0;
}

.cbt-exam-container ol.answer li,
.cbt-exam-container ol.answer_inline li {
  counter-increment: choice-counter;
  position: relative;
  display: flex;
  align-items: flex-start;
  padding: 16px 20px 16px 60px;
  background-color: var(--surface-container-lowest);
  border: 2px solid #e2e8f0;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: all 0.2s ease;
}

.cbt-exam-container ol.answer li::before,
.cbt-exam-container ol.answer_inline li::before {
  content: counter(choice-counter, upper-alpha);
  position: absolute;
  left: 18px;
  top: 16px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f1f5f9;
  color: #475569;
  font-weight: 800;
  font-size: 13.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbd5e1;
  transition: all 0.2s ease;
}

.cbt-exam-container ol.answer li:hover {
  border-color: #93c5fd;
  background-color: #f8fafc;
}

.cbt-exam-container ol.answer li.selected,
.cbt-exam-container ol.answer li:has(input:checked) {
  border-color: #0058be !important;
  background-color: #eff6ff !important;
  box-shadow: 0 0 0 1px #0058be;
}

.cbt-exam-container ol.answer li.selected::before,
.cbt-exam-container ol.answer li:has(input:checked)::before {
  background: #0058be !important;
  color: #ffffff !important;
  border-color: #0058be !important;
  box-shadow: 0 2px 6px rgba(0, 88, 190, 0.4);
}

.cbt-exam-container ol.answer li label,
.cbt-exam-container ol.answer_inline li label {
  cursor: pointer;
  width: 100%;
  font-size: calc(var(--cbt-font-size, 16px) - 0.5px);
  color: var(--on-surface);
  margin: 0;
}

.cbt-exam-container ol.answer li input[type="radio"],
.cbt-exam-container ol.answer li input[type="checkbox"] {
  display: none !important;
}

/* Textarea untuk Soal Uraian */
.cbt-exam-container textarea#answertext {
  width: 100%;
  min-height: 140px;
  padding: 14px 16px;
  border: 2px solid #cbd5e1;
  border-radius: var(--radius-lg);
  font-family: var(--font-family);
  font-size: 15px;
  line-height: 1.6;
  background-color: #ffffff;
  color: var(--on-surface);
  transition: all 0.2s ease;
}

.cbt-exam-container textarea#answertext:focus {
  outline: none;
  border-color: #0058be;
  box-shadow: 0 0 0 3px rgba(0, 88, 190, 0.15);
}

/* Bilah Aksi Bawah (exam-action-bar) */
.exam-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-lg);
  padding: 12px 18px;
  box-shadow: var(--shadow-card);
  margin-top: 16px;
  gap: 12px;
}

.action-bar-left,
.action-bar-center,
.action-bar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-exam-nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.btn-exam-prev {
  background-color: #f8fafc;
  border-color: #cbd5e1;
  color: #334155;
}

.btn-exam-prev:hover:not(:disabled) {
  background-color: #e2e8f0;
  color: #0f172a;
}

.btn-exam-prev:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.btn-exam-ragu {
  background-color: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}

.btn-exam-ragu:hover {
  background-color: #fef3c7;
}

.btn-exam-ragu.is-active {
  background-color: #f59e0b !important;
  border-color: #d97706 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.4);
}

.btn-exam-save {
  background-color: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

.btn-exam-save:hover {
  background-color: #d1fae5;
  border-color: #6ee7b7;
  color: #047857;
}

.btn-exam-palette-trigger {
  background-color: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

.btn-exam-palette-trigger:hover {
  background-color: #eff6ff;
  border-color: #93c5fd;
  color: #0058be;
}

.btn-exam-next {
  background-color: #0058be;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 88, 190, 0.3);
}

.btn-exam-next:hover:not(:disabled) {
  background-color: #004395;
}

.btn-exam-finish {
  background-color: #059669;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
}

.btn-exam-finish:hover {
  background-color: #047857;
}

/* Question Palette Drawer / Modal */
.palette-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(2px);
  z-index: 9900;
}

.palette-drawer {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #ffffff;
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  width: 90%;
  max-width: 580px;
  max-height: 85vh;
  z-index: 9950;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.palette-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--outline-variant);
}

.palette-drawer-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.palette-drawer-title .material-symbols-outlined {
  color: #0058be;
}

.palette-close-btn {
  background: none;
  border: none;
  color: var(--on-surface-variant);
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
}

.palette-close-btn:hover {
  background-color: var(--surface-container-low);
  color: var(--primary);
}

.palette-drawer-body {
  padding: 20px;
  overflow-y: auto;
}

.palette-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(46px, 1fr));
  gap: 10px;
}

.palette-btn {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 700;
  border: 1.5px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.palette-btn.is-unanswered {
  background-color: #f8fafc;
  border-color: #cbd5e1;
  color: #475569;
}

.palette-btn.is-unanswered:hover {
  background-color: #e2e8f0;
  border-color: #94a3b8;
}

.palette-btn.is-answered {
  background-color: #10b981;
  border-color: #059669;
  color: #ffffff;
}

.palette-btn.is-unsure {
  background-color: #f59e0b !important;
  border-color: #d97706 !important;
  color: #ffffff !important;
}

.palette-btn.is-current {
  outline: 3px solid #2563eb;
  outline-offset: 2px;
  font-size: 15px;
}

.palette-drawer-footer {
  padding: 14px 20px;
  background-color: var(--surface-container-low);
  border-top: 1px solid var(--outline-variant);
}

.palette-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--on-surface-variant);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-pill {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  display: inline-block;
}

.legend-pill.is-answered { background-color: #10b981; }
.legend-pill.is-unsure { background-color: #f59e0b; }
.legend-pill.is-unanswered { background-color: #f8fafc; border: 1.5px solid #cbd5e1; }
.legend-pill.is-current { outline: 2px solid #2563eb; background: #ffffff; }

/* Modal Konfirmasi Selesai Ujian */
.cbt-confirm-modal-wrapper {
  max-width: 600px;
  margin: 30px auto;
  padding: 0 16px;
}

.cbt-confirm-card {
  background-color: var(--surface-container-lowest);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cbt-confirm-header {
  text-align: center;
}

.cbt-confirm-header .icon-header {
  font-size: 48px;
  color: #0058be;
  margin-bottom: 8px;
}

.cbt-confirm-header h2 {
  margin: 0 0 8px 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
}

.cbt-confirm-header p {
  margin: 0;
  font-size: 14px;
  color: var(--on-surface-variant);
}

.cbt-alert {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.5;
}

.cbt-alert-warning {
  background-color: #fffbeb;
  border: 1px solid #fde68a;
  color: #92400e;
}

.cbt-alert-danger {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.cbt-alert-success {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.cbt-confirm-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 10px;
}

.btn-confirm-finish {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-md);
  padding: 12px 24px;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
  transition: all 0.2s ease;
}

.btn-confirm-finish:hover {
  background: linear-gradient(135deg, #047857 0%, #065f46 100%);
}

.btn-confirm-back {
  background-color: var(--surface-container-lowest);
  color: var(--on-surface-variant);
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-md);
  padding: 12px 20px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-confirm-back:hover {
  background-color: var(--surface-container-low);
  color: var(--primary);
}

/* Anti-Cheat Overlay */
.cbt-anti-cheat-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cbt-anti-cheat-box {
  background-color: #1e293b;
  border: 1px solid #334155;
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  color: #ffffff;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.ac-icon {
  font-size: 54px;
  color: #f59e0b;
  animation: acPulse 1.5s infinite;
}

@keyframes acPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.ac-title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  color: #f8fafc;
}

.ac-msg {
  margin: 0;
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.6;
}

.ac-countdown-wrap {
  margin-top: 14px;
  background: #0f172a;
  border: 1.5px solid #334155;
  border-radius: var(--radius-lg);
  padding: 14px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ac-countdown-num {
  font-size: 42px;
  font-weight: 900;
  color: #38bdf8;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.ac-countdown-label {
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
}

/* Responsiveness on Mobile */
@media (max-width: 768px) {
  .exam-start-wrapper {
    padding: 20px 16px;
    margin: 12px auto;
  }
  .exam-start-actions {
    flex-direction: column;
    width: 100%;
  }
  .btn-exam-primary,
  .btn-exam-cancel {
    width: 100%;
  }
  .cbt-exam-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
  }
  .topbar-right {
    width: 100%;
    justify-content: space-between;
  }
  .cbt-exam-container .tcecontentbox {
    padding: 18px 14px !important;
  }
  .cbt-exam-container ol.answer li,
  .cbt-exam-container ol.answer_inline li {
    padding: 14px 14px 14px 48px;
  }
  .cbt-exam-container ol.answer li::before,
  .cbt-exam-container ol.answer_inline li::before {
    left: 12px;
    top: 14px;
    width: 26px;
    height: 26px;
    font-size: 12px;
  }
  .exam-action-bar {
    flex-wrap: wrap;
    padding: 12px 10px;
  }
  .action-bar-left,
  .action-bar-center,
  .action-bar-right {
    flex: 1 1 auto;
    justify-content: center;
  }
  .btn-exam-nav {
    padding: 9px 12px;
    font-size: 13px;
  }
  .palette-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* ==========================================================================
   Bilah Alat Bantu Soal CBT (Exam Accessibility & Utility Bar)
   ========================================================================== */
/* Info Icon Inline di Topbar */
.cbt-info-inline-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  color: #0284c7;
  text-decoration: none;
  cursor: pointer;
  margin-left: 6px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.cbt-info-inline-btn .material-symbols-outlined {
  font-size: 18px;
  font-variation-settings: 'FILL' 1;
}

.cbt-info-inline-btn:hover {
  transform: scale(1.2);
  color: #0369a1;
}

/* Tombol Toggle Alat Bantu di Topbar Kanan */
.cbt-btn-topbar-tools {
  background: var(--surface-container-lowest, #ffffff);
  border: 1px solid var(--outline-variant, #e2e8f0);
  border-radius: var(--radius-md, 8px);
  padding: 0 12px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--on-surface-variant, #475569);
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
}

.cbt-btn-topbar-tools:hover {
  background-color: var(--surface-container-high, #f1f5f9);
  color: var(--primary, #0058be);
  border-color: #93c5fd;
}

.cbt-btn-topbar-tools.is-active {
  background-color: #eff6ff;
  border-color: #93c5fd;
  color: #0058be;
}

.cbt-btn-topbar-tools .material-symbols-outlined {
  font-size: 18px;
}

.cbt-exam-tools-wrapper {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Tombol Toggle Pill (Sesuai Referensi Gambar) */
.cbt-tools-toggle-bar {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cbt-tools-toggle-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--surface-container-lowest, #ffffff);
  border: 1px solid #e2e8f0;
  padding: 6px 16px;
  border-radius: 9999px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: all 0.2s ease;
  user-select: none;
}

.cbt-tools-toggle-pill:hover {
  background-color: #f1f5f9;
  color: #0058be;
  border-color: #cbd5e1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.cbt-tools-toggle-pill.is-active {
  background-color: #eff6ff;
  border-color: #93c5fd;
  color: #0058be;
}

.cbt-tools-toggle-pill .pill-icon {
  font-size: 17px;
  color: #0058be;
}

.cbt-tools-toggle-pill .pill-chevron {
  font-size: 18px;
  transition: transform 0.2s ease;
}

.cbt-tools-collapsible-content {
  animation: cbtFadeIn 0.2s ease;
}

.cbt-exam-tools-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 18px;
  background-color: var(--surface-container-lowest, #ffffff);
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  gap: 16px;
}

.cbt-tools-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cbt-tools-center {
  justify-content: center;
}

.cbt-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: #64748b;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 9999px;
  transition: all 0.2s ease;
  user-select: none;
  text-decoration: none;
}

.cbt-tool-btn:hover {
  background-color: #f1f5f9;
  color: #0f172a;
}

.cbt-tool-btn:active {
  transform: scale(0.97);
}

.cbt-tool-icon {
  font-size: 18px !important;
}

.cbt-zoom-btn {
  padding: 4px 10px;
  min-width: 34px;
  justify-content: center;
}

.cbt-zoom-symbol {
  font-size: 22px;
  font-weight: 700;
  line-height: 1;
}

.cbt-tool-close-btn {
  color: #94a3b8;
}

.cbt-tool-close-btn:hover {
  background-color: #fee2e2;
  color: #ef4444;
}

/* Modal Komentar Ujian */
.cbt-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  animation: cbtFadeIn 0.2s ease;
}

@keyframes cbtFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.cbt-modal-dialog {
  background: #ffffff;
  border-radius: var(--radius-xl, 16px);
  width: 100%;
  max-width: 540px;
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.cbt-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
}

.cbt-modal-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #0058be;
}

.cbt-modal-title h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
}

.cbt-modal-close {
  background: transparent;
  border: none;
  font-size: 24px;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  transition: color 0.15s, background-color 0.15s;
}

.cbt-modal-close:hover {
  color: #0f172a;
  background: #f1f5f9;
}

.cbt-modal-body {
  padding: 20px;
}

.cbt-modal-hint {
  font-size: 13.5px;
  color: #64748b;
  margin-top: 0;
  margin-bottom: 12px;
}

.cbt-modal-body label {
  display: none !important;
}

.cbt-modal-body textarea#testcomment {
  width: 100%;
  min-height: 120px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  resize: vertical;
  box-sizing: border-box;
  color: #0f172a;
  background-color: #f8fafc;
}

.cbt-modal-body textarea#testcomment:focus {
  outline: none;
  border-color: #0058be;
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 88, 190, 0.15);
}

.cbt-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}

.cbt-btn-modal-close {
  padding: 8px 16px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  font-weight: 600;
  font-size: 13.5px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cbt-btn-modal-close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.cbt-btn-modal-save {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border: none;
  background: #0058be;
  color: #ffffff;
  font-weight: 600;
  font-size: 13.5px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.cbt-btn-modal-save:hover {
  background: #004395;
}

@keyframes cbtSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.cbt-spin {
  animation: cbtSpin 1s linear infinite;
  display: inline-block;
}

/* ==========================================================================
   Mode Gelap (Dark Mode) CBT Komprehensif
   ========================================================================== */
body.dark-mode {
  background-color: #0b1120 !important;
  color: #f1f5f9 !important;
}

body.dark-mode .cbt-exam-container {
  color: #f1f5f9 !important;
}

body.dark-mode .cbt-exam-topbar {
  background-color: #1e293b !important;
  border-color: #334155 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

body.dark-mode .cbt-test-name {
  color: #f8fafc !important;
}

body.dark-mode .cbt-student-name {
  color: #94a3b8 !important;
}

body.dark-mode .cbt-timer-card {
  background-color: #0f172a !important;
  border-color: #334155 !important;
  color: #38bdf8 !important;
}

body.dark-mode .cbt-timer-card .timer-icon {
  color: #38bdf8 !important;
}

body.dark-mode .cbt-timer-card.is-warning {
  background-color: rgba(239, 68, 68, 0.15) !important;
  border-color: #ef4444 !important;
  color: #f87171 !important;
}

body.dark-mode .cbt-btn-fullscreen {
  color: #94a3b8 !important;
}

body.dark-mode .cbt-btn-fullscreen:hover {
  background-color: #334155 !important;
  color: #f8fafc !important;
}

body.dark-mode .cbt-info-inline-btn {
  color: #38bdf8 !important;
}

body.dark-mode .cbt-btn-topbar-tools {
  background-color: #0f172a !important;
  border-color: #334155 !important;
  color: #cbd5e1 !important;
}

body.dark-mode .cbt-btn-topbar-tools:hover,
body.dark-mode .cbt-btn-topbar-tools.is-active {
  background-color: #334155 !important;
  color: #38bdf8 !important;
  border-color: #0284c7 !important;
}

body.dark-mode .cbt-tools-toggle-pill {
  background-color: #1e293b !important;
  border-color: #334155 !important;
  color: #cbd5e1 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
}

body.dark-mode .cbt-tools-toggle-pill:hover,
body.dark-mode .cbt-tools-toggle-pill.is-active {
  background-color: #334155 !important;
  color: #38bdf8 !important;
  border-color: #0284c7 !important;
}

body.dark-mode .cbt-tools-toggle-pill .pill-icon {
  color: #38bdf8 !important;
}

body.dark-mode .cbt-tool-close-btn:hover {
  background-color: rgba(239, 68, 68, 0.2) !important;
  color: #f87171 !important;
}

body.dark-mode .cbt-exam-tools-bar {
  background-color: #1e293b !important;
  border-color: #334155 !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25) !important;
}

body.dark-mode .cbt-tool-btn {
  color: #94a3b8 !important;
}

body.dark-mode .cbt-tool-btn:hover {
  background-color: #334155 !important;
  color: #f8fafc !important;
}

body.dark-mode .cbt-exam-container .tcecontentbox {
  background-color: #1e293b !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
}

body.dark-mode .cbt-exam-container .tcecontentbox hr {
  border-top-color: #334155 !important;
}

body.dark-mode .cbt-exam-container ol.answer li,
body.dark-mode .cbt-exam-container ol.answer_inline li {
  background-color: #1e293b !important;
  border-color: #334155 !important;
  color: #e2e8f0 !important;
}

body.dark-mode .cbt-exam-container ol.answer li::before,
body.dark-mode .cbt-exam-container ol.answer_inline li::before {
  background: #0f172a !important;
  color: #94a3b8 !important;
  border-color: #334155 !important;
}

body.dark-mode .cbt-exam-container ol.answer li:hover {
  border-color: #60a5fa !important;
  background-color: #27354a !important;
}

body.dark-mode .cbt-exam-container ol.answer li.selected,
body.dark-mode .cbt-exam-container ol.answer li:has(input:checked) {
  border-color: #3b82f6 !important;
  background-color: rgba(37, 99, 235, 0.2) !important;
  box-shadow: 0 0 0 1px #3b82f6 !important;
}

body.dark-mode .cbt-exam-container ol.answer li.selected::before,
body.dark-mode .cbt-exam-container ol.answer li:has(input:checked)::before {
  background: #2563eb !important;
  color: #ffffff !important;
  border-color: #2563eb !important;
}

body.dark-mode .cbt-exam-container ol.answer li label {
  color: #f1f5f9 !important;
}

body.dark-mode .cbt-exam-container textarea#answertext {
  background-color: #0f172a !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}

body.dark-mode .cbt-exam-container textarea#answertext:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25) !important;
}

body.dark-mode .exam-action-bar {
  background-color: #1e293b !important;
  border-color: #334155 !important;
}

body.dark-mode .btn-exam-prev {
  background-color: #0f172a !important;
  border-color: #334155 !important;
  color: #cbd5e1 !important;
}

body.dark-mode .btn-exam-prev:hover:not(:disabled) {
  background-color: #334155 !important;
  color: #f8fafc !important;
}

body.dark-mode .btn-exam-palette-trigger {
  background-color: #0f172a !important;
  border-color: #334155 !important;
  color: #cbd5e1 !important;
}

body.dark-mode .btn-exam-palette-trigger:hover {
  background-color: #334155 !important;
  color: #60a5fa !important;
}

body.dark-mode .palette-drawer {
  background-color: #1e293b !important;
  color: #f8fafc !important;
}

body.dark-mode .palette-drawer-header {
  border-bottom-color: #334155 !important;
}

body.dark-mode .palette-drawer-title {
  color: #f8fafc !important;
}

body.dark-mode .palette-drawer-title .material-symbols-outlined {
  color: #38bdf8 !important;
}

body.dark-mode .palette-close-btn {
  color: #94a3b8 !important;
}

body.dark-mode .palette-close-btn:hover {
  background-color: #334155 !important;
  color: #f8fafc !important;
}

body.dark-mode .palette-btn.is-unanswered {
  background-color: #0f172a !important;
  border-color: #334155 !important;
  color: #cbd5e1 !important;
}

body.dark-mode .palette-btn.is-unanswered:hover {
  background-color: #334155 !important;
  color: #f8fafc !important;
}

body.dark-mode .palette-drawer-footer {
  background-color: #0f172a !important;
  border-top-color: #334155 !important;
}

body.dark-mode .palette-legend {
  color: #94a3b8 !important;
}

body.dark-mode .cbt-modal-dialog {
  background-color: #1e293b !important;
  color: #f8fafc !important;
}

body.dark-mode .cbt-modal-header {
  border-bottom-color: #334155 !important;
}

body.dark-mode .cbt-modal-title h3 {
  color: #f8fafc !important;
}

body.dark-mode .cbt-modal-close {
  color: #94a3b8 !important;
}

body.dark-mode .cbt-modal-close:hover {
  background-color: #334155 !important;
  color: #f8fafc !important;
}

body.dark-mode .cbt-modal-hint {
  color: #94a3b8 !important;
}

body.dark-mode .cbt-modal-body textarea#testcomment {
  background-color: #0f172a !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}

body.dark-mode .cbt-modal-footer {
  background-color: #0f172a !important;
  border-top-color: #334155 !important;
}

body.dark-mode .cbt-btn-modal-close {
  background-color: #1e293b !important;
  border-color: #334155 !important;
  color: #cbd5e1 !important;
}

body.dark-mode .cbt-btn-modal-close:hover {
  background-color: #334155 !important;
}

body.dark-mode .cbt-confirm-card {
  background-color: #1e293b !important;
  border-color: #334155 !important;
  color: #f8fafc !important;
}

body.dark-mode .cbt-confirm-header h2 {
  color: #f8fafc !important;
}

body.dark-mode .cbt-confirm-header p {
  color: #94a3b8 !important;
}

body.dark-mode .btn-confirm-back {
  background-color: #0f172a !important;
  border-color: #334155 !important;
  color: #cbd5e1 !important;
}

body.dark-mode .btn-confirm-back:hover {
  background-color: #334155 !important;
}

/* Responsif Mobile untuk Bilah Alat Bantu */
@media (max-width: 768px) {
  .cbt-exam-tools-bar {
    border-radius: var(--radius-lg, 12px);
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 10px 12px;
  }
  .cbt-tools-group {
    gap: 8px;
  }
  .cbt-tool-btn {
    font-size: 12px;
    padding: 5px 8px;
  }
}

/* Single User Test Results & Question Audit Styling */
.rowl {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.user-question-audit-card {
  grid-column: 1 / -1 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.user-questions-container {
  padding: 22px 24px;
  width: 100%;
  box-sizing: border-box;
}

.user-questions-container ol.question {
  margin: 0;
  padding-left: 24px;
  width: 100%;
  box-sizing: border-box;
}

.user-questions-container ol.question > li {
  padding: 16px 0 20px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13.5px;
  line-height: 1.65;
  color: #1e293b;
  word-break: break-word;
  overflow-wrap: break-word;
}

.user-questions-container ol.question > li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.user-questions-container ol.question > li > strong {
  display: inline-block;
  font-size: 12px;
  color: #475569;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 3px 8px;
  margin-bottom: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.user-questions-container ol.answer {
  margin: 12px 0 6px 18px;
  padding: 0;
  list-style-type: lower-alpha;
}

.user-questions-container ol.answer > li {
  padding: 5px 0;
  font-size: 13px;
  color: #334155;
  line-height: 1.5;
  word-break: break-word;
  overflow-wrap: break-word;
}

.user-questions-container ul.answer {
  margin: 12px 0 6px 0;
  padding: 0;
  list-style-type: none;
}

.user-questions-container ul.answer > li {
  padding: 8px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  font-size: 13px;
  word-break: break-word;
  overflow-wrap: break-word;
}

.user-questions-container img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 6px;
}

.user-questions-container table {
  max-width: 100% !important;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

abbr.okbox,
abbr.nobox,
abbr.onbox,
abbr.offbox {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px !important;
  border-radius: 4px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  vertical-align: middle;
  line-height: 1;
}

abbr.okbox {
  background-color: #dcfce7 !important;
  color: #15803d !important;
  border: 1px solid #86efac !important;
}

abbr.nobox {
  background-color: #fee2e2 !important;
  color: #b91c1c !important;
  border: 1px solid #fca5a5 !important;
}

abbr.onbox {
  background-color: #eff6ff !important;
  color: #1d4ed8 !important;
  border: 1px solid #bfdbfe !important;
}

abbr.offbox {
  background-color: #f1f5f9 !important;
  color: #94a3b8 !important;
  border: 1px solid #e2e8f0 !important;
}

@media (max-width: 768px) {
  .user-questions-container {
    padding: 12px 14px;
  }
  
  .user-questions-container ol.question {
    padding-left: 16px;
  }
  
  .user-questions-container ol.question > li {
    font-size: 13px;
    padding: 12px 0 16px 0;
  }

  .user-questions-container ol.answer {
    margin-left: 10px;
  }
}



