/* ═══════════════════════════════════════════════════════════════
   Version-3: Scrimba SQL Sandbox — Complete Stylesheet
   ═══════════════════════════════════════════════════════════════ */

/* ─── Design Tokens ─── */
:root {
  --bg: #060913;
  --surface: #0b0f1a;
  --surface-2: #111827;
  --surface-hover: #1a2035;
  --border: rgba(255,255,255,0.07);
  --border-hover: rgba(255,255,255,0.15);
  --text: #f1f5f9;
  --text-muted: #64748b;
  --text-dim: #475569;
  --cyan: #00e6f6;
  --cyan-glow: rgba(0,230,246,0.18);
  --cyan-dim: rgba(0,230,246,0.08);
  --purple: #7c3aed;
  --purple-glow: rgba(124,58,237,0.15);
  --green: #10b981;
  --green-glow: rgba(16,185,129,0.15);
  --red: #ef4444;
  --red-glow: rgba(239,68,68,0.15);
  --amber: #f59e0b;
  --amber-glow: rgba(245,158,11,0.15);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', 'Fira Code', monospace;
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 14px;
  --shadow: 0 8px 32px rgba(0,0,0,0.35);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.5);
  --transition: 0.2s ease;
}

/* ─── Reset ─── */
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  max-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar Styles */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--cyan);
}

button { font-family: var(--font); cursor: pointer; }
a { color: var(--cyan); text-decoration: none; }

/* ═══════════════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════════════ */
.header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 0 1.25rem;
  height: 52px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.header-left, .header-center, .header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.header-left {
  flex: 1;
  justify-content: flex-start;
}
.header-center {
  flex: 0 0 auto;
  justify-content: center;
}
.header-right {
  flex: 1;
  justify-content: flex-end;
}

/* User Profile Avatar with Active Status Dot */
.user-profile {
  position: relative;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,0.4);
}
.active-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: var(--green);
  border: 2px solid #060913;
  border-radius: 50%;
}

/* Graded Stats Card */
.stats-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.stats-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.stats-item {
  display: flex;
  flex-direction: column;
}
.stats-label {
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.stats-value {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cyan);
}
.stats-value--fraction {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  vertical-align: middle;
}
.stats-value--fraction .stats-num {
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.25);
  padding-bottom: 1px;
  margin-bottom: 1px;
  display: block;
  text-align: center;
  width: 100%;
}
.stats-value--fraction .stats-den {
  display: block;
  text-align: center;
  font-size: 0.85em;
  color: var(--text-muted);
}
#solvedCount {
  color: var(--cyan) !important;
  text-shadow: 0 0 6px rgba(6, 182, 212, 0.3) !important;
}
#marksCount {
  color: #a78bfa !important;
  text-shadow: 0 0 6px rgba(167, 139, 250, 0.3) !important;
}
.stats-total {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}
.stats-divider {
  width: 1px;
  height: 20px;
  background: var(--border);
}
.stats-progress-bar {
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.05);
  border-radius: 2px;
  overflow: hidden;
}
.stats-progress-fill {
  height: 100%;
  background: var(--cyan);
  transition: width 0.3s ease;
}

/* Day Carousel Navigation */
.day-navigation {
  display: flex;
  align-items: center;
  gap: 8px;
}
.day-nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}
.day-nav-btn:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  background: var(--surface-hover);
}

.day-picker-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 23, 42, 0.6) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  padding: 6px 32px 6px 12px !important;
  border-radius: 8px !important; /* Clean modern rounded rectangle */
  font-size: 0.82rem;
  font-weight: 600;
  position: relative;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  width: max-content;
}
.day-picker-pill:hover {
  border-color: rgba(255, 255, 255, 0.2) !important;
  background: rgba(15, 23, 42, 0.8) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transform: translateY(-0.5px);
}
.day-picker-pill:focus-within {
  border-color: var(--cyan) !important;
  box-shadow: 0 0 12px rgba(0, 246, 255, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.day-picker-pill.topic-picker-pill:focus-within {
  border-color: var(--green) !important;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.day-picker-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.day-picker-dot--day {
  background: var(--cyan);
  box-shadow: 0 0 10px rgba(0, 246, 255, 0.8);
}
.day-picker-dot--topic {
  background: var(--green);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
}
.day-picker-pill:hover .day-picker-dot {
  transform: scale(1.15);
}

#topicSelect {
  max-width: none;
  white-space: nowrap;
}

.day-pill-badge {
  background: var(--cyan-dim);
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 16px;
  letter-spacing: 0.02em;
}

.day-picker-pill select {
  background: none;
  border: none;
  color: var(--text);
  font: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  outline: none;
  padding-right: 12px;
}
.day-picker-pill select option {
  background: #0d121f;
  color: #f8fafc;
  padding: 10px;
  font-size: 0.85rem;
}
.day-picker-chevron {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  pointer-events: none;
  color: rgba(255, 255, 255, 0.4);
  transition: color 0.25s ease;
}
.day-picker-pill:hover .day-picker-chevron {
  color: rgba(255, 255, 255, 0.85);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: var(--transition);
}
.badge:hover {
  background: var(--surface-hover);
}
.badge--cyan {
  border-color: rgba(0, 230, 246, 0.4);
  color: var(--cyan);
}
.badge--cyan:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 10px rgba(0, 230, 246, 0.15);
}
.badge--green {
  border-color: rgba(16, 185, 129, 0.4);
  color: var(--green);
}
.badge--green:hover {
  border-color: var(--green);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
}
.badge select {
  background: none;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  outline: none;
  padding-right: 4px;
}
.badge select option {
  background: #0f172a;
  color: #f8fafc;
  padding: 10px;
  font-size: 0.85rem;
}
.dropdown-chevron {
  font-size: 0.55rem;
  opacity: 0.7;
  pointer-events: none;
  margin-left: 2px;
}

/* Header Buttons */
.hdr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  height: 32px;
  padding: 0 14px;
  border-radius: 100px !important; /* Premium cohesive pill shape */
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
  box-sizing: border-box;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.hdr-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}
.hdr-btn--record { border-color: var(--red); color: var(--red); }
.hdr-btn--record:hover { background: var(--red-glow); }
.hdr-btn--record.recording {
  background: var(--red);
  color: #fff;
  animation: pulse-record 1.5s infinite;
}
.hdr-btn--stop { border-color: var(--amber); color: var(--amber); }
.hdr-btn--stop:hover { background: var(--amber-glow); }
.hdr-btn--present { border-color: var(--purple); color: var(--purple); }
.hdr-btn--present:hover { background: var(--purple-glow); }
.hdr-btn--test {
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  color: #ffffff !important;
  border: none !important;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}
.hdr-btn--test:hover {
  background: linear-gradient(135deg, #3b82f6, #2563eb) !important;
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
  transform: translateY(-1px);
}
.hdr-btn--score {
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: rgba(255, 255, 255, 0.9) !important;
  background: rgba(255, 255, 255, 0.03) !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1) !important;
}
.hdr-btn--score:hover {
  border-color: rgba(255, 255, 255, 0.3) !important;
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}
.hdr-btn--autoplay {
  background: rgba(6, 182, 212, 0.07) !important;
  border: 1px solid rgba(6, 182, 212, 0.25) !important;
  color: var(--cyan) !important;
  border-radius: 100px !important;
  font-weight: 700 !important;
  box-shadow: 0 0 10px rgba(6, 182, 212, 0.05);
}
.hdr-btn--autoplay:hover {
  background: var(--cyan) !important;
  color: var(--bg) !important;
  border-color: var(--cyan) !important;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.25);
  transform: translateY(-1px);
}
.hdr-btn--autoplay.playing {
  background: rgba(239, 68, 68, 0.1) !important;
  color: #ef4444 !important;
  border-color: rgba(239, 68, 68, 0.25) !important;
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.05);
}
.hdr-btn--autoplay.playing:hover {
  background: #ef4444 !important;
  color: #ffffff !important;
  border-color: #ef4444 !important;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.25);
}
.score-icon {
  display: inline-block;
  vertical-align: middle;
}

.rec-timer {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--red);
  min-width: 48px;
}

.rec-paused-badge {
  display: none;
  font-size: 0.7rem;
  font-weight: 600;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.3);
  padding: 2px 10px;
  border-radius: 12px;
  margin-left: 6px;
  animation: recPausePulse 1.5s ease-in-out infinite;
}

.rec-paused-badge.visible {
  display: inline-block;
}

@keyframes recPausePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.stats-group {
  display: flex;
  gap: 14px;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.stats-group strong { color: var(--text); }

@keyframes pulse-record {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.5); }
  50% { box-shadow: 0 0 0 8px rgba(239,68,68,0); }
}

/* ═══════════════════════════════════════════════════════════════
   SPLIT-SCREEN WORKSPACE
   ═══════════════════════════════════════════════════════════════ */
.workspace {
  flex: 1;
  display: flex;
  overflow: hidden;
  position: relative;
}

/* Left Panel */
.panel-left {
  flex: 0 0 55%;
  display: flex;
  flex-direction: column;
  min-width: 400px;
  overflow: hidden;
  border-right: 1px solid var(--border);
  transition: flex-basis 0.4s cubic-bezier(0.4, 0, 0.2, 1), min-width 0.4s ease, border-right-width 0.4s ease, min-height 0.4s ease;
}
.panel-left.collapsed {
  flex-basis: 0% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  border-right-width: 0 !important;
}

/* Divider */
.divider {
  width: 8px;
  cursor: col-resize;
  background: rgba(255,255,255,0.02);
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  position: relative;
  flex-shrink: 0;
  z-index: 50;
  transition: background var(--transition);
}
.divider:hover, .divider.dragging {
  background: var(--cyan-dim);
  border-color: var(--cyan);
}

/* Wrapper for toggles centered vertically on the divider line */
.divider-toggles {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  gap: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.5);
  cursor: default;
  pointer-events: auto;
  z-index: 60;
}

.div-toggle-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  cursor: pointer;
}
.div-toggle-btn:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  background: var(--surface-hover);
}

/* Right Panel */
.panel-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  transition: flex-basis 0.4s cubic-bezier(0.4, 0, 0.2, 1), min-height 0.4s ease;
}
.panel-right.collapsed {
  flex-basis: 0% !important;
  min-height: 0 !important;
}

/* If right side is collapsed, let left side grow to fill the space, leaving room for the divider */
.workspace:has(.panel-right.collapsed) .panel-left {
  flex-basis: calc(100% - 8px) !important;
}
/* If left side is collapsed, let right side grow to fill the space */
.workspace:has(.panel-left.collapsed) .panel-right {
  flex-basis: 100% !important;
}

