/* ==========================================================================
   GCP ACE STUDY GUIDE - MODERN PREMIUM DESIGN SYSTEM
   Aesthetics: Rich HSL palettes, Glassmorphism, Dark/Light Themes, Animations
   ========================================================================== */

/* --- CSS Variables & Theme Definition --- */
:root {
  /* Font Families */
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Outfit', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Borders */
  --border-radius-sm: 8px;
  --border-radius-md: 14px;
  --border-radius-lg: 24px;
  --border-radius-xl: 32px;
}

/* --- Dark Theme Variables --- */
[data-theme="dark"] {
  --bg-app: radial-gradient(circle at 0% 0%, #0d1224 0%, #080a12 100%);
  --bg-sidebar: rgba(10, 14, 26, 0.85);
  --bg-card: rgba(20, 26, 46, 0.65);
  --bg-card-hover: rgba(26, 34, 60, 0.85);
  --bg-input: rgba(14, 18, 36, 0.8);
  --bg-active: rgba(66, 133, 244, 0.15);
  
  --border-color: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(66, 133, 244, 0.4);
  
  --text-primary: #f1f3f9;
  --text-secondary: #9aa0a6;
  --text-muted: #5f6368;
  
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --inset-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.05);
  
  /* Accent Colors */
  --primary: #4285f4;     /* Google Blue */
  --primary-hover: #5d97f6;
  --primary-gradient: linear-gradient(135deg, #4285f4 0%, #a0c3ff 100%);
  
  --accent-purple: #a142f4;
  --accent-purple-gradient: linear-gradient(135deg, #a142f4 0%, #d7a2ff 100%);
  
  --accent-green: #34a853;
  --accent-green-gradient: linear-gradient(135deg, #34a853 0%, #8af5aa 100%);
  
  --accent-orange: #fbbc05;
  --accent-orange-gradient: linear-gradient(135deg, #fbbc05 0%, #ffe38f 100%);
  
  --accent-red: #ea4335;
  --accent-red-gradient: linear-gradient(135deg, #ea4335 0%, #ff8a80 100%);
  
  --card-glow-blue: 0 0 20px rgba(66, 133, 244, 0.15);
}

/* --- Light Theme Variables --- */
[data-theme="light"] {
  --bg-app: radial-gradient(circle at 0% 0%, #f4f6fc 0%, #eef1f8 100%);
  --bg-sidebar: rgba(255, 255, 255, 0.9);
  --bg-card: rgba(255, 255, 255, 0.75);
  --bg-card-hover: rgba(255, 255, 255, 0.95);
  --bg-input: rgba(240, 243, 250, 0.9);
  --bg-active: rgba(66, 133, 244, 0.08);
  
  --border-color: rgba(66, 133, 244, 0.12);
  --border-hover: rgba(66, 133, 244, 0.6);
  
  --text-primary: #1e293b;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  
  --glass-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.06);
  --inset-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8);
  
  /* Accent Colors */
  --primary: #1a73e8;
  --primary-hover: #1557b0;
  --primary-gradient: linear-gradient(135deg, #1a73e8 0%, #4285f4 100%);
  
  --accent-purple: #8ab4f8;
  --accent-purple-gradient: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
  
  --accent-green: #188038;
  --accent-green-gradient: linear-gradient(135deg, #10b981 0%, #34d399 100%);
  
  --accent-orange: #d56e0c;
  --accent-orange-gradient: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  
  --accent-red: #c5221f;
  --accent-red-gradient: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
  
  --card-glow-blue: 0 0 20px rgba(66, 133, 244, 0.06);
}

/* ==========================================================================
   Base Styles & Reset
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-app);
  height: 100vh;
  overflow: hidden;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}
[data-theme="light"] ::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.1);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ==========================================================================
   App Layout Hierarchy
   ========================================================================== */
.app-container {
  display: flex;
  height: 100vh;
  width: 100vw;
}

/* --- Sidebar Styles --- */
.sidebar {
  width: 280px;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  display: flex;
  flex-direction: column;
  padding: 24px 16px;
  flex-shrink: 0;
  z-index: 100;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 32px 8px;
}

.logo-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--border-radius-md);
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
  box-shadow: 0 4px 15px rgba(66, 133, 244, 0.4);
}

.brand-text h2 {
  font-size: 20px;
  font-weight: 800;
  line-height: 1;
}

.brand-text span {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex-grow: 1;
}

.nav-item {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 500;
  padding: 12px 16px;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  transition: var(--transition-normal);
}

.nav-item i {
  font-size: 18px;
  transition: var(--transition-fast);
  width: 22px;
  text-align: center;
}

.nav-item:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.03);
  padding-left: 20px;
}

[data-theme="light"] .nav-item:hover {
  background: rgba(0, 0, 0, 0.02);
}

.nav-item.active {
  color: var(--primary);
  background: var(--bg-active);
  border-color: var(--border-color);
  font-weight: 600;
  box-shadow: var(--inset-shadow);
}

.nav-item.active i {
  color: var(--primary);
  transform: scale(1.1);
}

.sidebar-footer {
  margin-top: auto;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

.user-badge {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  margin: 10px 14px 20px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
}

[data-theme="light"] .user-badge {
  background: rgba(0, 0, 0, 0.01);
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent-purple-gradient);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 12px;
  font-family: var(--font-heading);
}

.user-info h4 {
  font-size: 14px;
  font-weight: 600;
}

.user-info p {
  font-size: 11px;
  color: var(--text-muted);
}

/* --- Main Content Layout --- */
.main-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* --- Header Section --- */
.app-header {
  height: 80px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  flex-shrink: 0;
}

.header-search {
  position: relative;
  width: 450px;
}

.header-search i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.header-search input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: 50px;
  padding: 12px 16px 12px 48px;
  color: var(--text-primary);
  font-size: 14px;
  outline: none;
  transition: var(--transition-normal);
}

.header-search input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.15);
}

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

.header-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 18px;
  transition: var(--transition-normal);
}

.header-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.github-btn:hover {
  color: #f1f3f9;
  background: #24292e;
}

/* --- Content Body Tab Container --- */
.content-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 40px;
  position: relative;
}

.tab-pane {
  display: none;
  animation: fadeIn 0.4s ease-out;
}

.tab-pane.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Reusable UI Core Design Blocks (Glassmorphism Cards, Buttons, Badges)
   ========================================================================== */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--glass-shadow), var(--inset-shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  padding: 30px;
  transition: var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.btn {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--border-radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition-normal);
  outline: none;
}

.btn-primary {
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(66, 133, 244, 0.5);
  background: var(--primary-hover);
}

.btn-secondary {
  background: var(--bg-card);
  border-color: var(--border-color);
  color: var(--text-primary);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  border-color: var(--border-color);
  color: var(--text-secondary);
}

.btn-outline:hover, .btn-outline.active {
  background: var(--bg-active);
  color: var(--primary);
  border-color: var(--primary);
}

.btn-large {
  padding: 16px 36px;
  font-size: 16px;
  border-radius: 50px;
}

/* ==========================================================================
   TAB: DASHBOARD SPECIFICS
   ========================================================================== */
.welcome-banner {
  background: linear-gradient(135deg, #1a237e 0%, #0d47a1 50%, #01579b 100%);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(13, 71, 161, 0.3);
}

.welcome-text h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
}

.welcome-text p {
  font-size: 16px;
  max-width: 750px;
  opacity: 0.85;
}

.welcome-badge {
  font-size: 80px;
  opacity: 0.2;
}

