/* ==========================================================================
   RAG .NET 10 System Walkthrough Portal - Modern Design System
   ========================================================================== */

:root {
  --bg-primary: #09090b;
  --bg-secondary: #121215;
  --bg-card: rgba(22, 22, 26, 0.85);
  --bg-card-hover: rgba(32, 32, 38, 0.95);
  --bg-input: #18181b;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: #38bdf8;
  
  --text-primary: #f4f4f5;
  --text-secondary: #a1a1aa;
  --text-muted: #71717a;
  
  --accent-cyan: #38bdf8;
  --accent-cyan-glow: rgba(56, 189, 248, 0.25);
  --accent-emerald: #34d399;
  --accent-emerald-glow: rgba(52, 211, 153, 0.25);
  --accent-purple: #a78bfa;
  --accent-purple-glow: rgba(167, 139, 250, 0.25);
  --accent-amber: #fbbf24;
  --accent-rose: #f87171;

  --code-bg: #0e0e11;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
  
  --header-height: 64px;
  --sidebar-width: 320px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.7), 0 8px 10px -6px rgba(0, 0, 0, 0.5);
}

[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.9);
  --bg-card-hover: #f1f5f9;
  --bg-input: #f1f5f9;
  --border-subtle: #e2e8f0;
  --border-focus: #0284c7;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --accent-cyan: #0284c7;
  --accent-cyan-glow: rgba(2, 132, 199, 0.15);
  --accent-emerald: #059669;
  --accent-purple: #7c3aed;
  --accent-amber: #d97706;
  --accent-rose: #dc2626;

  --code-bg: #f1f5f9;
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Header & Top Navigation
   ========================================================================== */

.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-height);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  backdrop-filter: blur(12px);
}

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

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #0ea5e9, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 0 16px var(--accent-cyan-glow);
}

.brand-text h1 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.brand-text .badge {
  font-size: 10px;
  text-transform: uppercase;
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
  margin-left: 6px;
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.brand-sub {
  font-size: 11px;
  color: var(--text-muted);
}

/* Top Nav Tabs */
.top-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-primary);
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  overflow-x: auto;
}

.nav-tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.nav-tab-btn.active {
  background: var(--accent-cyan);
  color: #0b0f19;
  font-weight: 700;
  box-shadow: 0 2px 8px var(--accent-cyan-glow);
}

[data-theme="light"] .nav-tab-btn.active {
  color: #ffffff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-trigger {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-md);
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.search-trigger:hover {
  border-color: var(--accent-cyan);
  color: var(--text-primary);
}

.search-trigger kbd {
  background: var(--bg-secondary);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  border: 1px solid var(--border-subtle);
  font-family: var(--font-mono);
}

.icon-btn {
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 16px;
}

.icon-btn:hover {
  color: var(--text-primary);
  border-color: var(--accent-cyan);
}

/* ==========================================================================
   Main App Container & Layout
   ========================================================================== */

.app-container {
  display: flex;
  flex: 1;
  position: relative;
  min-height: calc(100vh - var(--header-height));
}

.tab-pane {
  display: none;
  flex: 1;
  width: 100%;
}

.tab-pane.active {
  display: flex;
  flex-direction: column;
}

/* ==========================================================================
   Dual-Navigation (Guides Tab Layout)
   ========================================================================== */

.guides-layout {
  display: flex;
  flex: 1;
  width: 100%;
  position: relative;
}

.guides-sidebar {
  width: var(--sidebar-width);
  min-width: var(--sidebar-width);
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: var(--header-height);
  height: calc(100vh - var(--header-height));
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 20;
}

.guides-sidebar.collapsed {
  transform: translateX(-100%);
  width: 0;
  min-width: 0;
  overflow: hidden;
}

.sidebar-header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-header h2 {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.sidebar-search-box {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.sidebar-search-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  color: var(--text-primary);
  font-size: 12px;
  outline: none;
  transition: var(--transition);
}

.sidebar-search-input:focus {
  border-color: var(--accent-cyan);
}

.sidebar-nav-list {
  flex: 1;
  overflow-y: auto;
  padding: 10px 12px;
}

.phase-group {
  margin-bottom: 16px;
}

.phase-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  padding: 6px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.guide-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition);
  margin-bottom: 2px;
  border-left: 2px solid transparent;
}