/* ─── Question Prompt ─── */
.question-bar {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  background: #ffffff !important;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 56px;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.question-bar.question-playing {
  background: linear-gradient(135deg, #f0f4ff 0%, #ede9ff 100%) !important;
  box-shadow: 0 0 0 2px #8b5cf6 inset;
  border-radius: 6px;
  animation: qPulse 2s ease-in-out infinite;
}
@keyframes qPulse {
  0%, 100% { box-shadow: 0 0 0 2px #8b5cf6 inset; }
  50%        { box-shadow: 0 0 0 2px #7c3aed inset, 0 0 12px rgba(139,92,246,0.25); }
}
.question-bar .q-marker {
  flex-shrink: 0;
  width: 4px;
  min-height: 24px;
  align-self: stretch;
  background: var(--purple);
  border-radius: 2px;
}
.question-prompt {
  flex: 1;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #1e293b !important;
  font-weight: 500;
}
.question-prompt code {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.8rem;
}
.q-nav {
  display: flex;
  gap: 4px;
  flex-shrink: 0;
}
.q-nav button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.q-nav button:hover { color: var(--cyan); border-color: var(--cyan); }

/* ─── Editor Area ─── */
.editor-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Toolbar */
.editor-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.editor-toolbar .spacer { flex: 1; }

.tb-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 600;
  transition: var(--transition);
}
.tb-btn:hover { color: var(--text); background: var(--surface-hover); border-color: var(--border-hover); }
.tb-btn--tables { border-color: var(--amber); color: var(--amber); }
.tb-btn--tables:hover { background: var(--amber-glow); }
.tb-btn--run { background: var(--green); color: #fff; border: none; }
.tb-btn--run:hover { background: #0ea571; box-shadow: 0 0 12px var(--green-glow); }
.tb-btn--clear { color: var(--text-dim); }

.q-counter {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-family: var(--mono);
  padding: 3px 8px;
  background: var(--surface-2);
  border-radius: var(--radius-sm);
}

/* CodeMirror wrapper */
.editor-wrap {
  flex: 1;
  overflow: hidden;
  min-height: 180px;
}
.editor-wrap .CodeMirror {
  height: 100% !important;
  font-family: var(--mono);
  font-size: 0.88rem;
  line-height: 1.5;
  background: #0d1117;
}

/* ─── Output Terminal ─── */
.output-section {
  border-top: 1px solid var(--border);
  background: #04060b;
  min-height: 120px;
  max-height: 240px;
  overflow: auto;
  padding: 12px 16px;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: #a5d6ff;
}
.output-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.output-error { color: var(--red); }
.output-hint {
  display: inline-block;
  background: var(--amber-glow);
  border: 1px solid rgba(245,158,11,0.25);
  color: var(--amber);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  margin-bottom: 6px;
}
.output-success { color: var(--green); }

/* Result table */
.result-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.result-table th, .result-table td {
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 12px;
  text-align: left;
  font-size: 0.78rem;
}
.result-table th {
  background: #080d16;
  color: var(--cyan);
  font-weight: 600;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}
.result-table td {
  color: #c9d1d9;
}
.result-table tr:nth-child(even) td {
  background: rgba(255, 255, 255, 0.015);
}
.result-table tr:hover td {
  background: rgba(255, 255, 255, 0.035);
}

/* ═══════════════════════════════════════════════════════════════
   RIGHT PANEL — NOTES + SCHEMA + BOOKMARKS
   ═══════════════════════════════════════════════════════════════ */
.right-content {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Slide Viewer */
.slide-viewer {
  flex: 1;
  padding: 0 12px 12px 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.slide-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.slide-nav button {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.slide-nav button:hover { color: var(--cyan); border-color: var(--cyan); }
.slide-counter {
  font-size: 0.78rem;
  color: var(--cyan) !important;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font);
}

/* Slide Card Layout */
.slide-card {
  animation: slideIn 0.3s ease;
  background: #ffffff !important;
  color: #1e293b !important;
  border-radius: var(--radius);
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  border: 1px solid #cbd5e1;
  font-family: var(--font);
  line-height: 1.6;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(16px); }
  to { opacity: 1; transform: translateX(0); }
}

.slide-header {
  padding: 20px 20px 0 20px;
  flex: 0 0 auto;
  background: #ffffff;
  z-index: 10;
}
.slide-header h2 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a !important;
  margin-bottom: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 4px;
  margin-top: 0;
}

/* Slide Content */
.slide-content {
  flex: 1;
  padding: 0 20px 60px 20px;
  overflow-y: auto;
  min-height: 0;
}
#slideBodyText > *:first-child {
  margin-top: 4px !important;
}
.slide-content h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b !important;
  margin: 16px 0 8px;
}
.slide-content p {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #334155 !important;
  text-align: justify;
}
.slide-content li {
  font-size: 0.85rem;
  line-height: 1.6;
  color: #334155 !important;
}
.slide-content ul { padding-left: 18px; }
.slide-content li { margin-bottom: 4px; }
.slide-content code {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border: 1px solid #e2e8f0;
  padding: 2px 4px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.72rem !important;
  white-space: pre-wrap;
  word-break: break-word;
  font-variant-ligatures: none !important;
  font-feature-settings: "liga" 0, "clig" 0, "calt" 0 !important;
  display: inline;
}
.slide-content pre {
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin: 10px 0;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.5;
  color: #0f172a !important;
}
.slide-content .info-box {
  background: #f0fdfa !important;
  border: 1px solid #ccfbf1 !important;
  border-left: 4px solid #0d9488 !important;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin: 10px 0;
  font-size: 0.82rem;
  color: #0f766e !important;
  text-align: justify;
}
.slide-content .info-box code {
  background: #ccfbf1 !important;
  color: #0f766e !important;
  border-color: #99f6e4 !important;
}
.slide-content .warn-box {
  background: #fef2f2 !important;
  border: 1px solid #fee2e2 !important;
  border-left: 4px solid #dc2626 !important;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin: 10px 0;
  font-size: 0.82rem;
  color: #b91c1c !important;
  text-align: justify;
}
/* Improved Slide Notes Elements */
.slide-content .concept-badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 6px;
  margin-bottom: 6px;
}
.slide-content .concept-badge--primary {
  background: rgba(14, 165, 233, 0.08) !important;
  color: #0284c7 !important;
  border: 1px solid rgba(14, 165, 233, 0.2);
}
.slide-content .concept-badge--success {
  background: rgba(16, 185, 129, 0.08) !important;
  color: #059669 !important;
  border: 1px solid rgba(16, 185, 129, 0.2);
}
.slide-content .concept-badge--amber {
  background: rgba(245, 158, 11, 0.08) !important;
  color: #d97706 !important;
  border: 1px solid rgba(245, 158, 11, 0.2);
}

.slide-content .section-card {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius);
  padding: 16px;
  margin: 14px 0;
}
.slide-content .section-card h4 {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f172a !important;
  margin-bottom: 8px;
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.slide-content .interview-box {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-left: 4px solid #8b5cf6 !important;
  border-radius: 12px;
  padding: 16px 18px;
  margin: 16px 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
}
.slide-content .interview-box h4 {
  font-size: 0.9rem;
  font-weight: 750;
  color: #5b21b6 !important;
  margin: 0 0 12px 0 !important;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: -0.01em;
}
/* Individual Q&A Card Rows */
.slide-content .interview-box > div {
  background: #ffffff !important;
  border: 1px solid #f1f5f9;
  border-radius: 10px;
  padding: 12px 14px;
  margin: 10px 0;
  box-shadow: 0 1px 2px rgba(0,0,0,0.01);
  transition: all 0.22s ease-in-out;
}
.slide-content .interview-box > div:hover {
  border-color: #ddd6fe;
  box-shadow: 0 4px 10px rgba(124,58,237,0.05);
  transform: translateY(-1px);
}
.slide-content .interview-box hr {
  display: none !important;
}
.slide-content .interview-box p {
  margin: 0 !important;
  text-align: justify;
}
.slide-content .interview-box p strong {
  color: #6d28d9 !important;
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.5;
  display: inline;
  margin: 0;
}
.slide-content .interview-box p em {
  font-style: normal !important;
  color: #334155 !important;
  font-size: 0.82rem;
  line-height: 1.55;
  display: block;
  margin-top: 8px;
  border-top: 1px solid #f1f5f9;
  padding-top: 8px;
}

.slide-content .pro-tip-box {
  background: #fffbeb !important;
  border: 1px solid #fef3c7 !important;
  border-left: 4px solid #d97706 !important;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin: 14px 0;
  font-size: 0.82rem;
  color: #78350f !important;
  text-align: justify;
}
.slide-content .pro-tip-box strong {
  color: #b45309 !important;
}

/* Callout Box Nesting & Monospace Scaling Rules to Prevent Cropping/Gaps */
.slide-content .pro-tip-box p,
.slide-content .warn-box p,
.slide-content .info-box p {
  color: inherit !important;
  font-size: 0.78rem !important;
  line-height: 1.5;
  margin: 6px 0 0 0 !important;
}
.slide-content .pro-tip-box p:first-of-type,
.slide-content .warn-box p:first-of-type,
.slide-content .info-box p:first-of-type {
  margin-top: 4px !important;
}
.slide-content .pro-tip-box code,
.slide-content .warn-box code,
.slide-content .info-box code,
.slide-content .interview-box code {
  font-size: 0.66rem !important;
  padding: 1px 3px;
}

.slide-content .diagram {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin: 12px 0;
  text-align: center;
  color: #ffffff !important;
}
.slide-content .diagram p,
.slide-content .diagram li,
.slide-content .diagram span {
  color: #ffffff !important;
}
.slide-content .diagram-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 6px 0;
}
.slide-content .diagram-cell {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}
.slide-content .diagram-cell--header {
  background: var(--cyan-dim);
  border-color: rgba(0,230,246,0.2);
  color: var(--cyan);
  font-weight: 700;
}
.slide-content .vs-block {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin: 16px 0;
}
.slide-content .vs-card {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  color: #334155 !important;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}
.slide-content .vs-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(0,0,0,0.06);
}
.slide-content .vs-card h4 {
  font-size: 0.88rem;
  font-weight: 800;
  margin-top: 0;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #1e293b !important;
}
.slide-content .vs-card p,
.slide-content .vs-card span {
  color: #475569 !important;
  font-size: 0.78rem !important;
  line-height: 1.55 !important;
  margin: 0 0 8px 0 !important;
}
.slide-content .vs-card ul {
  margin: 4px 0 12px 0 !important;
  padding-left: 18px !important;
  flex: 1;
}
.slide-content .vs-card li {
  font-size: 0.78rem !important;
  line-height: 1.5 !important;
  color: #475569 !important;
  margin-bottom: 6px !important;
}
.slide-content .vs-card pre {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 0.74rem !important;
  line-height: 1.45 !important;
  color: #0f172a !important;
  margin: 8px 0 0 0 !important;
  overflow-x: auto;
}
.slide-content .vs-card small {
  font-size: 0.72rem !important;
  line-height: 1.45 !important;
  display: block;
  margin-top: 8px !important;
}
.slide-content .vs-card-illustration {
  height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  background: #ffffff;
  border-radius: 6px;
  padding: 8px;
}
.slide-content .vs-card-illustration img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}
.slide-content .vs-card:hover .vs-card-illustration img {
  transform: scale(1.06);
}
.slide-content .vs-card--pk {
  border-left: 4px solid #f59e0b !important;
}
.slide-content .vs-card--pk h4 {
  color: #b45309 !important;
}
.slide-content .vs-card--fk {
  border-left: 4px solid #8b5cf6 !important;
}
.slide-content .vs-card--fk h4 {
  color: #6d28d9 !important;
}
.slide-content .vs-card--good {
  border-left: 4px solid #10b981 !important;
}
.slide-content .vs-card--good h4 {
  color: #047857 !important;
}
.slide-content .vs-card--bad {
  border-left: 4px solid #ef4444 !important;
}
.slide-content .vs-card--bad h4 {
  color: #b91c1c !important;
}

/* ─── Schema Section ─── */
.schema-section {
  border-top: 1px solid var(--border);
  padding: 14px 16px;
  background: var(--surface);
}
.schema-header {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.schema-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: var(--transition);
}
.schema-card:hover { border-color: var(--cyan); }
.schema-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--cyan);
}
.schema-cols {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.schema-col {
  font-size: 0.72rem;
  font-family: var(--mono);
  color: var(--text-muted);
  background: rgba(255,255,255,0.03);
  padding: 2px 8px;
  border-radius: 3px;
  border: 1px solid var(--border);
}
.schema-col--pk { color: var(--amber); border-color: rgba(245,158,11,0.2); }

.peek-btn {
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  background: var(--purple-glow);
  border: 1px solid rgba(124,58,237,0.2);
  color: var(--purple);
  cursor: pointer;
  transition: var(--transition);
}
.peek-btn:hover { background: rgba(124,58,237,0.25); }

/* ─── Bookmarks Section ─── */
.bookmarks-section {
  border-top: 1px solid var(--border);
  padding: 14px 16px;
  background: var(--surface);
}
.bookmarks-header {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.bookmark-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 6px;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.8rem;
  color: var(--text-muted);
}
.bookmark-chip:hover { border-color: var(--cyan); color: var(--text); }
.bookmark-chip.active { border-color: var(--cyan); color: var(--cyan); background: var(--cyan-dim); }
.bookmark-chip .bk-icon { font-size: 0.9rem; }
.bookmark-empty {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-style: italic;
  padding: 8px 0;
}

/* ─── Playback Controls ─── */
.playback-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  max-width: none;
  z-index: 1000;
  background: rgba(13, 18, 30, 0.95) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-left: none !important;
  border-right: none !important;
  border-bottom: none !important;
  border-radius: 0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
  padding: 8px 16px 0 16px;
  display: none;
  flex-direction: column;
  gap: 8px;
  transition: all 0.3s ease;
}
.playback-bar.visible { display: flex; }
#playbackBar.hidden-in-test { display: none !important; }
.playback-row {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
}
.playback-row .play-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #ef4444 !important;
  border: none;
  color: #ffffff !important;
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: var(--transition);
}
.playback-row .play-btn:hover { box-shadow: 0 0 12px rgba(239, 68, 68, 0.6); transform: scale(1.05); }
.seek-bar {
  flex: 1;
  -webkit-appearance: none;
  height: 4px;
  background: rgba(255, 255, 255, 0.15) !important;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}
.seek-bar::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ef4444 !important;
  cursor: pointer;
  box-shadow: 0 0 6px rgba(239, 68, 68, 0.6);
  transition: transform 0.1s ease;
}
.seek-bar:hover::-webkit-slider-thumb {
  transform: scale(1.3);
}
.playback-time {
  font-size: 0.68rem;
  font-family: var(--mono);
  color: var(--text-muted);
  min-width: 68px;
  text-align: right;
}
/* Playback controls row layout (stunning modern look) */
.playback-controls-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  height: 28px !important;
}

.playback-left-controls {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.playback-right-controls {
  display: flex !important;
  align-items: center !important;
}

.playback-timeline-row {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  height: 10px !important;
}

.playback-timeline-row .seek-bar {
  width: 100% !important;
  flex: 1 !important;
  margin: 0 !important;
}

.playback-bar-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  position: relative;
}

.volume-control-wrapper,
.speed-control-wrapper {
  position: relative;
  display: inline-block;
}

.volume-btn,
.speed-control-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  color: var(--text-muted);
  padding: 4px 8px;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  height: 24px;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.volume-btn:hover,
.speed-control-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.2);
}

.volume-btn.active,
.speed-control-btn.active {
  background: rgba(0, 229, 255, 0.1);
  color: var(--cyan);
  border-color: rgba(0, 229, 255, 0.3);
}

.volume-icon,
.speed-icon {
  flex-shrink: 0;
  color: currentColor;
}

/* Volume Popover - Positioned vertically above volume button */
.volume-popover {
  display: none; /* Hidden by default to prevent layout breaking on mobile */
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 12px 8px;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 32px;
  height: 120px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  z-index: 10000;
}

.volume-popover.open {
  display: flex;
}