/* Stat Counters Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-bottom: 35px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--glass-shadow);
  transition: var(--transition-normal);
}

.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
}

.stat-card.clickable-stat {
  cursor: pointer;
  transition: var(--transition-normal);
}

.stat-card.clickable-stat:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: var(--card-glow-blue);
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: white;
}

.stat-icon.purple { background: var(--accent-purple-gradient); }
.stat-icon.blue { background: var(--primary-gradient); }
.stat-icon.green { background: var(--accent-green-gradient); }
.stat-icon.orange { background: var(--accent-orange-gradient); }

.stat-info h3 {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
}

.stat-info p {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

/* Dashboard Panel Blocks */
.dashboard-layouts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.dashboard-panel-left {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Radial Study Progress tracker */
.progress-card h3 {
  font-size: 18px;
  margin-bottom: 24px;
}

.progress-container {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 30px;
}

.progress-radial {
  position: relative;
  width: 140px;
  height: 140px;
}

.progress-radial svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.progress-radial circle {
  fill: none;
  stroke-width: 8px;
}

.progress-radial .bg-circle {
  stroke: rgba(255, 255, 255, 0.05);
}
[data-theme="light"] .progress-radial .bg-circle {
  stroke: rgba(0, 0, 0, 0.05);
}

.progress-radial .fg-circle {
  stroke: var(--primary);
  stroke-linecap: round;
  stroke-dasharray: 251.2; /* 2 * PI * R */
  stroke-dashoffset: 251.2; /* Animates dynamically */
  transition: stroke-dashoffset 1s ease-in-out;
}

.radial-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.radial-text span {
  font-size: 26px;
  font-weight: 800;
  font-family: var(--font-heading);
}

.radial-text small {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.progress-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
}

.progress-detail-item {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 6px;
  font-size: 13px;
}

.progress-detail-item span {
  color: var(--text-secondary);
}

.quiz-promo-card {
  background: linear-gradient(135deg, rgba(161, 66, 244, 0.1) 0%, rgba(66, 133, 244, 0.05) 100%);
  border-color: rgba(161, 66, 244, 0.2);
}

.promo-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-purple);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.quiz-promo-card h3 {
  margin-bottom: 8px;
}

.quiz-promo-card p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 20px;
}

/* Exam Tips Board */
.tips-card h3 {
  font-size: 18px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tips-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  list-style: none;
}

.tips-list li {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-secondary);
}

.tips-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.tip-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-right: 8px;
  vertical-align: middle;
}

