/* ModelSight Premium Styling Sheet - VoltC Style (Improved UI/UX) */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;700&display=swap');

:root {
  --bg-main: #06070a;
  --bg-card: rgba(18, 22, 33, 0.75);
  --bg-darker: #090a0f;
  --border-color: rgba(255, 255, 255, 0.06);
  --border-glow: rgba(129, 140, 248, 0.25);
  
  /* Text Colors */
  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --text-muted: #4b5563;

  /* Theme Accents */
  --accent-primary: #818cf8; /* Indigo */
  --accent-secondary: #f43f5e; /* Rose / Coral */
  --accent-gradient: linear-gradient(135deg, #818cf8 0%, #f43f5e 100%);
  
  --success: #10b981; /* Emerald */
  --warning: #f59e0b; /* Amber */
  --danger: #ef4444; /* Rose */
  
  --card-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  --glass-blur: blur(20px);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.25);
}

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Background Grid Decor */
.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: -1;
  pointer-events: none;
  mask-image: radial-gradient(circle, black 35%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle, black 35%, transparent 80%);
}

.grid-overlay::before {
  content: "";
  position: absolute;
  top: -10%;
  right: -10%;
  width: 50%;
  height: 50%;
  background: radial-gradient(circle, rgba(129, 140, 248, 0.08) 0%, transparent 70%);
  filter: blur(80px);
}

.grid-overlay::after {
  content: "";
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 50%;
  height: 50%;
  background: radial-gradient(circle, rgba(244, 63, 94, 0.05) 0%, transparent 70%);
  filter: blur(80px);
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  background: rgba(6, 7, 10, 0.8);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition-smooth);
}

.navbar-container {
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-primary);
  transition: width 0.25s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.btn-nav-download {
  background: var(--accent-gradient);
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--bg-main);
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(129, 140, 248, 0.2);
  transition: var(--transition-smooth);
}

.btn-nav-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(129, 140, 248, 0.35);
}

/* Sections */
.section-padding {
  padding: 100px 0;
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  text-align: center;
  max-width: 650px;
  margin: 0 auto 50px auto;
}

.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Hero Section */
.hero {
  padding-top: 170px;
  padding-bottom: 90px;
  text-align: center;
}

.hero h1 {
  font-size: 3.6rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0 auto 40px auto;
}

