/* DEX Training Specialization — Global Styles */
/* Tanium Performance & HP WXP */

:root {
  --primary: #1B2A4A;
  --primary-light: #2d4a7a;
  --tanium-red: #E2231A;
  --tanium-red-light: #fff0ef;
  --hp-blue: #0096D6;
  --hp-blue-light: #e8f6fc;
  --mercury-blue: #1a5276;
  --success: #27ae60;
  --success-light: #eafaf1;
  --warning: #f39c12;
  --warning-light: #fef9e7;
  --danger: #e74c3c;
  --danger-light: #fdedec;
  --info: #3498db;
  --info-light: #ebf5fb;
  --bg: #f0f2f5;
  --card-bg: #ffffff;
  --text: #2c3e50;
  --text-light: #7f8c8d;
  --text-muted: #95a5a6;
  --border: #e1e8ed;
  --sidebar-bg: #1B2A4A;
  --sidebar-text: #ecf0f1;
  --sidebar-active: #0096D6;
  --code-bg: #1e1e2e;
  --code-text: #cdd6f4;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 8px 25px rgba(0,0,0,0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.3s ease;
}

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

body {
  font-family: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 15px;
}

/* ===== LAYOUT ===== */
.app-container {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 280px;
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header h1 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}

.sidebar-header .subtitle {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.sidebar-nav {
  flex: 1;
  padding: 16px 0;
  overflow-y: auto;
}

.nav-section {
  margin-bottom: 8px;
}

.nav-section-title {
  padding: 8px 20px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  font-weight: 600;
}

.nav-section-title.tanium { color: var(--tanium-red); }
.nav-section-title.hp { color: var(--hp-blue); }

.nav-link {
  display: flex;
  align-items: center;
  padding: 10px 20px;
  color: var(--sidebar-text);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
  cursor: pointer;
  border-left: 3px solid transparent;
}

.nav-link:hover {
  background: rgba(255,255,255,0.08);
}

.nav-link.active {
  background: rgba(255,255,255,0.12);
  border-left-color: var(--sidebar-active);
  font-weight: 600;
}

.nav-link.visited {
  color: var(--success);
}

.nav-link .nav-icon {
  width: 24px;
  margin-right: 10px;
  text-align: center;
  font-size: 13px;
}

.nav-link .nav-check {
  margin-left: auto;
  color: var(--success);
  font-size: 14px;
  opacity: 0;
  transition: opacity 0.3s;
}

.nav-link.visited .nav-check {
  opacity: 1;
}

/* Sidebar progress */
.sidebar-progress {
  padding: 16px 20px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.progress-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}

.progress-bar {
  height: 6px;
  background: rgba(255,255,255,0.15);
  border-radius: 3px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--hp-blue), var(--success));
  border-radius: 3px;
  transition: width 0.5s ease;
  width: 0%;
}

/* Main content */
.main-content {
  margin-left: 280px;
  flex: 1;
  padding: 32px 40px;
  max-width: 1000px;
}

/* ===== LANDING PAGE ===== */
.hero {
  text-align: center;
  padding: 48px 32px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: white;
  border-radius: var(--radius);
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 70%);
  border-radius: 50%;
}

.hero h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.hero p {
  font-size: 16px;
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto;
}

.hero .badge-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
}

.badge.tanium {
  background: var(--tanium-red);
  color: white;
}

.badge.hp {
  background: var(--hp-blue);
  color: white;
}

.badge.exam {
  background: rgba(255,255,255,0.2);
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
}

/* Module cards */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.module-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}

.module-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.module-card .card-accent {
  height: 5px;
}

.module-card.tanium .card-accent { background: var(--tanium-red); }
.module-card.hp .card-accent { background: var(--hp-blue); }
.module-card.exam-card .card-accent { background: linear-gradient(90deg, var(--tanium-red), var(--hp-blue)); }

.module-card .card-body {
  padding: 24px;
}

.module-card .card-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.module-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--primary);
}

.module-card p {
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 16px;
}

.module-card .card-meta {
  display: flex;
  gap: 16px;
  font-size: 13px;
  color: var(--text-muted);
}