/* Vertical volume slider */
#volumeSlider {
  -webkit-appearance: slider-vertical;
  appearance: slider-vertical;
  writing-mode: vertical-lr;
  width: 12px;
  height: 70px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  margin: 0;
  padding: 0;
}

#volumeSlider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  cursor: pointer;
  box-shadow: 0 0 8px var(--cyan-glow);
  transition: transform 0.1s ease;
}

#volumeSlider::-webkit-slider-thumb:hover {
  transform: scale(1.3);
}

.volume-value {
  font-size: 0.58rem;
  color: var(--text-muted);
  font-weight: 700;
  font-family: var(--mono);
  white-space: nowrap;
}

/* Speed Popover - Positioned above speed button */
.speed-popover {
  display: none; /* Hidden by default to prevent layout breaking on mobile */
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 4px;
  flex-direction: column;
  gap: 2px;
  min-width: 68px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  z-index: 10000;
}

.speed-popover.open {
  display: flex;
}

.speed-option {
  padding: 6px 12px;
  border-radius: 4px;
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 700;
  font-family: var(--mono);
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.speed-option:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.speed-option.active {
  background: rgba(0, 229, 255, 0.15);
  color: var(--cyan);
}
.takeover-badge {
  display: none;
  font-size: 0.68rem;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: var(--amber-glow);
  border: 1px solid rgba(245,158,11,0.25);
  color: var(--amber);
  font-weight: 600;
}
.takeover-badge.visible { display: inline-block; }

/* ═══════════════════════════════════════════════════════════════
   PEEK DATA POPOVER (GLASSMORPHIC)
   ═══════════════════════════════════════════════════════════════ */
.peek-popover {
  display: none;
  position: fixed;
  z-index: 6000;
  min-width: 320px;
  max-width: 500px;
  background: rgba(11,15,26,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 16px;
  animation: popIn 0.2s ease;
}
.peek-popover.open { display: block; }
@keyframes popIn {
  from { opacity: 0; transform: scale(0.95) translateY(6px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.peek-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.peek-close {
  margin-left: auto;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
}
.peek-close:hover { color: var(--text); }

/* ═══════════════════════════════════════════════════════════════
   PRESENT MODE OVERLAY
   ═══════════════════════════════════════════════════════════════ */
.present-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 8000;
  background: rgba(6,9,19,0.96);
  backdrop-filter: blur(8px);
  flex-direction: column;
}
.present-overlay.open { display: flex; }

.present-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(11,15,26,0.6);
}
.present-tools {
  display: flex;
  gap: 8px;
}
.tool-btn {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
  transition: var(--transition);
}
.tool-btn:hover { color: var(--text); border-color: var(--border-hover); }
.tool-btn.active { border-color: var(--cyan); color: var(--cyan); background: var(--cyan-dim); }
.tool-btn--close { border-color: var(--red); color: var(--red); }
.tool-btn--close:hover { background: var(--red-glow); }

.present-body {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  overflow-y: auto;
  padding: 40px 24px;
}
.present-slide {
  max-width: 900px;
  width: 100%;
  height: auto;
  overflow: hidden;
  padding: 48px;
  animation: slideIn 0.4s ease;
  background: #ffffff !important;
  color: #1e293b !important;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

/* ─── Mock DB Table Diagram ─── */
.db-table-mock {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid #cbd5e1 !important;
  border-radius: var(--radius);
  overflow: hidden;
  background: #ffffff !important;
  margin: 16px 0;
  font-variant-ligatures: none !important;
  font-feature-settings: "liga" 0, "clig" 0, "calt" 0 !important;
}
.db-table-mock th, .db-table-mock td {
  padding: 10px 14px;
  border-bottom: 1px solid #cbd5e1 !important;
  border-right: 1px solid #cbd5e1 !important;
  font-size: 0.82rem;
  line-height: 1.5;
  text-align: left;
  font-family: var(--font);
}
.db-table-mock th:last-child, .db-table-mock td:last-child {
  border-right: none !important;
}
.db-table-mock tr:last-child td {
  border-bottom: none !important;
}
.db-table-mock th {
  background: #f1f5f9 !important;
  color: #1e293b !important;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.db-table-mock td {
  color: #334155 !important;
  transition: opacity 0.3s;
}
.db-table-mock .pk-key {
  color: var(--amber);
  font-weight: bold;
  margin-right: 4px;
}
.db-table-mock .type-tag {
  font-size: 0.65rem;
  color: #64748b !important;
  margin-left: 6px;
}

/* Compact Table design for quick reference operators tables */
.db-table-mock--compact {
  width: 100%;
}
.db-table-mock--compact th,
.db-table-mock--compact td {
  padding: 5px 8px !important;
  font-size: 0.74rem !important;
  line-height: 1.35 !important;
}
.db-table-mock--compact th {
  font-size: 0.68rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.03em !important;
}
.db-table-mock--compact code {
  font-size: 0.72rem !important;
  padding: 1px 3px !important;
}

/* Flow diagram items */
.flow-diagram {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0;
  padding: 12px;
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: var(--radius);
}

/* Container Query for Notes Layouts */
@container (max-width: 480px) {
  .flow-diagram {
    flex-direction: column !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 12px !important;
  }
  .flow-arrow {
    flex-direction: column !important;
    gap: 2px !important;
    margin: 4px 0;
  }
  .flow-arrow .arrow-symbol {
    transform: rotate(90deg);
    display: inline-block;
  }
  .vs-block {
    grid-template-columns: 1fr !important;
  }
}
.flow-step {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  color: #1e293b !important;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}
.flow-arrow {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #64748b !important;
  font-weight: bold;
  font-size: 0.82rem;
  white-space: nowrap;
}
.flow-arrow .arrow-symbol {
  font-size: 1.1rem;
  display: inline-block;
  transition: transform 0.3s ease;
}
.flow-step--active {
  border-color: #2563eb !important;
  color: #2563eb !important;
  background: #eff6ff !important;
  box-shadow: 0 0 10px rgba(37,99,235,0.15);
}


.present-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 14px 24px;
  border-top: 1px solid var(--border);
  background: rgba(11,15,26,0.6);
}
.present-footer button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.present-footer button:hover { color: var(--cyan); border-color: var(--cyan); }
.present-counter {
  font-size: 0.85rem;
  font-family: var(--mono);
  color: var(--text-muted);
}

/* Drawing Canvas */
.draw-canvas {
  position: absolute;
  inset: 0;
  z-index: 8001;
  pointer-events: none;
}
.draw-canvas.active { pointer-events: auto; cursor: crosshair; }
.draw-canvas.laser { cursor: none; }

/* ═══════════════════════════════════════════════════════════════
   TEST PORTAL MODAL
   ═══════════════════════════════════════════════════════════════ */
.test-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: var(--bg);
  flex-direction: column;
}
.test-overlay.open { display: flex; }

/* Test Header */
.test-header {
  height: 60px;
  background: #060913;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 16px;
  flex-shrink: 0;
  z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,0.3);
}

.test-header-left, .test-header-center, .test-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.test-header-left {
  flex: 1;
  justify-content: flex-start;
}
.test-header-center {
  flex: 0 0 auto;
  justify-content: center;
}
.test-header-right {
  flex: 1;
  justify-content: flex-end;
}

.test-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}

.test-timer-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-family: var(--mono);
}
.timer-icon {
  font-size: 0.8rem;
}
.test-timer {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green) !important;
}
.test-timer.warning {
  color: var(--red) !important;
  animation: pulse-timer 1s infinite;
}

@keyframes pulse-timer {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.test-close-btn {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: var(--red);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}
.test-close-btn:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  box-shadow: 0 0 12px rgba(239,68,68,0.25);
}

/* Test Body */
.test-body {
  flex: 1;
  display: flex;
  overflow: hidden;
}

/* Test Sidebar */
.test-sidebar {
  width: 80px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  overflow-y: auto;
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}
.test-q-btn {
  width: 100%;
  padding: 8px 4px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--mono);
  text-align: center;
  transition: var(--transition);
}
.test-q-btn:hover { border-color: var(--border-hover); color: var(--text); }
.test-q-btn.current { border-color: var(--cyan); color: var(--cyan); background: var(--cyan-dim); }
.test-q-btn.attempted { border-color: var(--amber); color: var(--amber); background: var(--amber-glow); }
.test-q-btn.correct { border-color: var(--green); color: var(--green); background: var(--green-glow); }
.test-q-btn.incorrect { border-color: var(--red); color: var(--red); background: var(--red-glow); }

/* Test Main Area */
.test-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.test-question-prompt {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(0,0,0,0.1);
  background: #ffffff !important;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #1e293b !important;
  font-weight: 500;
}
.test-question-prompt code {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border: 1px solid #cbd5e1;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.8rem;
}
.test-editor-wrap {
  flex: 1;
  overflow: hidden;
  min-height: 200px;
}
.test-editor-wrap .CodeMirror {
  height: 100% !important;
  font-family: var(--mono);
  font-size: 0.88rem;
  line-height: 1.5;
  background: #0d1117;
}
.test-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.test-output {
  border-top: 1px solid var(--border);
  background: #04060b;
  min-height: 100px;
  max-height: 200px;
  overflow: auto;
  padding: 12px 16px;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: #a5d6ff;
}

