/**
 * ====================================================================
 * Extraordinary CBT (EXO-CBT) - Student Portal Modern Attex Theme
 * Elevates student login, dashboard, and exam interface to CoderThemes Attex standards.
 * ====================================================================
 */

/* Zero-CDN Offline-First: gunakan font lokal / system stack agar bebas error jaringan intranet */

/* --- 1. Global Reset & Base Typography --- */
html,
body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
  background-color: #f1f5f9 !important;
  color: #313a46 !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.c-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #f1f5f9 !important;
}

#app {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

/* --- 2. Top Header / App Bar (Compact Android / Attex Executive Standard) --- */
.bg-gradient-to-r.from-blue-500.to-blue-400 {
  background: linear-gradient(135deg, #727cf5 0%, #5a66ea 50%, #435ebe 100%) !important;
  padding: 8px 16px !important;
  min-height: 56px !important;
  box-shadow: 0 2px 10px rgba(114, 124, 245, 0.25) !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 50 !important;
  display: flex !important;
  align-items: center !important;
}

.bg-gradient-to-r.from-blue-500.to-blue-400::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
  pointer-events: none;
}

.bg-gradient-to-r .flex.justify-between.flex-col.sm\:flex-row {
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
}

/* School Identity Block */
.bg-gradient-to-r .flex.items-center.space-x-1 {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex: 1 !important;
  min-width: 0 !important;
}

.bg-gradient-to-r .h-16.w-16.bg-white {
  width: auto !important;
  height: 38px !important;
  min-width: 38px !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.bg-gradient-to-r .h-16.w-16.bg-white img {
  width: 36px !important;
  height: 36px !important;
  object-fit: contain !important;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2)) !important;
}

header.bg-gradient-to-r .font-semibold {
  font-size: 0.925rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.2px !important;
  color: #ffffff !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  max-width: 52vw !important;
  margin: 0 !important;
}

header.bg-gradient-to-r .text-sm.text-gray-100 {
  color: rgba(255, 255, 255, 0.8) !important;
  font-size: 0.65rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.5px !important;
  text-transform: uppercase !important;
  margin-top: 1px !important;
  line-height: 1 !important;
}

/* User Section & Avatar on Right */
.bg-gradient-to-r .flex.space-x-2.justify-end,
.exo-user-dropdown-wrap {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  width: auto !important;
  flex-shrink: 0 !important;
  outline: none !important;
}

/* Student Avatar Circle Trigger (Original Rounded Full, No-Shadow) */
.exo-avatar-btn {
  background: transparent !important;
  border: none !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  padding: 0 !important;
  min-height: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  outline: none !important;
  box-shadow: none !important;
}

.exo-avatar-btn:hover,
.exo-user-dropdown-wrap:hover .exo-avatar-btn,
.exo-user-dropdown-wrap.is-open .exo-avatar-btn,
.exo-user-dropdown-wrap:focus-within .exo-avatar-btn {
  border-color: transparent !important;
  background: transparent !important;
}

.exo-avatar-circle,
.bg-gradient-to-r button.h-12.w-12 {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  color: #4f46e5 !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 2px solid rgba(188, 188, 188, 0.9) !important;
  box-shadow: none !important;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease !important;
  cursor: pointer !important;
}

.exo-avatar-btn:hover .exo-avatar-circle,
.exo-user-dropdown-wrap:hover .exo-avatar-circle,
.exo-user-dropdown-wrap.is-open .exo-avatar-circle,
.exo-user-dropdown-wrap:focus-within .exo-avatar-circle,
.bg-gradient-to-r button.h-12.w-12:hover {
  transform: none !important;
  background: #eef2ff !important;
  color: #4338ca !important;
  border-color: #6366f1 !important;
  box-shadow: none !important;
}

/* Flat Crisp Dropdown Card (No-Shadow, Radius 8px) */
.exo-user-dropdown-menu {
  display: none !important;
  position: absolute !important;
  right: 0 !important;
  top: calc(100% + 6px) !important;
  width: 230px !important;
  background: #ffffff !important;
  border-radius: 8px !important;
  box-shadow: none !important;
  border: 1px solid #cbd5e1 !important;
  padding: 8px 0 !important;
  z-index: 1000 !important;
  animation: exoDropdownFadeIn 0.15s ease-out forwards !important;
}

