/* ========================================================
   CBT EXAMBROWSER TKA 2027
   VIBRANT POP GROTESK & BUBBLY AESTHETIC DESIGN SYSTEM
   Palette: Electric Lime · Sunny Coral · Vivid Lavender · Electric Blue · Pure Ink
   Typography: Outfit & Plus Jakarta Sans (Modern Geometric Grotesk)
   Math Engine: KaTeX LaTeX Native Support & Equation Toolbars
   ======================================================== */

:root {
  /* ================= VIBRANT POP COLOR PALETTE ================= */
  --pop-lime: #10b981;
  --pop-volt: #00e575;
  --pop-lime-soft: #d1fae5;
  --pop-lime-glow: rgba(0, 229, 117, 0.25);

  --pop-coral: #ff5733;
  --pop-coral-hover: #e64522;
  --pop-coral-soft: #ffe6e0;
  --pop-coral-glow: rgba(255, 87, 51, 0.25);

  --pop-lavender: #7c3aed;
  --pop-lavender-hover: #6d28d9;
  --pop-lavender-soft: #ede9fe;
  --pop-lavender-glow: rgba(124, 58, 237, 0.25);

  --pop-blue: #0066ff;
  --pop-blue-hover: #0052cc;
  --pop-blue-soft: #e0edff;
  --pop-blue-glow: rgba(0, 102, 255, 0.25);

  --pop-cyan: #06b6d4;
  --pop-cyan-soft: #cffafe;

  --pop-amber: #f59e0b;
  --pop-amber-soft: #fef3c7;

  /* High-Contrast Canvas & Neutral Inks */
  --pop-ink: #0c0f17;
  --pop-ink-muted: #475569;
  --pop-ink-light: #64748b;
  --pop-canvas: #f8fafc;
  --pop-surface: #ffffff;
  --pop-surface-alt: #f1f5f9;

  /* Aliases for backward compatibility */
  --bg-canvas: #f8fafc;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --color-charcoal: #0c0f17;
  --color-charcoal-muted: #475569;
  --color-sage: #10b981;
  --color-terracotta: #ff5733;
  --color-border: #e2e8f0;
  --color-border-subtle: #f1f5f9;
  --color-ochre-ragu: #d97706;

  /* ================= BUBBLY RADII & SHAPES ================= */
  --radius-xs: 8px;
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --radius-pill: 9999px;

  /* ================= POP-OUT SHADOW SYSTEM ================= */
  --pop-shadow-sm: 2px 2px 0px #0c0f17;
  --pop-shadow: 4px 4px 0px #0c0f17;
  --pop-shadow-lg: 6px 6px 0px #0c0f17;
  --pop-shadow-float: 8px 8px 0px #0c0f17;

  --shadow-subtle: 0 4px 20px rgba(12, 15, 23, 0.05);
  --shadow-card: 4px 4px 0px #0c0f17, 0 12px 30px rgba(12, 15, 23, 0.06);

  /* Typography */
  --font-main: 'Outfit', 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;

  --exam-font-scale: 1rem;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: var(--pop-canvas);
  color: var(--pop-ink);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(124, 58, 237, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(0, 102, 255, 0.06) 0%, transparent 45%),
    radial-gradient(circle at 50% 50%, rgba(0, 229, 117, 0.04) 0%, transparent 50%);
}

.hidden { display: none !important; }

/* ================= TYPOGRAPHY & GROTESK HEADERS ================= */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-main);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--pop-ink);
}