.tip-tag.storage { background: rgba(161, 66, 244, 0.15); color: #d7a2ff; }
.tip-tag.compute { background: rgba(66, 133, 244, 0.15); color: #a0c3ff; }
.tip-tag.network { background: rgba(52, 168, 83, 0.15); color: #8af5aa; }
.tip-tag.iam { background: rgba(251, 188, 5, 0.15); color: #ffe38f; }
.tip-tag.cli { background: rgba(244, 66, 133, 0.15); color: #ffb3d1; }

.text-yellow { color: #fbbc05; }

/* ==========================================================================
   TAB: SYLLABUS EXPLORER SPECIFICS
   ========================================================================== */
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

.section-title h1 {
  font-size: 28px;
  font-weight: 800;
}

.section-title p {
  color: var(--text-secondary);
  font-size: 14px;
}

.syllabus-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 30px;
  align-items: start;
}

.domain-sidebar-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.domain-menu {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Beautiful custom accordions for syllabus domain groups */
.domain-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  transition: var(--transition-normal);
}

.domain-card.active {
  border-color: var(--primary);
  box-shadow: var(--card-glow-blue);
}

.domain-header {
  padding: 16px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.domain-header-title {
  display: flex;
  flex-direction: column;
}

.domain-header-title strong {
  font-family: var(--font-heading);
  font-size: 14px;
}

.domain-header-title span {
  font-size: 11px;
  color: var(--text-muted);
}

.domain-header i {
  color: var(--text-muted);
  transition: var(--transition-normal);
}

.domain-card.active .domain-header i {
  transform: rotate(90deg);
  color: var(--primary);
}

.domain-topics {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out;
  background: rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
}

.domain-card.active .domain-topics {
  max-height: 500px;
}

.topic-link {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  text-align: left;
  padding: 12px 24px;
  font-size: 13px;
  cursor: pointer;
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.topic-link:hover {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
}

.topic-link.active {
  color: var(--primary);
  background: var(--bg-active);
  font-weight: 600;
}

.topic-link .checkbox-marker {
  font-size: 14px;
  color: var(--text-muted);
}

.topic-link.completed .checkbox-marker {
  color: var(--accent-green);
}

/* Active Study Topic view pane */
.topic-details-panel {
  min-height: 450px;
}

.no-selection-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 40px;
  color: var(--text-muted);
}

.no-selection-placeholder i {
  font-size: 60px;
  margin-bottom: 20px;
}

.no-selection-placeholder h3 {
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.topic-view-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 24px;
  margin-bottom: 24px;
}

.topic-title-group h2 {
  font-size: 24px;
  margin-bottom: 6px;
}

.topic-title-group .category-pill {
  display: inline-block;
  background: var(--bg-active);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
}

.topic-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topic-view-section {
  margin-bottom: 30px;
}

.topic-view-section h3 {
  font-size: 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.topic-summary {
  font-size: 15px;
  color: var(--text-secondary);
}

/* Scenarios split panel */
.scenarios-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.scenario-column {
  padding: 20px;
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-color);
}

.scenario-column.use {
  background: rgba(52, 168, 83, 0.03);
  border-color: rgba(52, 168, 83, 0.15);
}

.scenario-column.avoid {
  background: rgba(234, 67, 53, 0.03);
  border-color: rgba(234, 67, 53, 0.15);
}

.scenario-column h4 {
  font-size: 14px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.scenario-column.use h4 { color: #34a853; }
.scenario-column.avoid h4 { color: #ea4335; }

.scenario-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.scenario-bullets li {
  font-size: 13px;
  color: var(--text-secondary);
  position: relative;
  padding-left: 20px;
}

.scenario-bullets li::before {
  position: absolute;
  left: 0;
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 11px;
}

.scenario-column.use .scenario-bullets li::before {
  content: '\f00c';
  color: #34a853;
}

.scenario-column.avoid .scenario-bullets li::before {
  content: '\f00d';
  color: #ea4335;
}

/* Code Snippet Blocks */
.code-clipboard-block {
  background: #060913;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  margin-bottom: 14px;
}

.code-header {
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.code-header span {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
}

.code-header button {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-fast);
}

.code-header button:hover {
  color: var(--primary);
}

.code-body {
  padding: 16px;
  overflow-x: auto;
}

.code-body pre {
  margin: 0;
}

.code-body code {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #a5b4fc;
  white-space: pre-wrap;
}

/* ==========================================================================
   TAB: SERVICE CATALOG SPECIFICS
   ========================================================================== */
.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: 50px;
  cursor: pointer;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 13px;
  transition: var(--transition-normal);
}

.filter-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.filter-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: 0 4px 10px rgba(66, 133, 244, 0.3);
}

/* Services Grid Layout */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}

/* Card flip animation */
.service-card-wrapper {
  perspective: 1000px;
  height: 250px;
}

.service-card {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.service-card-wrapper:hover .service-card {
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

.service-card.flipped {
  transform: rotateY(180deg);
}

.card-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--glass-shadow);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

/* Card Front Face */
.card-front {
  background: var(--bg-card);
  justify-content: space-between;
}

.card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.card-category {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.card-icon {
  font-size: 24px;
  color: var(--primary);
}

.card-front h3 {
  font-size: 20px;
  margin-bottom: 8px;
}

.card-description {
  font-size: 13px;
  color: var(--text-secondary);
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-flip-prompt {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
}

/* Card Back Face */
.card-back {
  background: var(--bg-card-hover);
  transform: rotateY(180deg);
  justify-content: space-between;
  overflow-y: auto;
}

.card-back-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
  margin-bottom: 10px;
}

.card-back-title h4 {
  font-size: 15px;
}

.card-back-title span {
  font-size: 9px;
  background: var(--bg-active);
  color: var(--primary);
  padding: 2px 6px;
  border-radius: 4px;
}

.card-features-list {
  font-size: 12px;
  color: var(--text-secondary);
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-features-list li {
  position: relative;
  padding-left: 16px;
}

.card-features-list li::before {
  content: '•';
  color: var(--primary);
  position: absolute;
  left: 0;
  font-weight: bold;
}

.card-tips-box {
  background: rgba(251, 188, 5, 0.06);
  border: 1px solid rgba(251, 188, 5, 0.15);
  border-radius: var(--border-radius-sm);
  padding: 10px;
  margin-top: 12px;
}

.card-tips-box strong {
  display: block;
  font-size: 11px;
  color: var(--accent-orange);
  margin-bottom: 2px;
}

.card-tips-box p {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ==========================================================================
   TAB: DECISION FLOW WIZARD SPECIFICS
   ========================================================================== */
.wizard-banner {
  background: linear-gradient(135deg, #130f40 0%, #000000 100%);
  margin-bottom: 30px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.wizard-container {
  max-width: 900px;
  margin: 0 auto;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.wizard-step {
  animation: fadeIn 0.4s ease-out;
  text-align: center;
}

.wizard-step h2 {
  font-size: 26px;
  margin-bottom: 8px;
}

.wizard-subtitle {
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 35px;
}

/* Choices Card List */
.wizard-choices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.wizard-choice-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 30px 20px;
  cursor: pointer;
  color: var(--text-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transition: var(--transition-normal);
}

.wizard-choice-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  transform: translateY(-5px);
  box-shadow: var(--card-glow-blue);
}

.choice-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--bg-active);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.wizard-choice-card h3 {
  font-size: 18px;
}

.wizard-choice-card p {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Question Steps */
.wizard-progress-bar-wrapper {
  width: 100%;
  height: 4px;
  background: var(--border-color);
  border-radius: 20px;
  margin-bottom: 30px;
  overflow: hidden;
}

.wizard-progress-bar-fill {
  height: 100%;
  background: var(--primary-gradient);
  width: 0%;
  transition: width 0.4s ease;
}

.wizard-question-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 600px;
  margin: 0 auto 30px auto;
}

.wizard-option-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  text-align: left;
  padding: 18px 24px;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--transition-normal);
}

.wizard-option-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  padding-left: 30px;
}

.wizard-option-btn i {
  color: var(--text-muted);
}

.wizard-navigation-actions {
  display: flex;
  justify-content: space-between;
  max-width: 600px;
  margin: 0 auto;
}

/* Result Screen */
.result-celebration {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.result-celebration i {
  font-size: 50px;
  color: var(--accent-green);
  margin-bottom: 12px;
}

.recommended-service-showcase {
  max-width: 550px;
  margin: 0 auto 24px auto;
}

.wizard-reasoning-section {
  text-align: left;
  max-width: 550px;
  margin: 0 auto 30px auto;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

.wizard-reasoning-section h3 {
  font-size: 15px;
  margin-bottom: 12px;
  color: var(--text-secondary);
}

#wizard-reasoning-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
}

#wizard-reasoning-list li {
  font-size: 13px;
  color: var(--text-secondary);
  position: relative;
  padding-left: 20px;
}

#wizard-reasoning-list li::before {
  content: '➔';
  color: var(--primary);
  position: absolute;
  left: 0;
}

/* ==========================================================================
   TAB: CLI CHEAT SHEET & COMMAND BUILDER
   ========================================================================== */
.command-builder-card {
  background: linear-gradient(135deg, rgba(66, 133, 244, 0.08) 0%, rgba(161, 66, 244, 0.04) 100%);
  border-color: rgba(66, 133, 244, 0.18);
  margin-bottom: 30px;
}

.command-builder-card h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

.command-builder-card p {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

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

.input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.input-group label {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
}

.input-group input {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  border-radius: var(--border-radius-sm);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 13px;
  outline: none;
  transition: var(--transition-normal);
}

.input-group input:focus {
  border-color: var(--primary);
}

/* Command Layout split */
.command-content-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 30px;
}

.command-sidebar {
  display: flex;
  flex-direction: column;
}

.command-cat-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.command-cat-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  text-align: left;
  padding: 12px 16px;
  border-radius: var(--border-radius-md);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-normal);
}

.command-cat-btn:hover {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
}

.command-cat-btn.active {
  background: var(--bg-active);
  border-color: var(--border-color);
  color: var(--primary);
}

.command-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.command-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 20px 24px;
  box-shadow: var(--glass-shadow);
}

.command-card h4 {
  font-size: 15px;
  margin-bottom: 6px;
}

.command-card p {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

/* ==========================================================================
   TAB: PRACTICE QUIZ ENGINE SPECIFICS
   ========================================================================== */
.quiz-container {
  max-width: 800px;
  margin: 0 auto;
}

.quiz-card-panel {
  padding: 50px 40px;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Landing Panel */
.quiz-landing-icon {
  font-size: 60px;
  color: var(--accent-purple);
  margin-bottom: 20px;
  text-align: center;
}

.quiz-card-panel h1 {
  font-size: 28px;
  margin-bottom: 12px;
  text-align: center;
}

.quiz-card-panel p {
  text-align: center;
  color: var(--text-secondary);
  font-size: 15px;
  margin-bottom: 30px;
  line-height: 1.6;
}

.quiz-setup-parameters {
  max-width: 450px;
  margin: 0 auto 35px auto;
  text-align: center;
}

.quiz-setup-parameters h3 {
  font-size: 14px;
  margin-bottom: 12px;
  color: var(--text-muted);
}

.quiz-size-options {
  display: flex;
  justify-content: center;
  gap: 12px;
}

#start-quiz-btn {
  align-self: center;
}

/* Running Quiz Panel */
.quiz-running-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.quiz-progress-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
}

.quiz-score-badge {
  background: var(--bg-active);
  color: var(--primary);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 50px;
}

.quiz-question-box {
  margin-bottom: 30px;
}

.quiz-question-text {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 24px;
  line-height: 1.6;
  text-align: left;
}

.quiz-options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.quiz-option {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 14px;
  text-align: left;
  padding: 16px 20px;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: var(--transition-normal);
}

.quiz-option:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
}

.quiz-option.selected {
  border-color: var(--primary);
  background: var(--bg-active);
}

.option-marker {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  background: rgba(255,255,255,0.02);
}

.quiz-option.selected .option-marker {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

/* Post-submission states (Correct / Incorrect) */
.quiz-option.correct {
  border-color: rgba(52, 168, 83, 0.4);
  background: rgba(52, 168, 83, 0.08);
}
.quiz-option.correct .option-marker {
  background: var(--accent-green);
  border-color: var(--accent-green);
  color: white;
}

.quiz-option.incorrect {
  border-color: rgba(234, 67, 53, 0.4);
  background: rgba(234, 67, 53, 0.08);
}
.quiz-option.incorrect .option-marker {
  background: #ea4335;
  border-color: #ea4335;
  color: white;
}

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

/* Solution Box */
.quiz-explanation-box {
  background: rgba(66, 133, 244, 0.04);
  border: 1px solid rgba(66, 133, 244, 0.15);
  border-radius: var(--border-radius-md);
  padding: 20px;
  margin-top: 24px;
  animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.quiz-explanation-box h4 {
  font-size: 13px;
  color: var(--primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.quiz-explanation-box p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  text-align: left;
  margin-bottom: 0;
}

/* Results Screen */
.results-badge-icon {
  font-size: 70px;
  color: var(--accent-orange);
  text-align: center;
  margin-bottom: 20px;
  animation: scaleUp 0.5s ease-out;
}

@keyframes scaleUp {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.results-subtitle {
  margin-bottom: 35px !important;
}

.results-score-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 50px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 30px 40px;
  margin-bottom: 40px;
}

.score-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--bg-active);
  border: 4px solid var(--primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-circle span {
  font-size: 32px;
  font-weight: 800;
  font-family: var(--font-heading);
}

.score-circle small {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.score-details {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 250px;
}

.score-detail-row {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 6px;
  font-size: 14px;
}

.score-detail-row span {
  color: var(--text-secondary);
}

.results-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* ==========================================================================
   GLOBAL NOTIFICATION SYSTEM & UTILITIES
   ========================================================================== */
.toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 14, 26, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  color: #fff;
  padding: 12px 24px;
  border-radius: 50px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
  animation: slideUp 0.3s ease-out;
  backdrop-filter: blur(10px);
}

[data-theme="light"] .toast {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(66, 133, 244, 0.2);
  color: #1a73e8;
}

.hidden {
  display: none !important;
}

/* --- Search Bar Dropdown Suggestion Box --- */
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  background: var(--bg-card-hover);
  border: 1px solid var(--border-hover);
  border-radius: var(--border-radius-md);
  box-shadow: var(--glass-shadow);
  max-height: 350px;
  overflow-y: auto;
  z-index: 200;
  backdrop-filter: blur(15px);
}

.search-result-item {
  padding: 12px 20px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  transition: var(--transition-fast);
}

.search-result-item:hover {
  background: var(--bg-active);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
}

.search-result-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.search-result-category {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 1px 6px;
  border-radius: 4px;
  color: white;
}

.search-result-category.services { background: var(--primary-gradient); }
.search-result-category.syllabus { background: var(--accent-purple-gradient); }
.search-result-category.commands { background: var(--accent-green-gradient); }

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

/* ==========================================================================
   RESPONSIVENESS MEDIA QUERIES
   ========================================================================== */
@media (max-width: 1024px) {
  .app-container {
    flex-direction: column;
  }
  
  .sidebar {
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 16px 24px;
  }
  
  .sidebar-brand {
    padding-bottom: 16px;
  }
  
  .sidebar-nav {
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 8px;
  }
  
  .nav-item {
    padding: 8px 16px;
    font-size: 13px;
    white-space: nowrap;
    gap: 8px;
  }
  
  .sidebar-footer {
    display: none;
  }
  
  .main-content {
    height: auto;
    overflow: visible;
  }
  
  .app-header {
    padding: 0 24px;
  }
  
  .content-body {
    padding: 24px;
    overflow: visible;
  }
  
  .dashboard-layouts {
    grid-template-columns: 1fr;
  }
  
  .syllabus-grid {
    grid-template-columns: 1fr;
  }
  
  .command-content-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-search {
    width: 100%;
  }
  
  .scenarios-split {
    grid-template-columns: 1fr;
  }
  
  .results-score-card {
    flex-direction: column;
    gap: 24px;
  }
  
  .welcome-banner {
    padding: 24px;
  }
  
  .welcome-text h1 {
    font-size: 24px;
  }
  
  .welcome-badge {
    display: none;
  }
  
  .wizard-choices {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   ENHANCED WIDGETS - ACCORDION, FLASHCARDS, TIMELINE & MAPS
   ========================================================================== */

/* --- General Toggles --- */
.view-toggle-bar {
  display: flex;
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  padding: 4px;
  border-radius: 50px;
  gap: 4px;
}

.toggle-view-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-normal);
  display: flex;
  align-items: center;
  gap: 6px;
}

.toggle-view-btn.active, .toggle-view-btn:hover {
  background: var(--primary-gradient);
  color: white;
  box-shadow: 0 4px 10px rgba(66, 133, 244, 0.2);
}

/* --- Dashboard Accordion --- */
.dashboard-accordion-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 25px;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

.dash-acc-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  transition: var(--transition-normal);
}

[data-theme="light"] .dash-acc-item {
  background: rgba(0, 0, 0, 0.01);
}

.dash-acc-item.active {
  border-color: var(--border-hover);
  background: rgba(255, 255, 255, 0.04);
}

.dash-acc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  cursor: pointer;
  user-select: none;
}

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

.dash-acc-header-left i {
  color: var(--primary);
  font-size: 16px;
}

.dash-acc-header-left strong {
  font-size: 13px;
  font-family: var(--font-heading);
}

.dash-acc-header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.dash-acc-pct {
  font-size: 11px;
  font-family: var(--font-mono);
  background: var(--bg-active);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
}

.dash-acc-header i.chevron {
  font-size: 12px;
  color: var(--text-muted);
  transition: var(--transition-normal);
}

.dash-acc-item.active .dash-acc-header i.chevron {
  transform: rotate(90deg);
}

.dash-acc-content {
  display: none;
  padding: 0 20px 20px 20px;
  animation: fadeIn 0.3s ease;
}

.dash-acc-item.active .dash-acc-content {
  display: block;
}

.dash-progress-track {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 12px;
}

[data-theme="light"] .dash-progress-track {
  background: rgba(0, 0, 0, 0.05);
}

.dash-progress-bar {
  height: 100%;
  background: var(--primary-gradient);
  border-radius: 10px;
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.dash-topic-bullet-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
}

.dash-topic-bullet-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-secondary);
}

.dash-topic-bullet-list li i {
  font-size: 13px;
}

.dash-topic-bullet-list li i.completed {
  color: var(--accent-green);
}

.dash-topic-bullet-list li i.incomplete {
  color: var(--text-muted);
}

/* --- Interactive Flashcard deck --- */
.flashcard-card {
  margin-top: 30px;
  background: linear-gradient(135deg, rgba(251, 188, 5, 0.05) 0%, rgba(66, 133, 244, 0.02) 100%);
  border-color: rgba(251, 188, 5, 0.15);
}

.flashcard-deck-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 260px;
  margin: 20px 0;
  perspective: 1000px;
}