@keyframes exoDropdownFadeIn {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Open menu on click (.is-open), hover, or focus (Mobile & Desktop) */
.exo-user-dropdown-wrap.is-open .exo-user-dropdown-menu,
.exo-user-dropdown-wrap:hover .exo-user-dropdown-menu,
.exo-user-dropdown-wrap:focus-within .exo-user-dropdown-menu {
  display: block !important;
}

.exo-dropdown-header {
  padding: 6px 16px !important;
}

.exo-dropdown-name {
  font-weight: 700 !important;
  color: #313a46 !important;
  font-size: 0.925rem !important;
  line-height: 1.3 !important;
  word-break: break-word !important;
  margin: 0 !important;
}

.exo-dropdown-sub {
  font-size: 0.775rem !important;
  color: #6c757d !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  margin-top: 2px !important;
  margin-bottom: 0 !important;
}

.exo-dropdown-divider {
  height: 1px !important;
  background: #f1f3f7 !important;
  margin: 8px 0 !important;
}

.exo-dropdown-status {
  padding: 4px 16px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  color: #0acf97 !important;
}

.exo-status-dot {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background-color: #0acf97 !important;
  box-shadow: 0 0 0 2px rgba(10, 207, 151, 0.2) !important;
  display: inline-block !important;
}

.exo-dropdown-item {
  width: 100% !important;
  padding: 9px 16px !important;
  background: transparent !important;
  border: none !important;
  text-align: left !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  color: #334155 !important;
  font-weight: 500 !important;
  font-size: 0.85rem !important;
  cursor: pointer !important;
  transition: background 0.15s ease !important;
}

.exo-dropdown-item:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

.exo-dropdown-item svg {
  width: 1rem !important;
  height: 1rem !important;
  stroke: currentColor !important;
}

.exo-dropdown-logout {
  width: 100% !important;
  padding: 9px 16px !important;
  background: transparent !important;
  border: none !important;
  text-align: left !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  color: #fa5c7c !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  cursor: pointer !important;
  transition: background 0.15s ease !important;
}

.exo-dropdown-logout:hover {
  background: #fff5f7 !important;
  color: #e63757 !important;
}

.exo-dropdown-logout svg {
  width: 1rem !important;
  height: 1rem !important;
  stroke: currentColor !important;
}

/* --- 3. Main Card Container (Seamless Compact Spacing) --- */
.container.-mt-12,
.container.sm\:-mt-24,
div[class*="container"]:not([class*="swal2"]):not([class*="portal"]) {
  position: relative !important;
  z-index: 10 !important;
  margin-top: 14px !important;
  padding-left: 12px !important;
  padding-right: 12px !important;
}

/* ====================================================================
   MODERN CRISP FLAT THEME - FULL UNIVERSAL OVERRIDE
   Zero Diffuse Shadow + Crisp 1px Border + Concentric Radii (12px / 8px / 6px)
   ==================================================================== */
/* Scoped to white card containers only (never strip color/border from buttons, badges, or swatches) */
.bg-white.shadow,
.bg-white.shadow-xs,
.bg-white.shadow-sm,
.bg-white.shadow-md,
.bg-white.shadow-lg,
.bg-white.shadow-xl:not(.exo-question-drawer),
.bg-white.shadow-2xl:not(.exo-question-drawer),
.bg-white.shadow.sm\:shadow-2xl:not(.exo-question-drawer),
.bg-white.rounded-3xl:not(.exo-question-drawer),
.bg-white.rounded-2xl:not(.exo-question-drawer) {
  box-shadow: none !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  background-color: #ffffff !important;
}

/* Tailwind v2 compatibility shims for v3 palette/opacity/utility classes used in Vue templates */
.shadow-xs {
  box-shadow: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
}

.backdrop-blur-xs {
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.bg-slate-900\/60 {
  background-color: rgba(15, 23, 42, 0.6);
}

.bg-slate-900\/80 {
  background-color: rgba(15, 23, 42, 0.8);
}

.bg-slate-50\/70 {
  background-color: rgba(248, 250, 252, 0.7);
}

.bg-slate-50\/80,
.hover\:bg-slate-50\/80:hover {
  background-color: rgba(248, 250, 252, 0.8);
}

.bg-\[\#f0f7ff\] {
  background-color: #f0f7ff;
}

.bg-rose-500 {
  background-color: #f43f5e;
}

.hover\:bg-rose-600:hover,
.bg-rose-600 {
  background-color: #e11d48;
}

.hover\:bg-rose-700:hover {
  background-color: #be123c;
}

.bg-emerald-500 {
  background-color: #10b981;
}

.border-emerald-600 {
  border-color: #059669;
}

.bg-emerald-600 {
  background-color: #059669;
}

.hover\:bg-emerald-700:hover {
  background-color: #047857;
}

.bg-amber-400 {
  background-color: #fbbf24;
}

.bg-amber-500 {
  background-color: #f59e0b;
}

.hover\:bg-amber-600:hover {
  background-color: #d97706;
}

.border-amber-500 {
  border-color: #f59e0b;
}

.text-amber-950 {
  color: #451a03;
}

/* Concentric Inner Elements (Options, Ribbons, Banners, Tables) */
.rounded-xl:not(.bg-white.shadow-xl):not(.bg-white.shadow-2xl):not(.rounded-2xl):not(.rounded-3xl) {
  border-radius: 8px !important;
}

.rounded-lg {
  border-radius: 8px !important;
}

.rounded-md {
  border-radius: 6px !important;
}

/* Card Header Strip */
.border-b.border-gray-300,
.border-b.border-gray-200 {
  border-bottom-color: #f1f3f7 !important;
}

.pt-2.pb-2.px-2.flex.justify-between.border-b,
.pt-4.pb-2.pr-2.flex.justify-between.border-b {
  background: #ffffff !important;
  padding: 16px 22px !important;
  margin-bottom: 0 !important;
  border-bottom: 1px solid #f1f3f7 !important;
}

.pt-2.pb-2.px-2.flex.justify-between.border-b p.text-lg,
.pt-4.pb-2.pr-2.flex.justify-between.border-b p.text-lg {
  font-size: 1.1rem !important;
  font-weight: 700 !important;
  color: #313a46 !important;
  letter-spacing: 0.2px !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Card Body padding */
.py-2.px-2.my-2 {
  padding: 18px 22px !important;
  margin: 0 !important;
}

/* --- 4. Input Fields & Form Controls (Attex Minimalist Standard) --- */
.auth-form label,
label.text-xs.font-semibold {
  font-size: 0.725rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.6px !important;
  color: #6c757d !important;
  margin-bottom: 6px !important;
  display: inline-block !important;
}

/* Input Group Container */
.auth-form .relative,
.relative {
  position: relative !important;
}

/* Input Fields (kecuali area PjBL non-kiosk .exa-pjbl-root) */
input[type="text"]:not(.exa-pjbl-input),
input[type="password"]:not(.exa-pjbl-input),
input.rounded-lg:not(.exa-pjbl-input) {
  height: 44px !important;
  border: 1.5px solid #dee2e6 !important;
  border-radius: 8px !important;
  font-size: 0.875rem !important;
  color: #313a46 !important;
  background-color: #ffffff !important;
  transition: all 0.2s ease-in-out !important;
  outline: none !important;
}

input[type="text"]:not(.exa-pjbl-input):focus,
input[type="password"]:not(.exa-pjbl-input):focus,
input.rounded-lg:not(.exa-pjbl-input):focus {
  border-color: #727cf5 !important;
  box-shadow: 0 0 0 3px rgba(114, 124, 245, 0.16) !important;
}

input.border-red-300 {
  border-color: #fa5c7c !important;
}

input.border-red-300:focus {
  border-color: #fa5c7c !important;
  box-shadow: 0 0 0 3px rgba(250, 92, 124, 0.16) !important;
}

/* Prefix Icon Box */
.absolute.inset-y-0.left-0.w-10 {
  width: 42px !important;
  background-color: #f8f9fa !important;
  border-right: 1.5px solid #dee2e6 !important;
  border-top-left-radius: 7px !important;
  border-bottom-left-radius: 7px !important;
  color: #727cf5 !important;
}

.absolute.inset-y-0.left-0.w-10 svg {
  width: 1.15rem !important;
  height: 1.15rem !important;
  stroke: #727cf5 !important;
}

/* Eye Password Toggle */
.absolute.inset-y-0.right-0.w-10 {
  color: #98a6ad !important;
  transition: color 0.15s ease;
}

.absolute.inset-y-0.right-0.w-10:hover {
  color: #727cf5 !important;
}

/* --- 5. Buttons (Attex Primary & Success Standard) --- */
/* Tombol Login */
.auth-form button[type="submit"],
.auth-box button[type="submit"],
.auth-card button[type="submit"] {
  background: linear-gradient(135deg, #727cf5 0%, #5b66e8 100%) !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  padding: 10px 24px !important;
  width: 100% !important;
  border: 0 !important;
  box-shadow: 0 4px 14px rgba(114, 124, 245, 0.35) !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
}

.auth-form button[type="submit"]:hover,
.auth-box button[type="submit"]:hover,
.auth-card button[type="submit"]:hover {
  background: linear-gradient(135deg, #5b66e8 0%, #4a54d6 100%) !important;
  box-shadow: 0 6px 18px rgba(114, 124, 245, 0.45) !important;
  transform: translateY(-1px) !important;
}

.auth-form button[type="submit"]:active,
.auth-box button[type="submit"]:active,
.auth-card button[type="submit"]:active {
  transform: translateY(0) !important;
}

/* Tombol Masuk / Mulai Ujian (Success Accent - kecuali tombol PjBL .exa-pjbl-btn) */
form button[type="submit"]:not(.auth-form button):not(.exa-pjbl-btn) {
  background: linear-gradient(135deg, #0acf97 0%, #089e74 100%) !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  padding: 10px 28px !important;
  border: 0 !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
}

form button[type="submit"]:not(.auth-form button):not(.exa-pjbl-btn):hover {
  background: linear-gradient(135deg, #089e74 0%, #078763 100%) !important;
  transform: translateY(-1px) !important;
}

/* --- 6. Segmented Pill Tabs (Ujian | Hasil) --- */
.flex.pt-2.pb-2 {
  display: inline-flex !important;
  background-color: #f4f6fb !important;
  border-radius: 50px !important;
  padding: 4px !important;
  margin: 12px 14px !important;
  border: 1px solid #eef2f7 !important;
}

.flex.pt-2.pb-2 .border-b-2 {
  border-bottom: 0 !important;
  padding: 6px 20px !important;
  border-radius: 50px !important;
  transition: all 0.2s ease !important;
  margin-bottom: 0 !important;
}

.flex.pt-2.pb-2 .border-b-2 p {
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Tab Aktif */
.flex.pt-2.pb-2 .border-blue-400 {
  background-color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(114, 124, 245, 0.18) !important;
}

.flex.pt-2.pb-2 .border-blue-400 p {
  color: #727cf5 !important;
  font-weight: 700 !important;
}

/* Tab Non-Aktif */
.flex.pt-2.pb-2 .border-gray-200 {
  background-color: transparent !important;
}

.flex.pt-2.pb-2 .border-gray-200 p {
  color: #6c757d !important;
}

.flex.pt-2.pb-2 .flex-1.py-2.border-b-2 {
  display: none !important;
}

/* --- 7. Jadwal Ujian Interactive Cards --- */
.px-2.border-2.border-gray-200.rounded-lg {
  border: 1.5px solid #eef2f7 !important;
  border-radius: 10px !important;
  padding: 12px 14px !important;
  margin-bottom: 10px !important;
  background-color: #fdfdfe !important;
  transition: all 0.2s ease !important;
}

.px-2.border-2.border-gray-200.rounded-lg:hover {
  border-color: #727cf5 !important;
  background-color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(114, 124, 245, 0.1) !important;
  transform: translateY(-1px);
}

.px-2.border-2.border-gray-200.rounded-lg input[type="radio"] {
  accent-color: #727cf5 !important;
  width: 1.15rem !important;
  height: 1.15rem !important;
  margin-top: 2px !important;
}

.px-2.border-2.border-gray-200.rounded-lg label {
  font-size: 0.925rem !important;
  font-weight: 700 !important;
  color: #313a46 !important;
}

.px-2.border-2.border-gray-200.rounded-lg p {
  font-size: 0.775rem !important;
  color: #6c757d !important;
  margin-top: 2px !important;
}

/* Token Box */
input[placeholder="Token"] {
  letter-spacing: 3px !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  text-align: center !important;
  text-transform: uppercase !important;
  border-color: #727cf5 !important;
  background-color: #fdfdfe !important;
}

/* Notice Box (Jadwal Not Allowed) */
.bg-blue-100.border.border-gray-300.text-blue-600 {
  background-color: #ebf0fe !important;
  border: 1px solid #d5e0fd !important;
  color: #3e60d5 !important;
  border-radius: 8px !important;
  font-size: 0.825rem !important;
  font-weight: 500 !important;
  padding: 10px 14px !important;
  margin-bottom: 12px !important;
}

.bg-yellow-100.border.border-gray-300.text-yellow-600 {
  background-color: #fff9e6 !important;
  border: 1px solid #ffe8a3 !important;
  color: #b08800 !important;
  border-radius: 8px !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  padding: 12px 16px !important;
}

/* --- 7b. Participant Identity Ribbon (Refined Size & Medium Weight) --- */
.exa-student-ribbon,
div[class*="bg-slate-50"]:has(> div > span.uppercase),
.p-4.sm\:p-7>.grid.grid-cols-1.sm\:grid-cols-2.bg-slate-50,
.p-4.sm\:p-7>.grid.grid-cols-1.sm\:grid-cols-2 {
  padding: 0.75rem 1rem !important;
  background-color: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 0.5rem !important;
}

.exa-ribbon-label,
.p-4.sm\:p-7>.grid.grid-cols-1.sm\:grid-cols-2 span.uppercase,
.p-4.sm\:p-7>.grid.grid-cols-1.sm\:grid-cols-2 span.tracking-wider,
div[class*="bg-slate-50"] span.uppercase {
  font-size: 11px !important;
  font-weight: 500 !important;
  color: #64748b !important;
  letter-spacing: 0.05em !important;
  line-height: 1.2 !important;
  margin-bottom: 2px !important;
}

.exa-ribbon-name,
.p-4.sm\:p-7>.grid.grid-cols-1.sm\:grid-cols-2>div:first-child>span:last-child {
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  color: #1e293b !important;
  line-height: 1.4 !important;
}

.exa-ribbon-no,
.p-4.sm\:p-7>.grid.grid-cols-1.sm\:grid-cols-2>div:last-child>span:last-child {
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  color: #4f46e5 !important;
  line-height: 1.4 !important;
}

/* --- 8. Modern Tables (Hasil & Jadwal Tunggu) --- */
table.min-w-max.w-full {
  width: 100% !important;
  border-collapse: collapse !important;
}

table.min-w-max.w-full thead tr {
  background-color: #f8f9fa !important;
  border-bottom: 1px solid #eef2f7 !important;
}

table.min-w-max.w-full thead th {
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  color: #6c757d !important;
  padding: 12px 16px !important;
}

table.min-w-max.w-full tbody tr {
  border-bottom: 1px solid #f1f3f7 !important;
  transition: background-color 0.15s ease !important;
}

table.min-w-max.w-full tbody tr:hover {
  background-color: #fafbfe !important;
}

table.min-w-max.w-full tbody td {
  padding: 12px 16px !important;
  font-size: 0.875rem !important;
  color: #313a46 !important;
}

/* Kolom Skor / Hasil */
table.min-w-max.w-full tbody td:nth-child(2) span {
  font-weight: 400 !important;
  font-size: 0.95rem !important;
  color: #727cf5 !important;
}

/* Tombol & Status Pembahasan (Attex Standards) */
.btn-pembahasan {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  padding: 6px 14px !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  background-color: #727cf5 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border: 1px solid #727cf5 !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  line-height: 1.4 !important;
}

.btn-pembahasan:hover {
  background-color: #5b67e8 !important;
  border-color: #5b67e8 !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  transform: translateY(-1px);
}

.btn-pembahasan:active {
  transform: translateY(0);
  box-shadow: none !important;
}

.btn-pembahasan i {
  font-size: 15px !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  display: inline-block !important;
  vertical-align: middle !important;
}

.badge-terkunci {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 5px 12px !important;
  font-size: 0.775rem !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  background-color: #f1f3f5 !important;
  color: #6c757d !important;
  border: 1px solid #dee2e6 !important;
}

.badge-terkunci i {
  font-size: 13px !important;
  color: #6c757d !important;
}

/* --- 9. Exam Workspace & Options (Ujian.vue) --- */
/* Nomor Soal Badge (High Contrast Pure White on Royal Indigo) */
p.font-bold.w-12.h-10.bg-gray-200,
p.font-bold.w-12.h-10,
p.font-bold[class*="rounded-r-full"],
p[class*="exo-question-badge"],
.exo-question-badge {
  background: linear-gradient(135deg, #727cf5 0%, #5b66e8 100%) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  border: none !important;
  border-radius: 10px !important;
  width: auto !important;
  min-width: 44px !important;
  height: 38px !important;
  padding: 0 14px !important;
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: none !important;
  letter-spacing: 0.5px !important;
  text-shadow: none !important;
}

p.font-bold.w-12.h-10.bg-gray-200 *,
p.font-bold.w-12.h-10 *,
p.font-bold[class*="rounded-r-full"] *,
.exo-question-badge * {
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  font-weight: 700 !important;
}

/* Tipe Soal Tag (Clean typography: no background, no border) */
p.font-medium.text-gray-700.px-2,
p.font-medium.text-gray-700.px-1,
.exo-question-type {
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  color: #4b5563 !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 0 4px !important;
  border: none !important;
  box-shadow: none !important;
  display: inline-flex !important;
  align-items: center !important;
  letter-spacing: 0.2px !important;
}

/* Timer Countdown */
div.rounded-md.text-white.font-bold,
.exo-timer-pill {
  background: #313a46 !important;
  color: #ffffff !important;
  border-radius: 50px !important;
  padding: 6px 16px !important;
  font-size: 0.875rem !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  font-weight: 700 !important;
  letter-spacing: 1px !important;
  box-shadow: 0 2px 8px rgba(49, 58, 70, 0.25) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

div.rounded-md.text-white.font-bold span,
.exo-timer-pill span {
  background: transparent !important;
  color: #ffffff !important;
  padding: 0 1px !important;
  font-size: 0.925rem !important;
  font-weight: 700 !important;
}

/* Secondary Toolbar: Ukuran Soal & Navigasi */
.py-2.px-2.my-2.border-b.border-gray-300 {
  background-color: #fbfcfe !important;
  border-radius: 10px !important;
  border: 1px solid #eef2f7 !important;
  padding: 6px 12px !important;
  margin: 6px 0 12px 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.py-2.px-2.my-2.border-b.border-gray-300 input[type="range"] {
  accent-color: #727cf5 !important;
  height: 5px !important;
  border-radius: 5px !important;
}

/* --- Option Cards (Tight, Clean & Sweet Vertical Gap) --- */
.flex.flex-col.space-y-3.mt-5 {
  margin-top: 10px !important;
}

.flex.flex-col.space-y-3.mt-5> :not([hidden])~ :not([hidden]) {
  margin-top: 6px !important;
}

.flex.space-x-1:has(input[type="radio"]),
.flex.space-x-1:has(input[type="checkbox"]),
.exo-option-card {
  display: flex !important;
  align-items: flex-start !important;
  background: transparent !important;
  border: none !important;
  border-width: 0 !important;
  border-radius: 12px !important;
  padding: 8px 12px !important;
  margin-bottom: 6px !important;
  gap: 10px !important;
  cursor: pointer !important;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1) !important;
  position: relative !important;
  box-shadow: none !important;
  user-select: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

@media (min-width: 640px) {

  .flex.space-x-1:has(input[type="radio"]),
  .flex.space-x-1:has(input[type="checkbox"]),
  .exo-option-card {
    padding: 10px 16px !important;
    margin-bottom: 8px !important;
  }
}

.flex.space-x-1:has(input[type="radio"]):hover,
.flex.space-x-1:has(input[type="checkbox"]):hover,
.exo-option-card:hover {
  border: none !important;
  background-color: #f8fafc !important;
  box-shadow: none !important;
}

/* Card Selected State - Model B: Soft Pill Highlight (No Border) */
.flex.space-x-1:has(input[type="radio"]:checked),
.flex.space-x-1:has(input[type="checkbox"]:checked),
.exo-option-card.is-selected {
  border: none !important;
  border-width: 0 !important;
  background-color: #f0f7ff !important;
  background: #f0f7ff !important;
  box-shadow: none !important;
}

/* Reset Inner Margin Flaws */
.flex.space-x-1 .flex.items-center.mr-4.mb-4,
.exo-option-card .flex.items-center.mr-4.mb-4,
.flex.space-x-1 .flex.items-center,
.exo-option-card .flex.items-center {
  margin: 0 !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
}

.flex.space-x-1 label.text-xl,
.exo-option-card label.text-xl {
  font-size: 1rem !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  cursor: pointer !important;
}

/* Option Choice Bullets (A, B, C, D, E) */
span.w-6.h-6.rounded-full.border,
.exo-option-badge {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  border: 1.5px solid #dcdfe6 !important;
  border-radius: 50% !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  color: #495057 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  background-color: #f1f3f7 !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
}

/* Active Badge State */
input[type="radio"]:checked+label span.w-6.h-6,
input[type="radio"]:checked~label span.w-6.h-6,
.flex.space-x-1:has(input[type="radio"]:checked) span.w-6.h-6,
.exo-option-card.is-selected .exo-option-badge {
  background: #2563eb !important;
  border-color: #2563eb !important;
  color: #ffffff !important;
  box-shadow: none !important;
  transform: none !important;
}

/* Complex Checkbox Badge (PG Kompleks) */
.flex.space-x-1 .bg-white.border-2.rounded.border-gray-400.w-6.h-6 {
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  border: 1.5px solid #dcdfe6 !important;
  border-radius: 6px !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-color: #f8f9fa !important;
  transition: all 0.2s ease !important;
}

.flex.space-x-1:has(input[type="checkbox"]:checked) .bg-white.border-2.rounded.border-gray-400.w-6.h-6 {
  background-color: #2563eb !important;
  border-color: #2563eb !important;
  box-shadow: none !important;
}

.flex.space-x-1:has(input[type="checkbox"]:checked) svg {
  display: block !important;
  color: #ffffff !important;
  fill: currentColor !important;
  width: 14px !important;
  height: 14px !important;
}

/* Option Text Answer Wrapper */
.flex.space-x-1>div:last-child:not(:first-child),
.flex.space-x-1>label:last-child:not(:first-child),
.exo-option-text {
  flex: 1 !important;
  font-size: 0.925rem !important;
  line-height: 1.55 !important;
  color: #313a46 !important;
  padding-top: 4px !important;
  cursor: pointer !important;
}

.flex.space-x-1 p,
.exo-option-text p {
  margin: 0 !important;
  display: inline-block !important;
}

.flex.space-x-1 img,
.exo-option-text img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 8px !important;
  margin-top: 6px !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05) !important;
  display: block !important;
}

/* --- 9. Toolbar Bawah (Universal Fixed Bottom Bar on ALL Screen Resolutions) --- */
.border-t.border-gray-300.flex.justify-between.items-center,
.exo-exam-bottom-bar {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 50 !important;
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.05) !important;
  border-top: 1.5px solid #e2e8f0 !important;
  padding: 10px 18px !important;
  margin: 0 !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 10px !important;
}

@media (min-width: 640px) {

  .border-t.border-gray-300.flex.justify-between.items-center,
  .exo-exam-bottom-bar {
    padding: 12px 32px !important;
    gap: 16px !important;
  }
}

@media (min-width: 1024px) {

  .border-t.border-gray-300.flex.justify-between.items-center,
  .exo-exam-bottom-bar {
    max-width: 1024px !important;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    border-radius: 16px 16px 0 0 !important;
    border-left: 1.5px solid #e2e8f0 !important;
    border-right: 1.5px solid #e2e8f0 !important;
    padding: 12px 32px !important;
  }
}

/* Content padding so question cards and choices are never obscured by fixed bottom bar */
.min-h-screen:not(.portal-login-root) {
  padding-bottom: 0 !important;
}

/* Ensure portal login root and app never have bottom padding */
#app,
body.c-app,
.portal-login-root,
.portal-content-container {
  padding-bottom: 0 !important;
}

/* Tombol Sebelumnya (Neutral Secondary Outline) */
button.bg-red-400,
button.border-red-400,
button.bg-red-200,
.exo-btn-prev {
  background: #ffffff !important;
  border: 1.5px solid #ced4da !important;
  color: #495057 !important;
  border-radius: 10px !important;
  height: 42px !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
}

button.bg-red-400:hover,
.exo-btn-prev:hover {
  background: #f8f9fa !important;
  border-color: #adb5bd !important;
  color: #313a46 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08) !important;
}

button.bg-red-200,
button:disabled.exo-btn-prev,
button.bg-red-400:disabled {
  opacity: 0.25 !important;
  cursor: not-allowed !important;
  background: #f8f9fa !important;
  border-color: #e2e8f0 !important;
  color: #a0aec0 !important;
  box-shadow: none !important;
  pointer-events: none !important;
}

/* Symmetrical Square Buttons on Mobile (< 769px) */
@media (max-width: 768px) {

  button.bg-red-400,
  button.border-red-400,
  button.bg-red-200,
  .exo-btn-prev {
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    padding: 0 !important;
  }

  button.bg-red-400 span,
  button.border-red-400 span,
  button.bg-red-200 span,
  .exo-btn-prev span {
    display: none !important;
  }

  button.bg-blue-400,
  button.border-blue-400,
  button.bg-blue-200,
  .exo-btn-next {
    width: 44px !important;
    min-width: 44px !important;
    max-width: 44px !important;
    padding: 0 !important;
  }

  button.bg-blue-400 span,
  button.border-blue-400 span,
  button.bg-blue-200 span,
  .exo-btn-next span {
    display: none !important;
  }
}

/* Expanded Text Buttons on Desktop (>= 769px) */
@media (min-width: 769px) {

  button.bg-red-400,
  button.border-red-400,
  button.bg-red-200,
  .exo-btn-prev {
    padding: 9px 20px !important;
    min-width: 130px !important;
  }

  button.bg-red-400 span,
  button.border-red-400 span,
  button.bg-red-200 span,
  .exo-btn-prev span {
    display: inline !important;
  }

  button.bg-blue-400,
  button.border-blue-400,
  button.bg-blue-200,
  .exo-btn-next {
    padding: 9px 20px !important;
    min-width: 130px !important;
  }

  button.bg-blue-400 span,
  button.border-blue-400 span,
  button.bg-blue-200 span,
  .exo-btn-next span {
    display: inline !important;
  }
}

/* Tombol Ragu-ragu (Interactive Pill) */
.border-t.border-gray-300 label.flex.justify-start.items-start,
.exo-btn-ragu {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 7px 20px !important;
  height: 42px !important;
  border-radius: 50px !important;
  border: 1.5px solid #ced4da !important;
  background-color: #f8f9fa !important;
  color: #6c757d !important;
  font-weight: 700 !important;
  font-size: 0.825rem !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  user-select: none !important;
  margin: 0 !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

@media (min-width: 640px) {

  .border-t.border-gray-300 label.flex.justify-start.items-start,
  .exo-btn-ragu {
    padding: 8px 24px !important;
    font-size: 0.875rem !important;
  }
}

.border-t.border-gray-300 label.flex.justify-start.items-start:hover,
.exo-btn-ragu:hover {
  border-color: #ffbc00 !important;
  color: #b08800 !important;
  background-color: #fffdf5 !important;
}

/* Ragu-ragu Checked Active State */
.border-t.border-gray-300 label:has(input[type="checkbox"]:checked),
.exo-btn-ragu.is-active {
  background: linear-gradient(135deg, #ffbc00 0%, #f5a800 100%) !important;
  border-color: #ffbc00 !important;
  color: #ffffff !important;
  box-shadow: 0 3px 12px rgba(255, 188, 0, 0.35) !important;
}

.border-t.border-gray-300 label .select-none,
.exo-btn-ragu .select-none {
  text-transform: capitalize !important;
  font-weight: 700 !important;
}

.border-t.border-gray-300 label .bg-white.border-2.rounded.border-gray-400.w-6.h-6 {
  width: 16px !important;
  height: 16px !important;
  border-radius: 4px !important;
  border: 1.5px solid #adb5bd !important;
  margin-right: 4px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-color: #ffffff !important;
  transition: all 0.2s ease !important;
}

.border-t.border-gray-300 label:has(input[type="checkbox"]:checked) .bg-white.border-2.rounded.border-gray-400.w-6.h-6 {
  background-color: #ffffff !important;
  border-color: #ffffff !important;
}

.border-t.border-gray-300 label:has(input[type="checkbox"]:checked) svg {
  display: block !important;
  color: #ffbc00 !important;
  fill: currentColor !important;
  width: 11px !important;
  height: 11px !important;
}

/* Tombol Selanjutnya (Primary Blue) */
button.bg-blue-400,
button.border-blue-400,
button.bg-blue-200,
.exo-btn-next {
  background: linear-gradient(135deg, #727cf5 0%, #5b66e8 100%) !important;
  border: 0 !important;
  color: #ffffff !important;
  border-radius: 10px !important;
  height: 42px !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  box-shadow: 0 3px 10px rgba(114, 124, 245, 0.3) !important;
  transition: all 0.2s ease !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
}

button.bg-blue-400:hover,
.exo-btn-next:hover {
  background: linear-gradient(135deg, #5b66e8 0%, #4a54d6 100%) !important;
  box-shadow: 0 4px 14px rgba(114, 124, 245, 0.45) !important;
  transform: translateY(-1px) !important;
}

/* Khusus Tombol Selesai (Emerald Success) - Selalu Tampilkan Teks & Icon (Khusus Toolbar Bawah) */
.border-t.border-gray-300 button.bg-green-400,
.border-t.border-gray-300 button.bg-green-500,
.border-t.border-gray-300 button.border-green-400,
.exo-exam-bottom-bar button.bg-green-400,
.exo-exam-bottom-bar button.border-green-400,
.exo-btn-finish {
  background: linear-gradient(135deg, #0acf97 0%, #089e74 100%) !important;
  border: 0 !important;
  color: #ffffff !important;
  border-radius: 10px !important;
  padding: 0 18px !important;
  font-weight: 700 !important;
  font-size: 0.825rem !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  box-shadow: 0 3px 12px rgba(10, 207, 151, 0.35) !important;
  width: auto !important;
  min-width: 120px !important;
  height: 42px !important;
  flex-shrink: 0 !important;
}

.border-t.border-gray-300 button.bg-green-400:hover,
.border-t.border-gray-300 button.bg-green-500:hover,
.exo-exam-bottom-bar button.bg-green-400:hover,
.exo-btn-finish:hover {
  background: linear-gradient(135deg, #089e74 0%, #078763 100%) !important;
  box-shadow: 0 5px 16px rgba(10, 207, 151, 0.45) !important;
  transform: translateY(-1px) !important;
}

.border-t.border-gray-300 button.bg-green-400 span,
.border-t.border-gray-300 button.bg-green-500 span,
.border-t.border-gray-300 button.border-green-400 span,
.exo-btn-finish span {
  display: inline !important;
}

/* Tombol Peringatan Ragu / Kosong (Khusus Toolbar Bawah) */
.border-t.border-gray-300 button.bg-yellow-400,
.border-t.border-gray-300 button.bg-yellow-500,
.border-t.border-gray-300 button.bg-gray-400,
.border-t.border-gray-300 button.bg-gray-500,
.exo-exam-bottom-bar button.bg-yellow-400,
.exo-exam-bottom-bar button.bg-yellow-500 {
  background: linear-gradient(135deg, #fa5c7c 0%, #e63757 100%) !important;
  border: 0 !important;
  color: #ffffff !important;
  border-radius: 10px !important;
  padding: 0 16px !important;
  font-weight: 700 !important;
  font-size: 0.825rem !important;
  box-shadow: 0 3px 12px rgba(250, 92, 124, 0.35) !important;
  height: 42px !important;
  min-width: 120px !important;
  flex-shrink: 0 !important;
}

/* --- Right Slide-Over Off-Canvas Drawer (Modal Question) --- */
/* Outer backdrop & container alignment: flush right and full-height */
.fixed.z-50.inset-0:has(.exo-question-drawer),
.fixed.z-50.inset-0:has(.exo-drawer-panel) {
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
}

.fixed.z-50.inset-0:has(.exo-question-drawer)>.flex,
.fixed.z-50.inset-0:has(.exo-drawer-panel)>.flex,
.flex:has(> .exo-question-drawer),
.flex:has(> .exo-drawer-panel) {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: stretch !important;
  padding: 0 !important;
  margin: 0 !important;
  min-height: 100vh !important;
  height: 100% !important;
}

.exo-question-drawer,
.exo-drawer-panel,
div.exo-question-drawer,
div.exo-question-drawer.rounded-2xl,
.exo-question-drawer.rounded-2xl {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: auto !important;
  margin: 0 !important;
  width: 400px !important;
  max-width: 88vw !important;
  height: 100vh !important;
  max-height: 100vh !important;
  min-height: 100vh !important;
  border-radius: 0 !important;
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  background: #ffffff !important;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.08) !important;
  border-left: 1px solid #e2e8f0 !important;
  display: flex !important;
  flex-direction: column !important;
  z-index: 9999 !important;
  animation: exoDrawerSlideInRight 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
  border: none !important;
  transform: none !important;
}

/* Khusus Sudut Luar Drawer: 100% KOTAK (Zero border radius, flush right edge) */
.exo-question-drawer,
.exo-drawer-panel,
div.exo-question-drawer {
  border-radius: 0 !important;
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}



/* Allow question number lists inside drawer to expand comfortably without artificial vertical cramping */
.exo-question-drawer .max-h-96,
.exo-question-drawer .max-h-80 {
  max-height: calc(100vh - 160px) !important;
  flex: 1 1 auto !important;
  scrollbar-width: thin;
}

@keyframes exoDrawerSlideInRight {
  from {
    transform: translateX(100%);
  }

  to {
    transform: translateX(0);
  }
}

/* Floating Right Drawer Trigger Handle (Tucked at Right Screen Edge) */
.exo-drawer-trigger-right,
.exo-drawer-trigger-left {
  position: fixed !important;
  right: 0 !important;
  left: auto !important;
  top: 40% !important;
  transform: translateY(-50%) !important;
  z-index: 44 !important;
  background: linear-gradient(135deg, #727cf5 0%, #5b66e8 100%) !important;
  color: #ffffff !important;
  border: 0 !important;
  border-radius: 10px 0 0 10px !important;
  padding: 12px 6px 12px 8px !important;
  box-shadow: -2px 2px 14px rgba(114, 124, 245, 0.45) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  user-select: none !important;
}

.exo-drawer-trigger-right:hover,
.exo-drawer-trigger-left:hover {
  padding-right: 10px !important;
  padding-left: 10px !important;
  box-shadow: -3px 3px 18px rgba(114, 124, 245, 0.6) !important;
}

.exo-drawer-trigger-right svg,
.exo-drawer-trigger-left svg {
  display: none !important;
}

.exo-drawer-trigger-text {
  font-size: 0.675rem !important;
  font-weight: 700 !important;
  letter-spacing: 1.5px !important;
  writing-mode: vertical-rl !important;
  text-orientation: mixed !important;
  text-transform: uppercase !important;
  color: #ffffff !important;
  line-height: 1 !important;
}

/* Drawer Scrollable Content */
.exo-question-drawer>div:first-child,
.exo-drawer-panel>div:first-child {
  flex: 0 0 auto !important;
  height: auto !important;
  padding: 16px 20px !important;
}

.exo-question-drawer .p-6,
.exo-drawer-panel .p-6 {
  flex: 1 1 auto !important;
  overflow-y: auto !important;
  max-height: calc(100vh - 125px) !important;
  padding: 20px 22px !important;
  -webkit-overflow-scrolling: touch !important;
  display: flex !important;
  flex-direction: column !important;
}

/* Remove internal scroll caps from question grid so all questions expand naturally without cutting off */
.exo-question-drawer .max-h-80,
.exo-question-drawer .max-h-96,
.exo-drawer-panel .max-h-80,
.exo-drawer-panel .max-h-96 {
  max-height: none !important;
  overflow-y: visible !important;
  padding-right: 0 !important;
}

/* Drawer Title */
.exo-question-drawer h3#modal-headline,
.exo-drawer-panel h3#modal-headline {
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  color: #313a46 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
  border-bottom: none !important;
}

/* Drawer Grid of Questions */
.exo-question-drawer .grid,
.exo-drawer-panel .grid {
  display: grid !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  gap: 10px !important;
  width: 100% !important;
  max-height: none !important;
  overflow-y: visible !important;
  margin-bottom: 1rem !important;
}

.exo-question-drawer .grid button,
.exo-drawer-panel .grid button {
  width: 48px !important;
  min-width: 48px !important;
  max-width: 48px !important;
  height: 48px !important;
  padding: 0 !important;
  margin: 0 auto !important;
  border-radius: 12px !important;
  /* ROUNDED SESUAI IMAGE2 */
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
  transition: all 0.15s ease !important;
}

/* Header icon badge ROUNDED */
.exo-question-drawer .p-1\.5 {
  border-radius: 8px !important;
}

/* Status legend spacing */
.exo-question-drawer .mt-6.pt-4,
.exo-drawer-panel .mt-6.pt-4 {
  margin-top: 1rem !important;
  padding-top: 1rem !important;
  border-top: 1px solid #f1f5f9 !important;
}

.exo-question-drawer .grid button:hover,
.exo-drawer-panel .grid button:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1) !important;
}

/* Status Colors for Question Number Buttons in Drawer */
.exo-question-drawer .grid button:not(.bg-emerald-500):not(.bg-amber-400):not(.border-emerald-600):not(.border-amber-500),
.exo-drawer-panel .grid button:not(.bg-emerald-500):not(.bg-amber-400):not(.border-emerald-600):not(.border-amber-500),
.exo-question-drawer .grid button.border-gray-200,
.exo-question-drawer .grid button.border-gray-300 {
  background-color: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #334155 !important;
}

.exo-question-drawer .grid button.bg-emerald-500,
.exo-question-drawer .grid button.border-emerald-600,
.exo-question-drawer .grid button.border-green-400,
.exo-question-drawer .grid button.bg-green-100,
.exo-drawer-panel .grid button.bg-emerald-500,
.exo-drawer-panel .grid button.border-emerald-600 {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  border: 1.5px solid #047857 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.25) !important;
}

.exo-question-drawer .grid button.bg-emerald-500 span,
.exo-question-drawer .grid button.border-emerald-600 span {
  color: #ffffff !important;
  font-weight: 700 !important;
}

.exo-question-drawer .grid button.bg-amber-400,
.exo-question-drawer .grid button.border-amber-500,
.exo-question-drawer .grid button.border-yellow-400,
.exo-question-drawer .grid button.bg-yellow-100,
.exo-drawer-panel .grid button.bg-amber-400,
.exo-drawer-panel .grid button.border-amber-500 {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
  border: 1.5px solid #d97706 !important;
  color: #451a03 !important;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.25) !important;
}

.exo-question-drawer .grid button.bg-amber-400 span,
.exo-question-drawer .grid button.border-amber-500 span {
  color: #451a03 !important;
  font-weight: 700 !important;
}

/* Legend Swatches */
.exo-question-drawer span.bg-emerald-500,
.exo-drawer-panel span.bg-emerald-500 {
  background: #10b981 !important;
  border: 1px solid #059669 !important;
}

.exo-question-drawer span.bg-amber-400,
.exo-drawer-panel span.bg-amber-400 {
  background: #f59e0b !important;
  border: 1px solid #d97706 !important;
}

/* Hide Redundant Corner Dot Badges inside Drawer */
.exo-question-drawer .grid button .rounded-full.absolute,
.exo-drawer-panel .grid button .rounded-full.absolute {
  display: none !important;
}

/* Top Bar: Pure Clean Dark Timer (No Pill, No Clock Icon) */
.exo-timer-clean,
.exo-timer-clean .exo-timer-val {
  color: #0f172a !important;
  font-weight: 700 !important;
  font-size: 1.05rem !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  letter-spacing: 0.8px !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
}

/* Top Bar: Proportional Font Resize Buttons [ A- ] [ A+ ] */
.exo-font-stepper-wrap {
  display: inline-flex !important;
  align-items: center !important;
  border: 1.5px solid #d1d5db !important;
  border-radius: 8px !important;
  overflow: hidden !important;
  background: #ffffff !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
}

.exo-font-stepper-btn {
  min-width: 38px !important;
  height: 32px !important;
  padding: 0 8px !important;
  font-weight: 700 !important;
  font-size: 0.825rem !important;
  color: #374151 !important;
  background: #ffffff !important;
  border: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.exo-font-stepper-btn:hover {
  background: #f3f4f6 !important;
  color: #111827 !important;
}

.exo-font-stepper-btn:first-child {
  border-right: 1.5px solid #d1d5db !important;
}

/* Mobile Single-Row Top Action Bar Optimization (<= 640px) */
@media (max-width: 640px) {
  .exo-top-action-bar {
    padding: 14px !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
  }

  .exo-top-action-left {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    min-width: 0 !important;
    flex: 1 1 auto !important;
    overflow: hidden !important;
  }

  .exo-question-badge,
  div.h-7.bg-blue-600 {
    height: 28px !important;
    padding: 0 8px !important;
    font-size: 0.75rem !important;
    border-radius: 6px !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
  }

  .exo-question-type-label {
    font-size: 0.75rem !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .exo-top-action-right {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 10px !important;
    flex-shrink: 0 !important;
    margin-left: auto !important;
  }

  .exo-timer-clean,
  .exo-timer-clean .exo-timer-val {
    font-size: 0.85rem !important;
    letter-spacing: 0.25px !important;
    white-space: nowrap !important;
  }

  .exo-font-stepper-btn {
    min-width: 36px !important;
    height: 36px !important;
    padding: 0 6px !important;
    font-size: 0.78rem !important;
  }
}

/* Drawer Footer */
.exo-question-drawer>div:last-child,
.exo-drawer-panel>div:last-child {
  flex: 0 0 auto !important;
  margin-top: auto !important;
  padding: 12px 18px !important;
  background: #f8f9fa !important;
  border-top: 1px solid #eef2f7 !important;
}

.exo-question-drawer>div:last-child button,
.exo-drawer-panel>div:last-child button {
  width: 100% !important;
  height: 40px !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
}

/* Drawer Backdrop Blur */
.fixed.z-50.inset-0 .bg-gray-500.opacity-75,
.fixed.z-50.inset-0 .bg-slate-900\/60 {
  background-color: rgba(15, 23, 42, 0.55) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
}

/* --- 10. Hide Redundant Footer on Exam Workspace --- */
.fixed.bottom-0.left-0.w-full.border-t.border-gray-300,
.py-2.px-4.text-center.bg-white,
footer.w-full.bg-white {
  display: none !important;
}

/* --- 11. Mobile Responsiveness Clean Harmonization --- */
@media (max-width: 640px) {

  .bg-white.shadow,
  .bg-white.shadow.sm\:shadow-2xl {
    border-radius: 14px !important;
    margin-bottom: 2rem !important;
  }

  .px-2.border-2.border-gray-200.rounded-lg {
    padding: 10px !important;
  }
}

/* --- 12. SweetAlert2 Centering & Attex Standard Modal Reset --- */
.swal2-container {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 99999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 1rem !important;
  background-color: rgba(49, 58, 70, 0.5) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  overflow-y: auto !important;
}

.swal2-popup {
  position: relative !important;
  border-radius: 16px !important;
  padding: 2rem !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04) !important;
  border: 0 !important;
  font-family: inherit !important;
  max-width: 92vw !important;
  width: 28rem !important;
  margin: auto !important;
  transform: none !important;
  background: #ffffff !important;
}

.swal2-title {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: #313a46 !important;
}

.swal2-html-container {
  font-size: 0.925rem !important;
  color: #6c757d !important;
  line-height: 1.55 !important;
  margin-top: 0.75rem !important;
}

.swal2-confirm {
  background-color: #727cf5 !important;
  border-radius: 8px !important;
  padding: 0.55rem 2rem !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  box-shadow: 0 2px 6px rgba(114, 124, 245, 0.35) !important;
}

/* ==========================================================================
   Modul Review & Pembahasan Ujian Siswa (CoderThemes Attex Standards)
   ========================================================================== */
.exo-pembahasan-modal-backdrop {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background-color: rgba(15, 23, 42, 0.7) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  z-index: 10050 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
}

.exo-pembahasan-modal-content {
  background: #ffffff !important;
  width: 100% !important;
  max-width: 900px !important;
  max-height: 95vh !important;
  border-radius: 14px !important;

  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
  animation: exoModalSlideIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes exoModalSlideIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.exo-pembahasan-modal-header {
  padding: 20px 24px !important;
  background: #f8faff !important;
  border-bottom: 1px solid #e9ecef !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.exo-pembahasan-modal-title {
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  margin: 0 0 15px 0 !important;
}

.exo-pembahasan-stats {
  display: flex !important;
  gap: 8px !important;
  margin-top: 6px !important;
  flex-wrap: wrap !important;
}

.exo-stat-badge {
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  padding: 3px 10px !important;
  border-radius: 9999px !important;
}

.stat-score {
  background-color: #e0e7ff !important;
  color: #3730a3 !important;
}

.stat-correct {
  background-color: #d1fae5 !important;
  color: #065f46 !important;
}

.stat-wrong {
  background-color: #fee2e2 !important;
  color: #991b1b !important;
}

.exo-pembahasan-btn-close {
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;
  border: none !important;
  background: #f1f5f9 !important;
  color: #64748b !important;
  font-size: 1.1rem !important;
  font-weight: bold !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.15s ease !important;
}

.exo-pembahasan-btn-close:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

.exo-pembahasan-modal-body {
  padding: 16px !important;
  overflow-y: auto !important;
  flex: 1 1 auto !important;
  background: #f8fafc !important;
}

.exo-review-card {
  background: #ffffff !important;
  border-radius: 12px !important;
  border: 1.5px solid #e2e8f0 !important;
  padding: 10px !important;
  margin-bottom: 15px !important;

}

.exo-review-card.border-emerald-300 {
  border-color: #6ee7b7 !important;

}

.exo-review-card.border-rose-300 {
  border-color: #fca5a5 !important;

}

.exo-review-card-header {
  display: flex !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 0 !important;
  width: 100% !important;
  margin-bottom: 14px !important;
}

.exo-review-no {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  color: #334155 !important;
  background: #f1f5f9 !important;
  padding: 5px 14px !important;
  border-radius: 8px 0 0 8px !important;
  border: 1px solid #e2e8f0 !important;
  border-right: none !important;
  white-space: nowrap !important;
}

.exo-badge-correct {
  flex: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  color: #047857 !important;
  background: #ecfdf5 !important;
  padding: 5px 12px !important;
  border-radius: 0 8px 8px 0 !important;
  border: 1px solid #a7f3d0 !important;
  white-space: nowrap !important;
}

.exo-badge-wrong {
  flex: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  color: #b91c1c !important;
  background: #fef2f2 !important;
  padding: 5px 12px !important;
  border-radius: 0 8px 8px 0 !important;
  border: 1px solid #fecaca !important;
  white-space: nowrap !important;
}

.exo-review-prompt {
  font-size: 0.95rem !important;
  color: #1e293b !important;
  line-height: 1.6 !important;
  margin-bottom: 16px !important;
}

.exo-review-options {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  margin-bottom: 16px !important;
}

.exo-review-opt-item {
  display: flex !important;
  align-items: flex-start !important;
  padding: 8px 12px !important;
  border-radius: 8px !important;
  border: 1.5px solid #e2e8f0 !important;
  background: #ffffff !important;
  gap: 10px !important;
  font-size: 0.875rem !important;
  min-width: 0 !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}

.exo-review-opt-item>* {
  min-width: 0 !important;
}

.exo-review-opt-item.opt-correct {
  border-color: #10b981 !important;
  background: #f0fdf4 !important;
}

.exo-review-opt-item.opt-chosen-wrong {
  border-color: #ef4444 !important;
  background: #fef2f2 !important;
}

.exo-review-opt-item.opt-chosen-correct {
  border-color: #10b981 !important;
  background: #ecfdf5 !important;
}

.exo-review-opt-mark {
  width: 28px !important;
  height: 28px !important;
  border-radius: 6px !important;
  background: #f1f5f9 !important;
  font-weight: 700 !important;
  font-size: 0.8rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.opt-correct .exo-review-opt-mark {
  background: #10b981 !important;
  color: #ffffff !important;
}

.opt-chosen-wrong .exo-review-opt-mark {
  background: #ef4444 !important;
  color: #ffffff !important;
}

.exo-review-opt-text {
  flex: 1 1 auto !important;
  color: #334155 !important;
}

.badge-opt-chosen-correct {
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  background: #10b981 !important;
  color: #ffffff !important;
  padding: 3px 8px !important;
  border-radius: 6px !important;
}

.badge-opt-correct {
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  background: #d1fae5 !important;
  color: #065f46 !important;
  padding: 3px 8px !important;
  border-radius: 6px !important;
}

.badge-opt-wrong {
  font-size: 0.7rem !important;
  font-weight: 700 !important;
  background: #fee2e2 !important;
  color: #991b1b !important;
  padding: 3px 8px !important;
  border-radius: 6px !important;
}

.exo-review-rujukan-box {
  background: #eff6ff !important;
  border-radius: 10px !important;
  padding: 12px 16px !important;
  margin-top: 12px !important;
}

.exo-rujukan-title {
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  color: #1d4ed8 !important;
  margin-bottom: 4px !important;
}

.exo-rujukan-content {
  font-size: 0.85rem !important;
  color: #1e3a8a !important;
  line-height: 1.5 !important;
}

.exo-rujukan-meta-wrap {
  margin-top: 10px !important;
  padding-top: 8px !important;
  border-top: 1px dashed #bfdbfe !important;
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
}

.exo-rujukan-badge {
  display: inline-flex !important;
  align-items: center !important;
  font-size: 0.72rem !important;
  line-height: 1.3 !important;
}

.exo-pembahasan-modal-footer {
  padding: 16px 24px !important;
  background: #ffffff !important;
  border-top: 1px solid #e9ecef !important;
  display: flex !important;
  justify-content: flex-end !important;
}

.exo-pembahasan-btn-footer {
  padding: 8px 20px !important;
  border-radius: 10px !important;
  background: #727cf5 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.exo-pembahasan-btn-footer:hover {
  background: #5b67e8 !important;
}

/* ====================================================================
 * UjianSelesai Component Styles (1:1 with Image 2)
 * Strictly isolated: only applies to .exo-finish-page and child elements
 * ==================================================================== */
.exo-finish-page {
  min-height: calc(100vh - 60px);
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 32px 16px !important;
  background-color: #f1f5f9 !important;
}

.exo-finish-card {
  background: #ffffff !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05), 0 8px 10px -6px rgba(0, 0, 0, 0.02) !important;
  max-width: 480px !important;
  width: 100% !important;
  padding: 40px 32px !important;
  text-align: center !important;
  border: 1px solid #e2e8f0 !important;
}

.exo-finish-icon-wrap {
  display: flex !important;
  justify-content: center !important;
  margin-bottom: 24px !important;
}

.exo-finish-celebrate-svg {
  width: 90px !important;
  height: 90px !important;
  display: block !important;
}

.exo-finish-title {
  font-size: 1.6rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin-bottom: 8px !important;
  letter-spacing: -0.02em !important;
  text-align: center !important;
}

.exo-finish-subtitle {
  font-size: 0.95rem !important;
  color: #64748b !important;
  margin-bottom: 28px !important;
  text-align: center !important;
}

.exo-finish-message-box {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  padding: 18px 20px !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 14px !important;
  text-align: left !important;
  margin-bottom: 32px !important;
}

.exo-finish-msg-icon {
  flex-shrink: 0 !important;
  margin-top: 2px !important;
}

.exo-finish-msg-content {
  font-size: 0.88rem !important;
  color: #475569 !important;
  line-height: 1.55 !important;
}

.exo-finish-message-quote {
  margin: 0 !important;
  color: #475569 !important;
  font-size: 0.88rem !important;
  line-height: 1.55 !important;
}

.exo-finish-btn-wrap {
  width: 100% !important;
}

.exo-btn-back-home {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 10px !important;
  width: 100% !important;
  padding: 14px 20px !important;
  background: #2563eb !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25) !important;
}

.exo-btn-back-home:hover {
  background: #1d4ed8 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.35) !important;
}

.exo-btn-back-home:active {
  transform: translateY(0) !important;
}

.exo-btn-home-svg,
.exo-btn-arrow-svg {
  stroke: #ffffff !important;
  flex-shrink: 0 !important;
}

/* ====================================================================
 * LoginUjian Component Styles (1:1 with Image 4)
 * Strictly isolated: only applies to .portal-login-root and child elements
 * ==================================================================== */
.portal-login-root {
  position: relative !important;
  flex: 1 1 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  max-height: 100vh !important;
  max-height: 100dvh !important;
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-color: #0f172a !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.portal-backdrop-overlay {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.85) 0%, rgba(30, 58, 138, 0.78) 50%, rgba(15, 23, 42, 0.90) 100%) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  z-index: 1 !important;
  pointer-events: none !important;
}

.portal-content-container {
  position: relative !important;
  z-index: 2 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  flex: 1 1 auto !important;
  height: 100% !important;
  min-height: 100% !important;
  max-height: 100vh !important;
  max-height: 100dvh !important;
  max-width: 1100px !important;
  margin: 0 auto !important;
  width: 100% !important;
  padding: 14px 24px 10px 24px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.portal-header-wrap {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding-bottom: 8px !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  flex-shrink: 0 !important;
}

.portal-school-identity {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.portal-school-logo-box {
  width: 52px !important;
  height: 52px !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.portal-school-logo {
  width: 100% !important;
  height: 100% !important;
  max-width: 52px !important;
  max-height: 52px !important;
  object-fit: contain !important;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.25)) !important;
}

.portal-school-text {
  display: flex !important;
  flex-direction: column !important;
}

.portal-school-name {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  letter-spacing: 0.01em !important;
  margin: 0 !important;
  line-height: 1.2 !important;
  text-transform: uppercase !important;
}

.portal-school-tagline {
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  color: #60a5fa !important;
  letter-spacing: 0.1em !important;
  margin: 2px 0 0 0 !important;
  text-transform: uppercase !important;
}

.portal-school-motto {
  font-size: 0.72rem !important;
  color: #cbd5e1 !important;
  margin: 2px 0 0 0 !important;
  font-style: italic !important;
}

.portal-header-slogan-wrap {
  display: flex !important;
  align-items: center !important;
}

.portal-header-slogan-text {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: 1.05rem !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  font-style: normal !important;
  transform: none !important;
  letter-spacing: 0.01em !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4) !important;
}

.portal-main-area {
  flex: 1 1 auto !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 6px 0 !important;
  margin: 0 !important;
  min-height: 0 !important;
}

.portal-card {
  background: #ffffff !important;
  border-radius: 24px !important;
  box-shadow: 0 12px 24px -4px rgba(0, 0, 0, 0.12), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
  max-width: 440px !important;
  width: 100% !important;
  padding: 28px 28px 24px !important;
  text-align: center !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  box-sizing: border-box !important;
}

.portal-card-top-icon {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: auto !important;
  height: auto !important;
  margin: 0 auto 12px auto !important;
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
}

.portal-card-top-icon.has-custom-event-logo {
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
}

.portal-card-event-img {
  max-width: 140px !important;
  max-height: 90px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto !important;
}

.portal-card-title {
  font-size: 1.28rem !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  margin: 0 0 2px 0 !important;
}

.portal-card-subtitle {
  font-size: 0.82rem !important;
  color: #64748b !important;
  margin: 0 0 12px 0 !important;
}

.portal-error-banner {
  background: #fef2f2 !important;
  border: 1px solid #fecaca !important;
  border-radius: 10px !important;
  padding: 10px 14px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-bottom: 20px !important;
  text-align: left !important;
}

.portal-error-icon {
  color: #ef4444 !important;
  flex-shrink: 0 !important;
}

.portal-error-text {
  font-size: 0.825rem !important;
  color: #b91c1c !important;
  font-weight: 600 !important;
}

.portal-form {
  text-align: left !important;
}

.portal-form-group {
  margin-bottom: 12px !important;
}

.portal-form-label {
  display: block !important;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  color: #475569 !important;
  letter-spacing: 0.05em !important;
  margin-bottom: 4px !important;
  text-transform: uppercase !important;
}

.portal-input-wrap {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  height: 48px !important;
  background: #f8fafc !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 12px !important;
  padding: 0 12px !important;
  gap: 10px !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
}

.portal-input-wrap:focus-within {
  border-color: #2563eb !important;
  background: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12) !important;
}

.portal-input-wrap.portal-input-error {
  border-color: #ef4444 !important;
  background: #fff5f5 !important;
}

.portal-field-icon {
  position: static !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  width: 20px !important;
  height: 20px !important;
  color: #3b82f6 !important;
  pointer-events: none !important;
}

.portal-input-field,
input.portal-input-field,
.portal-input-wrap input {
  flex: 1 1 auto !important;
  width: 100% !important;
  height: 100% !important;
  border: none !important;
  border-width: 0 !important;
  border-style: none !important;
  border-color: transparent !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 0.95rem !important;
  color: #0f172a !important;
  font-weight: 500 !important;
  line-height: normal !important;
}

.portal-input-field:focus,
input.portal-input-field:focus,
.portal-input-wrap input:focus {
  border: none !important;
  border-width: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  background-color: transparent !important;
}

.portal-input-field::placeholder {
  color: #94a3b8 !important;
  font-size: 0.88rem !important;
  font-weight: 400 !important;
}

.portal-eye-toggle-btn {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  border-width: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer !important;
  color: #64748b !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  outline: none !important;
  flex-shrink: 0 !important;
  width: 28px !important;
  height: 28px !important;
  transition: color 0.15s ease !important;
}

.portal-eye-toggle-btn:hover {
  color: #2563eb !important;
}

.portal-field-err-msg {
  font-size: 0.72rem !important;
  color: #dc2626 !important;
  margin-top: 3px !important;
  margin-bottom: 0 !important;
}

.portal-options-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 14px !important;
  font-size: 0.8rem !important;
}

.portal-remember-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  cursor: pointer !important;
  user-select: none !important;
  margin-bottom: 0 !important;
}

.portal-checkbox {
  width: 15px !important;
  height: 15px !important;
  accent-color: #2563eb !important;
  cursor: pointer !important;
  margin: 0 !important;
}

.portal-remember-text {
  color: #475569 !important;
  font-weight: 500 !important;
}

.portal-forgot-link {
  color: #2563eb !important;
  text-decoration: none !important;
  font-weight: 600 !important;
  font-size: 0.8rem !important;
}

.portal-forgot-link:hover {
  text-decoration: underline !important;
  color: #1d4ed8 !important;
}

.portal-btn-wrap {
  width: 100% !important;
}

.portal-submit-btn {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 10px 18px !important;
  background: #2563eb !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 9px !important;
  font-weight: 700 !important;
  font-size: 0.9rem !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35) !important;
}

.portal-submit-btn:hover {
  background: #1d4ed8 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.45) !important;
}

.portal-submit-btn:active {
  transform: translateY(0) !important;
}

.portal-submit-btn:disabled {
  opacity: 0.7 !important;
  cursor: not-allowed !important;
}

.portal-divider-wrap {
  position: relative !important;
  text-align: center !important;
  margin: 20px 0 16px 0 !important;
}

.portal-divider-wrap::before {
  content: "" !important;
  position: absolute !important;
  top: 50% !important;
  left: 0 !important;
  right: 0 !important;
  height: 1px !important;
  background: #e2e8f0 !important;
  z-index: 0 !important;
}

.portal-divider-text {
  position: relative !important;
  background: #ffffff !important;
  padding: 0 12px !important;
  font-size: 0.78rem !important;
  color: #94a3b8 !important;
  font-weight: 600 !important;
  z-index: 1 !important;
  text-transform: uppercase !important;
}

.portal-notice-box {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 12px 14px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  text-align: left !important;
}

.portal-notice-icon {
  flex-shrink: 0 !important;
  color: #2563eb !important;
}

.portal-notice-text {
  margin: 0 !important;
  font-size: 0.78rem !important;
  color: #475569 !important;
  line-height: 1.45 !important;
}

.portal-features-row {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 16px !important;
  max-width: 580px !important;
  width: 100% !important;
  margin-top: 32px !important;
}

.portal-feature-item {
  background: rgba(255, 255, 255, 0.08) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 14px !important;
  padding: 16px 14px !important;
  text-align: center !important;
  color: #ffffff !important;
  transition: transform 0.2s ease, background 0.2s ease !important;
}

.portal-feature-item:hover {
  transform: translateY(-2px) !important;
  background: rgba(255, 255, 255, 0.12) !important;
}

.portal-feature-icon-circle {
  width: 40px !important;
  height: 40px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.95) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto 10px auto !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15) !important;
}

.portal-feature-title {
  font-size: 0.88rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  margin: 0 0 2px 0 !important;
}

.portal-feature-desc {
  font-size: 0.72rem !important;
  color: #cbd5e1 !important;
  margin: 0 !important;
}

.portal-footer-wrap {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  margin: 0 !important;
  margin-top: auto !important;
  flex-shrink: 0 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

.portal-copyright-text {
  font-size: 0.78rem !important;
  color: #94a3b8 !important;
  margin: 0 !important;
}

.portal-footer-version-text {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: 0.8rem !important;
  color: #94a3b8 !important;
  font-weight: 500 !important;
  letter-spacing: 0.05em !important;
}

@media (max-width: 640px) {
  .portal-features-row {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .portal-header-wrap {
    flex-direction: column !important;
    align-items: flex-start !important;
  }

  .portal-footer-wrap {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
  }
}

@media (max-height: 520px) {
  .portal-login-root {
    height: auto !important;
    min-height: 100vh !important;
    overflow-y: auto !important;
  }

  .portal-content-container {
    height: auto !important;
    overflow-y: visible !important;
  }
}


/* ====================================================================
 * EXO CBT — Shared Stimulus (Wacana Terpadu) UI Components
 * Mobile-first: Adaptive Peek Card + Floating Pill + Bottom Sheet Drawer
 * Desktop (≥1024px): Independent-scroll Split 2-Panel
 * ==================================================================== */

/* ---- A. Stimulus Desktop Split Wrapper ---- */
.exo-stimulus-desktop-wrap {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}

@media (min-width: 1024px) {
  .exo-stimulus-desktop-wrap {
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    min-height: 440px;
  }

  .exo-stimulus-panel-left {
    flex: 0 0 50%;
    max-width: 50%;
    overflow-y: auto;
    max-height: 72vh;
    border-right: 1.5px solid #e2e8f0;
    padding-right: 1.5rem;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
  }

  .exo-stimulus-panel-right {
    flex: 0 0 50%;
    max-width: 50%;
    overflow-y: auto;
    max-height: 72vh;
    padding-left: 1.5rem;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
  }
}

/* ---- B. Stimulus Peek Card (Mobile Only) ---- */
.exo-stimulus-peek-card {
  background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
  border: 1.5px solid #bfdbfe;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.08);
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.2s ease;
}

.exo-stimulus-peek-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1rem;
  background: linear-gradient(90deg, #3b82f6 0%, #06b6d4 100%);
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.exo-stimulus-peek-card-title {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: #fff;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.exo-stimulus-peek-card-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.exo-stimulus-btn-icon {
  background: rgba(255, 255, 255, 0.18);
  border: none;
  border-radius: 8px;
  color: #fff;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.18s ease;
  padding: 0;
  flex-shrink: 0;
}

.exo-stimulus-btn-icon:hover {
  background: rgba(255, 255, 255, 0.3);
}

.exo-stimulus-peek-body {
  max-height: 190px;
  overflow-y: auto;
  padding: 0.9rem 1rem;
  font-size: 0.875rem;
  color: #1e3a5f;
  line-height: 1.7;
  scrollbar-width: thin;
  scrollbar-color: #93c5fd transparent;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.exo-stimulus-peek-body.expanded {
  max-height: 55vh;
}

.exo-stimulus-peek-body img {
  max-width: 100%;
  border-radius: 8px;
  margin: 0.5rem auto;
  display: block;
}

/* Hide Peek Card on desktop — split panel takes over */
@media (min-width: 1024px) {
  .exo-stimulus-peek-card {
    display: none !important;
  }

  .exo-stimulus-fab-pill {
    display: none !important;
  }
}

/* ---- C. Floating Action Pill (Bottom Right) — Mobile ---- */
.exo-stimulus-fab-pill {
  position: fixed;
  bottom: 72px;
  /* above bottom nav bar (if any) */
  right: 16px;
  z-index: 1100;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #3b82f6 0%, #0ea5e9 100%);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 0.5rem 1.1rem 0.5rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.45);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.3s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  opacity: 0;
  pointer-events: none;
}

.exo-stimulus-fab-pill.visible {
  opacity: 1;
  pointer-events: auto;
}

.exo-stimulus-fab-pill:active {
  transform: scale(0.95);
}

/* ---- D. Bottom Sheet Drawer ---- */
.exo-stimulus-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 1200;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  animation: exoOverlayIn 0.22s ease;
}

.exo-stimulus-drawer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1201;
  background: #fff;
  border-radius: 20px 20px 0 0;
  max-height: 78vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.06);
  animation: exoDrawerUp 0.3s cubic-bezier(0.34, 1.26, 0.64, 1);
  overflow: hidden;
}

.exo-stimulus-drawer-handle {
  width: 40px;
  height: 4px;
  background: #cbd5e1;
  border-radius: 2px;
  margin: 10px auto 0;
  flex-shrink: 0;
}

.exo-stimulus-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.25rem 0.6rem;
  border-bottom: 1px solid #f1f5f9;
  flex-shrink: 0;
}

.exo-stimulus-drawer-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: #1e3a5f;
}

.exo-stimulus-drawer-close {
  background: #f1f5f9;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #64748b;
  transition: background 0.18s, color 0.18s;
}

.exo-stimulus-drawer-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.exo-stimulus-drawer-body {
  overflow-y: auto;
  padding: 1rem 1.25rem 1.5rem;
  font-size: 0.9rem;
  color: #1e3a5f;
  line-height: 1.75;
  flex: 1 1 auto;
  scrollbar-width: thin;
  scrollbar-color: #93c5fd transparent;
}

.exo-stimulus-drawer-body img {
  max-width: 100%;
  border-radius: 10px;
  margin: 0.75rem auto;
  display: block;
}

/* ---- E. Audio Player inside Stimulus ---- */
.exo-stimulus-audio {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 10px;
  padding: 0.6rem 1rem;
  margin-bottom: 0.75rem;
}

.exo-stimulus-audio audio {
  width: 100%;
  height: 36px;
  accent-color: #3b82f6;
}

/* ---- F. Stimulus Badge in question grid (ModalQuestion) ---- */
.exo-soal-grid-btn.has-stimulus {
  border-color: #60a5fa !important;
  box-shadow: 0 0 0 2px rgba(96, 165, 250, 0.30) !important;
}

.exo-soal-grid-btn.has-stimulus::after {
  content: '';
  position: absolute;
  top: 3px;
  right: 3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3b82f6;
}

/* ---- G. Keyframe Animations ---- */
@keyframes exoOverlayIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes exoDrawerUp {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

@keyframes exoDrawerDown {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(100%);
  }
}

/* ---- H. Stimulus Label (desktop panel header) ---- */
.exo-stimulus-panel-label {
  display: none;
}

@media (min-width: 1024px) {
  .exo-stimulus-panel-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #3b82f6;
    margin-bottom: 0.6rem;
    padding-bottom: 0.4rem;
    border-bottom: 1.5px solid #bfdbfe;
  }
}

/* ---- I. Zero Flicker Transition: Stimulus stays mounted ---- */
.exo-stimulus-content-inner {
  display: block;
  /* The actual rich HTML content rendered from TinyMCE / SunEditor */
}

.exo-stimulus-content-inner img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
}

.exo-stimulus-content-inner p {
  margin: 0 0 0.65em;
}

.exo-stimulus-content-inner h1,
.exo-stimulus-content-inner h2,
.exo-stimulus-content-inner h3,
.exo-stimulus-content-inner h4 {
  font-weight: 700;
  margin: 0.8em 0 0.4em;
  color: #0f172a;
}

.exo-stimulus-content-inner table {
  border-collapse: collapse;
  width: 100%;
  margin: 0.5em 0;
  font-size: 0.85em;
}

.exo-stimulus-content-inner td,
.exo-stimulus-content-inner th {
  border: 1px solid #cbd5e1;
  padding: 0.4em 0.6em;
}

.exo-stimulus-content-inner th {
  background: #eff6ff;
  font-weight: 600;
}

/* === EXA Modern Student Login Portal Theme (Precision client_ui) === */
/* ==========================================================================
   EXA Modern Client UI Design System (Precision Matched to /client_ui)
   Desktop: #4B4E53 Dark Canvas + 2-Column Floating Card
   Mobile:  #F8F9FE Light Clean + Elevated Card
   ========================================================================== */

.exa-client-portal {
  min-height: 100vh;
  width: 100%;
  position: relative;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   DESKTOP VIEWPORT (>= 1024px)
   ========================================================================== */
.exa-desktop-view {
  display: none;
}

@media (min-width: 1024px) {
  .exa-desktop-view {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background-color: #f8fafc;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 50%, #e2e8f0 100%);
    padding: 2.5rem 2rem;
    box-sizing: border-box;
  }

  .exa-mobile-view {
    display: none !important;
  }
}

.exa-desktop-card {
  width: 100%;
  max-width: 1240px;
  background-color: #ffffff;
  border-radius: 16px !important;
  border: 1px solid rgba(226, 232, 240, 0.8) !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05) !important;
  border: 1px solid #e2e8f0 !important;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 680px;
  margin: auto;
}

/* --- Left Form Column --- */
.exa-desktop-form-col {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 3.25rem 4rem;
  background-color: #ffffff;
  z-index: 10;
  box-sizing: border-box;
}

@media (min-width: 1280px) {
  .exa-desktop-form-col {
    padding: 3.75rem 5rem;
  }
}

/* 5x5 Dot Matrix Corner Decorations (Top-Left & Bottom-Left) */
.exa-desktop-form-col::before {
  content: '';
  position: absolute;
  top: 26px;
  left: 26px;
  width: 68px;
  height: 68px;
  background-image: radial-gradient(circle, #cbd5e1 1.75px, transparent 1.75px);
  background-size: 14px 14px;
  background-repeat: repeat;
  opacity: 0.85;
  pointer-events: none;
  z-index: 1;
}

.exa-desktop-form-col::after {
  content: '';
  position: absolute;
  bottom: 26px;
  left: 26px;
  width: 68px;
  height: 68px;
  background-image: radial-gradient(circle, #cbd5e1 1.75px, transparent 1.75px);
  background-size: 14px 14px;
  background-repeat: repeat;
  opacity: 0.85;
  pointer-events: none;
  z-index: 1;
}

.exa-dt-header {
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
}

.exa-dt-brand-lockup {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  margin: 0;
}

.exa-dt-brand-logo {
  width: 64px;
  height: 64px;
  max-width: 68px;
  max-height: 68px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  transform: translateY(-6px);
}

.exa-dt-brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.exa-dt-title {
  font-size: 2.15rem;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #0f172a;
  text-transform: none;
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.exa-dt-title-row {
  display: inline-flex;
  align-items: center;
  gap: 1.15rem;
  margin: 0 0 0.5rem 0;
}

.exa-mb-title-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin: 0 0 0.4rem 0;
}

.exa-mb-brand-logo {
  width: 34px;
  height: 34px;
  max-width: 36px;
  max-height: 36px;
  object-fit: contain;
  flex-shrink: 0;
  display: block;
  align-self: center;
}

.exa-mb-title {
  font-size: 1.55rem;
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #191c1f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0;
  text-transform: none;
}

.exa-dt-brand-accent {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #818cf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  font-weight: 700;
}

.exa-dt-brand-tenant {
  color: #0f172a;
  display: inline-block;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.exa-dt-subtitle {
  font-size: 0.95rem;
  color: #64748b;
  margin: 0.35rem 0 0 0;
  font-weight: 400;
  line-height: 1.4;
}

.exa-dt-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.exa-dt-input-group {
  display: flex;
  flex-direction: column;
}

.exa-dt-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #262626;
  margin-bottom: 0.5rem;
}

.exa-dt-input {
  width: 100% !important;
  padding: 0.875rem 1rem !important;
  border-radius: 8px !important;
  border: 1.5px solid #d4d4d8 !important;
  background-color: #ffffff !important;
  color: #262626 !important;
  font-size: 0.875rem !important;
  line-height: 1.25rem !important;
  transition: all 0.2s ease-in-out;
  box-sizing: border-box;
  outline: none;
  box-shadow: none !important;
}

.exa-dt-input:focus {
  border-color: #2563eb !important;
  box-shadow: none !important;
}

.exa-dt-password-wrap {
  position: relative;
  width: 100%;
}

.exa-dt-input-pass {
  padding-right: 3rem !important;
}

.exa-dt-eye-toggle {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #737373;
  padding: 0.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.375rem;
  transition: color 0.15s ease;
}

.exa-dt-eye-toggle:hover {
  color: #5D5FEF;
}

.exa-eye-svg {
  width: 1.25rem;
  height: 1.25rem;
}

.exa-dt-options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.25rem;
  font-size: 0.875rem;
}

.exa-dt-checkbox-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.exa-dt-checkbox {
  width: 1rem;
  height: 1rem;
  border-radius: 0.25rem;
  border: 1px solid #d4d4d4;
  accent-color: #5D5FEF;
  cursor: pointer;
}

.exa-dt-checkbox-text {
  margin-left: 0.625rem;
  color: #404040;
  font-size: 0.875rem;
  transition: color 0.15s ease;
}

.exa-dt-checkbox-label:hover .exa-dt-checkbox-text {
  color: #171717;
}

.exa-dt-forgot-btn {
  background: transparent;
  border: none;
  font-weight: 500;
  color: #262626;
  font-size: 0.875rem;
  cursor: pointer;
  transition: color 0.15s ease;
}

.exa-dt-forgot-btn:hover {
  color: #5D5FEF;
}

.exa-dt-action-wrap {
  padding-top: 0.5rem;
}

.exa-dt-submit-btn {
  width: 100%;
  padding: 0.875rem 1.5rem;
  border-radius: 8px !important;
  background: #059669 !important;
  color: #ffffff;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: none !important;
  transition: all 0.2s ease-in-out;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  border: none;
}

.exa-dt-submit-btn:hover {
  background: #047857 !important;
  box-shadow: none !important;
  transform: none !important;
}

.exa-dt-submit-btn:active {
  transform: none !important;
}

.exa-dt-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

.exa-btn-arrow-svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s ease;
}

.exa-dt-submit-btn:hover .exa-btn-arrow-svg {
  transform: translateX(2px);
}

.exa-dt-footer {
  padding-top: 1rem;
  text-align: center;
}

.exa-dt-footer-text {
  font-size: 0.875rem;
  color: #737373;
  margin: 0;
}

/* --- Right Visual Column --- */
.exa-desktop-visual-col {
  position: relative;
  background-color: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 100%;
  border-left: 1px solid #f5f5f5;
}

.exa-dt-floating-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background-color: rgba(255, 255, 255, 0.95);
  padding: 0.5rem 0.875rem;
  border-radius: 8px !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: none !important;
  user-select: none;
}

.exa-dt-fb-left {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.exa-dt-fb-icon-wrap {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  color: #047857;
  overflow: hidden;
  padding: 2px;
  flex-shrink: 0;
}

.exa-dt-fb-school-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
}

.exa-dt-fb-svg {
  width: 1.15rem;
  height: 1.15rem;
  color: #047857;
}

.exa-mb-pill-logo {
  width: 1.15rem;
  height: 1.15rem;
  object-fit: contain;
  border-radius: 50%;
  flex-shrink: 0;
}

.exa-dt-fb-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.exa-dt-fb-name {
  font-size: 11px;
  font-weight: 700;
  color: #262626;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.exa-dt-fb-sub {
  font-size: 9px;
  font-weight: 500;
  color: #737373;
  line-height: 1.7;
}

.exa-dt-fb-divider {
  height: 1.5rem;
  width: 1px;
  background-color: #e5e5e5;
}

.exa-dt-fb-right {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.exa-dt-visual-glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top right, rgba(229, 229, 229, 0.4), transparent, rgba(93, 95, 239, 0.1));
  pointer-events: none;
}

.exa-dt-img-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.exa-dt-hero-img {
  width: 100%;
  height: 100%;
  min-height: 480px;
  object-fit: cover;
  user-select: none;
  display: block;
}

/* ==========================================================================
   MOBILE VIEWPORT (< 1024px)
   Matching client_ui/mobile.html with 100% precision
   ========================================================================== */
.exa-mobile-view {
  background-color: #f8f9fe;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1rem 0;
  box-sizing: border-box;
}

.exa-mobile-container {
  width: 100%;
  max-width: 28rem;
  /* max-w-md */
  margin: 0 auto;
  padding: 1rem;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.exa-mb-top-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.exa-mb-school-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  background-color: rgba(231, 232, 237, 0.85);
  color: #191c1f;
  font-size: 0.75rem;
  font-weight: 500;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.exa-mb-pill-icon {
  width: 0.9375rem;
  height: 0.9375rem;
  color: #4343d5;
}

.exa-mb-school-pill-text {
  letter-spacing: 0.02em;
}

.exa-mb-version-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  background-color: rgba(231, 232, 237, 0.85);
  color: #464555;
  font-size: 11px;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.exa-mb-pulse-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background-color: #007d8e;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.85);
  }
}

.exa-mb-elevated-card {
  background-color: #ffffff;
  border-radius: 12px !important;
  padding: 1.25rem;
  box-shadow: none !important;
  position: relative;
  overflow: hidden;
  border: 1px solid #e2e8f0 !important;
}

.exa-mb-ambient-glow {
  display: none !important;
}

.exa-mb-banner-wrap {
  position: relative;
  width: 100%;
  border-radius: 8px !important;
  overflow: hidden;
  background-color: #f2f3f8;
  margin-bottom: 1rem;
}

.exa-mb-banner-inner {
  width: 100%;
  height: 12rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.exa-mb-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.exa-mb-banner-wrap:hover .exa-mb-hero-img {
  transform: scale(1.03);
}

.exa-mb-header {
  margin-bottom: 1.25rem;
  text-align: center;
}

.exa-mb-title {
  font-size: 1.55rem;
  line-height: 2rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  color: #191c1f;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 0;
  text-transform: none;
}

.exa-mb-brand-accent,
.exa-mb-title-gradient {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #818cf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  font-weight: 700;
}

.exa-mb-brand-tenant {
  color: #0f172a;
  display: inline-block;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.exa-mb-subtitle {
  font-size: 0.75rem;
  color: #464555;
  margin-top: 0.25rem;
  max-width: 260px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.exa-mb-form {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
}

.exa-mb-field-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-align: left;
}

.exa-mb-field-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #191c1f;
  margin: 0;
}

.exa-mb-input-box {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 8px !important;
  background-color: #f8fafc;
  transition: all 0.2s ease;
  border: 1.5px solid #d4d4d8 !important;
  box-shadow: none !important;
}

.exa-mb-input-box:focus-within {
  background-color: #ffffff;
  box-shadow: none !important;
  border-color: #2563eb !important;
}

.exa-input-box-error {
  border-color: #e11d48 !important;
}

.exa-mb-input-icon {
  width: 1.125rem;
  height: 1.125rem;
  color: #767586;
  margin-left: 0.875rem;
  flex-shrink: 0;
  user-select: none;
}

.exa-mb-input-control {
  width: 100% !important;
  background: transparent !important;
  border: none !important;
  padding: 0.75rem 0.75rem 0.75rem 0.75rem !important;
  font-size: 0.875rem !important;
  color: #191c1f !important;
  outline: none !important;
  box-sizing: border-box;
}

.exa-mb-input-control::placeholder {
  color: rgba(118, 117, 134, 0.7);
}

.exa-mb-input-pass {
  letter-spacing: 0.1em;
}

.exa-mb-eye-btn {
  margin-right: 0.5rem;
  padding: 0.375rem;
  border-radius: 0.5rem;
  color: #767586;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: color 0.15s ease;
}

.exa-mb-eye-btn:hover {
  color: #4343d5;
}

.exa-mb-eye-svg {
  width: 1.125rem;
  height: 1.125rem;
}

.exa-mb-options-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.125rem;
  font-size: 0.75rem;
}

.exa-mb-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  user-select: none;
  color: #464555;
  font-size: 0.75rem;
}

.exa-mb-checkbox {
  width: 1rem;
  height: 1rem;
  border-radius: 0.25rem;
  accent-color: #4343d5;
  cursor: pointer;
}

.exa-mb-forgot-btn {
  font-size: 0.75rem;
  font-weight: 500;
  color: #4343d5;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color 0.15s ease;
}

.exa-mb-forgot-btn:hover {
  color: #5d5fef;
}

.exa-mb-submit-btn {
  width: 100%;
  margin-top: 0.25rem;
  min-height: 48px;
  background-color: #059669 !important;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 8px !important;
  box-shadow: none !important;
  transition: background-color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
}

.exa-mb-submit-btn:hover {
  background-color: #047857 !important;
  box-shadow: none !important;
}

.exa-mb-submit-btn:active {
  transform: none !important;
}

.exa-mb-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.exa-mb-arrow-svg {
  width: 1rem;
  height: 1rem;
}

.exa-mb-ribbon {
  margin-top: 1rem;
  padding: 0.625rem;
  border-radius: 0.75rem;
  background-color: #f2f3f8;
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.exa-mb-ribbon-icon {
  width: 1rem;
  height: 1rem;
  color: #007d8e;
  flex-shrink: 0;
}

.exa-mb-ribbon-text {
  font-size: 11px;
  line-height: 1.35;
  color: #464555;
  margin: 0;
}

.exa-mb-footer {
  margin-top: 1rem;
  text-align: center;
}

.exa-mb-footer-text {
  font-size: 11px;
  color: #767586;
  margin: 0;
}

/* --- Shared Closed Gate Card --- */
.exa-gate-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 0.5rem;
}

.exa-gate-icon-circle {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 9999px;
  background-color: #fef3c7;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d97706;
  margin-bottom: 0.75rem;
}

.exa-gate-svg {
  width: 1.75rem;
  height: 1.75rem;
}

.exa-gate-pill-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  background-color: #fee2e2;
  color: #b91c1c;
  margin-bottom: 0.5rem;
}

.exa-gate-heading {
  font-size: 1.25rem;
  font-weight: 700;
  color: #171717;
  margin: 0 0 0.25rem 0;
}

.exa-gate-text {
  font-size: 0.8125rem;
  color: #737373;
  margin: 0 0 0.75rem 0;
  line-height: 1.4;
  max-width: 300px;
}

.exa-gate-tip {
  font-size: 0.75rem;
  color: #1e3a8a;
  background-color: #eff6ff;
  border-radius: 0.5rem;
  padding: 0.5rem 0.75rem;
  line-height: 1.4;
  margin-bottom: 1rem;
  max-width: 320px;
}

.exa-gate-btn-refresh {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  border-radius: 0.75rem;
  background-color: #4343d5;
  color: #ffffff;
  font-weight: 600;
  font-size: 0.8125rem;
  border: none;
  cursor: pointer;
  transition: background-color 0.2s;
}

.exa-gate-btn-refresh:hover {
  background-color: #3939b8;
}

.exa-gate-polling-hint {
  margin-top: 0.75rem;
  font-size: 10px;
  color: #a3a3a3;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.exa-pulse-dot-cyan {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 9999px;
  background-color: #06b6d4;
  animation: pulse 2s infinite;
}

/* --- Error Alerts & Spinners --- */
.exa-error-banner {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  background-color: #fff1f2;
  border: 1px solid #ffe4e6;
  margin-bottom: 0.5rem;
}

.exa-error-icon {
  width: 1.125rem;
  height: 1.125rem;
  color: #e11d48;
  flex-shrink: 0;
}

.exa-error-text {
  font-size: 0.8125rem;
  color: #be123c;
  line-height: 1.35;
}

.exa-field-error {
  font-size: 11px;
  color: #e11d48;
  margin: 0.25rem 0 0 0;
}

.exa-spinner-spin {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 9999px;
  animation: spin 0.8s linear infinite;
}

.exa-spinner-spin-sm {
  width: 0.875rem;
  height: 0.875rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 9999px;
  animation: spin 0.8s linear infinite;
}

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

/* --- 14. Mobile Exam Portal Ergonomics & Input Protection --- */
@media (max-width: 640px) {

  /* Prevent iOS Safari / Chrome Android Auto-Zoom */
  input[type="text"],
  input[type="password"],
  textarea {
    font-size: 16px !important;
  }

  /* Safe Inset for Exam Question Drawer Trigger to Avoid Edge Gesture Clash */
  .exo-drawer-trigger-right {
    right: 4px !important;
    box-shadow: 0 2px 8px rgba(114, 124, 245, 0.3) !important;
  }

  /* Fixed Bottom Exam Action Toolbar */
  .exo-bottom-nav-sticky {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    z-index: 40 !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-top: 1px solid #e2e8f0 !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05) !important;
    padding-top: 10px !important;
    padding-bottom: max(12px, env(safe-area-inset-bottom)) !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
  }
}

/* ==========================================================================
   15. MODERN CRISP FLAT ARCHITECTURE (ZERO SHADOW & CONCENTRIC RADII)
   Eliminates expensive Gaussian blur rasterization on student mobile devices.
   Enforces clean 1px hairline structural borders (#e2e8f0) and tight radii.
   ========================================================================== */

/* Universal Zero-Shadow & Hairline Border Override (Cards Only) */
.bg-white.shadow,
.bg-white.shadow-sm,
.bg-white.shadow-md,
.bg-white.shadow-lg,
.bg-white.shadow-xl:not(.exo-question-drawer),
.bg-white.shadow-2xl:not(.exo-question-drawer),
.bg-white.shadow-xs {
  box-shadow: none !important;
  border: 1px solid #e2e8f0 !important;
}

/* Universal Radii Normalization: No bubbly/puffy curves */
.rounded-3xl,
.rounded-2xl {
  border-radius: 10px !important;
}

.rounded-xl {
  border-radius: 10px !important;
}

/* Specific Overrides for Student Login Interface */
.exa-desktop-view {
  background-color: #eef1fc !important;
  background: linear-gradient(135deg, #f5f6ff 0%, #eef1fc 50%, #e9ecf8 100%) !important;
}

.exa-desktop-card {
  border-radius: 16px !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05) !important;
  border: 1px solid #e2e8f0 !important;
  border: 1px solid rgba(226, 232, 240, 0.8) !important;
}

.exa-dt-floating-badge {
  border-radius: 12px !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08) !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  background-color: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
}