.guide-nav-item:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.guide-nav-item.active {
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-cyan);
  border-left-color: var(--accent-cyan);
  font-weight: 600;
}

.guide-num {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  min-width: 20px;
}

.guide-nav-item.active .guide-num {
  color: var(--accent-cyan);
}

.guide-title-text {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.guide-tag-badge {
  font-size: 9px;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
}

.sidebar-toggle-btn {
  position: absolute;
  top: 16px;
  right: -32px;
  width: 32px;
  height: 32px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-left: none;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 25;
  transition: var(--transition);
}

.sidebar-toggle-btn:hover {
  color: var(--text-primary);
  background: var(--bg-card-hover);
}

/* Guides Main Reader */
.guides-content-area {
  flex: 1;
  display: flex;
  position: relative;
  overflow-x: hidden;
}

.reader-container {
  flex: 1;
  max-width: 900px;
  margin: 0 auto;
  padding: 36px 32px 80px 32px;
}

.guide-header-meta {
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.guide-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.guide-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-pill {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 5px;
}

.reader-body {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* In-Page Sticky Table of Contents */
.inpage-toc {
  width: 240px;
  min-width: 240px;
  position: sticky;
  top: var(--header-height);
  height: calc(100vh - var(--header-height));
  padding: 36px 20px;
  overflow-y: auto;
  border-left: 1px solid var(--border-subtle);
}

.inpage-toc h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.toc-link {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
  padding: 4px 0;
  transition: var(--transition);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.toc-link:hover, .toc-link.active {
  color: var(--accent-cyan);
}

.toc-link.h3-link {
  padding-left: 12px;
}

/* Pagination Footer */
.guide-pagination {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.page-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
}

.page-btn:hover:not(:disabled) {
  border-color: var(--accent-cyan);
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}

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

/* ==========================================================================
   Tab 1: Overview & Architecture View
   ========================================================================== */

.overview-page {
  padding: 32px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.hero-banner {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.1), rgba(139, 92, 246, 0.1));
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}

.hero-banner h2 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
  background: linear-gradient(to right, #38bdf8, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-banner p {
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 800px;
  margin-bottom: 20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  padding: 18px;
  border-radius: var(--radius-md);
  backdrop-filter: blur(10px);
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.stat-value {
  font-size: 22px;
  font-weight: 800;
  color: var(--accent-cyan);
  margin: 4px 0;
  font-family: var(--font-mono);
}

.stat-desc {
  font-size: 11px;
  color: var(--text-secondary);
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-lg);
}

.card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
}

/* Clean Architecture Matrix Component */
.arch-layers-matrix {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.arch-layer-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.arch-layer-card:hover, .arch-layer-card.active {
  border-color: var(--accent-cyan);
  background: var(--bg-card-hover);
  box-shadow: 0 4px 14px var(--accent-cyan-glow);
}

.arch-layer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.arch-layer-name {
  font-weight: 700;
  font-size: 14px;
  font-family: var(--font-mono);
}

.arch-layer-tag {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 600;
}

.tag-domain { background: rgba(167, 139, 250, 0.2); color: var(--accent-purple); }
.tag-app { background: rgba(56, 189, 248, 0.2); color: var(--accent-cyan); }
.tag-infra { background: rgba(52, 211, 153, 0.2); color: var(--accent-emerald); }
.tag-api { background: rgba(251, 191, 36, 0.2); color: var(--accent-amber); }

.arch-layer-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 4px;
}

.arch-detail-box {
  margin-top: 14px;
  padding: 12px;
  background: var(--code-bg);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
  font-size: 12px;
  display: none;
}

.arch-layer-card.active .arch-detail-box {
  display: block;
}

/* ==========================================================================
   Tab 2: Pipeline Simulator & Flow Visualizer
   ========================================================================== */

.pipeline-page {
  padding: 32px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.pipeline-track-container {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
}

.track-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.pipeline-mode-selector {
  display: flex;
  gap: 8px;
}

.mode-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.mode-btn.active {
  background: var(--accent-cyan);
  color: #0b0f19;
  font-weight: 700;
}

.step-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pipeline-nodes-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  margin: 20px 0;
  padding: 24px 14px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
  -webkit-overflow-scrolling: touch;
}

.pipeline-nodes-track::-webkit-scrollbar {
  height: 6px;
}

.pipeline-nodes-track::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 3px;
}

.pipeline-nodes-track::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.16);
  border-radius: 3px;
}