.flashcard-deck {
  width: 100%;
  height: 100%;
  position: relative;
}

.flashcard {
  width: 100%;
  height: 100%;
  position: absolute;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

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

.flashcard-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: var(--border-radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--glass-shadow);
  border: 1px solid var(--border-color);
  background: var(--bg-card-hover);
}

.flashcard-front {
  background: rgba(20, 26, 46, 0.95);
  border-color: var(--border-hover);
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 15px;
}

[data-theme="light"] .flashcard-front {
  background: rgba(255, 255, 255, 0.95);
}

.flashcard-front i {
  font-size: 36px;
  color: var(--accent-orange);
  text-shadow: 0 0 15px rgba(251, 188, 5, 0.4);
}

.flashcard-front h4 {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.flashcard-front small {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.flashcard-back {
  background: rgba(14, 18, 36, 0.98);
  transform: rotateY(180deg);
  border-color: var(--primary);
}

[data-theme="light"] .flashcard-back {
  background: rgba(240, 243, 250, 0.98);
}

.flashcard-back-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 8px;
  margin-bottom: 8px;
}

.flashcard-back-title h5 {
  font-size: 13px;
  color: var(--primary);
  font-weight: 700;
}

.flashcard-back-title span {
  font-size: 8px;
  background: rgba(251, 188, 5, 0.15);
  color: var(--accent-orange);
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.flashcard-back p {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-primary);
  flex-grow: 1;
  overflow-y: auto;
}

.flashcard-controls {
  display: flex;
  gap: 10px;
  justify-content: center;
}

.flashcard-controls button {
  flex: 1;
  justify-content: center;
  font-size: 12px;
  padding: 8px 12px;
}

/* --- Recent Activity Timeline --- */
.activity-card {
  background: var(--bg-card);
}

.activity-timeline-wrapper {
  max-height: 250px;
  overflow-y: auto;
  margin-top: 15px;
  padding-right: 5px;
}

.activity-timeline {
  display: flex;
  flex-direction: column;
  position: relative;
  list-style: none;
  padding-left: 20px;
}

.activity-timeline::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 5px;
  bottom: 5px;
  width: 2px;
  background: var(--border-color);
}

.activity-item {
  position: relative;
  margin-bottom: 16px;
}

.activity-item:last-child {
  margin-bottom: 0;
}

.activity-dot {
  position: absolute;
  left: -20px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-muted);
  border: 2px solid var(--bg-card);
  transition: var(--transition-normal);
}

.activity-item.completed .activity-dot {
  background: var(--accent-green);
  box-shadow: 0 0 8px var(--accent-green);
}

.activity-item.quiz .activity-dot {
  background: var(--primary);
  box-shadow: 0 0 8px var(--primary);
}

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