/* Test Submit Bar */
.test-submit-bar {
  padding: 12px 20px;
  background: var(--surface);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  position: sticky;
  bottom: 0;
  z-index: 10;
}
.test-submit-btn {
  padding: 8px 24px;
  border-radius: var(--radius-sm);
  background: var(--cyan);
  border: none;
  color: var(--bg);
  font-size: 0.85rem;
  font-weight: 700;
  transition: var(--transition);
}
.test-submit-btn:hover { background: #00cbd9; box-shadow: 0 0 16px var(--cyan-glow); }
.test-submit-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.test-progress {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ─── Scorecard ─── */
.scorecard-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9500;
  background: rgba(6,9,19,0.95);
  backdrop-filter: blur(12px);
  justify-content: center;
  align-items: center;
  padding: 40px;
}
.scorecard-overlay.open { display: flex; }
.scorecard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 700px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
}
.scorecard-header {
  padding: 24px;
  text-align: center;
  border-bottom: 1px solid var(--border);
}
.scorecard-header h2 {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 8px;
}
.score-big {
  font-size: 3rem;
  font-weight: 800;
  font-family: var(--mono);
}
.score-big.pass { color: var(--green); }
.score-big.fail { color: var(--red); }
.score-meta {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.scorecard-body { padding: 16px 24px; }
.scorecard-table {
  width: 100%;
  border-collapse: collapse;
}
.scorecard-table th, .scorecard-table td {
  padding: 8px 12px;
  border: 1px solid var(--border);
  font-size: 0.8rem;
  text-align: left;
}
.scorecard-table th {
  background: rgba(255,255,255,0.03);
  color: var(--text-muted);
  font-weight: 700;
}
.scorecard-table tr:nth-child(even) td { background: rgba(255,255,255,0.01); }

.scorecard-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.scorecard-close-btn {
  padding: 8px 28px;
  border-radius: var(--radius-sm);
  background: var(--cyan);
  border: none;
  color: var(--bg);
  font-weight: 700;
  font-size: 0.85rem;
  transition: var(--transition);
}
.scorecard-close-btn:hover { background: #00cbd9; }

/* ═══════════════════════════════════════════════════════════════
   AUTOCOMPLETE HINT DROPDOWN (CodeMirror override)
   ═══════════════════════════════════════════════════════════════ */
.CodeMirror-hints {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
  box-shadow: var(--shadow) !important;
  font-family: var(--mono) !important;
  font-size: 0.82rem !important;
  z-index: 10000 !important;
}
.CodeMirror-hint {
  color: var(--text-muted) !important;
  padding: 4px 10px !important;
}
.CodeMirror-hint-active {
  background: var(--cyan-dim) !important;
  color: var(--cyan) !important;
}

/* ═══════════════════════════════════════════════════════════════
   UTILITY
   ═══════════════════════════════════════════════════════════════ */
.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Mobile Tab Navigation Bar */
.mobile-tabs-nav {
  display: none;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE DESIGN (MOBILE VIEW)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  #navPlayBtn {
    display: none !important;
  }
  /* Workspace changes from horizontal split to vertical split */
  .workspace {
    flex-direction: column !important;
  }

  /* Header layout updates on mobile view to support 2 ultra-slim rows */
  .header {
    height: auto !important;
    display: grid !important;
    grid-template-areas:
      "left right"
      "center center" !important;
    grid-template-columns: 1fr auto !important;
    align-items: center !important;
    gap: 4px 8px !important;
    padding: 4px 8px !important;
    background: var(--surface) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  }
  .header-left {
    grid-area: left !important;
    width: auto !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 4px !important;
    min-width: 0 !important;
  }
  .header-center {
    grid-area: center !important;
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    border-top: 1px solid rgba(255, 255, 255, 0.04) !important;
    padding-top: 4px !important;
    margin-top: 2px !important;
  }
  .day-navigation {
    display: flex !important;
    width: 100% !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 4px !important;
  }
  .header-right {
    grid-area: right !important;
    width: auto !important;
    display: flex !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 4px !important;
  }
  
  /* Buttons in Row 2 header */
  .header-right .hdr-btn {
    flex: 0 1 auto !important;
    white-space: nowrap !important;
    padding: 0 10px !important;
    font-size: 0.68rem !important;
    gap: 4px !important;
    height: 26px !important;
    border-radius: 6px !important;
    box-sizing: border-box !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .hdr-btn--score svg {
    width: 10px !important;
    height: 10px !important;
    margin-right: 2px !important;
  }

  /* Compact premium stats widget on mobile */
  .stats-card {
    background: rgba(15, 23, 42, 0.45) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 0 8px !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.02) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    gap: 1px !important;
    height: 26px !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
    flex: 0 1 auto !important;
  }
  .stats-row {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: nowrap !important;
  }
  .stats-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 4px !important;
  }
  .stats-label {
    font-size: 0.5rem !important;
    font-weight: 700 !important;
    color: rgba(255, 255, 255, 0.4) !important;
    letter-spacing: 0.02em !important;
    text-transform: uppercase !important;
  }
  .stats-value--fraction {
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    line-height: 0.95 !important;
  }
  .stats-value--fraction .stats-num {
    font-size: 0.62rem !important;
    font-weight: 700 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding-bottom: 0.5px !important;
    margin-bottom: 0.5px !important;
    display: block !important;
    text-align: center !important;
  }
  .stats-value--fraction .stats-den {
    font-size: 0.52rem !important;
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.35) !important;
    display: block !important;
    text-align: center !important;
  }
  .stats-divider {
    width: 1px !important;
    height: 10px !important;
    background: rgba(255, 255, 255, 0.12) !important;
  }
  .stats-progress-bar {
    display: block !important;
    height: 1.5px !important;
    border-radius: 1px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    margin-top: 1px !important;
    width: 100% !important;
    overflow: hidden !important;
  }
  .stats-progress-fill {
    height: 100% !important;
    background: linear-gradient(90deg, var(--cyan), #a78bfa) !important;
  }

  /* Compact selectors in Row 1 header */
  .day-picker-pill {
    padding: 3px 20px 3px 8px !important;
    gap: 6px !important;
    height: 24px !important;
    border-radius: 6px !important;
    font-size: 0.68rem !important;
  }
  .day-picker-pill .custom-select-trigger {
    font-size: 0.7rem !important;
  }
  .custom-select-option {
    font-size: 0.74rem !important;
    padding: 6px 12px 6px 20px !important;
  }
  .day-picker-pill.topic-picker-pill {
    flex: 1 !important;
    min-width: 0 !important;
  }
  .day-picker-dot {
    width: 6px !important;
    height: 6px !important;
  }
  .day-picker-chevron {
    right: 8px !important;
  }
  .day-picker-chevron svg {
    width: 7px !important;
    height: 4px !important;
  }
  .day-pill-badge {
    padding: 1px 4px !important;
    font-size: 0.6rem !important;
  }
  #daySelect {
    max-width: 50px !important;
    text-overflow: ellipsis !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
  }
  #topicSelect {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    text-overflow: ellipsis !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
  }

  /* Row 1 Autoplay Play Lesson Button */
  .hdr-btn--autoplay {
    padding: 2px 8px !important;
    font-size: 0.7rem !important;
    height: 22px !important;
    border-radius: 11px !important;
    gap: 2px !important;
  }
  .hdr-btn--autoplay .btn-icon {
    font-size: 0.65rem !important;
  }

  /* Compact User Profile Avatar */
  .user-profile {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
    border-radius: 50% !important;
  }
  .active-dot {
    width: 6px !important;
    height: 6px !important;
    border-width: 1px !important;
  }

  /* Mobile Tab Navigation — Floating icon-only overlay vertically centered on screen edges */
  .mobile-tabs-nav {
    display: flex !important;
    position: fixed !important;
    top: 50% !important; /* Vertically centered */
    transform: translateY(-50%) !important;
    left: 0 !important;
    right: 0 !important;
    height: auto !important;
    background: transparent !important;
    border-bottom: none !important;
    z-index: 200 !important;
    pointer-events: none;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 0 !important;
  }
  
  .mobile-tab-btn {
    pointer-events: auto;
    flex: 0 0 auto !important;
    width: 32px !important;
    height: 48px !important; /* Elegant vertical tab shape */
    background: rgba(8, 12, 21, 0.8) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    color: #64748b;
    font-size: 0 !important; /* Hide text labels */
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
  }

  #tabBtnTheory {
    border-left: none !important; /* Align flush to left edge */
    border-radius: 0 8px 8px 0 !important; /* Curve on inner side only */
  }

  #tabBtnPractice {
    border-right: none !important; /* Align flush to right edge */
    border-radius: 8px 0 0 8px !important; /* Curve on inner side only */
  }
  
  .mobile-tab-btn:hover {
    background: rgba(8, 12, 21, 0.95) !important;
  }
  
  .mobile-tab-btn.active {
    color: #00e6f6 !important;
    border-color: rgba(0, 230, 246, 0.3) !important;
    background: rgba(0, 230, 246, 0.15) !important;
    box-shadow: 0 4px 14px rgba(0, 230, 246, 0.2) !important;
  }

  .tab-emoji {
    display: inline !important;
    font-size: 0.95rem !important; /* Slightly larger emoji for clean view */
    line-height: 1 !important;
  }

  /* Full screen view rules for tabs on mobile */
  .workspace {
    position: relative;
    flex: 1 !important;
    height: auto !important;
    min-height: 0 !important;
    flex-direction: column !important;
  }

  /* Default state on mobile is to show theory panel (Lesson) */
  .panel-right {
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
    flex-basis: 100% !important;
    border-left: none !important;
    border-bottom: none !important;
  }

  .panel-left,
  .divider {
    display: none !important;
  }

  /* Show practice panel rules */
  .workspace.mobile-show-practice .panel-left {
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
    flex-basis: 100% !important;
    border-right: none !important;
  }
  .workspace.mobile-show-practice .panel-right {
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    pointer-events: none !important;
  }

  /* Show theory panel rules explicitly */
  .workspace.mobile-show-theory .panel-right {
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
    flex-basis: 100% !important;
  }
  .workspace.mobile-show-theory .panel-left {
    display: none !important;
  }

  /* Slide Content Area adjustments */
  .slide-header {
    padding: 12px 16px 0 16px !important;
  }
  .slide-header h2 {
    font-size: 1rem !important;
  }
  .slide-content {
    padding: 12px 16px 74px 16px !important; /* padding-bottom offsets fixed playback bar */
  }
  .slide-content h3 {
    font-size: 0.88rem !important;
    margin: 12px 0 6px !important;
  }
  .slide-content p, 
  .slide-content li {
    font-size: 0.8rem !important;
    line-height: 1.5 !important;
    color: #334155 !important;
  }
  .slide-content code {
    font-size: 0.75rem !important;
  }
  .slide-content pre {
    font-size: 0.72rem !important;
    padding: 8px 10px !important;
  }
  .slide-content .vs-block {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }
  .slide-content .flow-diagram {
    flex-direction: column !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 12px !important;
  }
  .slide-content .flow-arrow {
    flex-direction: column !important;
    gap: 2px !important;
    margin: 4px 0;
  }
  .slide-content .flow-arrow .arrow-symbol {
    transform: rotate(90deg);
    display: inline-block;
  }

  /* Practice View elements height & spacing overrides */
  .editor-area {
    padding-bottom: 74px !important; /* padding-bottom offsets fixed playback bar */
  }

  /* Fixed bottom playback bar layout with Play button above Timeline on mobile */
  .playback-bar {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    max-width: none !important;
    z-index: 9999 !important;
    padding: 8px 12px 2px 12px !important;
    background: rgba(8, 12, 21, 0.96) !important;
    backdrop-filter: blur(12px) !important;
    -webkit-backdrop-filter: blur(12px) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    height: auto !important;
    min-height: 58px !important;
    box-sizing: border-box !important;
    display: none;
    flex-direction: column !important;
    gap: 6px !important;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.4) !important;
    pointer-events: auto !important;
  }
  .playback-bar.visible {
    display: flex !important;
  }
  .playback-row {
    gap: 8px !important;
  }
  .playback-controls-row {
    height: 24px !important;
  }
  .playback-left-controls {
    gap: 6px !important;
  }
  .playback-row .play-btn {
    width: 24px !important;
    height: 24px !important;
    font-size: 0.65rem !important;
  }
  .playback-row .volume-btn,
  .playback-row .speed-control-btn {
    padding: 2px 6px !important;
    font-size: 0.62rem !important;
    height: 20px !important;
    gap: 3px !important;
  }
  .playback-row .playback-time {
    font-size: 0.62rem !important;
  }
  .playback-timeline-row {
    height: 6px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Compact test portal layout for mobile */
  .test-header {
    height: auto !important;
    padding: 8px 12px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
  }
  .test-header-left {
    width: 100% !important;
    justify-content: space-between !important;
    flex: none !important;
  }
  .test-header-center {
    display: none !important;
  }
  .test-header-right {
    width: 100% !important;
    justify-content: space-between !important;
    flex: none !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
    padding-top: 6px !important;
    margin-top: 2px !important;
    gap: 6px !important;
  }
  .test-header-right .hdr-btn--score {
    padding: 4px 8px !important;
    font-size: 0.72rem !important;
    height: 26px !important;
  }
  .test-timer-wrapper {
    padding: 4px 8px !important;
    font-size: 0.75rem !important;
  }
  .test-close-btn {
    padding: 4px 8px !important;
    font-size: 0.72rem !important;
  }

  /* Compact test stats card on mobile */
  .test-header .stats-card {
    height: 26px !important;
    padding: 0 6px !important;
    background: rgba(15, 23, 42, 0.45) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 0 !important;
  }
  .test-header .stats-progress-bar {
    display: none !important;
  }
  .test-header .stats-row {
    display: flex !important;
    align-items: center !important;
    gap: 6px !important;
  }
  .test-header .stats-item {
    display: flex !important;
    align-items: center !important;
    gap: 3px !important;
  }
  .test-header .stats-label {
    font-size: 0.52rem !important;
    font-weight: 700 !important;
    color: rgba(255, 255, 255, 0.4) !important;
  }
  .test-header .stats-value {
    font-size: 0.65rem !important;
    font-weight: 700 !important;
    color: var(--cyan) !important;
  }
  .test-header .stats-total {
    font-size: 0.55rem !important;
    color: rgba(255, 255, 255, 0.4) !important;
  }
  .test-header .stats-divider {
    width: 1px !important;
    height: 12px !important;
    background: rgba(255, 255, 255, 0.1) !important;
  }

  /* Question sidebar compact overrides */
  .test-sidebar {
    width: 44px !important;
    padding: 8px 4px !important;
    gap: 6px !important;
  }
  .test-q-btn {
    padding: 6px 0 !important;
    font-size: 0.72rem !important;
    border-radius: 4px !important;
  }
  .test-q-btn .q-prefix {
    display: none !important;
  }

  /* Compact test submit bar for mobile screens */
  .test-submit-bar {
    padding: 8px 12px !important;
    background: var(--surface) !important;
    border-top: 1px solid var(--border) !important;
  }
  .test-submit-btn {
    padding: 6px 16px !important;
    font-size: 0.78rem !important;
  }
  .test-progress {
    font-size: 0.72rem !important;
  }
}

/* Responsive Table Wrapper */
.db-mock-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 16px 0;
  border-radius: var(--radius);
  border: 1px solid #cbd5e1 !important;
}
.db-mock-table-wrap .db-table-mock {
  margin: 0 !important;
  border: none !important;
}