.exa-dt-input {
  border-radius: 12px !important;
  border: 1.5px solid #e2e8f0 !important;
  box-shadow: none !important;
  padding: 0.85rem 1.15rem !important;
  color: #0f172a !important;
  font-size: 0.95rem !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.exa-dt-input:focus {
  border-color: #059669 !important;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.12) !important;
}

.exa-dt-submit-btn,
.exa-mb-submit-btn {
  border-radius: 12px !important;
  background: #059669 !important;
  background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.28) !important;
  border: none !important;
  transform: none !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  padding: 0.875rem 1.5rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
}

.exa-dt-submit-btn:hover,
.exa-mb-submit-btn:hover {
  background: linear-gradient(135deg, #047857 0%, #059669 100%) !important;
  box-shadow: 0 6px 18px rgba(5, 150, 105, 0.35) !important;
  transform: translateY(-1px) !important;
}

.exa-dt-checkbox {
  width: 1.1rem !important;
  height: 1.1rem !important;
  border-radius: 4px !important;
  accent-color: #5D5FEF !important;
  cursor: pointer !important;
}

.exa-dt-checkbox-text {
  margin-left: 0.5rem !important;
  color: #334155 !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
}

.exa-dt-forgot-btn {
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  color: #334155 !important;
}

.exa-dt-footer-text {
  text-align: center !important;
  font-size: 0.825rem !important;
  color: #94a3b8 !important;
  font-weight: 400 !important;
}

.exa-mb-elevated-card {
  border-radius: 12px !important;
  box-shadow: none !important;
  border: 1px solid #e2e8f0 !important;
}

.exa-mb-banner-wrap {
  border-radius: 8px !important;
}

.exa-mb-input-box {
  border-radius: 8px !important;
  border: 1.5px solid #d4d4d8 !important;
  box-shadow: none !important;
  background-color: #f8fafc !important;
}

.exa-mb-input-box:focus-within {
  border-color: #059669 !important;
  box-shadow: none !important;
  background-color: #ffffff !important;
}

.exa-mb-ribbon {
  border-radius: 8px !important;
  border: 1px solid #e2e8f0 !important;
  background-color: #f8fafc !important;
}

.exa-mb-input-control,
.exa-mb-input-control:focus,
.exa-mb-input-control:active {
  outline: none !important;
  outline-width: 0 !important;
  border: none !important;
  border-width: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  background-color: transparent !important;
  -webkit-tap-highlight-color: transparent !important;
}

.exa-mb-input-control:-webkit-autofill,
.exa-mb-input-control:-webkit-autofill:hover,
.exa-mb-input-control:-webkit-autofill:focus,
.exa-mb-input-control:-webkit-autofill:active,
.exa-dt-input:-webkit-autofill,
.exa-dt-input:-webkit-autofill:hover,
.exa-dt-input:-webkit-autofill:focus,
.exa-dt-input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
  -webkit-text-fill-color: #191c1f !important;
  caret-color: #191c1f !important;
  transition: background-color 5000s ease-in-out 0s;
}