.module-card .card-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.module-card .card-progress {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.module-card .card-progress .progress-bar {
  background: var(--bg);
}

.module-card.tanium .card-progress .progress-fill { background: var(--tanium-red); }
.module-card.hp .card-progress .progress-fill { background: var(--hp-blue); }

/* ===== LESSON PAGE ===== */
.lesson-header {
  padding: 32px;
  border-radius: var(--radius);
  margin-bottom: 24px;
  color: white;
  position: relative;
}

.lesson-header.tanium {
  background: linear-gradient(135deg, #8B1A15 0%, var(--tanium-red) 100%);
}

.lesson-header.hp {
  background: linear-gradient(135deg, #006494 0%, var(--hp-blue) 100%);
}

.lesson-header .lesson-number {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0.8;
  margin-bottom: 8px;
}

.lesson-header h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.lesson-header .lesson-desc {
  font-size: 15px;
  opacity: 0.85;
}

/* Content sections */
.content-section {
  background: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  margin-bottom: 20px;
}

.content-section h2 {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--bg);
}

.content-section h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--primary);
  margin: 20px 0 10px;
}

.content-section p {
  margin-bottom: 12px;
}

.content-section ul, .content-section ol {
  margin: 12px 0;
  padding-left: 24px;
}

.content-section li {
  margin-bottom: 8px;
}

/* Callout boxes */
.callout {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin: 16px 0;
  border-left: 4px solid;
}

.callout-title {
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.callout-info {
  background: var(--info-light);
  border-color: var(--info);
}
.callout-info .callout-title { color: var(--info); }

.callout-tip {
  background: var(--success-light);
  border-color: var(--success);
}
.callout-tip .callout-title { color: var(--success); }

.callout-warning {
  background: var(--warning-light);
  border-color: var(--warning);
}
.callout-warning .callout-title { color: var(--warning); }

.callout-danger {
  background: var(--danger-light);
  border-color: var(--danger);
}
.callout-danger .callout-title { color: var(--danger); }

.callout-protip {
  background: #f3e8ff;
  border-color: #8b5cf6;
}
.callout-protip .callout-title { color: #8b5cf6; }

/* Code blocks */
.code-block {
  background: var(--code-bg);
  color: var(--code-text);
  padding: 20px;
  border-radius: var(--radius-sm);
  font-family: 'Cascadia Code', 'Fira Code', 'Consolas', 'Courier New', monospace;
  font-size: 14px;
  line-height: 1.7;
  overflow-x: auto;
  margin: 12px 0;
  position: relative;
}

.code-block .copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--code-text);
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: var(--transition);
}

.code-block .copy-btn:hover {
  background: rgba(255,255,255,0.2);
}

code {
  font-family: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;
  background: var(--bg);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--tanium-red);
}

/* ===== INTERACTIVE ELEMENTS ===== */

/* Expandable / Collapsible sections */
.expandable {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin: 12px 0;
  overflow: hidden;
}

.expandable-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--bg);
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
  user-select: none;
}

.expandable-header:hover {
  background: #e8ebef;
}

.expandable-header .expand-icon {
  transition: transform 0.3s ease;
  font-size: 12px;
}

.expandable.open .expandable-header .expand-icon {
  transform: rotate(180deg);
}