/* RDBMS Infographic styling */
.rdbms-infographic {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 24px 20px;
  margin: 18px 0;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.03), 0 1px 3px rgba(15, 23, 42, 0.02);
  font-family: var(--font);
}
.rdbms-infographic .info-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: #0f172a;
  text-align: center;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.rdbms-infographic .db-icon {
  color: #3b82f6;
  flex-shrink: 0;
}
.rdbms-infographic .info-columns {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 1100px) {
  .rdbms-infographic .info-columns {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .rdbms-infographic .info-card-header {
    min-height: auto !important;
  }
  .rdbms-infographic .info-card-bullets li {
    min-height: auto !important;
  }
  /* Stacking process flow diagrams vertically on narrow viewports */
  .relation-visual {
    flex-direction: column !important;
    gap: 12px !important;
  }
  .relation-link {
    flex-direction: column !important;
    margin: 4px 0 !important;
  }
  .link-arrow {
    transform: rotate(90deg) !important;
    margin-top: 4px !important;
  }
}
.rdbms-infographic .info-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.03), 0 2px 4px -1px rgba(0, 0, 0, 0.02);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.rdbms-infographic .info-card--blue:hover {
  transform: translateY(-5px);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 12px 25px rgba(59, 130, 246, 0.08);
}
.rdbms-infographic .info-card--green:hover {
  transform: translateY(-5px);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 12px 25px rgba(16, 185, 129, 0.08);
}
.rdbms-infographic .info-card--orange:hover {
  transform: translateY(-5px);
  border-color: rgba(249, 115, 22, 0.4);
  box-shadow: 0 12px 25px rgba(249, 115, 22, 0.08);
}
.rdbms-infographic .info-card-header {
  padding: 12px 14px;
  font-size: 0.74rem;
  font-weight: 800;
  color: #ffffff;
  text-align: center;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rdbms-infographic .info-card--blue .info-card-header {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}
.rdbms-infographic .info-card--green .info-card-header {
  background: linear-gradient(135deg, #059669, #047857);
}
.rdbms-infographic .info-card--orange .info-card-header {
  background: linear-gradient(135deg, #ea580c, #c2410c);
}
.rdbms-infographic .info-card--purple .info-card-header {
  background: linear-gradient(135deg, #7c3aed, #6d28d9);
}
.rdbms-infographic .info-card--red .info-card-header {
  background: linear-gradient(135deg, #dc2626, #991b1b);
}
.rdbms-infographic .info-card--amber .info-card-header {
  background: linear-gradient(135deg, #d97706, #b45309);
}
.rdbms-infographic .info-card--cyan .info-card-header {
  background: linear-gradient(135deg, #0891b2, #0e7490);
}

.rdbms-infographic .info-card-illustration {
  height: 125px;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  border-bottom: 1px solid #f1f5f9;
}
.rdbms-infographic .info-card-illustration img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.5s ease;
}
.rdbms-infographic .info-card:hover .info-card-illustration img {
  transform: scale(1.08);
}

.rdbms-infographic .info-card-bullets {
  list-style: none;
  padding: 14px 12px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  background: #fafafb;
}
.rdbms-infographic .info-card-bullets li {
  font-size: 0.65rem;
  font-weight: 700;
  line-height: 1.4;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  text-align: left;
}
.rdbms-infographic .info-card-bullets li:nth-child(1) {
  min-height: 38px;
}
.rdbms-infographic .info-card-bullets li:nth-child(2) {
  min-height: 20px;
}
.rdbms-infographic .info-card-bullets li:nth-child(3) {
  min-height: 38px;
}
.rdbms-infographic .info-card--blue .info-card-bullets li {
  color: #1e3a8a !important;
}
.rdbms-infographic .info-card--green .info-card-bullets li {
  color: #064e3b !important;
}
.rdbms-infographic .info-card--orange .info-card-bullets li {
  color: #7c2d12 !important;
}
.rdbms-infographic .info-card--purple .info-card-bullets li {
  color: #4c1d95 !important;
}
.rdbms-infographic .info-card--red .info-card-bullets li {
  color: #7f1d1d !important;
}
.rdbms-infographic .info-card--amber .info-card-bullets li {
  color: #78350f !important;
}
.rdbms-infographic .info-card--cyan .info-card-bullets li {
  color: #083344 !important;
}

.rdbms-infographic .bullet-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  margin-top: 5px;
  flex-shrink: 0;
}
.rdbms-infographic .info-card--blue .bullet-dot {
  background: #3b82f6;
  box-shadow: 0 0 6px rgba(59,130,246,0.6);
}
.rdbms-infographic .info-card--green .bullet-dot {
  background: #10b981;
  box-shadow: 0 0 6px rgba(16,185,129,0.6);
}
.rdbms-infographic .info-card--orange .bullet-dot {
  background: #f97316;
  box-shadow: 0 0 6px rgba(249,115,22,0.6);
}
.rdbms-infographic .info-card--purple .bullet-dot {
  background: #8b5cf6;
  box-shadow: 0 0 6px rgba(139,92,246,0.6);
}
.rdbms-infographic .info-card--red .bullet-dot {
  background: #ef4444;
  box-shadow: 0 0 6px rgba(239,68,68,0.6);
}
.rdbms-infographic .info-card--amber .bullet-dot {
  background: #f59e0b;
  box-shadow: 0 0 6px rgba(245,158,11,0.6);
}
.rdbms-infographic .info-card--cyan .bullet-dot {
  background: #06b6d4;
  box-shadow: 0 0 6px rgba(6,182,212,0.6);
}

.rdbms-infographic .info-card--blue {
  background: rgba(59, 130, 246, 0.02);
  border-color: rgba(59, 130, 246, 0.15) !important;
}
.rdbms-infographic .info-card--green {
  background: rgba(16, 185, 129, 0.02);
  border-color: rgba(16, 185, 129, 0.15) !important;
}
.rdbms-infographic .info-card--orange {
  background: rgba(249, 115, 22, 0.02);
  border-color: rgba(249, 115, 22, 0.15) !important;
}
.rdbms-infographic .info-card--purple {
  background: rgba(139, 92, 246, 0.02);
  border-color: rgba(139, 92, 246, 0.15) !important;
}
.rdbms-infographic .info-card--red {
  background: rgba(239, 68, 68, 0.02);
  border-color: rgba(239, 68, 68, 0.15) !important;
}
.rdbms-infographic .info-card--amber {
  background: rgba(245, 158, 11, 0.02);
  border-color: rgba(245, 158, 11, 0.15) !important;
}
.rdbms-infographic .info-card--cyan {
  background: rgba(6, 182, 212, 0.02);
  border-color: rgba(6, 182, 212, 0.15) !important;
}

/* Relation Infographic styling (for PK/FK 1-to-Many explanation) */
.relation-infographic {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 16px;
  margin: 18px 0;
  box-shadow: 0 4px 18px rgba(0,0,0,0.03);
  font-family: var(--font);
  overflow: hidden;
}
.relation-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 0;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
}
.relation-node {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 10px;
  text-align: center;
  flex: 1 1 100px;
  min-width: 80px;
  max-width: 200px;
  box-sizing: border-box;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.relation-node:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.05);
}
.relation-node--parent {
  border-left: 4px solid #3b82f6 !important;
}
.relation-node--child {
  border-left: 4px solid #8b5cf6 !important;
  background: rgba(139, 92, 246, 0.01);
}
.node-icon {
  font-size: 1.1rem;
  display: block;
  margin-bottom: 2px;
}
.node-title {
  font-size: 0.8rem;
  font-weight: 800;
  color: #1e293b;
}
.node-subtitle {
  font-size: 0.62rem;
  font-weight: 600;
  color: #64748b;
  margin-top: 2px;
  white-space: normal;
  word-break: break-word;
}
.relation-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.link-label {
  font-size: 0.6rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.link-arrow {
  display: flex;
  align-items: center;
  color: #8b5cf6;
}
.link-line {
  width: 32px;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #8b5cf6);
}
.arrow-head {
  margin-left: -2px;
}
.relation-explanation {
  background: #f8fafc;
  border-radius: 8px;
  padding: 16px;
  border: 1px solid #cbd5e1;
}
.explanation-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: #1e293b;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.explanation-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.explanation-row {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.78rem;
  line-height: 1.5;
  border-bottom: 1px dashed #e2e8f0;
  padding-bottom: 8px;
}
.explanation-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.explanation-term {
  width: 140px;
  font-weight: 700;
  color: #334155;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.bullet-dot-purple {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8b5cf6;
  display: inline-block;
  flex-shrink: 0;
}
.explanation-code {
  width: 155px;
  flex-shrink: 0;
}
.explanation-code code {
  background: #e2e8f0;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 3px 6px;
  font-family: var(--font-mono, monospace);
  font-size: 0.72rem;
  color: #0f172a;
  display: inline-block;
}
.explanation-code--empty {
  color: #94a3b8;
  padding-left: 12px;
  font-weight: 700;
}
.explanation-desc {
  color: #475569;
  flex: 1;
}

@media (max-width: 600px) {
  .explanation-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding-bottom: 10px;
  }
  .explanation-term, .explanation-code {
    width: 100%;
  }
  .explanation-code--empty {
    display: none;
  }
}

/* SQL Execution Order pills (Topic 03) */
.exec-pill {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 5px 9px;
  font-size: 0.7rem;
  font-family: var(--font-mono, monospace);
  font-weight: 700;
  color: #334155;
  white-space: nowrap;
}
.exec-pill--select {
  background: #eff6ff;
  border: 2px solid #3b82f6;
  color: #1d4ed8;
}
.exec-pill--order {
  background: #f0fdf4;
  border: 2px solid #22c55e;
  color: #15803d;
}
.exec-arrow {
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  padding: 0 1px;
}

/* Force left-alignment for lists, paragraphs, and cards in the slides to prevent justify spacing gaps */
.vs-card p,
.vs-card span,
.vs-card li,
.info-card p,
.info-card li,
.rdbms-infographic p,
.rdbms-infographic li,
.info-card-bullets li {
  text-align: left !important;
}

/* Custom Select Dropdown UI Styling */
.day-picker-pill {
  position: relative;
  cursor: pointer;
  user-select: none;
}
.custom-select-trigger {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  color: var(--text);
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  width: 100%;
  gap: 8px !important;
}
.custom-select-trigger .selected-text {
  white-space: nowrap;
  max-width: none;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  flex: 1 !important;
  gap: 12px !important;
  overflow: hidden;
}
.trigger-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  text-align: left;
}
.trigger-duration-badge {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 4px !important;
  padding: 1px 5px !important;
  font-size: 0.65rem !important;
  font-weight: 700 !important;
  font-family: var(--mono) !important;
  color: var(--text-muted) !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  display: inline-block;
  line-height: 1.2;
  transition: all 0.2s ease;
}
.custom-select-trigger:hover .trigger-duration-badge,
.custom-select-trigger.open .trigger-duration-badge {
  color: var(--cyan) !important;
  border-color: rgba(0, 246, 255, 0.25) !important;
  background: rgba(0, 246, 255, 0.08) !important;
  box-shadow: 0 0 6px rgba(0, 246, 255, 0.2);
}
.custom-select-options {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: max-content;
  min-width: 100%;
  max-width: calc(100vw - 24px) !important;
  max-height: 280px;
  overflow-y: auto;
  background: rgba(15, 23, 42, 0.96) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 8px !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  display: none;
  flex-direction: column;
  padding: 6px;
  z-index: 1000;
  box-sizing: border-box !important;
}
/* Scrollbar styling for custom dropdowns */
.custom-select-options::-webkit-scrollbar {
  width: 6px;
}
.custom-select-options::-webkit-scrollbar-track {
  background: transparent;
}
.custom-select-options::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 4px;
}
.custom-select-options::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.3);
}
.topic-picker-pill .custom-select-options {
  right: 0 !important;
  left: auto !important;
  width: 320px !important;
  max-width: calc(100vw - 24px) !important;
}
.custom-select-options.open {
  display: flex;
}
.custom-select-option {
  padding: 8px 16px 8px 24px !important;
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.75) !important;
  border-radius: 6px !important;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-align: left;
  position: relative;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 12px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}
.custom-select-option:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #ffffff !important;
}
.custom-select-option.selected {
  background: rgba(255, 255, 255, 0.04) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
}
.custom-select-option.selected::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(0, 246, 255, 0.8);
}
.topic-picker-pill .custom-select-option.selected::before {
  background: var(--green);
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.8);
}
.option-duration {
  font-family: var(--mono) !important;
  font-size: 0.65rem !important;
  color: rgba(255, 255, 255, 0.4) !important;
  font-weight: 700 !important;
  margin-left: 8px !important;
  flex-shrink: 0 !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 4px !important;
  padding: 1px 5px !important;
  line-height: 1.2 !important;
  transition: all 0.2s ease;
}
.custom-select-option:hover .option-duration,
.custom-select-option.selected .option-duration {
  color: var(--cyan) !important;
  border-color: rgba(0, 246, 255, 0.25) !important;
  background: rgba(0, 246, 255, 0.08) !important;
  box-shadow: 0 0 6px rgba(0, 246, 255, 0.2);
}
.option-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1 !important;
}
.day-picker-chevron svg {
  transition: transform 0.25s ease !important;
}
.custom-select-trigger.open .day-picker-chevron svg,
.day-picker-pill.open .day-picker-chevron svg {
  transform: rotate(180deg) !important;
}

/* ═══════════════════════════════════════════════════════════════
   MODULE 10 — SCRIMBA VIDEO PLAYER
   ═══════════════════════════════════════════════════════════════ */

/* Watch Lesson header button */
.hdr-btn--watch {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: opacity 0.2s, transform 0.15s;
}
.hdr-btn--watch:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* Full-screen overlay */
.video-overlay {
  display: none;
  position: fixed;
  top: 53px; /* Start exactly below header */
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9000;
  background: #050a12;
  flex-direction: column;
}
.video-overlay.open { display: flex; }

.vp-takeover-badge {
  display: none;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: var(--amber);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  animation: vpBadgePulse 2s infinite;
}
.vp-takeover-badge.visible { display: inline-block; }
@keyframes vpBadgePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* Body split */
.vp-body {
  flex: 1;
  display: flex;
  overflow: hidden;
  min-height: 0;
}
.vp-left {
  flex: 0 0 55%;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border);
  overflow: hidden;
  position: relative;
}
.vp-right {
  flex: 0 0 45%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Slide content in vp */
.vp-slide-content {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  font-size: 0.82rem;
  color: var(--text);
}
.vp-slide-content h2 { font-size: 1rem; margin-bottom: 10px; }
.vp-slide-content h3 { font-size: 0.88rem; margin: 10px 0 6px; }
.vp-slide-content p  { font-size: 0.78rem; line-height: 1.6; }

/* Caption box */
.vp-caption {
  margin: 0;
  padding: 12px 18px;
  background: rgba(124, 58, 237, 0.12);
  border-top: 2px solid rgba(124, 58, 237, 0.3);
  font-size: 0.84rem;
  font-weight: 500;
  color: #c4b5fd;
  line-height: 1.5;
  min-height: 52px;
  flex-shrink: 0;
  opacity: 0;
  transform: translateY(6px);
  transition: none;
}
.vp-caption.vp-caption--visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.4s ease, transform 0.35s ease;
}