.pipeline-nodes-track::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.28);
}

.pipeline-nodes-track::before {
  content: '';
  position: absolute;
  left: 20px;
  right: 20px;
  top: 50%;
  height: 3px;
  background: var(--border-subtle);
  transform: translateY(-50%);
  z-index: 1;
}

.pipeline-node {
  position: relative;
  z-index: 2;
  background: var(--bg-secondary);
  border: 2px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  min-width: 110px;
}

.pipeline-node:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
}

.pipeline-node.completed {
  border-color: var(--accent-emerald);
  background: rgba(52, 211, 153, 0.1);
}

.pipeline-node.active {
  border-color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.15);
  box-shadow: 0 0 16px var(--accent-cyan-glow);
  transform: scale(1.05);
}

.node-icon {
  font-size: 20px;
  margin-bottom: 4px;
}

.node-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
}

.node-sub {
  font-size: 10px;
  color: var(--text-muted);
}

.simulator-inspector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.inspector-pane {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px;
}

.inspector-pane h4 {
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--accent-cyan);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.payload-preview {
  background: var(--code-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #38bdf8;
  max-height: 220px;
  overflow-y: auto;
  white-space: pre-wrap;
}

/* ==========================================================================
   Tab 6: Interactive Mock Assessment Trainer (Flashcards)
   ========================================================================== */

.trainer-page {
  padding: 32px;
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
}

.trainer-header {
  text-align: center;
  margin-bottom: 28px;
}

.trainer-header h2 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 8px;
}

.category-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
}

.cat-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.cat-btn.active, .cat-btn:hover {
  background: var(--accent-cyan);
  color: #0b0f19;
  font-weight: 700;
}

/* Flashcard 3D flip card */
.flashcard-stage {
  perspective: 1000px;
  width: 100%;
  height: 340px;
  margin-bottom: 24px;
  cursor: pointer;
}

.flashcard-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: left;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
}

.flashcard-inner.flipped {
  transform: rotateY(180deg);
}

.flashcard-front, .flashcard-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-lg);
}

.flashcard-front {
  background: linear-gradient(145deg, #121215, #18181c);
  border-color: rgba(56, 189, 248, 0.25);
}

.flashcard-back {
  background: linear-gradient(145deg, #141418, #1c1c22);
  transform: rotateY(180deg);
  border-color: rgba(52, 211, 153, 0.3);
}

.card-topic-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent-cyan);
  letter-spacing: 0.05em;
}

.card-question {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--text-primary);
  margin: auto 0;
}

.card-answer {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-secondary);
  overflow-y: auto;
  max-height: 220px;
  margin: auto 0;
}

.card-click-hint {
  font-size: 12px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.trainer-progress-bar {
  width: 100%;
  height: 6px;
  background: var(--bg-input);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 16px;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(to right, var(--accent-cyan), var(--accent-emerald));
  width: 0%;
  transition: width 0.3s ease;
}

/* ==========================================================================
   Tab 7: Playgrounds & Interactive Tools
   ========================================================================== */

.playgrounds-page {
  padding: 32px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.playground-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 32px;
}

.playground-widget h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.slider-group {
  margin-bottom: 16px;
}

.slider-header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.slider-input {
  width: 100%;
  height: 6px;
  background: var(--bg-input);
  border-radius: 3px;
  outline: none;
  -webkit-appearance: none;
  cursor: pointer;
}

.slider-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan-glow);
  cursor: pointer;
}

.chunks-visual-display {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.chunk-chip {
  background: var(--code-bg);
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--accent-cyan);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
}

.chunk-overlap-highlight {
  background: rgba(251, 191, 36, 0.2);
  color: var(--accent-amber);
  padding: 1px 4px;
  border-radius: 2px;
}

/* ==========================================================================
   ADRs & Sprints Pages
   ========================================================================== */