.text-highlight-gradient {
  background: linear-gradient(135deg, #00f076 0%, #00d2ff 50%, #ff5733 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 900;
}

.text-gradient-coral {
  background: linear-gradient(135deg, #ff5733 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-lavender {
  background: linear-gradient(135deg, #7c3aed 0%, #0066ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ================= BUBBLY BADGES & TAGS ================= */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  border: 1.5px solid #0c0f17;
  box-shadow: 2px 2px 0px #0c0f17;
  text-transform: uppercase;
}

.badge-blue { background: var(--pop-blue-soft); color: var(--pop-blue); }
.badge-green { background: var(--pop-lime-soft); color: #047857; }
.badge-yellow { background: var(--pop-amber-soft); color: #b45309; }
.badge-red { background: var(--pop-coral-soft); color: var(--pop-coral); }
.badge-purple { background: var(--pop-lavender-soft); color: var(--pop-lavender); }

.bubbly-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 2px solid #0c0f17;
  box-shadow: 3px 3px 0px #0c0f17;
}

.tag-lime { background: var(--pop-volt); color: #0c0f17; }
.tag-coral { background: var(--pop-coral); color: #ffffff; }
.tag-lavender { background: var(--pop-lavender); color: #ffffff; }
.tag-blue { background: var(--pop-blue); color: #ffffff; }

/* ================= CHUNKY POP BUTTONS ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-main);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 11px 22px;
  border-radius: var(--radius-md);
  border: 2px solid #0c0f17;
  box-shadow: var(--pop-shadow);
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
  text-decoration: none;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--pop-shadow-lg);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0px #0c0f17;
}

.btn-primary { 
  background: var(--pop-blue); 
  color: #ffffff; 
}
.btn-primary:hover { 
  background: var(--pop-blue-hover); 
}

.btn-chunky-primary {
  background: linear-gradient(135deg, #0066ff 0%, #7c3aed 100%);
  color: #ffffff;
  border: 2.5px solid #0c0f17;
  box-shadow: 4px 4px 0px #0c0f17;
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  font-weight: 800;
}
.btn-chunky-primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0px #0c0f17;
  background: linear-gradient(135deg, #0052cc 0%, #6d28d9 100%);
}

.btn-secondary { 
  background: #ffffff; 
  color: var(--pop-ink); 
  border: 2px solid #0c0f17; 
}
.btn-secondary:hover { 
  background: #f8fafc; 
}

.btn-success, .btn-lime { 
  background: var(--pop-volt); 
  color: #0c0f17; 
}
.btn-success:hover, .btn-lime:hover { 
  background: #00cc66; 
}

.btn-danger, .btn-coral { 
  background: var(--pop-coral); 
  color: #ffffff; 
}
.btn-danger:hover, .btn-coral:hover { 
  background: var(--pop-coral-hover); 
}

.btn-warning { 
  background: var(--pop-amber); 
  color: #0c0f17; 
}

.btn-lavender {
  background: var(--pop-lavender);
  color: #ffffff;
}
.btn-lavender:hover {
  background: var(--pop-lavender-hover);
}

.btn:disabled { 
  opacity: 0.45; 
  cursor: not-allowed; 
  transform: none !important;
  box-shadow: 2px 2px 0px #0c0f17 !important;
}

/* ================= FORM CONTROLS ================= */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--pop-ink);
  margin-bottom: 8px;
}

.form-control, .pop-input {
  width: 100%;
  padding: 13px 18px;
  background: #ffffff;
  border: 2px solid #0c0f17;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-family: inherit;
  font-weight: 600;
  color: var(--pop-ink);
  outline: none;
  box-shadow: 2px 2px 0px rgba(12, 15, 23, 0.1);
  transition: all 0.2s ease;
}

.form-control:focus, .pop-input:focus {
  border-color: var(--pop-blue);
  box-shadow: 4px 4px 0px var(--pop-blue);
  background: #ffffff;
}

/* Password Input with Bubbly Eye Toggle */
.password-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-input-wrapper input {
  padding-right: 56px;
}

.pop-eye-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: #f1f5f9;
  border: 1.5px solid #0c0f17;
  padding: 8px 10px;
  color: var(--pop-ink);
  cursor: pointer;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 2px 2px 0px #0c0f17;
  transition: all 0.15s ease;
}

.pop-eye-btn:hover {
  background: var(--pop-volt);
  color: #0c0f17;
  transform: translateY(-50%) translate(-1px, -1px);
  box-shadow: 3px 3px 0px #0c0f17;
}

.pop-eye-btn:active {
  transform: translateY(-50%) translate(1px, 1px);
  box-shadow: 1px 1px 0px #0c0f17;
}

/* ================= AUTHENTIC TOP HEADER ================= */
.exambro-header {
  background: #ffffff;
  color: var(--pop-ink);
  padding: 14px 36px;
  border-bottom: 2.5px solid #0c0f17;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 50;
  box-shadow: 0 4px 0px rgba(12, 15, 23, 0.05);
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-circle {
  width: 48px;
  height: 48px;
  background: var(--pop-volt);
  border: 2.5px solid #0c0f17;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0c0f17;
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  box-shadow: 3px 3px 0px #0c0f17;
}

.brand-info h1 {
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--pop-ink);
  letter-spacing: -0.02em;
}

.brand-info p {
  font-size: 0.8rem;
  color: var(--pop-ink-muted);
  font-weight: 700;
}

.user-badge-header {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar-box {
  width: 42px;
  height: 42px;
  background: var(--pop-coral);
  color: #ffffff;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.05rem;
  border: 2px solid #0c0f17;
  box-shadow: 2px 2px 0px #0c0f17;
}

.user-meta-header {
  text-align: right;
  font-size: 0.85rem;
}

.user-meta-header .user-name {
  font-weight: 900;
  color: var(--pop-ink);
}

.user-meta-header .user-role-badge {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--pop-lavender);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ================= VIBRANT POP LOGIN SCREEN ================= */
.login-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  padding: 48px 20px;
  position: relative;
}

.pop-bubbly-card {
  width: 100%;
  max-width: 980px;
  background: #ffffff;
  border-radius: var(--radius-xl);
  border: 3px solid #0c0f17;
  box-shadow: var(--pop-shadow-lg);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  overflow: hidden;
  position: relative;
}

/* Hero Side with Vibrant Energy & Contours */
.hero-vibrant-gradient {
  background: linear-gradient(145deg, #0c0f17 0%, #1e1b4b 60%, #172554 100%);
  color: #ffffff;
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  border-right: 3px solid #0c0f17;
  overflow: hidden;
}

.hero-pop-decorations {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  pointer-events: none;
  overflow: hidden;
}

.pop-floating-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.35;
}

.orb-lime {
  width: 260px;
  height: 260px;
  background: var(--pop-volt);
  top: -80px;
  right: -60px;
}

.orb-coral {
  width: 220px;
  height: 220px;
  background: var(--pop-coral);
  bottom: 40px;
  left: -60px;
}

.orb-lavender {
  width: 240px;
  height: 240px;
  background: var(--pop-lavender);
  top: 40%;
  right: 20%;
}

.pop-contour-svg {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.55;
}

.login-hero-header {
  position: relative;
  z-index: 2;
}

.hero-main-title {
  font-size: 2.35rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #ffffff;
  line-height: 1.18;
  margin: 18px 0 14px 0;
}

.hero-main-desc {
  font-size: 0.94rem;
  color: #cbd5e1;
  line-height: 1.65;
  font-weight: 500;
}

/* Hero Equation Showcase */
.hero-equation-showcase {
  margin-top: 24px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.equation-showcase-badge {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--pop-volt);
  margin-bottom: 8px;
}

.equation-showcase-math {
  font-size: 1.05rem;
  color: #ffffff;
  overflow-x: auto;
  text-align: center;
}

.login-hero-footer {
  position: relative;
  z-index: 2;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 2px dashed rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  gap: 12px;
}

.bubbly-chip-green {
  background: rgba(0, 229, 117, 0.15);
  color: #a7f3d0;
  border: 1px solid rgba(0, 229, 117, 0.4);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

.bubbly-chip-purple {
  background: rgba(124, 58, 237, 0.25);
  color: #ddd6fe;
  border: 1px solid rgba(124, 58, 237, 0.4);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 800;
}

.pulsing-neon-dot {
  width: 10px;
  height: 10px;
  background: var(--pop-volt);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--pop-volt);
  animation: pulseNeon 1.5s infinite;
}

@keyframes pulseNeon {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

/* Form Side */
.login-form-pane {
  padding: 48px 40px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-pane-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 12px;
  background: var(--pop-lavender-soft);
  color: var(--pop-lavender);
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.form-pane-title {
  font-size: 1.65rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--pop-ink);
  margin-bottom: 6px;
}

.form-pane-sub {
  font-size: 0.88rem;
  color: var(--pop-ink-muted);
  margin-bottom: 24px;
  font-weight: 600;
}

.swiss-alert {
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 20px;
  border: 2px solid #0c0f17;
  box-shadow: 3px 3px 0px #0c0f17;
}

.alert-danger {
  background: var(--pop-coral-soft);
  color: #991b1b;
}

.alert-success {
  background: var(--pop-lime-soft);
  color: #065f46;
}

/* Quick Demo Pills Pop Style */
.pop-demo-panel {
  margin-top: 26px;
  padding: 18px;
  background: #f8fafc;
  border: 2px solid #0c0f17;
  border-radius: var(--radius-lg);
  box-shadow: 3px 3px 0px #0c0f17;
}

.demo-pills-title {
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: var(--pop-ink);
  margin-bottom: 12px;
}

.demo-pills-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pop-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  border: 2px solid #0c0f17;
  box-shadow: 2px 2px 0px #0c0f17;
  transition: all 0.15s ease;
}

.pop-pill-btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0px #0c0f17;
}

.pop-pill-btn:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0px #0c0f17;
}

.pop-pill-lime { background: var(--pop-volt); color: #0c0f17; }
.pop-pill-coral { background: var(--pop-coral); color: #ffffff; }
.pop-pill-blue { background: var(--pop-blue); color: #ffffff; }

/* ================= EQUATION & MATH STYLES (KATEX SUPPORT) ================= */
.math-equation-block {
  margin: 14px 0;
  padding: 16px 20px;
  background: #ffffff;
  border: 2px solid #0c0f17;
  border-radius: var(--radius-md);
  box-shadow: 3px 3px 0px #0c0f17;
  overflow-x: auto;
  text-align: center;
  font-size: 1.15rem;
}

.math-equation-inline {
  display: inline-block;
  padding: 2px 8px;
  background: var(--pop-blue-soft);
  color: var(--pop-blue);
  border-radius: var(--radius-sm);
  font-weight: 700;
  margin: 0 2px;
  border: 1px solid rgba(0, 102, 255, 0.3);
}

.math-toolbar-wrapper {
  margin-bottom: 12px;
  padding: 12px 14px;
  background: #f1f5f9;
  border: 2px solid #0c0f17;
  border-radius: var(--radius-md);
  box-shadow: 2px 2px 0px #0c0f17;
}

.math-toolbar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  flex-wrap: wrap;
  gap: 6px;
}

.math-toolbar-title {
  font-size: 0.78rem;
  font-weight: 900;
  color: var(--pop-lavender);
  letter-spacing: 0.04em;
}

.math-toolbar-hint {
  font-size: 0.72rem;
  color: var(--pop-ink-muted);
}

.math-toolbar-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.btn-math-symbol {
  padding: 4px 10px;
  background: #ffffff;
  border: 1.5px solid #0c0f17;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 1px 1px 0px #0c0f17;
  transition: all 0.12s ease;
}

.btn-math-symbol:hover {
  background: var(--pop-volt);
  transform: translate(-1px, -1px);
  box-shadow: 2px 2px 0px #0c0f17;
}

.btn-math-symbol:active {
  transform: translate(1px, 1px);
  box-shadow: 0px 0px 0px #0c0f17;
}

.math-live-preview-box {
  margin-top: 8px;
  padding: 10px 14px;
  background: #ffffff;
  border: 2px dashed #0c0f17;
  border-radius: var(--radius-sm);
}

.preview-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--pop-blue);
  margin-bottom: 4px;
}

.preview-content {
  font-size: 0.95rem;
  min-height: 28px;
}

/* ================= SISWA EXAM RUNNER WORKSPACE ================= */
.exam-runner-container {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: calc(100vh - 75px);
  background: var(--pop-canvas);
}

.exam-sub-bar {
  background: #ffffff;
  padding: 12px 36px;
  border-bottom: 2.5px solid #0c0f17;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 4px 0px rgba(12, 15, 23, 0.04);
}

.exam-timer-box {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: var(--pop-ink);
  color: var(--pop-volt);
  border: 2px solid #0c0f17;
  border-radius: var(--radius-pill);
  box-shadow: 3px 3px 0px #0c0f17;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  font-weight: 900;
}

.exam-timer-box.timer-low {
  background: var(--pop-coral);
  color: #ffffff;
  animation: pulseLow 1s infinite alternate;
}

@keyframes pulseLow {
  from { transform: scale(1); }
  to { transform: scale(1.04); }
}

.exam-content-area {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  padding: 28px 36px;
  flex: 1;
}

.stimulus-pane, .question-pane {
  background: #ffffff;
  border: 2.5px solid #0c0f17;
  border-radius: var(--radius-lg);
  box-shadow: var(--pop-shadow);
  padding: 28px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  max-height: calc(100vh - 220px);
}

.stimulus-title {
  font-size: 1.35rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--pop-ink);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 2px dashed #e2e8f0;
}

.stimulus-body {
  font-size: 0.98rem;
  line-height: 1.75;
  color: #1e293b;
}

.question-indicator-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 2px dashed #e2e8f0;
}

.question-number-pill {
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #ffffff;
  background: var(--pop-ink);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 2px solid #0c0f17;
  box-shadow: 2px 2px 0px #0c0f17;
}

.question-stem {
  font-size: 1.15rem;
  font-weight: 800;
  line-height: 1.6;
  color: var(--pop-ink);
  margin-bottom: 22px;
}

/* Interactive Option Items */
.options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.option-item, .pgk-checkbox-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: #ffffff;
  border: 2px solid #0c0f17;
  border-radius: var(--radius-md);
  box-shadow: 2px 2px 0px #0c0f17;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.option-item:hover, .pgk-checkbox-item:hover {
  background: var(--pop-blue-soft);
  transform: translate(-1px, -1px);
  box-shadow: 4px 4px 0px #0c0f17;
}