.exa-mb-school-pill,
.exa-mb-version-pill {
  border-radius: 6px !important;
  box-shadow: none !important;
  border: 1px solid #e2e8f0 !important;
}

/* =========================================================================
   EXA Student Exam Portal — High-Contrast Modern Crisp Flat Engine (v6.0.83)
   Fix for Missing Tailwind v2 Utilities, Blank Elements, and Low Contrast
   ========================================================================= */

/* 1. Universal Color Utilities Missing from Tailwind v2 Build */
.bg-blue-600,
button.bg-blue-600,
div.bg-blue-600,
span.bg-blue-600 {
  background-color: #4f46e5 !important;
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%) !important;
  color: #ffffff !important;
}

.hover\:bg-blue-700:hover,
button.bg-blue-600:hover {
  background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%) !important;
  color: #ffffff !important;
}

.active\:bg-blue-800:active,
button.bg-blue-600:active {
  background: #3730a3 !important;
  transform: scale(0.985);
}

.border-blue-600 {
  border-color: #4f46e5 !important;
}

.bg-blue-50\/50,
.bg-blue-50 {
  background-color: #eef2ff !important;
}

.bg-emerald-500,
.bg-emerald-600,
button.bg-emerald-600 {
  background-color: #10b981 !important;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
}

.hover\:bg-emerald-700:hover,
button.bg-emerald-600:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
}