.vault-page {
  padding: 32px;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.adr-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 20px;
  cursor: pointer;
  transition: var(--transition);
}

.adr-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.adr-code {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-cyan);
}

.adr-title {
  font-size: 16px;
  font-weight: 700;
  margin: 6px 0 10px 0;
  color: var(--text-primary);
}

.adr-body {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   Markdown Elements (Reader Styling)
   ========================================================================== */

.reader-body h1, .reader-body h2, .reader-body h3, .reader-body h4 {
  color: var(--text-primary);
  margin-top: 28px;
  margin-bottom: 12px;
  font-weight: 700;
}

.reader-body h2 {
  font-size: 22px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 6px;
}

.reader-body h3 {
  font-size: 18px;
}

.reader-body p {
  margin-bottom: 16px;
}

.reader-body ul, .reader-body ol {
  margin-left: 24px;
  margin-bottom: 16px;
}

.reader-body li {
  margin-bottom: 6px;
}

.reader-body blockquote {
  border-left: 4px solid var(--accent-cyan);
  padding: 10px 16px;
  background: rgba(56, 189, 248, 0.08);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 20px 0;
  font-style: italic;
  color: var(--text-primary);
}

.reader-body pre {
  background: var(--code-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 13px;
  margin: 20px 0;
  position: relative;
}

.reader-body code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent-cyan);
}

.reader-body pre code {
  background: transparent;
  padding: 0;
  color: #e2e8f0;
}

.reader-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 13px;
}

.reader-body th, .reader-body td {
  padding: 10px 14px;
  border: 1px solid var(--border-subtle);
  text-align: left;
}

.reader-body th {
  background: var(--bg-secondary);
  font-weight: 700;
  color: var(--text-primary);
}

.reader-body tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

/* ==========================================================================
   Global Search Modal (Ctrl+K)
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
}

.modal-backdrop.open {
  display: flex;
}

.search-modal {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 640px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  overflow: hidden;
  animation: modalSlide 0.2s ease-out;
}

@keyframes modalSlide {
  from { opacity: 0; transform: translateY(-15px); }
  to { opacity: 1; transform: translateY(0); }
}

.search-box-inner {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
  gap: 12px;
}

.search-input-field {
  flex: 1;
  background: transparent;
  border: none;
  font-size: 16px;
  color: var(--text-primary);
  outline: none;
}

.search-results-list {
  max-height: 380px;
  overflow-y: auto;
  padding: 8px;
}

.search-result-item {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: var(--transition);
}

.search-result-item:hover, .search-result-item.selected {
  background: var(--bg-card-hover);
}

.result-type-badge {
  font-size: 10px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent-cyan);
}

.result-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.result-snippet {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

/* Universal Scroll Containment for code, tables, and mermaid */
.reader-body table, 
.reader-body pre, 
.mermaid {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 1080px) {
  .inpage-toc {
    display: none;
  }
}

@media (max-width: 900px) {
  .app-header {
    height: auto;
    padding: 10px 14px;
    flex-wrap: wrap;
    gap: 10px;
  }

  .top-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px;
  }

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

  .nav-tab-btn {
    padding: 6px 12px;
    font-size: 12px;
  }

  /* Mobile Sidebar Drawer */
  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    z-index: 120;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }

  .sidebar-backdrop.active {
    opacity: 1;
    pointer-events: auto;
  }

  .guides-sidebar {
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    height: 100vh;
    z-index: 130;
    transform: translateX(-100%);
    box-shadow: 12px 0 35px rgba(0, 0, 0, 0.85);
    width: 290px;
    min-width: 290px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  }

  .guides-sidebar.mobile-open {
    transform: translateX(0);
  }

  .sidebar-toggle-btn {
    position: fixed;
    bottom: 24px;
    left: 18px;
    top: auto;
    right: auto;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent-cyan);
    color: #000;
    border: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
    z-index: 140;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .reader-container {
    padding: 20px 14px 80px 14px;
  }

  .guide-title {
    font-size: 22px;
  }

  .hero-banner {
    padding: 20px 16px;
  }

  .hero-banner h2 {
    font-size: 20px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .section-grid {
    grid-template-columns: 1fr;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .track-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .step-controls {
    justify-content: space-between;
  }

  .simulator-inspector {
    grid-template-columns: 1fr;
  }

  .flashcard-stage {
    height: auto;
    min-height: 290px;
  }

  .flashcard-inner {
    min-height: 290px;
  }

  .flashcard-front, .flashcard-back {
    padding: 20px 16px;
  }

  .card-question {
    font-size: 16px;
  }

  .card-answer {
    font-size: 13px;
  }

  .overview-page, .pipeline-page, .playgrounds-page, .trainer-page, .vault-page {
    padding: 16px 12px;
  }
}

/* ==========================================================================
   Interactive RAG Pipeline Simulator Styles
   ========================================================================== */
.rag-sim-widget {
  background: var(--bg-card);
  border: 1px solid rgba(56, 189, 248, 0.25);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.05);
  margin-bottom: 32px;
}