.option-item.selected, .pgk-checkbox-item.checked {
  background: var(--pop-volt);
  color: #0c0f17;
  border-color: #0c0f17;
  box-shadow: 4px 4px 0px #0c0f17;
  font-weight: 800;
}

.option-letter {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #0c0f17;
  background: #ffffff;
  color: #0c0f17;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 0.95rem;
  box-shadow: 1px 1px 0px #0c0f17;
}

.option-item.selected .option-letter, .pgk-checkbox-item.checked .option-letter {
  background: #0c0f17;
  color: var(--pop-volt);
}

.option-text {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5;
  flex: 1;
}

.pgk-checkbox-custom {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 2px solid #0c0f17;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1rem;
}

.pgk-checkbox-item.checked .pgk-checkbox-custom {
  background: #0c0f17;
  color: var(--pop-volt);
}

/* Exam Bottom Bar */
.exam-bottom-bar {
  background: #ffffff;
  padding: 16px 36px;
  border-top: 2.5px solid #0c0f17;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 -4px 0px rgba(12, 15, 23, 0.04);
}

/* ================= ADMIN & GURU LAYOUT ================= */
.admin-layout {
  display: flex;
  flex: 1;
  min-height: calc(100vh - 75px);
}

.admin-sidebar {
  width: 280px;
  background: #ffffff;
  border-right: 2.5px solid #0c0f17;
  display: flex;
  flex-direction: column;
  padding: 24px 18px;
}