/* Editor wrap inside vp */
.vp-editor-wrap {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.vp-editor-wrap .CodeMirror {
  height: 100%;
  font-size: 0.83rem;
}

/* Output inside vp */
.vp-output {
  border-top: 1px solid var(--border);
  background: #04060b;
  max-height: 200px;
  min-height: 80px;
  overflow: auto;
  padding: 10px 14px;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: #a5d6ff;
  flex-shrink: 0;
}

/* Controls bar */
.vp-controls {
  background: rgba(255,255,255,0.025);
  border-top: 1px solid var(--border);
  padding: 10px 18px 12px;
  flex-shrink: 0;
}
.vp-controls-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.vp-controls-top { margin-bottom: 8px; }
.vp-controls-bottom { justify-content: space-between; }

.vp-play-btn {
  background: linear-gradient(135deg, #7c3aed, #a855f7);
  border: none;
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, opacity 0.2s;
  flex-shrink: 0;
}
.vp-play-btn:hover { transform: scale(1.08); opacity: 0.9; }

.vp-seek-wrap { flex: 1; }
.vp-seek-bar {
  width: 100%;
  height: 5px;
  cursor: pointer;
  accent-color: #a855f7;
  border-radius: 4px;
}

.vp-time {
  font-size: 0.76rem;
  color: var(--text-dim);
  font-family: var(--mono);
  white-space: nowrap;
  flex-shrink: 0;
}

/* Chapters */
.vp-chapters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.vp-chapter-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.7);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.vp-chapter-btn:hover {
  background: rgba(168, 85, 247, 0.25);
  border-color: rgba(168, 85, 247, 0.5);
  color: #c4b5fd;
}

/* Speed buttons */
.vp-speed-btns {
  display: flex;
  gap: 4px;
}
.vp-speed-btn {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-dim);
  padding: 3px 10px;
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
}
.vp-speed-btn.active,
.vp-speed-btn:hover {
  background: rgba(168, 85, 247, 0.25);
  border-color: rgba(168, 85, 247, 0.5);
  color: #c4b5fd;
}

/* Dynamic highlighting for video narration sync */
@keyframes vpPulseHighlight {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.15);
    border-color: rgba(124, 58, 237, 0.3);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.5);
    border-color: #a855f7;
    background: rgba(124, 58, 237, 0.05) !important;
  }
}

.vp-pulse-highlight {
  animation: vpPulseHighlight 1.2s ease-in-out infinite;
  z-index: 50;
  position: relative;
  transition: transform 0.3s ease, border-color 0.3s ease;
}

/* Workspace Drawing Toolbar */
.ws-draw-toolbar {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.03);
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  align-self: center;
}
.ws-draw-toolbar .tool-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.ws-draw-toolbar .tool-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}
.ws-draw-toolbar .tool-btn.active {
  background: rgba(168, 85, 247, 0.2);
  border-color: #a855f7;
  color: #c4b5fd;
}



/* Float recording header indicator */
.studio-recording-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 52px;
  background: #ef4444;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 999999;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  font-family: system-ui, -apple-system, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
}

.studio-recording-bar button {
  background: #fff;
  color: #ef4444;
  border: none;
  padding: 7px 16px;
  border-radius: 4px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.8rem;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: background-color 0.2s, transform 0.1s;
}

.studio-recording-bar button:hover {
  background: #fee2e2;
  transform: scale(1.02);
}

.studio-recording-bar button:active {
  transform: scale(0.98);
}

@keyframes pulse-record {
  0% { opacity: 0.3; }
  50% { opacity: 1; }
  100% { opacity: 0.3; }
}

.record-pulse {
  width: 12px;
  height: 12px;
  background: #fff;
  border-radius: 50%;
  animation: pulse-record 1s infinite;
  display: inline-block;
  margin-right: 8px;
}

/* RDBMS Explanation Section & Interactive Mock Table Diagram */
.rdbms-intro-section {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 18px;
  margin: 16px 0 24px 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}
.rdbms-intro-section h3 {
  margin-top: 0 !important;
  color: #0f172a !important;
  font-size: 1rem !important;
}
.rdbms-intro-section p {
  color: #475569 !important;
  margin-bottom: 16px;
}
.rdbms-diagram-container {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 16px;
  margin-top: 12px;
}
.rdbms-table-title {
  font-weight: 700;
  font-size: 0.8rem;
  color: #1e293b;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.rdbms-interactive-mock {
  margin: 0 0 14px 0 !important;
  border-color: #cbd5e1 !important;
}
/* Highlight columns as dotted outlines/dashed borders */
.rdbms-interactive-mock th:nth-child(2),
.rdbms-interactive-mock td:nth-child(2) {
  border-left: 2px dashed rgba(59, 130, 246, 0.4) !important;
  border-right: 2px dashed rgba(59, 130, 246, 0.4) !important;
  background: rgba(59, 130, 246, 0.02) !important;
}
.rdbms-interactive-mock th:nth-child(2) {
  background: rgba(59, 130, 246, 0.06) !important;
}
/* Highlight Bob Smith's row to show Row (Record/Tuple) concept */
.rdbms-interactive-mock tr.highlighted-row td {
  background: rgba(16, 185, 129, 0.08) !important;
  font-weight: 500;
}
/* Legend styles */
.rdbms-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 10px;
  font-size: 0.76rem;
  color: #64748b;
  border-top: 1px solid #e2e8f0;
  padding-top: 10px;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  display: inline-block;
}
.legend-color--column {
  background: rgba(59, 130, 246, 0.06);
  border: 1px dashed rgba(59, 130, 246, 0.5);
}
.legend-color--row {
  background: rgba(16, 185, 129, 0.15);
}
.legend-color--pk {
  color: var(--amber);
}

/* Heading with Audio Play Button */
.heading-with-audio {
  display: flex;
  align-items: center;
  gap: 8px;
}
.audio-play-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 4px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #64748b;
  cursor: pointer;
  padding: 0;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.audio-play-btn:hover {
  background: #f1f5f9;
  color: #0ea5e9;
  border-color: #0ea5e9;
  transform: scale(1.05);
}
.audio-play-btn.playing {
  background: rgba(14, 165, 233, 0.1);
  color: #0ea5e9;
  border-color: #0ea5e9;
  box-shadow: 0 0 8px rgba(14, 165, 233, 0.25);
}
.audio-play-btn svg {
  display: block;
}

/* ─── Compact Sub-Languages Table & Highlighting ─── */
.sub-languages-table {
  margin: 8px 0 !important;
}
.sub-languages-table th, 
.sub-languages-table td {
  padding: 6px 10px !important;
  font-size: 0.76rem !important;
}
.sub-languages-table code {
  padding: 2px 4px !important;
  font-size: 0.70rem !important;
}
.sub-languages-table tr {
  transition: background-color 0.3s ease;
}
.sub-languages-table tr.playing-row td {
  background-color: rgba(14, 165, 233, 0.08) !important;
  border-color: rgba(14, 165, 233, 0.3) !important;
}
.sub-languages-table tr.playing-row td strong,
.sub-languages-table tr.playing-row td span,
.sub-languages-table tr.playing-row td code {
  color: #0284c7 !important;
  font-weight: bold;
}

/* --- Premium Info-Card Play Buttons --- */
.info-card-play-btn {
  background: rgba(255, 255, 255, 0.18) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  color: #ffffff !important;
  border-radius: 50% !important;
  width: 24px !important;
  height: 24px !important;
  display: inline-flex !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;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
  padding: 0 !important;
  margin-right: 8px !important;
  flex-shrink: 0 !important;
}
.info-card-play-btn:hover {
  background: #ffffff !important;
  color: #1e293b !important;
  border-color: #ffffff !important;
  transform: scale(1.1) !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
}
.info-card-play-btn.playing {
  background: #ffffff !important;
  color: #059669 !important; /* Green default */
  border-color: #ffffff !important;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.8) !important;
  animation: pulse-glow-btn 1.5s infinite alternate !important;
}
.info-card--amber .info-card-play-btn.playing {
  color: #d97706 !important; /* Amber */
}
.info-card--cyan .info-card-play-btn.playing {
  color: #0891b2 !important; /* Cyan */
}
@keyframes pulse-glow-btn {
  0% {
    box-shadow: 0 0 4px rgba(255, 255, 255, 0.4);
  }
  100% {
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.8);
  }
}

/* ─── Premium UX Elements ─── */
.tb-btn--reset {
  background: var(--surface-2);
  color: var(--amber);
  border: 1px solid rgba(245, 158, 11, 0.3);
}
.tb-btn--reset:hover {
  background: var(--surface-hover);
  border-color: var(--amber);
  box-shadow: 0 0 10px var(--amber-glow);
}

/* Difficulty Badges */
.difficulty-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-left: 6px;
  letter-spacing: 0.05em;
  border: 1px solid transparent;
}
.difficulty-easy {
  background: rgba(16, 185, 129, 0.12);
  color: var(--green);
  border-color: rgba(16, 185, 129, 0.3);
}
.difficulty-medium {
  background: rgba(245, 158, 11, 0.12);
  color: var(--amber);
  border-color: rgba(245, 158, 11, 0.3);
}
.difficulty-hard {
  background: rgba(239, 68, 68, 0.12);
  color: var(--red);
  border-color: rgba(239, 68, 68, 0.3);
}
.difficulty-expert {
  background: rgba(124, 58, 237, 0.12);
  color: #a78bfa;
  border-color: rgba(124, 58, 237, 0.3);
}

/* Split Diff View */
.split-diff-container {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}
.diff-pane {
  flex: 1;
  background: #0b0f19;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.diff-pane-header {
  padding: 8px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.diff-pane-header--expected { color: var(--green); }
.diff-pane-header--actual { color: var(--red); }
.diff-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.72rem;
  font-family: var(--mono);
}
.diff-table th, .diff-table td {
  padding: 6px 10px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.diff-table th { background: rgba(255,255,255,0.02); }
.diff-row--mismatch {
  background: rgba(239, 68, 68, 0.08) !important;
}

/* Graded Review Cards */
.review-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
}
.review-card--correct {
  border-left: 4px solid var(--green);
}
.review-card--incorrect {
  border-left: 4px solid var(--red);
}
.review-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.8rem;
  font-weight: 700;
}
.review-prompt {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--text);
  margin-bottom: 12px;
}
.review-queries {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 10px;
}
.review-queries pre {
  margin: 4px 0 0 0;
  padding: 8px;
  background: #060913;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--mono);
  font-size: 0.72rem;
  color: #e2e8f0;
  white-space: pre-wrap;
  word-break: break-all;
}
.review-angle {
  padding: 8px 12px;
  background: rgba(124, 58, 237, 0.06);
  border: 1px solid rgba(124, 58, 237, 0.15);
  border-radius: var(--radius-sm);
  font-size: 0.76rem;
  line-height: 1.45;
  color: #c084fc;
}

/* Day Transitions */
.day-transition {
  transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s ease;
}
.day-transition-loading {
  opacity: 0.3;
  filter: blur(4px);
  transform: translateY(8px);
  pointer-events: none;
}

/* Practice Hints progressive reveal */
.hints-reveal-box {
  margin-top: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  overflow: hidden;
}
.hint-tier {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 0.76rem;
  line-height: 1.4;
}
.hint-tier:last-child { border-bottom: none; }
.hint-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  margin-bottom: 4px;
  color: var(--amber);
}
.hint-content {
  color: #cbd5e1;
}

/* Mode Banner */
.mode-accent-banner {
  background: var(--amber-glow);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--amber);
  padding: 4px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
}
.mode-accent-banner--test {
  animation: pulse-border-amber 2s infinite alternate;
}
@keyframes pulse-border-amber {
  0% { border-color: rgba(245, 158, 11, 0.3); }
  100% { border-color: var(--amber); }
}



/* ---------------------------------------------------------------
   PYTHON PLAYER  THEME OVERRIDES
   --------------------------------------------------------------- */