.rag-sim-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.sim-toggle-pill-group {
  display: inline-flex;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 4px;
}

.sim-toggle-pill {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-mono);
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.sim-toggle-pill.active {
  background: var(--bg-card);
  color: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan-glow);
}

.rag-sim-query-bar {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 24px;
}

.rag-sim-presets-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.rag-sim-presets {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}

.sim-preset-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 12px;
  font-family: var(--font-sans);
  text-align: left;
  cursor: pointer;
  transition: var(--transition);
}

.sim-preset-btn:hover {
  border-color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.08);
  transform: translateY(-1px);
}

.sim-preset-btn.active {
  border-color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan-glow);
}

.sim-preset-tag {
  font-size: 10px;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-muted);
}

.rag-sim-input-row {
  display: flex;
  gap: 10px;
}

.sim-query-input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 13px;
  outline: none;
  transition: var(--transition);
}

.sim-query-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px var(--accent-cyan-glow);
}

.sim-run-btn {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  border: none;
  border-radius: var(--radius-sm);
  color: #09090b;
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-sans);
  padding: 0 18px;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sim-run-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 0 14px var(--accent-cyan-glow);
}

.sim-run-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Stepper Stage Cards */
.rag-pipeline-stepper {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 24px;
}

.sim-stage-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  transition: var(--transition);
}

.sim-stage-card.running {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 14px var(--accent-cyan-glow);
  background: rgba(56, 189, 248, 0.04);
}

.sim-stage-card.completed {
  border-color: rgba(52, 211, 153, 0.4);
}

.sim-stage-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.stage-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stage-num {
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
}

.sim-stage-card.running .stage-num {
  background: rgba(56, 189, 248, 0.2);
  color: var(--accent-cyan);
}

.sim-stage-card.completed .stage-num {
  background: rgba(52, 211, 153, 0.2);
  color: var(--accent-emerald);
}

.stage-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.stage-status {
  font-size: 10px;
  font-family: var(--font-mono);
  padding: 2px 8px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.stage-status.running {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
  border-color: rgba(56, 189, 248, 0.3);
  animation: pulse-dot 1.5s infinite;
}

.stage-status.completed {
  background: rgba(52, 211, 153, 0.15);
  color: var(--accent-emerald);
  border-color: rgba(52, 211, 153, 0.3);
}

.sim-stage-body {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Chunk Display in Stage 2 */
.sim-chunk-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
}

.sim-chunk-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.sim-chunk-meta {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  margin-bottom: 6px;
}

.sim-chunk-score-meter {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sim-score-bar-bg {
  width: 70px;
  height: 5px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 3px;
  overflow: hidden;
}

.sim-score-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-emerald));
  border-radius: 3px;
}

.sim-chunk-text {
  font-size: 12px;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  line-height: 1.5;
}

/* Prompt Box in Stage 3 */
.sim-prompt-box {
  background: var(--code-bg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-secondary);
  max-height: 160px;
  overflow-y: auto;
  white-space: pre-wrap;
}

.sim-prompt-highlight {
  color: var(--accent-cyan);
}

/* Streaming Answer in Stage 4 */
.sim-answer-output {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-primary);
  min-height: 80px;
}

.sim-streaming-cursor {
  display: inline-block;
  color: var(--accent-cyan);
  font-weight: 700;
  animation: blink 0.8s infinite;
  margin-left: 2px;
}

/* Telemetry in Stage 5 */
.sim-hud-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.sim-hud-item {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}