.hero-ctas {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.btn-primary {
  background: var(--accent-gradient);
  color: var(--bg-main);
  box-shadow: 0 4px 25px rgba(129, 140, 248, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(129, 140, 248, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
}

/* VS Code Extension Simulator Frame */
.simulator-showcase {
  background: linear-gradient(180deg, var(--bg-main) 0%, var(--bg-darker) 100%);
  padding-bottom: 120px;
}

.vscode-frame {
  background: #0d0e15;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  height: 680px;
  margin-top: 20px;
}

/* VS Code Header */
.vscode-header {
  height: 40px;
  background: #08090d;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid var(--border-color);
  user-select: none;
}

.window-controls {
  display: flex;
  gap: 8px;
}

.control-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.control-dot.close { background: #ff5f56; }
.control-dot.minimize { background: #ffbd2e; }
.control-dot.maximize { background: #27c93f; }

.tab-title {
  background: #0d0e15;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 16px;
  font-size: 0.78rem;
  gap: 8px;
  color: var(--text-primary);
  border-right: 1px solid var(--border-color);
}

.tab-close {
  cursor: pointer;
  opacity: 0.5;
}

.vscode-actions {
  display: flex;
  gap: 8px;
}

.btn-sim-control {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 5px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.btn-sim-control:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-sim-control.success {
  background: rgba(16, 185, 129, 0.12);
  color: var(--success);
  border-color: rgba(16, 185, 129, 0.25);
}

.btn-sim-control.success:hover {
  background: rgba(16, 185, 129, 0.22);
}

.btn-sim-control.danger {
  background: rgba(239, 68, 110, 0.12);
  color: var(--danger);
  border-color: rgba(239, 68, 110, 0.25);
}

.btn-sim-control.danger:hover {
  background: rgba(239, 68, 110, 0.22);
}

/* Body Wrapper */
.vscode-body-wrapper {
  display: flex;
  flex: 1;
  overflow: hidden;
  height: calc(100% - 62px); /* Header + Footer */
}

/* Activitybar */
.vscode-activitybar {
  width: 50px;
  background: #08090d;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px 0;
  align-items: center;
  user-select: none;
}

.activity-top, .activity-bottom {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.activity-item {
  color: var(--text-muted);
  font-size: 1.15rem;
  cursor: pointer;
  transition: var(--transition-smooth);
  width: 50px;
  text-align: center;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 2px solid transparent;
}

.activity-item:hover, .activity-item.active {
  color: var(--text-primary);
}

.activity-item.active {
  border-left-color: var(--accent-primary);
  color: var(--accent-primary);
}

/* VS Code Body */
.vscode-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #0a0b10;
  overflow: hidden;
  position: relative;
}

/* Split Pane Workspace Layout */
.split-workspace {
  display: flex;
  flex: 1;
  height: calc(100% - 110px); /* Leave room for bottom terminal console */
  overflow: hidden;
  position: relative;
}

/* VS Code Sidebar Explorer */
.vscode-sidebar {
  width: 190px;
  background: #08090c;
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  font-size: 0.75rem;
  user-select: none;
  flex-shrink: 0;
}

.sidebar-header {
  padding: 10px 14px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
}

.sidebar-section {
  padding: 8px 0;
}

.section-title {
  padding: 4px 14px;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  text-transform: uppercase;
}

.file-tree {
  list-style: none;
  margin-top: 4px;
}

.file-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: background 0.15s, color 0.15s;
}

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

.file-item.active {
  background: rgba(129, 140, 248, 0.08);
  color: var(--accent-primary);
  border-left: 2px solid var(--accent-primary);
  padding-left: 16px;
  font-weight: 600;
}

.file-icon-python {
  color: #38bdf8 !important;
}

.file-icon-config {
  color: var(--text-muted) !important;
}

/* Center-Left: Monaco Code Editor Pane */
.editor-pane {
  flex: 4;
  display: flex;
  flex-direction: column;
  background: #090a0f;
  border-right: 1px solid var(--border-color);
  min-width: 150px;
  overflow: hidden;
}

.pane-header {
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  background: #06070a;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.7rem;
  color: var(--text-secondary);
  user-select: none;
}

.editor-size {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.editor-container {
  flex: 1;
  display: flex;
  overflow: auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.5;
}

.line-numbers {
  padding: 12px 6px;
  border-right: 1px solid rgba(255, 255, 255, 0.03);
  text-align: right;
  color: var(--text-muted);
  user-select: none;
  min-width: 32px;
  font-size: 0.7rem;
  background: rgba(0,0,0,0.1);
}

.line-numbers div {
  height: 18.75px;
}

.code-pre {
  flex: 1;
  padding: 12px 14px;
  margin: 0;
  color: #c084fc; /* Python code styling */
  overflow: auto;
  white-space: pre;
  tab-size: 4;
}

/* Resizable Pane Divider */
.pane-divider {
  width: 4px;
  background: rgba(255, 255, 255, 0.02);
  cursor: col-resize;
  z-index: 10;
  transition: background 0.15s;
}

.pane-divider:hover {
  background: var(--accent-primary);
}

/* Right Area: Visualizer Pane */
.visualizer-pane {
  flex: 6;
  display: flex;
  flex-direction: column;
  background: #0a0b10;
  min-width: 250px;
  overflow: hidden;
}

/* Tuning Parameters Card Formatting */
.params-card {
  margin-top: 14px;
  margin-bottom: 14px;
}

.params-card h3 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.params-inputs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

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

.param-input-group label {
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
}

.param-input-group select {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 0.72rem;
  outline: none;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.param-input-group select:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

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

/* Adjustments for existing panels */

/* Control Header Bar */
.dashboard-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 18px;
  background: #0d0e15;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.78rem;
  user-select: none;
}

.brand-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.dot-active {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-muted);
}
.dot-active.pulsing {
  background: var(--success);
  box-shadow: 0 0 10px var(--success);
  animation: pulse 1.8s infinite;
}

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

.status-badge {
  background: rgba(129, 140, 248, 0.08);
  color: var(--accent-primary);
  border: 1px solid rgba(129, 140, 248, 0.15);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
}

.active-script-label {
  color: var(--text-secondary);
}

.active-script-label code {
  color: var(--accent-secondary);
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.03);
  padding: 2px 6px;
  border-radius: 3px;
  margin-left: 4px;
}

/* Dashboard Tabs */
.dashboard-tabs {
  display: flex;
  background: #08090d;
  border-bottom: 1px solid var(--border-color);
  padding: 0 10px;
  user-select: none;
}

.dashboard-tabs .tab-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  padding: 10px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 2px solid transparent;
  transition: var(--transition-smooth);
}

.dashboard-tabs .tab-btn:hover {
  color: var(--text-primary);
}

.dashboard-tabs .tab-btn.active {
  color: var(--text-primary);
  border-bottom-color: var(--accent-primary);
}

/* Viewport & Panes */
.dashboard-viewport {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
}

.tab-pane {
  display: none;
}

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

/* Telemetry Dashboard Grid */
.dashboard-split-layout {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 14px;
}

/* Metrics Cards Grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 14px;
}

.metric-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 85px;
}

.metric-card .label {
  font-size: 0.72rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.metric-card .value {
  font-size: 1.3rem;
  font-family: var(--font-mono);
  font-weight: 700;
}

.metric-card .footer {
  font-size: 0.65rem;
  color: var(--text-muted);
}

.metric-card .card-progress {
  margin-top: 6px;
}

.progress-bar-bg {
  background: rgba(255, 255, 255, 0.05);
  height: 4px;
  border-radius: 2px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: var(--accent-primary);
  transition: width 0.3s ease;
}

.progress-bar-fill.success {
  background: var(--success);
}

.gpu-details {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: var(--text-secondary);
}

/* Progress Banner */
.progress-banner {
  margin-bottom: 14px;
  padding: 12px 16px !important;
}

.progress-label-group {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  margin-bottom: 6px;
}

.progress-details {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Chart Card */
.chart-card {
  padding: 16px;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.chart-header h3 {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.chart-toggle-buttons {
  display: flex;
  gap: 6px;
}

.chart-toggle {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 0.7rem;
  cursor: pointer;
}

.chart-toggle.active {
  background: var(--accent-primary);
  color: var(--bg-main);
  border-color: var(--accent-primary);
  font-weight: 700;
}

.chart-viewport {
  position: relative;
  height: 220px;
}

#live-chart {
  display: block;
}

/* General Dark Cards */
.card {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.card.bg-darker {
  background: #07080c;
}

/* Explainer Sandbox Card */
.error-explainer-card {
  padding: 16px;
}

.error-explainer-card h3 {
  font-size: 0.85rem;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.explainer-input-area {
  display: none;
}

.explainer-input-area.active {
  display: block;
}

.explainer-diagnostic-area {
  display: none;
  animation: fadeIn 0.4s ease-out;
}

.explainer-diagnostic-area.active, .explainer-diagnostic-area.active-flex {
  display: block;
}

.error-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.18);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
}

.warning-triangle {
  font-size: 1.15rem;
  margin-top: -2px;
}

.error-banner h4 {
  font-size: 0.85rem;
  color: #ff859c;
  font-weight: 700;
}

.err-raw-line {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-secondary);
  word-break: break-all;
  margin-top: 2px;
}

.diagnostic-block {
  margin-bottom: 12px;
}

.diagnostic-block h5 {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}

.diagnostic-block p {
  font-size: 0.76rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.checklist {
  list-style: none;
  font-size: 0.76rem;
  color: var(--text-secondary);
}

.checklist li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 6px;
  line-height: 1.4;
}

.checklist li::before {
  content: "✔";
  color: var(--success);
  position: absolute;
  left: 0;
  top: 0;
  font-weight: bold;
}

/* History Card & Timeline */
.history-header, .history-scroll {
  font-size: 0.75rem;
}

.history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.history-header h4 {
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.btn-clear-history {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
}
.btn-clear-history:hover {
  color: var(--text-primary);
}

.history-scroll, .timeline-scroll {
  max-height: 110px;
  overflow-y: auto;
}

.history-list {
  list-style: none;
}

.history-item {
  display: flex;
  justify-content: space-between;
  padding: 5px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
}

.history-item span.success { color: var(--success); }
.history-item span.danger { color: var(--danger); }

.history-empty, .timeline-empty {
  color: var(--text-muted);
  text-align: center;
  padding: 10px 0;
  font-size: 0.72rem;
}

.timeline {
  list-style: none;
  padding-left: 8px;
  border-left: 1px solid var(--border-color);
  margin-left: 4px;
}

.timeline-item {
  position: relative;
  padding-bottom: 8px;
  font-size: 0.7rem;
  color: var(--text-secondary);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -12px;
  top: 4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-primary);
}

/* Tab 2: Dataset Profile Layout */
.dataset-profile-layout h2 {
  font-size: 1.1rem;
}

.dataset-profile-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dataset-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 16px;
}

.dataset-split h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

th, td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

th {
  color: var(--text-secondary);
  font-weight: 600;
  background: rgba(0, 0, 0, 0.2);
}

tr:hover td {
  background: rgba(255, 255, 255, 0.01);
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: 6px;
}

/* Bottom Raw Log Console Panel */
.console-panel {
  background: #07080b;
  border-top: 1px solid var(--border-color);
  height: 110px;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.console-panel.collapsed {
  height: 30px;
}

.console-header {
  height: 30px;
  background: #050608;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  user-select: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
}

.console-toggle-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.68rem;
}
.console-toggle-btn:hover {
  color: var(--text-primary);
}

.console-body {
  flex: 1;
  padding: 10px 16px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #a8aab3;
  line-height: 1.35;
}

/* VS Code Footer */
.vscode-footer {
  height: 22px;
  background: var(--accent-primary);
  color: var(--bg-main);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  font-size: 0.7rem;
  font-weight: 600;
  user-select: none;
}

.footer-left, .footer-right {
  display: flex;
  gap: 12px;
}

.status-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.status-item.bg-indigo {
  background: rgba(0, 0, 0, 0.15);
  padding: 0 8px;
  height: 22px;
}

/* Features Cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition-smooth);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: 0 10px 30px rgba(129, 140, 248, 0.05);
}

.feature-card .icon {
  font-size: 2.2rem;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Diagnostics Showcase Section */
.diagnostics-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.diag-card {
  padding: 28px !important;
}

.diag-card h4 {
  font-size: 1.05rem;
  color: var(--accent-primary);
  margin-bottom: 12px;
  font-weight: 800;
}

.diag-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Installation Marketplace Card */
.install-card {
  max-width: 580px;
  margin: 0 auto;
  background: #08090d;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.install-header {
  background: #050608;
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-color);
}

.install-body {
  padding: 18px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.install-body code {
  color: var(--accent-secondary);
}

.btn-copy-command {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  padding: 6px 14px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.btn-copy-command:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Site Footer */
.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.site-footer a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 600;
}
.site-footer a:hover {
  color: var(--text-primary);
}

/* Animations & Utilities */
@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.75; }
  100% { transform: scale(1); opacity: 1; }
}

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

.hidden {
  display: none !important;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .dashboard-split-layout {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .diagnostics-showcase-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  .hero p {
    font-size: 1rem;
  }
  .nav-links {
    display: none; /* simple mobile hide */
  }
  .vscode-frame {
    height: auto;
  }
  .vscode-activitybar {
    display: none;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
}