.border-emerald-600 {
  border-color: #047857 !important;
}

.text-emerald-600,
svg.text-emerald-600 {
  color: #059669 !important;
}

.text-emerald-700 {
  color: #047857 !important;
}

.bg-emerald-50 {
  background-color: #ecfdf5 !important;
}

.border-emerald-100 {
  border-color: #d1fae5 !important;
}

.bg-amber-400,
.bg-amber-500,
button.bg-amber-500 {
  background-color: #f59e0b !important;
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%) !important;
  color: #451a03 !important;
}

.hover\:bg-amber-600:hover,
button.bg-amber-500:hover {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
}

.border-amber-400,
.border-amber-500 {
  border-color: #d97706 !important;
}

/* 2. Top Action Bar: Question Number Badge, Subtest & Timer */
div.h-8.bg-blue-600,
div.h-9.bg-blue-600 {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  letter-spacing: 0.3px !important;
  box-shadow: 0 2px 6px rgba(79, 70, 229, 0.25) !important;
  border: 1px solid #4338ca !important;
  border-radius: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* 3. Multiple Choice Option Cards - Model B: Soft Pill Highlight (Zero Border, Soft Sky Mist) */
.exo-stimulus-desktop-wrap label.border-blue-600,
.exo-stimulus-desktop-wrap label:has(input[type="radio"]:checked),
.exo-stimulus-desktop-wrap label:has(input[type="checkbox"]:checked),
.space-y-3 label.border-blue-600,
.space-y-3 label:has(input[type="radio"]:checked),
.space-y-3 label:has(input[type="checkbox"]:checked),
.grid label.border-blue-600,
.grid label:has(input[type="radio"]:checked),
.grid label:has(input[type="checkbox"]:checked),
.exo-question-options label:has(input[type="radio"]:checked),
.exo-question-options label:has(input[type="checkbox"]:checked) {
  border: none !important;
  border-width: 0 !important;
  border-radius: 12px !important;
  background-color: #f0f7ff !important;
  background: #f0f7ff !important;
  box-shadow: none !important;
  -webkit-tap-highlight-color: transparent !important;
}

/* Eliminate borders and tap-highlight on all option labels (Model B: Soft Pill Highlight) */
.space-y-3 label,
.grid label,
.exo-option-card,
.exo-question-options label,
.exo-stimulus-desktop-wrap label {
  border: none !important;
  border-width: 0 !important;
  -webkit-tap-highlight-color: transparent !important;
}

/* Question Workspace Container - Zero Shadows */
.max-w-5xl>.bg-white,
.exo-question-card,
.exo-stimulus-desktop-wrap {
  box-shadow: none !important;
}

/* Explicit Reset for Login Page and UI Checkboxes (Prevent option card styling leak) */
.portal-login-root label,
.exa-dt-options-row,
.exa-dt-options-row label,
.exa-mb-options-row,
.exa-mb-options-row label,
.exa-dt-checkbox-label,
.exa-mb-checkbox-label,
label:has(input.exa-dt-checkbox),
label:has(input.exa-mb-checkbox) {
  border: none !important;
  background: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

/* Ragu-ragu Button in bottom toolbar: Prominent & Clear Borders (No Shadow) */
.exo-bottom-nav-sticky label:not(.border-amber-400):not(.border-amber-500):not(.bg-amber-50) {
  border: 1.5px solid #cbd5e1 !important;
  background-color: #ffffff !important;
  background: #ffffff !important;
  color: #475569 !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  transition: all 0.2s ease !important;
}

.exo-bottom-nav-sticky label:not(.border-amber-400):not(.border-amber-500):not(.bg-amber-50):hover {
  border-color: #94a3b8 !important;
  background-color: #f8fafc !important;
  box-shadow: none !important;
}

.exo-bottom-nav-sticky label.border-amber-400,
.exo-bottom-nav-sticky label.border-amber-500,
.exo-bottom-nav-sticky label.bg-amber-50,
.exo-bottom-nav-sticky label:has(input[type="checkbox"]:checked) {
  border: 2px solid #f59e0b !important;
  background-color: #fffbeb !important;
  background: #fffbeb !important;
  color: #92400e !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}

/* Checkbox Ragu-ragu: Orange / Amber Accent */
.exo-bottom-nav-sticky input[type="checkbox"],
.exo-bottom-nav-sticky label input[type="checkbox"],
input[type="checkbox"].text-amber-500 {
  accent-color: #f59e0b !important;
  cursor: pointer !important;
}

/* Hide SVG bounding-box polygons so chevrons render crisp white */
.exo-bottom-nav-sticky button polygon,
.exo-bottom-nav-sticky button polygon#Path {
  display: none !important;
  fill: none !important;
  stroke: none !important;
}

/* Letter Badge when Selected (A, B, C, D, E) - Strictly scoped ONLY to the direct letter badge child (`> span:first-of-type`), NEVER KaTeX or inner option spans */
.exo-stimulus-desktop-wrap label.border-blue-600>span.bg-blue-600,
.exo-stimulus-desktop-wrap label:has(input[type="radio"]:checked)>span:first-of-type,
.exo-stimulus-desktop-wrap label.border-blue-600>span:first-of-type,
.exo-stimulus-desktop-wrap label>span.bg-blue-600 {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%) !important;
  border: 1.5px solid #4338ca !important;
  color: #ffffff !important;
  font-weight: 700 !important;

}

/* Protect KaTeX Math Elements inside Selected Options from Inheriting Badge Background/Border */
.exo-stimulus-desktop-wrap label .katex,
.exo-stimulus-desktop-wrap label .katex *,
.exo-stimulus-desktop-wrap .prose .katex,
.exo-stimulus-desktop-wrap .prose .katex * {
  background: transparent !important;
  background-color: transparent !important;
  border-color: currentColor !important;
  box-shadow: none !important;
}

.exo-stimulus-desktop-wrap label .katex span:not(.frac-line):not(.overline-line):not(.underline-line):not(.rule),
.exo-stimulus-desktop-wrap .prose .katex span:not(.frac-line):not(.overline-line):not(.underline-line):not(.rule) {
  border-left: none !important;
  border-right: none !important;
  border-top: none !important;
}

/* Letter Badge when Unselected */
label span.bg-gray-100 {
  background-color: #f1f5f9 !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #475569 !important;
  font-weight: 700 !important;
}

/* Interactive Option Card Hover */
label.border-gray-200:hover {
  border-color: #93c5fd !important;
  background-color: #f8fafc !important;
}

/* 4. Bottom Navigation Toolbar & Action Buttons (No Shadow) */
/* Tombol Selanjutnya */
button.bg-blue-600,
.exo-btn-next {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  border: 1px solid #4338ca !important;
  box-shadow: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  cursor: pointer !important;
}

button.bg-blue-600:hover,
.exo-btn-next:hover {
  box-shadow: none !important;
}

button.bg-blue-600 span,
button.bg-blue-600 svg,
button.bg-blue-600 path {
  color: #ffffff !important;
  stroke: #ffffff !important;
  fill: #ffffff !important;
}

/* Tombol Sebelumnya */
button.border-gray-300.bg-white {
  background-color: #ffffff !important;
  border: 1.5px solid #d1d5db !important;
  color: #374151 !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  box-shadow: none !important;
}

button.border-gray-300.bg-white:hover {
  background-color: #f9fafb !important;
  border-color: #9ca3af !important;
  box-shadow: none !important;
}

/* Tombol Selesai */
button.bg-emerald-600 {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  border: 1px solid #047857 !important;
  color: #ffffff !important;
  box-shadow: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
}

button.bg-emerald-600:hover {
  box-shadow: none !important;
}

/* 5. Desktop Stimulus Split Panel Hardening & Layout Centering (>= 1024px) */
@media (min-width: 1024px) {

  /* Expand main container and exam card symmetrically on desktop */
  main:has(.exo-stimulus-desktop-wrap),
  main:has(.max-w-5xl) {
    max-width: 1536px !important;
    width: 96% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
  }

  .max-w-5xl:has(.exo-stimulus-panel-left),
  .max-w-5xl:has(.has-stimulus),
  div.max-w-5xl:has(.exo-stimulus-desktop-wrap),
  .max-w-5xl {
    max-width: 100% !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  /* Default without stimulus: full width standard layout */
  .exo-stimulus-desktop-wrap {
    display: block !important;
    width: 100% !important;
  }

  /* When stimulus exists: activate side-by-side 2-column grid with balanced proportions (52% Wacana : 48% Soal & Opsi) */
  .exo-stimulus-desktop-wrap:has(.exo-stimulus-panel-left),
  .exo-stimulus-desktop-wrap.has-stimulus {
    display: grid !important;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr) !important;
    /* ~53% Wacana : 47% Soal */
    column-gap: 32px !important;
    row-gap: 0 !important;
    align-items: stretch !important;
    border-top: 1px solid #e5e7eb !important;
    padding-top: 0 !important;
    width: 100% !important;
  }

  /* Left Column: Wacana takes column 1 and spans all rows, filling 100% width of column 1 (no artificial 50% max-width cap) */
  .exo-stimulus-desktop-wrap .exo-stimulus-panel-left {
    grid-column: 1 / 2 !important;
    grid-row: 1 / span 50 !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 auto !important;
    box-sizing: border-box !important;
    position: sticky !important;
    top: 0 !important;
    max-height: calc(100vh - 120px) !important;
    overflow-y: auto !important;
    border-right: 1.5px solid #e2e8f0 !important;
    background-color: #f8fafc !important;
    padding: 2rem 2.25rem !important;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
  }

  /* Enhanced Wacana Typography for Optimal Reading Flow */
  .exo-stimulus-desktop-wrap .exo-stimulus-content-inner {
    font-size: 1rem !important;
    line-height: 1.85 !important;
    color: #1e293b !important;
    letter-spacing: 0.2px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Right Column: All question elements (prompt, options, inputs) go into column 2 */
  .exo-stimulus-desktop-wrap:has(.exo-stimulus-panel-left)>div:not(.exo-stimulus-panel-left),
  .exo-stimulus-desktop-wrap.has-stimulus>div:not(.exo-stimulus-panel-left) {
    grid-column: 2 / 3 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Reset artificial min-height and padding on right panel prompt */
  .exo-stimulus-desktop-wrap .exo-stimulus-panel-right {
    min-height: auto !important;
    padding: 2rem 2rem 1rem 0.5rem !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 auto !important;
    box-sizing: border-box !important;
  }

  /* Proper padding for options containers when in stimulus mode */
  .exo-stimulus-desktop-wrap:has(.exo-stimulus-panel-left)>.space-y-3,
  .exo-stimulus-desktop-wrap.has-stimulus>.space-y-3,
  .exo-stimulus-desktop-wrap:has(.exo-stimulus-panel-left)>.grid,
  .exo-stimulus-desktop-wrap.has-stimulus>.grid {
    padding: 0 2rem 2rem 0.5rem !important;
  }

  /* Hide any empty or injected duplicate stimulus mount points */
  #exo-stimulus-injected {
    display: none !important;
  }

  /* In Layout 4 (Split question/options), stack vertically when inside stimulus panel */
  .exo-stimulus-panel-right .grid.grid-cols-1.lg\:grid-cols-2 {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
  }

  .exo-stimulus-panel-right .grid.grid-cols-1.lg\:grid-cols-2>div:first-child {
    border-right: none !important;
    border-bottom: 1.5px solid #e5e7eb !important;
    padding-right: 0 !important;
    padding-bottom: 1.25rem !important;
  }

  /* Desktop Bottom Navigation Bar: curves symmetrically along with the exam card */
  .max-w-5xl>.bg-white.rounded-xl>.exo-bottom-nav-sticky,
  .bg-white.rounded-xl>.exo-bottom-nav-sticky {
    border-bottom-left-radius: 0.75rem !important;
    border-bottom-right-radius: 0.75rem !important;
  }
}

/* Universal Exam Card Symmetry (Top & Bottom Rounded 12px) */
.max-w-5xl>.bg-white.rounded-xl,
.bg-white.rounded-xl:has(.exo-stimulus-desktop-wrap),
div:has(> .exo-stimulus-desktop-wrap).rounded-xl {
  border-radius: 0.75rem !important;
  border-bottom-left-radius: 0.75rem !important;
  border-bottom-right-radius: 0.75rem !important;
  overflow: hidden !important;
}

/* 6. Mobile Viewport & Ergonomics Optimization (<= 1023px) */
@media (max-width: 1023px) {

  /* Ensure parent exam card retains full rounded-xl corner symmetry (top & bottom) */
  .bg-white.border.border-gray-200.shadow-xs.rounded-xl.px-2.overflow-hidden,
  .bg-white.rounded-xl.overflow-hidden {
    border-radius: 0.75rem !important;
    border-bottom-left-radius: 0.75rem !important;
    border-bottom-right-radius: 0.75rem !important;
    overflow: hidden !important;
  }

  /* Bottom clearance ONLY on outer main container so inner question cards have zero wasted empty space */
  main {
    padding-bottom: 84px !important;
  }

  .max-w-5xl,
  .exo-stimulus-desktop-wrap,
  .space-y-4 {
    padding-bottom: 0 !important;
  }

  .p-4.sm\:p-6,
  .p-4.sm\:p-8 {
    padding-bottom: 16px !important;
    min-height: 0 !important;
  }

  /* Fixed Bottom Thumb-Zone Navigation Bar: PINNED TO VIEWPORT BOTTOM */
  .exo-bottom-nav-sticky,
  .bg-white>.bg-gray-50\/90.border-t.border-gray-200.flex.justify-between,
  .bg-white>div.border-t:has(button):has(label:has(input[type="checkbox"])) {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    z-index: 9999 !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-top: 1.5px solid #e2e8f0 !important;
    box-shadow: 0 -2px 8px rgba(15, 23, 42, 0.06) !important;
    padding-top: 10px !important;
    padding-bottom: max(12px, env(safe-area-inset-bottom)) !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    margin: 0 !important;
    border-radius: 0 !important;
    box-sizing: border-box !important;
  }

  /* Button alignment inside toolbar */
  .exo-bottom-nav-sticky>div {
    display: flex !important;
    align-items: center !important;
  }

  /* Prev Button: Modern Red Background (No Shadow) */
  .exo-bottom-nav-sticky>div:first-child button {
    min-height: 44px !important;
    min-width: 44px !important;
    padding: 0 14px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 10px !important;
    background: #ef4444 !important;
    background-color: #ef4444 !important;
    border: 1px solid #dc2626 !important;
    color: #ffffff !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
  }

  .exo-bottom-nav-sticky>div:first-child button:hover {
    background: #dc2626 !important;
    background-color: #dc2626 !important;
    border-color: #b91c1c !important;
    box-shadow: none !important;
  }

  .exo-bottom-nav-sticky>div:first-child button span,
  .exo-bottom-nav-sticky>div:first-child button svg,
  .exo-bottom-nav-sticky>div:first-child button path {
    color: #ffffff !important;
    fill: #ffffff !important;
    stroke: #ffffff !important;
  }

  /* Next Button: Modern Blue Background (No Shadow) */
  .exo-bottom-nav-sticky>div:last-child button:not(.bg-emerald-600):not(.bg-amber-500):not(.bg-rose-500):not(.bg-rose-600) {
    min-height: 44px !important;
    min-width: 44px !important;
    padding: 0 16px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 10px !important;
    background: #2563eb !important;
    background-color: #2563eb !important;
    border: 1px solid #1d4ed8 !important;
    color: #ffffff !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
  }

  .exo-bottom-nav-sticky>div:last-child button:not(.bg-emerald-600):not(.bg-amber-500):not(.bg-rose-500):not(.bg-rose-600):hover {
    background: #1d4ed8 !important;
    background-color: #1d4ed8 !important;
    border-color: #1e40af !important;
    box-shadow: none !important;
  }

  .exo-bottom-nav-sticky>div:last-child button span,
  .exo-bottom-nav-sticky>div:last-child button svg {
    color: #ffffff !important;
  }

  .exo-bottom-nav-sticky>div:last-child button path {
    color: #ffffff !important;
    fill: #ffffff !important;
    stroke: #ffffff !important;
  }

  .exo-bottom-nav-sticky>div:last-child button polyline {
    fill: none !important;
    stroke: #ffffff !important;
    stroke-width: 2.5 !important;
  }

  /* Universal Shadow Elimination across all Bottom Nav Buttons & States */
  .exo-bottom-nav-sticky button,
  .exo-bottom-nav-sticky button:hover,
  .exo-bottom-nav-sticky button:active,
  .exo-bottom-nav-sticky button:focus {
    box-shadow: none !important;
  }

  /* On narrow smartphone screens (< 440px), keep icons prominent and hide long text to avoid overlap */
  @media (max-width: 439px) {
    .exo-bottom-nav-sticky button span.hidden.sm\:inline {
      display: none !important;
    }
  }

  @media (min-width: 440px) {
    .exo-bottom-nav-sticky button span.hidden.sm\:inline {
      display: inline !important;
      font-size: 0.825rem !important;
      font-weight: 700 !important;
    }
  }

  /* Center: Ragu-ragu Checkbox Pill with Prominent Border (No Shadow, Orange Accent) */
  .exo-bottom-nav-sticky label {
    min-height: 44px !important;
    padding: 0 16px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 10px !important;
    font-size: 0.85rem !important;
    white-space: nowrap !important;
    font-weight: 700 !important;
    border: 1.5px solid #cbd5e1 !important;
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #475569 !important;
    box-shadow: none !important;
    transition: all 0.2s ease !important;
  }

  .exo-bottom-nav-sticky label:hover {
    border-color: #94a3b8 !important;
    background-color: #f8fafc !important;
    box-shadow: none !important;
  }

  .exo-bottom-nav-sticky label.border-amber-400,
  .exo-bottom-nav-sticky label.border-amber-500,
  .exo-bottom-nav-sticky label.bg-amber-50,
  .exo-bottom-nav-sticky label:has(input[type="checkbox"]:checked) {
    border: 2px solid #f59e0b !important;
    background: #fffbeb !important;
    background-color: #fffbeb !important;
    color: #92400e !important;
    box-shadow: none !important;
  }

  /* Checkbox inside Ragu-ragu: Orange / Amber Accent */
  .exo-bottom-nav-sticky label input[type="checkbox"] {
    accent-color: #f59e0b !important;
    cursor: pointer !important;
  }

  /* Flag icon removed completely */
  .exo-bottom-nav-sticky label::before {
    display: none !important;
    content: none !important;
  }

  /* Mobile Option Cards (Touch Target Economy) */
  label.flex.items-start {
    min-height: 48px !important;
    padding: 12px 14px !important;
    border-radius: 10px !important;
  }

  /* Mobile Options Row & Wrapper Padding (Full Width - Zero Extra Horizontal Padding) */
  .exo-stimulus-desktop-wrap>.space-y-3,
  .exo-stimulus-desktop-wrap .space-y-3,
  .space-y-3:has(label.flex.items-start),
  .exo-stimulus-desktop-wrap>div>.space-y-3,
  .exo-stimulus-desktop-wrap .grid.grid-cols-1.lg\:grid-cols-2>div:last-child {
    padding-left: 0 !important;
    padding-right: 0 !important;
    box-sizing: border-box !important;
  }

  /* Mobile Question Drawer: Flush Right Edge, Full Height, 100% KOTAK */
  .exo-question-drawer,
  div.exo-question-drawer {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;
    width: 360px !important;
    max-width: 88vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    display: flex !important;
    flex-direction: column !important;
    border-radius: 0 !important;
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
    margin: 0 !important;
    transform: none !important;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.08) !important;
    border-left: 1px solid #e2e8f0 !important;
    z-index: 9999 !important;
  }

  .exo-question-drawer .grid {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  /* Mobile Question Buttons: ROUNDED SQUIRCLE SESUAI IMAGE2 */
  .exo-question-drawer .grid button,
  .exo-drawer-panel .grid button {
    width: 100% !important;
    max-width: 48px !important;
    height: 44px !important;
    font-size: 0.95rem !important;
    border-radius: 12px !important;
    /* ROUNDED SESUAI IMAGE2 */
  }

  .exo-question-drawer>div:last-child button,
  .exo-drawer-panel>div:last-child button {
    border-radius: 12px !important;
    /* Tombol Tutup ROUNDED */
  }

  /* Mobile Responsive Stacked Reading Card (Opsi A) */
  .exo-stimulus-panel-left {
    display: block !important;
    width: auto !important;
    box-sizing: border-box !important;
    background-color: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;

    margin: 12px 10px 16px 10px !important;
    padding: 14px 16px !important;
    max-height: 250px !important;
    overflow-y: auto !important;
    scrollbar-width: thin;
    scrollbar-color: #cbd5e1 transparent;
  }

  .exo-stimulus-panel-label {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;

    letter-spacing: 0.05em !important;
    color: #2563eb !important;
    margin-bottom: 8px !important;
    padding-bottom: 6px !important;
    border-bottom: 1px solid #e2e8f0 !important;
  }

  .exo-stimulus-panel-left .exo-stimulus-content-inner {
    font-size: 0.925rem !important;
    line-height: 1.75 !important;
    color: #1e293b !important;
  }

  /* Mobile Peek Card is replaced by Opsi A Stacked Card above */
  .exo-stimulus-peek-card,
  .exo-stimulus-fab-pill {
    display: none !important;
  }
}

/* ====================================================================
   UNIVERSAL QUESTION DRAWER & MODAL CONTAINER (DESKTOP & MOBILE)
   Outer shell is 100% KOTAK (border-radius: 0), flush to right edge.
   All inner contents (buttons, close, status icons) are ROUNDED per image2.
   ==================================================================== */
div.fixed.z-50:has(.exo-question-drawer)>div.flex,
div:has(> .exo-question-drawer) {
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  justify-content: flex-end !important;
  align-items: stretch !important;
  min-height: 100vh !important;
  height: 100% !important;
}

.exo-question-drawer,
div.exo-question-drawer,
.exo-question-drawer.bg-white,
[role="dialog"].exo-question-drawer {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: auto !important;
  width: 420px !important;
  max-width: 88vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  max-height: 100vh !important;
  max-height: 100dvh !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  display: flex !important;
  flex-direction: column !important;
  border-radius: 0 !important;
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  margin: 0 !important;
  transform: none !important;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.08) !important;
  border-left: 1px solid #e2e8f0 !important;
  z-index: 9999 !important;
}

/* Inner elements: ROUNDED SESUAI IMAGE2 */
.exo-question-drawer .grid button,
[role="dialog"].exo-question-drawer .grid button {
  border-radius: 12px !important;
}

.exo-question-drawer>div:last-child button,
[role="dialog"].exo-question-drawer>div:last-child button {
  border-radius: 12px !important;
}

.exo-question-drawer .p-1\.5,
[role="dialog"].exo-question-drawer .p-1\.5 {
  border-radius: 8px !important;
}

.exo-question-drawer button:has(svg),
[role="dialog"].exo-question-drawer button:has(svg) {
  border-radius: 8px !important;
}

.exo-question-drawer .rounded-xl,
[role="dialog"].exo-question-drawer .rounded-xl {
  border-radius: 12px !important;
}

.exo-question-drawer .rounded-lg,
[role="dialog"].exo-question-drawer .rounded-lg {
  border-radius: 8px !important;
}

.exo-question-drawer .rounded-md,
[role="dialog"].exo-question-drawer .rounded-md {
  border-radius: 6px !important;
}

/* =========================================================================
   16. UJIAN KONFIRM & RUANG TUNGGU UJIAN (UjianPrepare) HARMONIZATION (v6.0.95)
   ========================================================================= */

/* Section Label: DAFTAR MATA UJIAN YANG TERSEDIA */
.exa-jadwal-list-label {
  display: block !important;
  margin-top: 8px !important;
  margin-bottom: 10px !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  color: #64748b !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}

/* Schedule Item Card in UjianKonfirm (Natural Title without Purple Box) */
.exa-jadwal-card {
  display: flex !important;
  align-items: center !important;
  padding: 14px 16px !important;
  border-radius: 10px !important;
  border: 1.5px solid #e2e8f0 !important;
  background-color: #ffffff !important;
  cursor: pointer !important;
  transition: all 0.18s ease !important;
  gap: 12px !important;
}

.exa-jadwal-card:hover {
  border-color: #cbd5e1 !important;
  background-color: #f8fafc !important;
}

.exa-jadwal-card.is-selected,
.exa-jadwal-card:has(input[type="radio"]:checked) {
  border: 1.5px solid #3b82f6 !important;
  background-color: #f0f7ff !important;
  background: #f0f7ff !important;
}

.exa-jadwal-card .exa-jadwal-title,
.exa-jadwal-card:has(input[type="radio"]:checked) .exa-jadwal-title,
.exa-jadwal-card span.exa-jadwal-title {
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #0f172a !important;
  font-weight: 600 !important;
  font-size: 0.85rem !important;
  line-height: 1.35 !important;
  padding: 0 !important;
  display: block !important;
}

.exa-jadwal-card.is-selected .exa-jadwal-title,
.exa-jadwal-card:has(input[type="radio"]:checked) .exa-jadwal-title {
  color: #1d4ed8 !important;
}

/* Token Input Field (Clean, Centered, Crisp Flat) */
.exa-token-input {
  width: 100% !important;
  height: 44px !important;
  padding: 0 14px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  background-color: #ffffff !important;
  color: #0f172a !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.2em !important;
  text-align: center !important;
  text-transform: uppercase !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  transition: border-color 0.15s ease !important;
}

.exa-token-input::placeholder {
  font-family: 'Inter', system-ui, -apple-system, sans-serif !important;
  font-size: 0.85rem !important;
  font-weight: 500 !important;
  letter-spacing: 0.08em !important;
  color: #94a3b8 !important;
  text-align: center !important;
}

.exa-token-input:focus {
  border-color: #4f46e5 !important;
  box-shadow: none !important;
  outline: none !important;
}

/* Waiting Room (Ruang Tunggu Ujian - UjianPrepare.vue) */
.exa-prepare-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 12px !important;
  overflow: hidden !important;
}

.exa-prepare-header {
  background: linear-gradient(135deg, #2563eb 0%, #4338ca 100%) !important;
  padding: 20px 24px !important;
  text-align: center !important;
  color: #ffffff !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

.exa-prepare-icon-box {
  width: 44px !important;
  height: 44px !important;
  border-radius: 10px !important;
  background: rgba(255, 255, 255, 0.16) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 10px !important;
  color: #ffffff !important;
}

.exa-prepare-title {
  font-size: 1.2rem !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  line-height: 1.3 !important;
  margin: 0 0 4px 0 !important;
  text-align: center !important;
  max-width: 100% !important;
  white-space: normal !important;
}

.exa-prepare-subtitle {
  font-size: 0.8125rem !important;
  color: rgba(255, 255, 255, 0.88) !important;
  line-height: 1.45 !important;
  margin: 0 !important;
  text-align: center !important;
  max-width: 440px !important;
}

.exa-prepare-body {
  padding: 20px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
}

.exa-prepare-meta-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 12px !important;
  background-color: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 16px !important;
}

@media (min-width: 640px) {
  .exa-prepare-meta-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
    padding: 18px 20px !important;
  }
}

.exa-prepare-meta-item {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
  padding: 2px 0 !important;
}

.exa-prepare-meta-label {
  font-size: 0.7rem !important;
  font-weight: 600 !important;
  color: #64748b !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  line-height: 1.3 !important;
}

.exa-prepare-meta-value {
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  line-height: 1.4 !important;
}

.exa-prepare-meta-value.is-emerald {
  color: #059669 !important;
}

.exa-prepare-notice {
  background-color: #fffbeb !important;
  border: 1px solid #fde68a !important;
  border-radius: 10px !important;
  padding: 12px 16px !important;
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  color: #92400e !important;
  font-size: 0.825rem !important;
  line-height: 1.55 !important;
}

.exa-prepare-start-btn {
  width: 100% !important;
  min-height: 46px !important;
  padding: 12px 20px !important;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  border: none !important;
  border-radius: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.exa-prepare-start-btn:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
}

/* Justified Question Prompt & Reading Passage Typography (Rata Kanan-Kiri Rapi) */
.exo-stimulus-desktop-wrap .prose,
.exo-stimulus-desktop-wrap .prose p,
.exo-stimulus-desktop-wrap .prose div,
.exo-stimulus-content-inner,
.exo-stimulus-content-inner p,
.exo-stimulus-peek-card-body,
.exo-stimulus-peek-card-body p {
  text-align: justify !important;
  text-justify: inter-word !important;
}

/* CSS Performance Containment (Strictly scoped to non-fixed review cards) */
.exo-review-card {
  contain: content;
}

/* ==========================================================================
   MODAL SCRIM BACKDROP, DIALOG CARDS & ACTION BUTTONS
   High-contrast dark scrim backdrop with depth blur & focus isolation
   ========================================================================== */
.exo-modal-scrim-backdrop {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background-color: rgba(15, 23, 42, 0.68) !important;
  -webkit-backdrop-filter: blur(5px) !important;
  backdrop-filter: blur(5px) !important;
  z-index: 10050 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 1rem !important;
  box-sizing: border-box !important;
  animation: exoModalFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

.exo-modal-dialog-card {
  position: relative !important;
  width: 100% !important;
  max-width: 520px !important;
  background: #ffffff !important;
  border-radius: 12px !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  overflow: hidden !important;
  margin: auto !important;
  animation: exoModalScaleUp 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

body:has(.exo-modal-scrim-backdrop) .exo-user-dropdown-menu {
  display: none !important;
}

/* Modal Primary Button (Indigo Gradient, Solid High-Contrast White Text) */
.exo-modal-btn-primary,
button.exo-modal-btn-primary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 9px 22px !important;
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%) !important;
  background-color: #4f46e5 !important;
  color: #ffffff !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  border-radius: 10px !important;
  border: 1px solid #4338ca !important;
  cursor: pointer !important;
  transition: all 0.15s ease-in-out !important;
  text-decoration: none !important;
  line-height: 1.25rem !important;
}

.exo-modal-btn-primary:hover,
button.exo-modal-btn-primary:hover {
  background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%) !important;
  background-color: #4338ca !important;
  color: #ffffff !important;
  transform: translateY(-1px) !important;
}