.sidebar-menu {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 14px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--pop-ink);
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.15s ease;
}

.sidebar-item:hover {
  background: var(--pop-surface-alt);
  border-color: #0c0f17;
  transform: translate(-1px, -1px);
  box-shadow: 2px 2px 0px #0c0f17;
}

.sidebar-item.active {
  background: var(--pop-volt);
  color: #0c0f17;
  border: 2px solid #0c0f17;
  box-shadow: 3px 3px 0px #0c0f17;
  transform: translate(-1px, -1px);
}

.admin-main-content {
  flex: 1;
  padding: 32px 36px;
  background: var(--pop-canvas);
  overflow-y: auto;
}

/* Stat Cards in Dashboard */
.stat-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.stat-card {
  background: #ffffff;
  border: 2.5px solid #0c0f17;
  border-radius: var(--radius-lg);
  box-shadow: var(--pop-shadow);
  padding: 22px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.stat-card:nth-child(1) { border-top: 8px solid var(--pop-lavender); }
.stat-card:nth-child(2) { border-top: 8px solid var(--pop-coral); }
.stat-card:nth-child(3) { border-top: 8px solid var(--pop-volt); }
.stat-card:nth-child(4) { border-top: 8px solid var(--pop-blue); }

.stat-card-title {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--pop-ink-muted);
  margin-bottom: 8px;
}