.activity-info strong {
  font-size: 13px;
  color: var(--text-primary);
}

.activity-info span {
  font-size: 11px;
  color: var(--text-secondary);
}

.activity-info small {
  font-size: 9px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* --- Visual Architecture Map --- */
.architecture-map-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 25px;
  animation: fadeIn 0.4s ease-out;
}

.map-category-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 24px;
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: var(--transition-normal);
}

.map-category-box:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.map-category-box.compute { border-top: 4px solid var(--primary); }
.map-category-box.storage { border-top: 4px solid var(--accent-orange); }
.map-category-box.database { border-top: 4px solid var(--accent-green); }
.map-category-box.networking { border-top: 4px solid var(--accent-purple); }
.map-category-box.governance { border-top: 4px solid var(--accent-red); }

.map-category-header {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.map-category-header i {
  font-size: 20px;
}

.map-category-header h3 {
  font-size: 16px;
  font-weight: 700;
}

.map-nested-layout {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.map-sub-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.map-sub-group-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 2px;
}

.map-service-node {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  padding: 10px 14px;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition-normal);
  text-align: left;
}

[data-theme="light"] .map-service-node {
  background: rgba(0, 0, 0, 0.02);
}

.map-service-node:hover {
  background: var(--bg-active);
  border-color: var(--primary);
  transform: translateX(4px);
}

.map-service-node i {
  font-size: 14px;
  color: var(--primary);
}

.map-service-node strong {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
}

/* Service Detail Modal Overlay */
.service-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 16, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.3s ease;
}

.service-modal-content {
  width: 100%;
  max-width: 650px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  animation: scaleIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  padding: 35px;
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 20px;
  cursor: pointer;
  transition: var(--transition-fast);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

/* --- Decision Tree Pathways --- */
.wizard-path-visualizer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 10px 16px;
  border-radius: var(--border-radius-md);
  margin-bottom: 20px;
}

[data-theme="light"] .wizard-path-visualizer {
  background: rgba(0, 0, 0, 0.01);
}

.path-node {
  font-size: 11px;
  font-weight: 600;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 4px 10px;
  border-radius: 4px;
  color: var(--text-secondary);
  transition: var(--transition-normal);
}

.path-node.active {
  border-color: var(--accent-green);
  color: var(--accent-green);
  box-shadow: 0 0 10px rgba(52, 168, 83, 0.25);
  background: rgba(52, 168, 83, 0.05);
}

.path-node.faded {
  opacity: 0.4;
}

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

/* ==========================================================================
   QUIZ SYSTEM SPECIFICS - DUAL MODES, EXAM TIMER & NAVIGATORS
   ========================================================================== */

/* --- Mode Selector Grid --- */
.quiz-mode-select-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-top: 30px;
}

.quiz-mode-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  padding: 30px;
  box-shadow: var(--glass-shadow);
  display: flex;
  flex-direction: column;
  transition: var(--transition-normal);
}

.quiz-mode-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-hover);
}

#mode-card-practice:hover { box-shadow: 0 0 25px rgba(66, 133, 244, 0.15); }
#mode-card-exam:hover { box-shadow: 0 0 25px rgba(251, 188, 5, 0.15); }

.mode-card-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
}

.mode-card-header i {
  font-size: 26px;
  color: var(--primary);
}

#mode-card-exam .mode-card-header i {
  color: var(--accent-orange);
}

.mode-card-header h3 {
  font-size: 18px;
  font-weight: 700;
}

.quiz-mode-card p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 20px;
}

.quiz-topic-checkboxes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 12px;
  border-radius: var(--border-radius-md);
}

[data-theme="light"] .quiz-topic-checkboxes {
  background: rgba(0, 0, 0, 0.01);
}

.quiz-topic-checkboxes label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-secondary);
  cursor: pointer;
  user-select: none;
}

.quiz-topic-checkboxes input {
  cursor: pointer;
}

.exam-rules-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
  flex-grow: 1;
}

.exam-rules-list li {
  font-size: 12px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}

.exam-rules-list li i {
  color: var(--accent-green);
  font-size: 11px;
}

/* --- Countdown Timer --- */
.quiz-timer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  padding: 4px 14px;
  border-radius: 50px;
  color: var(--text-primary);
  transition: var(--transition-normal);
}

.quiz-timer.pulse-red {
  color: #ea4335;
  border-color: #ea4335;
  background: rgba(234, 67, 53, 0.08);
  animation: pulseTimer 1s infinite alternate;
}

@keyframes pulseTimer {
  from { transform: scale(1); box-shadow: 0 0 0px rgba(234, 67, 53, 0); }
  to { transform: scale(1.05); box-shadow: 0 0 10px rgba(234, 67, 53, 0.3); }
}

/* --- Navigator Grid --- */
.quiz-navigator-panel {
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 15px;
  margin-bottom: 20px;
}

.quiz-navigator-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 110px;
  overflow-y: auto;
  padding-right: 4px;
}

.quiz-nav-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.quiz-nav-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
  border-color: var(--primary);
}

.quiz-nav-btn.active {
  border-color: var(--primary);
  background: var(--bg-active);
  color: var(--primary);
}

.quiz-nav-btn.answered {
  background: rgba(66, 133, 244, 0.12);
  color: var(--primary);
  border-color: rgba(66, 133, 244, 0.3);
}

.quiz-nav-btn.flagged {
  background: rgba(251, 188, 5, 0.15);
  color: var(--accent-orange);
  border-color: var(--accent-orange);
}

/* --- Flags and Labels --- */
.question-flag-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}

.question-domain-label {
  font-size: 11px;
  background: var(--bg-active);
  color: var(--primary);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  text-transform: uppercase;
}

.btn-small {
  padding: 6px 12px;
  font-size: 11px;
  border-radius: 6px;
}

#quiz-mark-review-btn.flagged {
  background: var(--accent-orange-gradient);
  color: white;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(251, 188, 5, 0.25);
}

/* --- Results Reporting Sheet --- */
.results-passing-tag {
  display: inline-block;
  font-size: 14px;
  font-weight: 800;
  padding: 4px 18px;
  border-radius: 50px;
  color: white;
  margin-bottom: 10px;
  letter-spacing: 0.05em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.results-passing-tag.pass {
  background: var(--accent-green-gradient);
  box-shadow: 0 4px 15px rgba(52, 168, 83, 0.35);
}

.results-passing-tag.fail {
  background: linear-gradient(135deg, #ea4335 0%, #b31412 100%);
  box-shadow: 0 4px 15px rgba(234, 67, 53, 0.35);
}

.post-exam-review-section {
  border-top: 1px solid var(--border-color);
  padding-top: 25px;
  margin-top: 25px;
  text-align: left;
}

.post-exam-review-section h3 {
  font-size: 16px;
  margin-bottom: 4px;
}

.post-exam-review-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-height: 400px;
  overflow-y: auto;
  padding-right: 5px;
}

.post-exam-review-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  padding: 16px;
  border-radius: var(--border-radius-md);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

[data-theme="light"] .post-exam-review-card {
  background: rgba(0, 0, 0, 0.01);
}

.post-exam-review-card.correct { border-left: 4px solid var(--accent-green); }
.post-exam-review-card.incorrect { border-left: 4px solid #ea4335; }

.review-q-num {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.review-q-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
}

.review-selections {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(255, 255, 255, 0.02);
  padding: 8px 12px;
  border-radius: 6px;
}

.review-selections div {
  font-size: 12px;
  color: var(--text-secondary);
}

.review-selections span.correct { color: var(--accent-green); font-weight: 700; }
.review-selections span.incorrect { color: #ea4335; font-weight: 700; }

.review-exp {
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-muted);
  background: var(--bg-active);
  padding: 8px 12px;
  border-radius: 6px;
}

/* ==========================================================================
   RESPONSIVE DESIGN ADDITIONS
   ========================================================================== */
@media (max-width: 992px) {
  .quiz-mode-select-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ==========================================================================
   GLOBAL SEARCH DROPDOWN SUGGESTIONS STYLING
   ========================================================================== */
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 100%;
  max-height: 350px;
  overflow-y: auto;
  background: var(--bg-sidebar);
  border: 1px solid var(--border-hover);
  border-radius: var(--border-radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), var(--inset-shadow);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  z-index: 9999;
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.25s ease-out;
}

[data-theme="light"] .search-dropdown {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(66, 133, 244, 0.25);
  box-shadow: 0 10px 30px rgba(31, 38, 135, 0.15);
}

.search-result-item {
  padding: 12px 20px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: var(--transition-fast);
}

[data-theme="light"] .search-result-item {
  border-bottom-color: rgba(0, 0, 0, 0.03);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: var(--bg-active);
  padding-left: 24px;
}

.search-result-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-heading);
}