.sim-hud-item .metric-label {
  font-size: 10px;
  color: var(--text-muted);
}

.sim-hud-item .metric-val {
  font-size: 16px;
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-cyan);
}

/* Quickstart Callout */
.rag-sim-callout {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.08), rgba(167, 139, 250, 0.08));
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-md);
  padding: 20px;
  display: flex;
  gap: 16px;
  align-items: center;
}

.rag-sim-callout .callout-icon {
  width: 44px;
  height: 44px;
  background: rgba(56, 189, 248, 0.15);
  border: 1px solid var(--accent-cyan);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  box-shadow: 0 0 12px var(--accent-cyan-glow);
}

.rag-sim-callout h4 {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.rag-sim-callout p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.quickstart-box {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.quickstart-box code {
  background: var(--code-bg);
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-cyan);
}

.launch-btn {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.launch-btn:hover {
  background: var(--accent-cyan);
  color: #09090b;
  box-shadow: 0 0 12px var(--accent-cyan-glow);
}

/* ==========================================================================
   Dedicated Light Theme Overrides for Simulator
   ========================================================================== */
[data-theme="light"] .rag-sim-widget {
  background: var(--bg-card);
  border-color: #cbd5e1;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .rag-sim-query-bar {
  background: #f1f5f9;
  border-color: #e2e8f0;
}

[data-theme="light"] .sim-preset-btn {
  background: #ffffff;
  border-color: #e2e8f0;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .sim-preset-btn:hover {
  background: #f0f9ff;
  border-color: var(--accent-cyan);
}

[data-theme="light"] .sim-preset-btn.active {
  background: #e0f2fe;
  border-color: var(--accent-cyan);
  color: #0369a1;
}

[data-theme="light"] .sim-preset-tag {
  background: #e2e8f0;
  color: #475569;
}

[data-theme="light"] .sim-query-input {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a;
}

[data-theme="light"] .sim-stage-card {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .sim-stage-card.running {
  background: #f0f9ff;
  border-color: var(--accent-cyan);
}

[data-theme="light"] .sim-stage-card.completed {
  border-color: rgba(5, 150, 105, 0.4);
}

[data-theme="light"] .stage-num {
  background: #f1f5f9;
  color: #64748b;
}

[data-theme="light"] .stage-title {
  color: #0f172a;
}

[data-theme="light"] .stage-status {
  background: #f1f5f9;
  color: #64748b;
  border-color: #e2e8f0;
}

[data-theme="light"] .stage-status.running {
  background: #e0f2fe;
  color: #0284c7;
  border-color: #bae6fd;
}

[data-theme="light"] .stage-status.completed {
  background: #d1fae5;
  color: #059669;
  border-color: #a7f3d0;
}

[data-theme="light"] .sim-stage-body {
  color: #334155;
}

[data-theme="light"] .sim-chunk-card {
  background: #f8fafc;
  border-color: #e2e8f0;
}

[data-theme="light"] .sim-chunk-text {
  color: #334155;
}

[data-theme="light"] .sim-score-bar-bg {
  background: #e2e8f0;
}

[data-theme="light"] .sim-prompt-box {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #334155;
}

[data-theme="light"] .sim-answer-output {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #0f172a;
}

[data-theme="light"] .sim-hud-item {
  background: #f8fafc;
  border-color: #e2e8f0;
}

[data-theme="light"] .sim-hud-item .metric-label {
  color: #64748b;
}

[data-theme="light"] .sim-hud-item .metric-val {
  color: #0284c7;
}

[data-theme="light"] .rag-sim-callout {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.06), rgba(124, 58, 237, 0.06));
  border-color: rgba(2, 132, 199, 0.25);
}

[data-theme="light"] .rag-sim-callout h4 {
  color: #0f172a;
}

[data-theme="light"] .rag-sim-callout p {
  color: #475569;
}

[data-theme="light"] .quickstart-box code {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0284c7;
}

@media (max-width: 768px) {
  .rag-sim-presets {
    grid-template-columns: 1fr;
  }
  .sim-hud-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .rag-sim-header {
    flex-direction: column;
  }
  .rag-sim-input-row {
    flex-direction: column;
  }
}