.expandable-body {
  padding: 0 18px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.expandable.open .expandable-body {
  padding: 16px 18px;
  max-height: 2000px;
}

/* Knowledge check */
.knowledge-check {
  background: var(--card-bg);
  border: 2px solid var(--info);
  border-radius: var(--radius);
  padding: 24px;
  margin: 24px 0;
}

.knowledge-check h3 {
  color: var(--info);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.quiz-question {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.quiz-question:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.quiz-question p {
  font-weight: 600;
  margin-bottom: 10px;
}

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

.quiz-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  font-size: 14px;
}

.quiz-option:hover {
  border-color: var(--info);
  background: var(--info-light);
}

.quiz-option.selected {
  border-color: var(--info);
  background: var(--info-light);
}

.quiz-option.correct {
  border-color: var(--success);
  background: var(--success-light);
}

.quiz-option.incorrect {
  border-color: var(--danger);
  background: var(--danger-light);
}

.quiz-option input[type="radio"],
.quiz-option input[type="checkbox"] {
  accent-color: var(--info);
}

.quiz-feedback {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  display: none;
}

.quiz-feedback.show {
  display: block;
}

.quiz-feedback.correct {
  background: var(--success-light);
  color: #1a6b37;
}

.quiz-feedback.incorrect {
  background: var(--danger-light);
  color: #922b21;
}

.check-answer-btn {
  background: var(--info);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  margin-top: 12px;
  transition: var(--transition);
}

.check-answer-btn:hover {
  background: #2980b9;
  transform: translateY(-1px);
}

.check-answer-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* What Would You Do scenario */
.scenario-box {
  background: linear-gradient(135deg, #fef9e7 0%, #fdf2d5 100%);
  border: 2px solid var(--warning);
  border-radius: var(--radius);
  padding: 24px;
  margin: 20px 0;
}

.scenario-box h3 {
  color: #b7791f;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.scenario-box .scenario-context {
  background: white;
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 16px;
  border-left: 4px solid var(--warning);
  font-style: italic;
}

/* Drag and drop matching */
.match-exercise {
  background: var(--card-bg);
  border: 2px solid #8b5cf6;
  border-radius: var(--radius);
  padding: 24px;
  margin: 20px 0;
}

.match-exercise h3 {
  color: #8b5cf6;
  margin-bottom: 16px;
}

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

.match-item {
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: grab;
  transition: var(--transition);
  background: white;
  font-size: 14px;
}

.match-item:hover {
  border-color: #8b5cf6;
  box-shadow: 0 2px 8px rgba(139,92,246,0.2);
}

.match-item.dragging {
  opacity: 0.5;
  cursor: grabbing;
}

.match-target {
  min-height: 48px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 14px;
  color: var(--text-muted);
}

.match-target.drag-over {
  border-color: #8b5cf6;
  background: #f3e8ff;
}

.match-target.filled {
  border-style: solid;
  border-color: #8b5cf6;
  background: #f3e8ff;
  color: var(--text);
}

.match-target.correct {
  border-color: var(--success);
  background: var(--success-light);
}

.match-target.incorrect {
  border-color: var(--danger);
  background: var(--danger-light);
}

/* Screenshot walkthrough / hotspot */
.screenshot-container {
  position: relative;
  margin: 16px 0;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 2px solid var(--border);
}

.screenshot-container img {
  width: 100%;
  display: block;
}

.screenshot-placeholder {
  background: linear-gradient(135deg, #e8ebef 0%, #d5d8dc 100%);
  padding: 60px 40px;
  text-align: center;
  color: var(--text-light);
  font-style: italic;
}

.hotspot {
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--tanium-red);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 2px 8px rgba(226,35,26,0.4);
  animation: pulse 2s infinite;
}

.hotspot:hover {
  transform: scale(1.2);
}

.hotspot-tooltip {
  position: absolute;
  background: var(--primary);
  color: white;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  max-width: 250px;
  z-index: 10;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  display: none;
}

.hotspot-tooltip.show {
  display: block;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(226,35,26,0.6); }
  70% { box-shadow: 0 0 0 12px rgba(226,35,26,0); }
  100% { box-shadow: 0 0 0 0 rgba(226,35,26,0); }
}

/* Progress checkpoint / gate */
.checkpoint {
  background: linear-gradient(135deg, var(--success-light) 0%, #d5f5e3 100%);
  border: 2px solid var(--success);
  border-radius: var(--radius);
  padding: 24px;
  margin: 24px 0;
  text-align: center;
}

.checkpoint h3 {
  color: var(--success);
  margin-bottom: 8px;
}

.checkpoint .badge-earned {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--success);
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 14px;
  margin-top: 12px;
}

/* Lesson navigation */
.lesson-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 2px solid var(--border);
}

.lesson-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

.lesson-nav-btn:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
}

.lesson-nav-btn.secondary {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
}

.lesson-nav-btn.secondary:hover {
  background: var(--primary);
  color: white;
}

/* ===== MOBILE RESPONSIVE ===== */
.mobile-header {
  display: none;
  background: var(--sidebar-bg);
  color: white;
  padding: 14px 20px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99;
  align-items: center;
  justify-content: space-between;
}

.mobile-header h1 {
  font-size: 16px;
}

.hamburger {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 4px;
}

.sidebar-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99;
}

@media (max-width: 768px) {
  .mobile-header {
    display: flex;
  }

  .sidebar {
    transform: translateX(-100%);
    z-index: 200;
  }

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

  .sidebar-overlay.show {
    display: block;
  }

  .main-content {
    margin-left: 0;
    padding: 80px 16px 32px;
  }

  .hero h1 { font-size: 24px; }
  .hero .badge-row { flex-wrap: wrap; }

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

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

  .lesson-nav {
    flex-direction: column;
    gap: 12px;
  }
}