.search-result-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-result-category {
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
}

.search-result-category.services { background: rgba(66, 133, 244, 0.15); color: #a0c3ff; }
.search-result-category.syllabus { background: rgba(161, 66, 244, 0.15); color: #d7a2ff; }
.search-result-category.commands { background: rgba(52, 168, 83, 0.15); color: #8af5aa; }

.search-result-snippet {
  font-size: 11px;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-grow: 1;
}

/* ==========================================================================
   UNIFIED IN-PLACE FLIP CARDS INSIDE VISUAL MAP
   ========================================================================== */
/* ==========================================================================
   MODAL DRAWER DETAIL OVERLAY (Restore old beautiful modal popup)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 10, 18, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  transition: opacity var(--transition-normal);
}

.modal-overlay.hidden {
  display: none !important;
  opacity: 0;
  pointer-events: none;
}

.modal-content {
  background: var(--bg-sidebar);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-lg);
  width: 90%;
  max-width: 800px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  padding: 35px;
  box-shadow: var(--glass-shadow);
  animation: modalFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 28px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition-fast);
}

.modal-close-btn:hover {
  color: var(--text-primary);
  transform: scale(1.1);
}

.category-pill {
  font-size: 11px;
  background: var(--bg-active);
  color: var(--primary);
  padding: 4px 10px;
  border-radius: var(--border-radius-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid var(--border-color);
  display: inline-block;
}

/* ==========================================================================
   SYLLABUS FORMATTING & READABILITY STYLES
   ========================================================================== */
.summary-subsection-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 16px 20px;
  margin-bottom: 15px;
  box-shadow: var(--inset-shadow);
}

[data-theme="light"] .summary-subsection-card {
  background: rgba(0, 0, 0, 0.01);
}

.summary-subsection-card h4 {
  font-size: 13px;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.summary-bullet-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}

.summary-bullet-item {
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-secondary);
  position: relative;
  padding-left: 20px;
}

.summary-bullet-item::before {
  content: "•";
  position: absolute;
  left: 4px;
  top: -1px;
  font-size: 16px;
  color: var(--primary);
}

.summary-bullet-item strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ==========================================================================
   GLOBAL SEARCH DROPDOWN STYLES
   ========================================================================== */
.search-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-sidebar);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  margin-top: 8px;
  max-height: 400px;
  overflow-y: auto;
  z-index: 1000;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: opacity var(--transition-normal);
}

.search-dropdown.hidden {
  display: none !important;
  opacity: 0;
  pointer-events: none;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--border-radius-sm);
  cursor: pointer;
  transition: var(--transition-fast);
  color: var(--text-secondary);
  border: 1px solid transparent;
}

.search-result-item:hover {
  background: var(--bg-active);
  color: var(--text-primary);
  border-color: var(--border-color);
}

.search-result-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--border-radius-sm);
  background: var(--bg-input);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--primary);
  flex-shrink: 0;
}

.search-result-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-grow: 1;
}

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