.stat-card-val {
  font-size: 2.2rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: var(--pop-ink);
  font-family: var(--font-main);
}

/* Banner Status Ujian Token */
.token-display-banner {
  padding: 22px 28px;
  border-radius: var(--radius-lg);
  border: 2.5px solid #0c0f17;
  box-shadow: var(--pop-shadow);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}

/* Content Cards & Tables */
.content-card {
  background: #ffffff;
  border: 2.5px solid #0c0f17;
  border-radius: var(--radius-lg);
  box-shadow: var(--pop-shadow);
  padding: 26px;
  margin-bottom: 24px;
}

.card-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.custom-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 2px solid #0c0f17;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.custom-table th {
  background: #f1f5f9;
  color: var(--pop-ink);
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 16px;
  border-bottom: 2px solid #0c0f17;
  border-right: 1.5px solid #e2e8f0;
}

.custom-table td {
  padding: 12px 16px;
  border-bottom: 1.5px solid #e2e8f0;
  border-right: 1.5px solid #e2e8f0;
  font-size: 0.9rem;
  font-weight: 500;
}

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

.custom-table tr:hover td {
  background: #f8fafc;
}

/* Modal Dialog Pop Style */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(12, 15, 23, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-dialog {
  background: #ffffff;
  border: 3px solid #0c0f17;
  border-radius: var(--radius-xl);
  box-shadow: var(--pop-shadow-float);
  width: 100%;
  overflow: hidden;
}

.modal-header {
  padding: 18px 24px;
  border-bottom: 2.5px solid #0c0f17;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 900;
  font-size: 1.15rem;
}

.modal-header.primary {
  background: var(--pop-volt);
  color: #0c0f17;
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 18px 24px;
  border-top: 2.5px solid #0c0f17;
  background: #f8fafc;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

/* ================= RESPONSIVE & MOBILE-FIRST SYNC ================= */
@media (max-width: 900px) {
  .login-asymmetric-card {
    grid-template-columns: 1fr;
    max-width: 520px;
    border-radius: var(--radius-lg);
  }

  .login-hero-pane {
    border-right: none;
    border-bottom: 3px solid #0c0f17;
    padding: 36px 24px;
  }

  .login-form-pane {
    padding: 36px 24px;
  }

  .exam-content-area {
    grid-template-columns: 1fr;
    padding: 16px;
    gap: 16px;
  }

  .stimulus-pane, .question-pane {
    max-height: none;
    padding: 20px;
  }

  .admin-layout {
    flex-direction: column;
  }

  .admin-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 2.5px solid #0c0f17;
  }

  .admin-main-content {
    padding: 20px 16px;
  }
}