.exo-modal-btn-primary:active,
button.exo-modal-btn-primary:active {
  transform: translateY(0) !important;
}

/* Modal Secondary / Dismiss Button */
.exo-modal-btn-secondary,
button.exo-modal-btn-secondary {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 8px 18px !important;
  background-color: #f8fafc !important;
  color: #475569 !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  border-radius: 10px !important;
  border: 1px solid #e2e8f0 !important;
  cursor: pointer !important;
  transition: all 0.15s ease-in-out !important;
  text-decoration: none !important;
  line-height: 1.25rem !important;
}

.exo-modal-btn-secondary:hover,
button.exo-modal-btn-secondary:hover {
  background-color: #f1f5f9 !important;
  color: #1e293b !important;
  border-color: #cbd5e1 !important;
}

/* Universal Indigo & Slate Utility Fallbacks for Older Tailwind/Mix */
.bg-indigo-600,
button.bg-indigo-600 {
  background-color: #4f46e5 !important;
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%) !important;
  color: #ffffff !important;
}

.bg-indigo-600:hover,
button.bg-indigo-600:hover,
.hover\:bg-indigo-700:hover {
  background: linear-gradient(135deg, #4338ca 0%, #3730a3 100%) !important;
  background-color: #4338ca !important;
  color: #ffffff !important;
}

.bg-indigo-50 {
  background-color: #eef2ff !important;
}

.text-indigo-600 {
  color: #4f46e5 !important;
}

.text-indigo-700 {
  color: #4338ca !important;
}

.bg-slate-400,
button.bg-slate-400 {
  background-color: #94a3b8 !important;
  color: #ffffff !important;
}

@keyframes exoModalFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes exoModalScaleUp {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(6px);
  }

  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ==========================================================================
   WAVE 2: MOBILE RESPONSIVENESS & OVERFLOW CONTAINMENT (360px - 430px)
   ========================================================================== */
.katex-display {
  overflow-x: auto;
  overflow-y: hidden;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
  padding: 4px 0;
}

.render-string-content,
.exo-stimulus-content-inner {
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
}

.render-string-content table,
.exo-stimulus-content-inner table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.render-string-content img,
.exo-stimulus-content-inner img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 640px) {
  body.exo-keyboard-open .exo-bottom-nav-sticky {
    position: static !important;
  }
}


/* FE-10: WCAG 2.4.7 Accessible Keyboard Focus Ring */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid #4f46e5 !important;
  outline-offset: 2px !important;
}