.search-result-category {
  font-size: 10px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.search-no-results {
  padding: 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

/* MIT Copyright Footer */
.app-footer {
  margin-top: 50px;
  padding: 24px 0 12px 0;
  border-top: 1px solid var(--border-color);
  text-align: center;
  color: var(--text-secondary);
  font-size: 12px;
}

[data-theme="light"] .app-footer {
  border-top-color: rgba(0, 0, 0, 0.05);
}

/* ==========================================================================
   TAB: EXAM GUIDE SPECIFICS
   ========================================================================== */
.guide-banner {
  background: linear-gradient(135deg, #130f40 0%, #1a237e 50%, #0d47a1 100%);
  box-shadow: 0 10px 30px rgba(13, 71, 161, 0.25);
}

.guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  align-items: start;
  margin-top: 30px;
  animation: fadeIn 0.4s ease-out;
}

.guide-card {
  padding: 24px;
}

/* Weight progress tracks */
.weight-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

[data-theme="light"] .weight-track {
  background: rgba(0, 0, 0, 0.05);
}

.weight-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.weight-fill.purple { background: var(--accent-purple-gradient); }
.weight-fill.blue { background: var(--primary-gradient); }
.weight-fill.green { background: var(--accent-green-gradient); }
.weight-fill.orange { background: var(--accent-orange-gradient); }
.weight-fill.yellow { background: var(--accent-red-gradient); }

/* Weight indicator tags */
.weight-pill {
  font-size: 10px;
  font-family: var(--font-mono);
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}

.weight-pill.purple { background: rgba(161, 66, 244, 0.15); color: #d7a2ff; }
.weight-pill.blue { background: rgba(66, 133, 244, 0.15); color: #a0c3ff; }
.weight-pill.green { background: rgba(52, 168, 83, 0.15); color: #8af5aa; }
.weight-pill.orange { background: rgba(251, 188, 5, 0.15); color: #ffe38f; }
.weight-pill.yellow { background: rgba(234, 67, 53, 0.15); color: #ff8a80; }

@media (max-width: 900px) {
  .guide-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* ==========================================================================
   Centered App Title & Load Balancer CSS Flowchart (Phase V)
   ========================================================================== */
.header-title-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
}

.header-title-center h1 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 800;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -0.02em;
  margin: 0;
}

@media (max-width: 768px) {
  .header-title-center {
    display: none; /* Hide centered title on very small devices to avoid brand text squish */
  }
}

/* Load Balancer CSS Flowchart */
.lb-flowchart-container {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 20px;
  margin-top: 15px;
  margin-bottom: 25px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-family: var(--font-body);
  overflow-x: auto;
}

[data-theme="light"] .lb-flowchart-container {
  background: rgba(0, 0, 0, 0.01);
}

.lb-branches {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 25px;
  min-width: 800px;
}

.lb-branch {
  display: flex;
  flex-direction: column;
  gap: 15px;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 16px;
  background: rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .lb-branch {
  background: rgba(0, 0, 0, 0.02);
}

.lb-branch-title {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  padding: 8px;
  border-radius: 6px;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.lb-branch-title.l7 {
  background: linear-gradient(135deg, #4285f4 0%, #34a853 100%);
}

.lb-branch-title.l4 {
  background: linear-gradient(135deg, #a142f4 0%, #ea4335 100%);
}

.lb-row {
  display: flex;
  justify-content: space-around;
  gap: 10px;
  position: relative;
}

.lb-node {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 8px 10px;
  text-align: center;
  min-height: 48px;
  justify-content: center;
  transition: var(--transition-fast);
  position: relative;
}

.lb-node:hover {
  transform: scale(1.03);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(66, 133, 244, 0.15);
}

.lb-node strong {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-primary);
}

.lb-node span {
  font-size: 8px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.lb-node.orange { border-color: rgba(251, 188, 5, 0.3); background: rgba(251, 188, 5, 0.03); }
.lb-node.orange strong { color: var(--accent-orange); }
.lb-node.green { border-color: rgba(52, 168, 83, 0.3); background: rgba(52, 168, 83, 0.03); }
.lb-node.green strong { color: var(--accent-green); }
.lb-node.purple { border-color: rgba(161, 66, 244, 0.3); background: rgba(161, 66, 244, 0.03); }
.lb-node.purple strong { color: var(--accent-purple); }

.lb-final-node {
  font-size: 8px;
  font-weight: 700;
  padding: 6px;
  border-radius: 4px;
  background: var(--bg-active);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  text-align: center;
  line-height: 1.3;
  transition: var(--transition-fast);
}

.lb-final-node:hover {
  transform: scale(1.03);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(66, 133, 244, 0.15);
}

.lb-connector {
  display: flex;
  justify-content: center;
  color: var(--text-muted);
  font-size: 10px;
  margin: -5px 0;
  user-select: none;
}

/* ==========================================================================
   SYLLABUS GRAPHICS - PURE CSS INTERACTIVE STUDY TOPIC DIAGRAMS
   ========================================================================== */

.syl-visual-section {
  margin-top: 25px;
  border-top: 1px solid var(--border-color);
  padding-top: 20px;
}

.syl-visual-block-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 24px;
  margin-top: 15px;
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: var(--transition-normal);
  overflow: hidden;
}

.syl-visual-block-wrapper:hover {
  border-color: var(--border-hover);
  box-shadow: var(--card-glow-blue);
}

.visual-header-sub {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.5px;
}

/* 1. GCE Provisioning Flow */
.gce-provision-flow {
  display: flex;
  align-items: stretch;
  gap: 12px;
  margin-bottom: 10px;
}

.gce-provision-flow .flow-step {
  flex: 1;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 16px;
  position: relative;
  transition: var(--transition-fast);
}

.gce-provision-flow .flow-step:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  background: rgba(66, 133, 244, 0.05);
}

.gce-provision-flow .flow-step h4 {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--primary);
}

.gce-provision-flow .flow-step p {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.gce-provision-flow .flow-step .step-num {
  position: absolute;
  top: -10px;
  left: -10px;
  width: 24px;
  height: 24px;
  background: var(--primary-gradient);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(66, 133, 244, 0.3);
}

.gce-provision-flow .flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  user-select: none;
}

/* 2. GKE Architecture Grid */
.gke-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 20px;
  margin-bottom: 16px;
}

.gke-col {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gke-box-header {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-primary);
}

.gke-control-plane-box .gke-box-header i {
  color: var(--accent-orange);
}

.gke-node-box .gke-box-header i {
  color: var(--primary);
}

.gke-component {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 12px;
  transition: var(--transition-fast);
}

.gke-component:hover {
  transform: translateX(4px);
  border-color: var(--accent-orange);
  background: rgba(255, 188, 5, 0.05);
}

.gke-component strong {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.gke-component span {
  font-size: 10px;
  color: var(--text-secondary);
  line-height: 1.3;
  display: block;
}

.gke-node-layers {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gke-layer {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 10px;
  font-size: 11px;
  text-align: center;
  transition: var(--transition-fast);
}

.os-layer {
  background: rgba(148, 163, 184, 0.08);
  font-weight: 700;
  color: var(--text-primary);
}

.gke-daemons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.daemon-layer {
  background: rgba(66, 133, 244, 0.05);
  border-color: rgba(66, 133, 244, 0.15);
}

.daemon-layer:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
}

.daemon-layer strong {
  display: block;
  color: var(--primary);
  font-size: 11px;
}

.daemon-layer span {
  font-size: 9px;
  color: var(--text-secondary);
  line-height: 1.2;
  display: block;
  margin-top: 2px;
}

.runtime-layer {
  background: rgba(52, 168, 83, 0.05);
  border-color: rgba(52, 168, 83, 0.15);
  font-weight: 700;
  color: var(--accent-green);
}

.gke-pods-area {
  border: 1px dashed var(--border-hover);
  border-radius: var(--border-radius-sm);
  padding: 12px;
  background: rgba(255, 255, 255, 0.01);
}

.pods-header {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pods-flex {
  display: flex;
  gap: 8px;
  justify-content: stretch;
}

.gke-pod-bubble {
  flex: 1;
  background: rgba(161, 66, 244, 0.08);
  border: 1px solid rgba(161, 66, 244, 0.2);
  border-radius: 8px;
  padding: 8px;
  text-align: center;
  transition: var(--transition-fast);
}

.gke-pod-bubble:hover {
  transform: scale(1.05);
  border-color: var(--accent-purple);
  box-shadow: 0 4px 10px rgba(161, 66, 244, 0.15);
}

.gke-pod-bubble .pod-title {
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 800;
  color: var(--accent-purple);
  margin-bottom: 4px;
}

.gke-pod-bubble .pod-container {
  font-family: var(--font-mono);
  font-size: 8px;
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 4px;
  border-radius: 3px;
}

.gke-hardware-layer {
  width: 100%;
}

.gke-hardware-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 12px;
  text-align: center;
  font-size: 11px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.gke-hardware-box i {
  color: var(--text-muted);
}

/* 3. Serverless Matrix Grid */
.serverless-matrix-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
}

.sless-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 20px;
  position: relative;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
}

.sless-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.03);
}

.sless-card:nth-child(1):hover { border-color: var(--primary); }
.sless-card:nth-child(2):hover { border-color: var(--accent-purple); }
.sless-card:nth-child(3):hover { border-color: var(--accent-green); }

.sless-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 9px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 4px;
}

.badge-blue { background: rgba(66, 133, 244, 0.15); color: var(--primary); }
.badge-purple { background: rgba(161, 66, 244, 0.15); color: var(--accent-purple); }
.badge-green { background: rgba(52, 168, 83, 0.15); color: var(--accent-green); }
.badge-red { background: rgba(234, 67, 53, 0.15); color: var(--accent-red); }
.badge-orange { background: rgba(251, 188, 5, 0.15); color: var(--accent-orange); }

.sless-card h3 {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 12px;
  padding-right: 50px;
}

.sless-use {
  font-size: 11px;
  line-height: 1.4;
  margin-bottom: 14px;
  color: var(--text-primary);
}

.sless-details {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
}

.sless-details li {
  font-size: 10px;
  color: var(--text-secondary);
  line-height: 1.4;
  position: relative;
  padding-left: 12px;
}

.sless-details li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--text-muted);
}

/* 4. GCS Lifecycle Timeline & Features */
.gcs-lifecycle-timeline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}

.gcs-class-box {
  flex: 1;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 14px;
  text-align: center;
  transition: var(--transition-fast);
}

.gcs-class-box:hover {
  transform: scale(1.03);
}

.gcs-hot { background: rgba(66, 133, 244, 0.05); border-color: rgba(66, 133, 244, 0.15); }
.gcs-hot:hover { border-color: var(--primary); }
.gcs-warm { background: rgba(251, 188, 5, 0.05); border-color: rgba(251, 188, 5, 0.15); }
.gcs-warm:hover { border-color: var(--accent-orange); }
.gcs-cold { background: rgba(161, 66, 244, 0.05); border-color: rgba(161, 66, 244, 0.15); }
.gcs-cold:hover { border-color: var(--accent-purple); }
.gcs-archive { background: rgba(234, 67, 53, 0.05); border-color: rgba(234, 67, 53, 0.15); }
.gcs-archive:hover { border-color: var(--accent-red); }

.gcs-class-header {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}

.gcs-hot .gcs-class-header { color: var(--primary); }
.gcs-warm .gcs-class-header { color: var(--accent-orange); }
.gcs-cold .gcs-class-header { color: var(--accent-purple); }
.gcs-archive .gcs-class-header { color: var(--accent-red); }

.gcs-class-desc {
  font-size: 10px;
  color: var(--text-secondary);
  line-height: 1.3;
  margin-bottom: 8px;
  min-height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gcs-class-spec {
  font-family: var(--font-mono);
  font-size: 8px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  padding-top: 6px;
  line-height: 1.3;
}

.gcs-lifecycle-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 10px;
  user-select: none;
}

.gcs-lifecycle-arrow span {
  font-size: 8px;
  margin-top: 2px;
}

.gcs-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 12px;
}

.gcs-feat-card {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 12px;
  transition: var(--transition-fast);
}

.gcs-feat-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-hover);
}