/* ===== ATTEMPTS PAGE ===== */
.attempts-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 16px;
}

.attempts-table th,
.attempts-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.attempts-table th {
  background: var(--bg);
  font-weight: 700;
  color: var(--primary);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.attempts-table .pass { color: var(--success); font-weight: 700; }
.attempts-table .fail { color: var(--danger); font-weight: 700; }

/* ===== TABBED LESSONS ===== */
.lesson-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  margin-bottom: 24px;
  background: var(--card-bg);
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.lesson-tab {
  flex: 1;
  padding: 14px 20px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 3px solid transparent;
  background: var(--bg);
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.lesson-tab:hover {
  color: var(--text);
  background: #e8ebef;
}

.lesson-tab.active {
  color: var(--primary);
  background: var(--card-bg);
  border-bottom-color: var(--tanium-red);
}

.lesson-tab .tab-icon {
  font-size: 16px;
}

.tab-panel {
  display: none;
  animation: fadeIn 0.3s ease;
}

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

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

@media (max-width: 768px) {
  .lesson-tabs { flex-wrap: wrap; }
  .lesson-tab { flex: 1 1 50%; font-size: 13px; padding: 12px 10px; }
}

/* ===== SIMULATED UI MOCKUP ===== */
.sim-ui {
  background: #1a1a2e;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 20px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  font-family: 'Segoe UI', -apple-system, sans-serif;
}

.sim-ui-titlebar {
  background: #16213e;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #2a2a4a;
}

.sim-ui-dots {
  display: flex;
  gap: 6px;
}

.sim-ui-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.sim-ui-dot.red { background: #ff5f57; }
.sim-ui-dot.yellow { background: #febc2e; }
.sim-ui-dot.green { background: #28c840; }

.sim-ui-title {
  font-size: 12px;
  color: #8892b0;
  flex: 1;
  text-align: center;
}

.sim-ui-body {
  padding: 20px;
  color: #ccd6f6;
  font-size: 13px;
}

.sim-ui-nav {
  display: flex;
  gap: 0;
  background: #0f1629;
  border-bottom: 1px solid #2a2a4a;
}

.sim-ui-nav-item {
  padding: 10px 18px;
  color: #8892b0;
  font-size: 12px;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  cursor: default;
}

.sim-ui-nav-item.active {
  color: #64ffda;
  border-bottom-color: #64ffda;
}

/* Simulated table inside UI */
.sim-table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
}

.sim-table th {
  background: #16213e;
  color: #8892b0;
  padding: 8px 12px;
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #2a2a4a;
}

.sim-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 13px;
}

.sim-table tr:hover {
  background: rgba(100,255,218,0.03);
}

.sim-status {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
}

.sim-status.good { background: rgba(39,174,96,0.2); color: #27ae60; }
.sim-status.warn { background: rgba(243,156,18,0.2); color: #f39c12; }
.sim-status.bad { background: rgba(231,76,60,0.2); color: #e74c3c; }
.sim-status.info { background: rgba(52,152,219,0.2); color: #3498db; }

/* Simulated metric cards inside UI */
.sim-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 12px 0;
}

.sim-metric-card {
  background: #16213e;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  border: 1px solid #2a2a4a;
}

.sim-metric-value {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 4px;
}

.sim-metric-value.good { color: #27ae60; }
.sim-metric-value.warn { color: #f39c12; }
.sim-metric-value.bad { color: #e74c3c; }

.sim-metric-label {
  font-size: 11px;
  color: #8892b0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Simulated bar chart inside UI */
.sim-bar-chart {
  margin: 16px 0;
}

.sim-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.sim-bar-label {
  width: 100px;
  font-size: 12px;
  color: #8892b0;
  text-align: right;
  flex-shrink: 0;
}

.sim-bar-track {
  flex: 1;
  height: 20px;
  background: #16213e;
  border-radius: 4px;
  overflow: hidden;
}

.sim-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1.5s ease;
}

.sim-bar-fill.good { background: linear-gradient(90deg, #27ae60, #2ecc71); }
.sim-bar-fill.warn { background: linear-gradient(90deg, #f39c12, #f1c40f); }
.sim-bar-fill.bad { background: linear-gradient(90deg, #e74c3c, #c0392b); }
.sim-bar-fill.info { background: linear-gradient(90deg, #3498db, #2980b9); }

.sim-bar-value {
  width: 45px;
  font-size: 12px;
  color: #ccd6f6;
  font-weight: 600;
}

/* ===== ANIMATED GAUGES ===== */
.gauge-row {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 20px 0;
}

.gauge {
  text-align: center;
  width: 140px;
}

.gauge svg {
  width: 120px;
  height: 120px;
  transform: rotate(-90deg);
}

.gauge-bg {
  fill: none;
  stroke: var(--bg);
  stroke-width: 10;
}

.gauge-fill {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  transition: stroke-dashoffset 1.5s ease;
}

.gauge-fill.good { stroke: var(--success); }
.gauge-fill.warn { stroke: var(--warning); }
.gauge-fill.bad { stroke: var(--danger); }
.gauge-fill.info { stroke: var(--info); }

.gauge-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
  margin-top: -70px;
  position: relative;
}

.gauge-label {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== SVG DIAGRAMS ===== */
.diagram-container {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px;
  margin: 20px 0;
  text-align: center;
  box-shadow: var(--shadow);
  overflow-x: auto;
}

.diagram-container h4 {
  color: var(--primary);
  margin-bottom: 16px;
  font-size: 15px;
}

.diagram-container svg {
  max-width: 100%;
  height: auto;
}

/* SVG text styles */
.diagram-container svg text {
  font-family: 'Segoe UI', sans-serif;
}

/* ===== ICON STAT BLOCKS ===== */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 20px 0;
}

.stat-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--info);
  transition: var(--transition);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.stat-card.red { border-top-color: var(--tanium-red); }
.stat-card.green { border-top-color: var(--success); }
.stat-card.orange { border-top-color: var(--warning); }
.stat-card.blue { border-top-color: var(--info); }
.stat-card.purple { border-top-color: #8b5cf6; }

.stat-card .stat-icon {
  font-size: 28px;
  margin-bottom: 8px;
}

.stat-card .stat-number {
  font-size: 28px;
  font-weight: 700;
  color: var(--primary);
}

.stat-card .stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

/* ===== STEP-BY-STEP WORKFLOW ===== */
.workflow-steps {
  position: relative;
  margin: 24px 0;
  padding-left: 40px;
}

.workflow-steps::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--tanium-red), var(--info), var(--success));
  border-radius: 2px;
}

.workflow-step {
  position: relative;
  margin-bottom: 20px;
  padding: 16px 20px;
  background: var(--card-bg);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  border-left: 3px solid var(--info);
}

.workflow-step::before {
  content: attr(data-step);
  position: absolute;
  left: -42px;
  top: 16px;
  width: 28px;
  height: 28px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.workflow-step h4 {
  color: var(--primary);
  margin-bottom: 6px;
  font-size: 15px;
}

.workflow-step p {
  font-size: 14px;
  color: var(--text-light);
  margin: 0;
}

/* ===== COMPARISON TABLE ===== */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 14px;
}

.comparison-table th {
  background: var(--primary);
  color: white;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
}

.comparison-table td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
}

.comparison-table tr:nth-child(even) {
  background: var(--bg);
}

.comparison-table .check { color: var(--success); font-weight: 700; }
.comparison-table .cross { color: var(--danger); font-weight: 700; }

/* ===== ANIMATED COUNTER ===== */
.counter-row {
  display: flex;
  justify-content: center;
  gap: 40px;
  margin: 24px 0;
  flex-wrap: wrap;
}

.counter-item {
  text-align: center;
}

.counter-value {
  font-size: 48px;
  font-weight: 700;
  color: var(--primary);
  font-variant-numeric: tabular-nums;
}

.counter-value.red { color: var(--tanium-red); }
.counter-value.green { color: var(--success); }
.counter-value.blue { color: var(--info); }

.counter-label {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* ===== UTILITY ===== */
.text-center { text-align: center; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.hidden { display: none !important; }

/* Smooth scrolling */
html { scroll-behavior: smooth; }

/* Print styles for certificate */
@media print {
  .sidebar, .mobile-header, .lesson-nav, .sidebar-overlay { display: none !important; }
  .main-content { margin-left: 0; padding: 0; }
  .no-print { display: none !important; }
}