:root {
  --accent: #3b82f6;
  --accent-hover: #2563eb;
  --accent-soft: rgba(59,130,246,0.12);
}
.day-picker-dot--day { background: #3b82f6; }
.hdr-btn--test { background: #3b82f6; }
.hdr-btn--test:hover { background: #2563eb; }
.stats-progress-fill { background: #3b82f6; }
.py-loading-overlay { position:fixed;inset:0;background:rgba(6,9,19,0.95);z-index:9999;display:flex;align-items:center;justify-content:center; }
.py-loading-card { background:#111827;border:1px solid rgba(59,130,246,0.3);border-radius:16px;padding:36px 48px;text-align:center;max-width:360px;width:90%;box-shadow:0 0 40px rgba(59,130,246,0.15); }
.py-loading-spinner { width:40px;height:40px;border:3px solid rgba(59,130,246,0.2);border-top-color:#3b82f6;border-radius:50%;animation:spin 0.8s linear infinite;margin:0 auto 16px; }
@keyframes spin { to { transform:rotate(360deg); } }
.py-loading-title { font-size:1.1rem;font-weight:700;color:#f1f5f9;margin-bottom:8px; }
.py-loading-sub { font-size:0.78rem;color:#64748b;margin-bottom:20px; }
.py-loading-bar-wrap { background:rgba(255,255,255,0.05);border-radius:8px;height:6px;overflow:hidden; }
.py-loading-bar { height:100%;width:0%;background:linear-gradient(90deg,#3b82f6,#60a5fa);border-radius:8px;transition:width 0.4s ease; }
.sidebar-btn { width:36px;height:36px;border-radius:6px;border:1px solid rgba(255,255,255,0.07);background:#111827;color:#64748b;font-size:0.78rem;font-weight:600;cursor:pointer;transition:all 0.2s;display:flex;align-items:center;justify-content:center; }
.sidebar-btn:hover { border-color:#3b82f6;color:#f1f5f9; }
.sidebar-btn--passed { background:rgba(16,185,129,0.15);border-color:#10b981;color:#6ee7b7; }
.sidebar-btn--attempted { background:rgba(239,68,68,0.1);border-color:#ef4444;color:#fca5a5; }

.test-sidebar {
  width: 80px !important;
  min-width: 80px !important;
  background: #090d1f !important;
  border-right: 1px solid rgba(255,255,255,0.07) !important;
  overflow-y: auto !important;
  padding: 10px 8px !important;
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  gap: 6px !important;
  flex-shrink: 0 !important;
  align-content: stretch !important;
}

.pro-tip-box { background:rgba(16,185,129,0.08);border-left:4px solid #10b981;border-radius:0 8px 8px 0;padding:12px 16px;margin:16px 0;font-size:0.88rem;color:#d1fae5; }
.warn-box { background:rgba(245,158,11,0.08);border-left:4px solid #f59e0b;border-radius:0 8px 8px 0;padding:12px 16px;margin:16px 0;font-size:0.88rem;color:#fef3c7; }
.info-box { background:rgba(59,130,246,0.08);border-left:4px solid #3b82f6;border-radius:0 8px 8px 0;padding:12px 16px;margin:16px 0;font-size:0.88rem;color:#dbeafe; }
.callout-box { background:rgba(124,58,237,0.08);border:1px solid rgba(124,58,237,0.25);border-radius:8px;padding:12px 16px;margin:16px 0;font-size:0.88rem;color:#e9d5ff; }
.type-chip { display:inline-block;padding:2px 8px;border-radius:20px;font-size:0.72rem;font-weight:700;font-family:monospace;background:rgba(59,130,246,0.15);color:#93c5fd;border:1px solid rgba(59,130,246,0.3);margin:2px; }
.type-chip--immutable { background:rgba(16,185,129,0.12);color:#6ee7b7;border-color:rgba(16,185,129,0.3); }
.type-chip--mutable { background:rgba(245,158,11,0.12);color:#fcd34d;border-color:rgba(245,158,11,0.3); }
.type-heading { background:linear-gradient(135deg,rgba(59,130,246,0.15),rgba(59,130,246,0.05));border-left:5px solid #3b82f6;border-radius:0 8px 8px 0;padding:12px 18px;margin:28px 0 16px;display:flex;align-items:center;gap:10px; }
.type-heading h3 { margin:0;font-size:1rem;font-weight:700;color:#93c5fd; }
.sub-why { color:#60a5fa;font-size:0.9rem;font-weight:600;margin:18px 0 6px; }
.sub-pitfall { color:#fbbf24;font-size:0.9rem;font-weight:600;margin:18px 0 6px; }
.sub-memory { color:#34d399;font-size:0.9rem;font-weight:600;margin:18px 0 6px; }
.code-output-table { width:100%;border-collapse:collapse;font-family:monospace;font-size:0.8rem;margin:12px 0;border-radius:6px;overflow:hidden; }
.code-output-table th { background:rgba(255,255,255,0.06);padding:6px 12px;text-align:left;color:#64748b;font-weight:600;font-size:0.72rem;text-transform:uppercase; }
.code-output-table td { padding:5px 12px;border-top:1px solid rgba(255,255,255,0.07);color:#f1f5f9; }
button:disabled { opacity:0.5;cursor:not-allowed; }


/* Active Narration Visual Highlight styles */
.slide-section {
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
.slide-section.inactive-narration {
  opacity: 0.35;
}
.slide-section.active-narration {
  opacity: 1 !important;
  transform: scale(1.008);
  box-shadow: 0 0 16px rgba(59, 130, 246, 0.25);
  border-radius: 8px;
  background: rgba(59, 130, 246, 0.02);
}


/* Top 3 UI/UX Matte Finish Headings Design - Color Science Aligned */
.slide-content h2 {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
  margin-top: 10px !important;
  margin-bottom: 8px !important;
  color: var(--text, #f8fafc) !important;
}

.slide-content h3 {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #070a13 !important; /* Deeper integrated obsidian matte */
  border: 1px solid rgba(255, 255, 255, 0.03) !important;
  border-left: 3px solid rgba(56, 189, 248, 0.7) !important;
  padding: 10px 14px !important;
  border-radius: 6px !important;
  color: #ffffff !important; /* Pure white text */
  font-size: 1.05rem !important;
  font-weight: 600 !important;
  margin-top: 10px !important;
  margin-bottom: 10px !important;
}

.slide-content .audio-play-btn {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #94a3b8 !important;
  width: 24px !important;
  height: 24px !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  display: inline-flex !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;
  margin-left: 8px !important;
}

.slide-content .audio-play-btn:hover {
  background: #3b82f6 !important;
  border-color: #3b82f6 !important;
  color: #ffffff !important;
  transform: scale(1.08) !important;
}


/* Heading Gap Reduction Styles */
.rdbms-intro-section {
  margin-top: 4px !important;
  padding-top: 10px !important;
}
.slide-content h3 {
  margin-top: 0 !important;
}


/* Premium SQL Syntax Cards Layout */
.syntax-cards-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 16px 0;
}

.syntax-card {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  overflow: hidden;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03) !important;
  transition: all 0.2s ease;
}
.syntax-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04) !important;
}

.syntax-card--recommended {
  border-left: 4px solid #10b981 !important;
}
.syntax-card--warning {
  border-left: 4px solid #f59e0b !important;
}
.syntax-card--info {
  border-left: 4px solid #3b82f6 !important;
}

.syntax-card-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  background: #f8fafc !important;
  padding: 10px 14px;
  border-bottom: 1px solid #edf2f7;
}

.syntax-card-title {
  font-weight: 700;
  font-size: 0.82rem;
  color: #1e293b !important;
  margin-right: auto;
}

.syntax-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 9999px;
  letter-spacing: 0.025em;
}
.syntax-badge--recommended {
  background: #ecfdf5 !important;
  color: #065f46 !important;
}
.syntax-badge--warning {
  background: #fffbeb !important;
  color: #92400e !important;
}
.syntax-badge--info {
  background: #eff6ff !important;
  color: #1e40af !important;
}
.syntax-badge--ansi {
  background: #f1f5f9 !important;
  color: #475569 !important;
  border: 1px solid #cbd5e1 !important;
}

.syntax-card-body pre {
  margin: 0 !important;
  padding: 12px 14px !important;
  background: #0f172a !important; /* Premium dark theme code block inside the white card */
  border: none !important;
  border-radius: 0 !important;
  font-size: 0.8rem !important;
  text-align: left !important;
}

.syntax-card-body code {
  background: none !important;
  border: none !important;
  padding: 0 !important;
  display: block !important;
  color: #cbd5e1 !important; /* Standard neutral light-grey for variables */
  font-family: var(--mono, monospace) !important;
  white-space: pre !important;
}

/* Syntax Highlighting Colors */
.sql-keyword {
  color: #38bdf8 !important; /* Sky Blue keywords */
  font-weight: bold;
}
.sql-number {
  color: #f59e0b !important; /* Amber numbers */
}
.sql-string {
  color: #10b981 !important; /* Green strings */
}

.syntax-card-footer {
  padding: 10px 14px;
  font-size: 0.78rem;
  color: #475569 !important;
  line-height: 1.45;
  background: #f8fafc !important;
  border-top: 1px solid #edf2f7;
  text-align: left !important;
}


/* Premium Infographic CSS */
.relation-visual {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
}

.relation-node {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 12px !important;
  padding: 16px 20px !important;
  text-align: center !important;
  min-width: 180px !important;
  max-width: 260px !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.relation-node:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 15px rgba(0, 0, 0, 0.08) !important;
}

.node-icon {
  font-size: 1.5rem !important;
  margin-bottom: 8px !important;
  display: inline-block !important;
}

.relation-connector {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  position: relative !important;
  width: 100% !important;
  height: 60px !important;
  justify-content: center !important;
}

.relation-connector::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  left: 50% !important;
  width: 2px !important;
  background: linear-gradient(180deg, #64748b, #7c3aed) !important;
  transform: translateX(-50%) !important;
  z-index: 1 !important;
}

.relation-connector::after {
  content: '' !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 50% !important;
  width: 0 !important;
  height: 0 !important;
  border-left: 6px solid transparent !important;
  border-right: 6px solid transparent !important;
  border-top: 6px solid #7c3aed !important;
  transform: translateX(-50%) !important;
  z-index: 1 !important;
}

.connector-label {
  background: #7c3aed !important;
  color: #ffffff !important;
  font-size: 0.65rem !important;
  font-weight: 800 !important;
  padding: 4px 10px !important;
  border-radius: 9999px !important;
  z-index: 2 !important;
  box-shadow: 0 2px 4px rgba(124, 58, 237, 0.2) !important;
  letter-spacing: 0.05em !important;
}

.connector-arrow {
  display: none !important; /* Hide default messy svg arrow */
}


/* ==========================================
   Stunning responsive Arrow & Connector UI Design
   ========================================== */

/* Universal Layout & Alignment */
.relation-visual {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 16px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

/* Base Connector Link styling */
.relation-link {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  flex-shrink: 0 !important;
  width: 80px !important;
  height: 40px !important;
  margin: 0 4px !important;
}

/* Horizontal Line & Arrow Head (Default) */
.link-arrow {
  display: flex !important;
  align-items: center !important;
  color: #7c3aed !important;
  position: relative !important;
  width: 100% !important;
  height: 3px !important;
  background: linear-gradient(90deg, #3b82f6, #7c3aed) !important;
  transform: none !important; /* Stop rotated CSS hacks */
  margin: 0 !important;
  border-radius: 2px !important;
  box-shadow: 0 1px 3px rgba(124, 58, 237, 0.2) !important;
}

/* CSS Arrow Head on Line End */
.link-arrow::after {
  content: '' !important;
  position: absolute !important;
  right: -2px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  width: 0 !important;
  height: 0 !important;
  border-left: 8px solid #7c3aed !important;
  border-top: 6px solid transparent !important;
  border-bottom: 6px solid transparent !important;
  filter: drop-shadow(0 1px 2px rgba(124, 58, 237, 0.3)) !important;
}

/* Hide raw SVG arrowhead inside DOM */
.arrow-head, .connector-arrow {
  display: none !important;
}

/* Custom Floating 'AS' Pill Badge */
.link-label {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  background: #7c3aed !important;
  color: #ffffff !important;
  font-size: 0.65rem !important;
  font-weight: 800 !important;
  padding: 4px 10px !important;
  border-radius: 9999px !important;
  box-shadow: 0 4px 10px rgba(124, 58, 237, 0.4) !important;
  z-index: 10 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  transition: all 0.2s ease !important;
}
.link-label:hover {
  transform: translate(-50%, -57%) scale(1.05) !important;
  box-shadow: 0 6px 14px rgba(124, 58, 237, 0.5) !important;
}

/* Micro-Animations for Flow Arrows */
.flow-arrow .arrow-symbol {
  font-size: 1.2rem !important;
  color: #8b5cf6 !important;
  display: inline-block !important;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.flow-arrow:hover .arrow-symbol {
  transform: translateX(5px) !important;
}

/* Vertical Stacking Mode Override (Media Queries for split-screen/narrow) */
@media (max-width: 900px) {
  .relation-visual {
    flex-direction: column !important;
    gap: 16px !important;
  }
  
  .relation-link {
    flex-direction: column !important;
    width: 40px !important;
    height: 80px !important;
    margin: 8px 0 !important;
  }
  
  .link-arrow {
    width: 3px !important;
    height: 100% !important;
    background: linear-gradient(180deg, #3b82f6, #7c3aed) !important;
    transform: none !important;
    border-radius: 2px !important;
  }
  
  /* Vertical Arrow Head pointing down */
  .link-arrow::after {
    content: '' !important;
    position: absolute !important;
    bottom: -2px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    top: auto !important;
    right: auto !important;
    border-top: 8px solid #7c3aed !important;
    border-left: 6px solid transparent !important;
    border-right: 6px solid transparent !important;
  }
}


/* ==========================================
   Professional Arrow and Connector System v3
   Clean finishing, minimal gaps, proper heads
   ========================================== */

/* Relation Visual: always vertical in slide panel */
.relation-visual {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  width: 100% !important;
}

/* Relation Node Cards */
.relation-node {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 14px 20px !important;
  text-align: center !important;
  min-width: 160px !important;
  max-width: 240px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
  position: relative !important;
  z-index: 2 !important;
}
.relation-node:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.07) !important;
}
.node-icon {
  font-size: 1.2rem !important;
  display: block !important;
  margin-bottom: 4px !important;
}
.node-title {
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  color: #1e293b !important;
}
.node-subtitle {
  font-size: 0.65rem !important;
  font-weight: 600 !important;
  color: #64748b !important;
  margin-top: 2px !important;
}

/* Connector Link Container - vertical */
.relation-link {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  flex-shrink: 0 !important;
  width: 40px !important;
  height: 48px !important;
  margin: 0 !important;
  gap: 0 !important;
}

/* The Stem Line */
.link-arrow {
  display: block !important;
  position: absolute !important;
  top: 0 !important;
  bottom: 10px !important;
  left: 50% !important;
  width: 3px !important;
  height: auto !important;
  background: linear-gradient(180deg, #94a3b8, #6366f1) !important;
  transform: translateX(-50%) !important;
  border-radius: 3px 3px 0 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
  color: transparent !important;
}

/* Arrowhead pointing down */
.link-arrow::after {
  content: '' !important;
  position: absolute !important;
  bottom: -8px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 0 !important;
  height: 0 !important;
  border-left: 8px solid transparent !important;
  border-right: 8px solid transparent !important;
  border-top: 10px solid #6366f1 !important;
  border-bottom: none !important;
  top: auto !important;
  right: auto !important;
  filter: none !important;
}

/* Hide SVG arrow heads */
.arrow-head,
.connector-arrow,
.link-line {
  display: none !important;
}

/* Floating Label Pill */
.link-label {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  background: #6366f1 !important;
  color: #ffffff !important;
  font-size: 0.6rem !important;
  font-weight: 800 !important;
  padding: 3px 8px !important;
  border-radius: 9999px !important;
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.35) !important;
  z-index: 10 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  white-space: nowrap !important;
  border: none !important;
  transition: transform 0.15s ease !important;
  line-height: 1.2 !important;
}
.link-label:hover {
  transform: translate(-50%, -55%) scale(1.05) !important;
}

/* Exec-Arrow process flow pills */
.exec-arrow {
  color: #6366f1 !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  flex-shrink: 0 !important;
  padding: 0 2px !important;
}

/* Flow-Arrow horizontal step connectors */
.flow-arrow {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  color: #64748b !important;
  font-weight: bold !important;
  font-size: 0.82rem !important;
  white-space: nowrap !important;
}
.flow-arrow .arrow-symbol {
  font-size: 1.1rem !important;
  color: #6366f1 !important;
  display: inline-block !important;
  transition: transform 0.15s ease !important;
}
.flow-arrow:hover .arrow-symbol {
  transform: translateX(4px) !important;
}

/* Relation-Connector standalone vertical pipes */
.relation-connector {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  position: relative !important;
  width: 40px !important;
  height: 48px !important;
  justify-content: center !important;
  margin: 0 !important;
}
.relation-connector::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  bottom: 10px !important;
  left: 50% !important;
  width: 3px !important;
  background: linear-gradient(180deg, #94a3b8, #6366f1) !important;
  transform: translateX(-50%) !important;
  border-radius: 3px 3px 0 0 !important;
  z-index: 1 !important;
}
.relation-connector::after {
  content: '' !important;
  position: absolute !important;
  bottom: 0 !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 0 !important;
  height: 0 !important;
  border-left: 8px solid transparent !important;
  border-right: 8px solid transparent !important;
  border-top: 10px solid #6366f1 !important;
  z-index: 1 !important;
}
.connector-label {
  background: #6366f1 !important;
  color: #ffffff !important;
  font-size: 0.6rem !important;
  font-weight: 800 !important;
  padding: 3px 8px !important;
  border-radius: 9999px !important;
  z-index: 2 !important;
  box-shadow: 0 2px 6px rgba(99, 102, 241, 0.35) !important;
  letter-spacing: 0.04em !important;
  line-height: 1.2 !important;
}


/* ==========================================
   Premium Infographic Redesign Styles
   ========================================== */

/* Centering container (Fixes JS reset display issues) */
#projectionResultSet {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: 100% !important;
}

/* Relation Nodes Redesign */
.relation-node {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  padding: 16px 20px !important;
  text-align: center !important;
  min-width: 220px !important;
  max-width: 280px !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.04), 0 8px 16px -6px rgba(0, 0, 0, 0.02) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
  z-index: 2 !important;
  position: relative !important;
}

/* Elevated Hover Effects */
.relation-node:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.03) !important;
}

/* Glowing Accent Borders */
#projectionDiskPage, #aliasRawExpr {
  border-left: 4px solid #64748b !important; /* Slate Grey for raw input */
}

#projectionFilter {
  border-left: 4px solid #3b82f6 !important; /* Blue for query filters */
}

.relation-node--child, #aliasOutputCol {
  border-left: 4px solid #10b981 !important; /* Emerald green for output results */
}

/* Premium Icon Badges replacing raw text emojis */
.node-icon-badge {
  width: 44px !important;
  height: 44px !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 12px !important;
  font-size: 1.4rem !important;
  transition: all 0.25s ease !important;
  box-shadow: inset 0 -2px 4px rgba(0, 0, 0, 0.02) !important;
}

/* Themed pastel backgrounds for icon badges */
#projectionDiskPage .node-icon-badge, #aliasRawExpr .node-icon-badge {
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
}

#projectionFilter .node-icon-badge {
  background: #eff6ff !important;
  border: 1px solid #dbeafe !important;
}

.relation-node--child .node-icon-badge, #aliasOutputCol .node-icon-badge {
  background: #ecfdf5 !important;
  border: 1px solid #d1fae5 !important;
}

.relation-node:hover .node-icon-badge {
  transform: scale(1.1) rotate(5deg) !important;
}

/* Typography Enhancements */
.node-title {
  font-size: 0.88rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 !important;
  letter-spacing: -0.01em !important;
  line-height: 1.3 !important;
}

.node-subtitle {
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  color: #64748b !important;
  margin-top: 4px !important;
  letter-spacing: 0.01em !important;
}

/* Customized Connector Gradients per Stage */
#projectionLoads .link-arrow {
  background: linear-gradient(180deg, #64748b, #3b82f6) !important;
}
#projectionLoads .link-arrow::after {
  border-top-color: #3b82f6 !important;
}
#projectionLoads .link-label {
  background: #3b82f6 !important;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3) !important;
}

#projectionResultSet .link-arrow {
  background: linear-gradient(180deg, #3b82f6, #10b981) !important;
}
#projectionResultSet .link-arrow::after {
  border-top-color: #10b981 !important;
}
#projectionResultSet .link-label {
  background: #10b981 !important;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3) !important;
}


/* ==========================================
   Day 2 Premium Infographic Styles
   ========================================== */

#filterRawTable {
  border-left: 4px solid #64748b !important;
}

#filterGateExecute {
  border-left: 4px solid #f97316 !important;
}

#filterGateResult {
  border-left: 4px solid #10b981 !important;
}

#filterRawTable .node-icon-badge {
  background: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
}

#filterGateExecute .node-icon-badge {
  background: #fff7ed !important;
  border: 1px solid #ffedd5 !important;
}

#filterGateResult .node-icon-badge {
  background: #ecfdf5 !important;
  border: 1px solid #d1fae5 !important;
}

/* Day 2 Connector Gradients */
#filterGateLoads .link-arrow {
  background: linear-gradient(180deg, #64748b, #f97316) !important;
}
#filterGateLoads .link-arrow::after {
  border-top-color: #f97316 !important;
}
#filterGateLoads .link-label {
  background: #f97316 !important;
  box-shadow: 0 4px 10px rgba(249, 115, 22, 0.3) !important;
}

#filterGateOutput .link-arrow {
  background: linear-gradient(180deg, #f97316, #10b981) !important;
}
#filterGateOutput .link-arrow::after {
  border-top-color: #10b981 !important;
}
#filterGateOutput .link-label {
  background: #10b981 !important;
  box-shadow: 0 4px 10px rgba(16, 185, 129, 0.3) !important;
}


/* ==========================================
   Writing vs Logical Execution Order Cards
   Same height alignment, premium spacing, elegant connectors
   ========================================== */

/* Outer card layout matching heights */
.rdbms-infographic .exec-order-card {
  flex: 1 1 200px !important;
  max-width: 280px !important;
  height: 400px !important; /* Constrain the height so they align perfectly */
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
}

.exec-flow-container {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: space-between !important; /* Forces vertical distribution to align heights */
  flex-grow: 1 !important;
  padding: 12px 14px 16px 14px !important;
  box-sizing: border-box !important;
}

/* Pills design styling */
.exec-pill {
  width: 100% !important; /* Stretch to fill card width nicely */
  max-width: 200px !important;
  height: 28px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: var(--font-mono, monospace) !important;
  font-size: 0.68rem !important;
  font-weight: 700 !important;
  border-radius: 6px !important;
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #475569 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02) !important;
  transition: all 0.15s ease !important;
  box-sizing: border-box !important;
  text-align: center !important;
}

.exec-pill:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.04) !important;
}