.gcs-feat-card i {
  font-size: 16px;
  margin-bottom: 8px;
}

.gcs-feat-card h4 {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 4px;
}

.gcs-feat-card p {
  font-size: 10px;
  color: var(--text-secondary);
  line-height: 1.3;
}

/* 5. Database Selection Grid */
.db-decision-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 16px;
}

.db-card {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.db-type-header {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--border-color);
}

.relational { color: var(--primary); border-bottom-color: rgba(66, 133, 244, 0.3); }
.nosql { color: var(--accent-green); border-bottom-color: rgba(52, 168, 83, 0.3); }

.db-sub-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.db-item-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 12px;
  transition: var(--transition-fast);
}

.db-item-card:hover {
  transform: translateX(4px);
}

.db-decision-grid .db-card:nth-child(1) .db-item-card:hover { border-color: var(--primary); background: rgba(66, 133, 244, 0.03); }
.db-decision-grid .db-card:nth-child(2) .db-item-card:hover { border-color: var(--accent-green); background: rgba(52, 168, 83, 0.03); }

.db-item-card h4 {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 4px;
}

.db-item-card p {
  font-size: 10px;
  color: var(--text-secondary);
  line-height: 1.3;
  margin-bottom: 6px;
}

.db-tag-spec {
  font-size: 8px;
  background: var(--bg-active);
  color: var(--text-primary);
  padding: 2px 6px;
  border-radius: 3px;
  display: inline-block;
  font-weight: 600;
}

/* 6. VPC Layout */
.vpc-grid-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

.vpc-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 18px;
  transition: var(--transition-normal);
}

.vpc-box:hover {
  transform: translateY(-3px);
  border-color: var(--border-hover);
}

.vpc-box h3 {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vpc-box p {
  font-size: 10px;
  color: var(--text-secondary);
  line-height: 1.4;
  margin-bottom: 8px;
}

/* 7. Hybrid Connectivity and Load Balancer */
.hybrid-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 16px;
}

.hybrid-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hybrid-section h3 {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hybrid-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 12px;
  transition: var(--transition-fast);
}

.hybrid-card:hover {
  transform: translateX(4px);
  border-color: var(--border-hover);
}

.hybrid-card strong {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
  margin-bottom: 4px;
}

.hybrid-card p {
  font-size: 10px;
  color: var(--text-secondary);
  line-height: 1.3;
}

/* 8. Big Data pipeline */
.bigdata-flow {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.bigdata-step {
  flex: 1;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 14px;
  text-align: center;
  transition: var(--transition-fast);
}

.bigdata-step:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}

.bigdata-icon {
  font-size: 18px;
  margin-bottom: 8px;
}

.bigdata-step h4 {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.bigdata-step strong {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  display: block;
  margin-bottom: 6px;
  color: var(--text-primary);
}

.bigdata-step p {
  font-size: 10px;
  color: var(--text-secondary);
  line-height: 1.3;
}

.bigdata-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 12px;
  user-select: none;
}

/* 9. PubSub Integration & IaC Model */
.integration-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 16px;
}

.integration-box {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.integration-box h3 {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pubsub-flow-diag {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pub-node {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 8px 12px;
  font-size: 10px;
  text-align: center;
  font-weight: 700;
  transition: var(--transition-fast);
}

.pub-node.pub { color: var(--primary); border-color: rgba(66, 133, 244, 0.2); }
.pub-node.topic { color: var(--accent-orange); border-color: rgba(251, 188, 5, 0.2); }
.pub-node.sub { color: var(--accent-purple); border-color: rgba(161, 66, 244, 0.2); }
.pub-node.subber { color: var(--accent-green); border-color: rgba(52, 168, 83, 0.2); }

.pubsub-flow-diag .pub-node:hover {
  transform: scale(1.02);
}

.pub-arrow {
  display: flex;
  justify-content: center;
  color: var(--text-muted);
  font-size: 10px;
  margin: -2px 0;
}

.diag-note {
  font-size: 9px;
  color: var(--text-muted);
  font-style: italic;
  text-align: center;
  margin-top: 4px;
}

.iac-split {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.iac-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 12px;
  transition: var(--transition-fast);
}

.iac-item:hover {
  transform: translateX(4px);
  border-color: var(--primary);
}

.iac-item strong {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
  display: block;
  margin-bottom: 4px;
}

.iac-item p {
  font-size: 10px;
  color: var(--text-secondary);
  line-height: 1.3;
}

/* 10. IAM Layout */
.iam-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.iam-column {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.iam-column h3 {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
  text-align: center;
}

.hierarchy-tree {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.tree-node {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 8px 12px;
  font-size: 10px;
  font-weight: 600;
  text-align: center;
  min-width: 180px;
  transition: var(--transition-fast);
}

.tree-node:hover {
  transform: scale(1.03);
  border-color: var(--border-hover);
}

.tree-line {
  color: var(--text-muted);
  font-size: 10px;
  user-select: none;
}

.binding-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px dashed var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 10px;
}

.bind-part {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 8px 12px;
  text-align: center;
  width: 100%;
}

.bind-part strong {
  display: block;
  font-size: 10px;
}

.bind-part span {
  font-size: 8px;
  color: var(--text-secondary);
  margin-top: 2px;
  display: block;
}

.bind-plus, .bind-equals {
  font-size: 11px;
  font-weight: 800;
  color: var(--text-muted);
}

.vm-sa-security {
  background: rgba(234, 67, 53, 0.05);
  border: 1px solid rgba(234, 67, 53, 0.15);
  border-radius: var(--border-radius-sm);
  padding: 10px 12px;
}

.vm-sa-security strong {
  color: var(--accent-red);
  font-size: 10px;
  display: block;
  margin-bottom: 2px;
}

.vm-sa-security p {
  font-size: 9px;
  color: var(--text-secondary);
  line-height: 1.3;
}

/* 11. Operations & Sinks Layout */
.ops-billing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.ops-billing-card {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ops-billing-card h3 {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}

.ops-flow-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.ops-node {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 8px 12px;
  font-size: 10px;
  font-weight: 600;
  text-align: center;
  width: 100%;
}

.ops-node.origin { color: var(--accent-purple); border-color: rgba(161, 66, 244, 0.2); }
.ops-node.router { color: var(--accent-orange); border-color: rgba(251, 188, 5, 0.2); }

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

.ops-sinks-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  width: 100%;
  margin-top: 4px;
}

.sink-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 8px 4px;
  font-size: 8px;
  text-align: center;
  font-weight: 700;
  color: var(--text-primary);
  transition: var(--transition-fast);
}

.sink-box:hover {
  transform: scale(1.02);
  border-color: var(--primary);
}

.billing-flow-diagram {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bill-step {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-sm);
  padding: 8px 12px;
  transition: var(--transition-fast);
}

.bill-step:hover {
  transform: translateX(4px);
  border-color: var(--accent-green);
  background: rgba(52, 168, 83, 0.03);
}

.bill-step strong {
  display: block;
  font-size: 10px;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.bill-step span {
  display: block;
  font-size: 8px;
  color: var(--text-secondary);
  line-height: 1.3;
}

.bill-arrow {
  color: var(--text-muted);
  font-size: 8px;
  text-align: center;
}

/* --- Responsive Diagram Layout Rules --- */
@media (max-width: 768px) {
  .gce-provision-flow, .gcs-lifecycle-timeline, .bigdata-flow {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  
  .gce-provision-flow .flow-arrow, .gcs-lifecycle-timeline .gcs-lifecycle-arrow, .bigdata-flow .bigdata-arrow {
    transform: rotate(90deg);
    margin: 4px 0;
  }
  
  .gke-grid, .serverless-matrix-grid, .db-decision-grid, .vpc-grid-container, .hybrid-grid, .integration-grid, .iam-layout, .ops-billing-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .gcs-features-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .gce-provision-flow .flow-step .step-num {
    left: 8px;
    top: 8px;
  }
  
  .gce-provision-flow .flow-step {
    padding-left: 40px;
  }
}