/* Active and highlight states */
.exec-pill--writing-active {
  border-style: dashed !important;
  border-color: #94a3b8 !important;
  background: #f1f5f9 !important;
  color: #334155 !important;
}

.exec-pill--select {
  background: #eff6ff !important;
  border: 1.5px solid #3b82f6 !important;
  color: #1d4ed8 !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.12) !important;
}

.exec-pill--order {
  background: #f0fdf4 !important;
  border: 1.5px solid #22c55e !important;
  color: #15803d !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 6px rgba(34, 197, 94, 0.12) !important;
}

/* Custom connector arrows */
.exec-arrow {
  font-size: 0.75rem !important;
  font-weight: 900 !important;
  color: #6366f1 !important; /* Beautiful indigo accent colors for the sequence flow */
  height: 10px !important;
  line-height: 1 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  transform: none !important;
  opacity: 0.8 !important;
}


/* ==========================================
   Writing vs Execution Order Redesign v4
   Dashboard style side-by-side grid, timeline connector
   ========================================== */

/* Container forcing cards next to each other on all viewports */
.exec-order-row-layout {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 12px !important;
  width: 100% !important;
  max-width: 580px !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
}

/* Card overrides for matching heights */
.rdbms-infographic .exec-order-card {
  flex: 1 1 45% !important;
  height: 440px !important; /* Equal heights */
  display: flex !important;
  flex-direction: column !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03) !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
}
.rdbms-infographic .exec-order-card:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06) !important;
}

/* Specific Header Gradients */
.exec-order-card.info-card--blue .info-card-header {
  background: linear-gradient(135deg, #1e3a8a, #3b82f6) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}
.exec-order-card.info-card--green .info-card-header {
  background: linear-gradient(135deg, #064e3b, #10b981) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Flow container with a vertical timeline track line passing behind pills */
.exec-flow-container {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-grow: 1 !important;
  padding: 16px 10px 20px 10px !important;
  position: relative !important;
  box-sizing: border-box !important;
}
.exec-flow-container::before {
  content: '' !important;
  position: absolute !important;
  top: 24px !important;
  bottom: 24px !important;
  left: 50% !important;
  width: 2px !important;
  background: #cbd5e1 !important; /* Soft grey timeline connector line */
  transform: translateX(-50%) !important;
  z-index: 1 !important;
}

/* Timeline Pill layout (placed on top of the line) */
.exec-pill {
  width: 100% !important;
  max-width: 180px !important;
  height: 28px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: var(--font-mono, monospace) !important;
  font-size: 0.65rem !important;
  font-weight: 700 !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  color: #475569 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
  transition: all 0.15s ease !important;
  box-sizing: border-box !important;
  z-index: 2 !important;
  text-align: center !important;
  white-space: nowrap !important;
}
.exec-pill:hover {
  transform: translateY(-1px) !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.04) !important;
}

/* Custom Highlight States */
.exec-pill--writing-active {
  border-style: dashed !important;
  border-color: #94a3b8 !important;
  background: #f8fafc !important;
  color: #334155 !important;
}

.exec-pill--select {
  background: #eff6ff !important;
  border: 1.5px solid #3b82f6 !important;
  color: #1d4ed8 !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.12) !important;
}

.exec-pill--order {
  background: #f0fdf4 !important;
  border: 1.5px solid #22c55e !important;
  color: #15803d !important;
  font-weight: 800 !important;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.12) !important;
}

/* Styled Connector Badge on Timeline */
.exec-arrow {
  width: 16px !important;
  height: 16px !important;
  border-radius: 9999px !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #6366f1 !important; /* Indigo accent indicator */
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0.55rem !important;
  font-weight: 900 !important;
  margin: 0 !important;
  z-index: 2 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
  transform: none !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
}

/* Responsive adjustments for extremely narrow viewports */
@media (max-width: 480px) {
  .exec-order-row-layout {
    gap: 6px !important;
  }
  .exec-pill {
    font-size: 0.58rem !important;
    height: 24px !important;
  }
  .rdbms-infographic .exec-order-card {
    height: 400px !important;
  }
}


/* ==========================================
   Premium Table Design Enhancements
   ========================================== */

/* Table Header Subtitles / Badges */
.table-th-subtitle {
  display: block !important;
  font-size: 0.6rem !important;
  font-weight: 700 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  margin-top: 5px !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  white-space: nowrap !important;
  width: fit-content !important;
  box-sizing: border-box !important;
}

.table-th-subtitle--blue {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  border: 1px solid #dbeafe !important;
}

.table-th-subtitle--slate {
  background: #f8fafc !important;
  color: #475569 !important;
  border: 1px solid #e2e8f0 !important;
}

/* Stunning Table Hover Effects & Borders */
.db-table-mock tr {
  transition: background-color 0.15s ease !important;
}
.db-table-mock tbody tr:hover td {
  background-color: #f8fafc !important;
}

/* Projected Column Highlight (Clean Blue Border) */
.db-table-mock th.column-projected-header {
  border-left: 1.5px solid #3b82f6 !important;
  border-right: 1.5px solid #3b82f6 !important;
  background: #eff6ff !important;
  color: #1d4ed8 !important;
}

.db-table-mock td.column-projected-cell {
  border-left: 1.5px solid #3b82f6 !important;
  border-right: 1.5px solid #3b82f6 !important;
  background: rgba(239, 246, 255, 0.4) !important; /* Soft blue tint background */
  font-weight: 600 !important;
}
