/* ═══════════════════════════════════════════════════════════════
   AXIOM Analytics Platform — style.css
   Theme: Industrial Luxury Dark/Light
   Fonts: Syne (display) + Instrument Sans (body) + DM Mono (data)
   ═══════════════════════════════════════════════════════════════ */

/* ── DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  /* Dark theme (default) */
  --bg-base:       #0d0e11;
  --bg-surface:    #14161b;
  --bg-elevated:   #1c1f27;
  --bg-hover:      #22263000;
  --border:        rgba(255,255,255,0.07);
  --border-strong: rgba(255,255,255,0.14);

  --text-primary:  #f0f0ee;
  --text-secondary:#8b8d96;
  --text-muted:    #555760;

  --accent:        #d4a843;   /* amber gold */
  --accent-dim:    #d4a84322;
  --accent-glow:   #d4a84344;

  --green:  #3ecf8e;
  --red:    #f06464;
  --yellow: #f5c842;
  --blue:   #5b9cf6;

  --sidebar-w: 220px;
  --insights-w: 300px;
  --topbar-h: 64px;
  --radius: 12px;
  --radius-sm: 8px;
  --transition: 0.2s ease;

  --font-display: 'Syne', sans-serif;
  --font-body: 'Instrument Sans', sans-serif;
  --font-mono: 'DM Mono', monospace;

  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
}

[data-theme="light"] {
  --bg-base:       #f5f4f0;
  --bg-surface:    #ffffff;
  --bg-elevated:   #eeede9;
  --border:        rgba(0,0,0,0.08);
  --border-strong: rgba(0,0,0,0.16);

  --text-primary:  #1a1a1a;
  --text-secondary:#5a5a5a;
  --text-muted:    #999;

  --accent:        #b8891e;
  --accent-dim:    #d4a84318;
  --accent-glow:   #d4a84330;

  --shadow: 0 4px 24px rgba(0,0,0,0.1);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.07);
}

/* ── RESET ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; }
body {
  font-family: var(--font-body);
  background: var(--bg-base);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  overflow-x: hidden;
  transition: background var(--transition), color var(--transition);
}
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; width: 18px; height: 18px; flex-shrink: 0; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, select, textarea { font-family: var(--font-mono); }
canvas { display: block; }

/* ── SCROLLBAR ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 99px; }

/* ══════════════════════════════════════════════ SIDEBAR ══ */
.sidebar {
  width: var(--sidebar-w);
  height: 100vh;
  position: fixed;
  top: 0; left: 0;
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform var(--transition), background var(--transition);
}
.sidebar-brand {
  padding: 24px 20px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}
.brand-mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 15px;
  background: var(--accent);
  color: #0d0e11;
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 6px;
  letter-spacing: 1px;
}
.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 3px;
  color: var(--text-primary);
}
.sidebar-nav {
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 500;
  transition: all var(--transition);
  position: relative;
}
.nav-item:hover { background: var(--bg-elevated); color: var(--text-primary); }
.nav-item.active {
  background: var(--accent-dim);
  color: var(--accent);
}
.nav-item.active::before {
  content: '';
  position: absolute;
  left: 0; top: 25%; bottom: 25%;
  width: 3px;
  background: var(--accent);
  border-radius: 0 3px 3px 0;
}
.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.theme-toggle {
  width: 34px; height: 34px;
  border-radius: 8px;
  display: grid; place-items: center;
  color: var(--text-secondary);
  transition: all var(--transition);
}
.theme-toggle:hover { background: var(--bg-elevated); color: var(--text-primary); }
[data-theme="dark"] .icon-moon { display: none; }
[data-theme="light"] .icon-sun { display: none; }
.live-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 1px;
  opacity: 0;
  transition: opacity var(--transition);
}
.live-indicator.active { opacity: 1; color: var(--green); }
.pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
}
.live-indicator.active .pulse {
  animation: pulseAnim 1.5s ease-in-out infinite;
}
@keyframes pulseAnim {
  0%,100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(62,207,142,0.4); }
  50% { opacity: 0.8; transform: scale(1.1); box-shadow: 0 0 0 6px rgba(62,207,142,0); }
}

/* ══════════════════════════════════════════════ MAIN ══ */
.main-content {
  margin-left: var(--sidebar-w);
  margin-right: var(--insights-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: margin var(--transition);
}

/* ── TOPBAR ──────────────────────────────────────────────────── */
.topbar {
  height: var(--topbar-h);
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 50;
  gap: 16px;
}
.topbar-left { display: flex; align-items: center; gap: 14px; }
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.menu-toggle span {
  width: 20px; height: 2px;
  background: var(--text-secondary);
  border-radius: 1px;
  transition: var(--transition);
}
.page-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.5px;
}
.topbar-right { display: flex; align-items: center; gap: 12px; }
.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 12px;
  transition: border var(--transition);
}
.search-bar:focus-within { border-color: var(--accent); }
.search-bar svg { color: var(--text-muted); }
.search-bar input {
  background: none;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 13px;
  width: 180px;
}
.search-bar input::placeholder { color: var(--text-muted); }

/* ── BUTTONS ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-body);
  transition: all var(--transition);
}
.btn-primary { background: var(--accent); color: #0d0e11; }
.btn-primary:hover { filter: brightness(1.1); transform: translateY(-1px); }
.btn-secondary {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-live {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.5px;
}
.btn-live.active { background: rgba(62,207,142,0.15); border-color: var(--green); color: var(--green); }
.btn-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
  transition: background var(--transition);
}
.btn-live.active .btn-dot { background: var(--green); animation: pulseAnim 1.5s ease-in-out infinite; }
.btn-xs {
  padding: 4px 10px;
  font-size: 12px;
  border-radius: 6px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: var(--font-mono);
}
.btn-xs:hover { color: var(--accent); border-color: var(--accent); }
.btn-demo {
  padding: 10px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  transition: all var(--transition);
}
.btn-demo:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }

/* ══════════════════════════════════════════════ VIEWS ══ */
.view { display: none; padding: 24px 28px; flex: 1; }
.view.active { display: block; animation: fadeIn 0.25s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

/* ── FILTER BAR ──────────────────────────────────────────────── */
.filter-bar {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  padding: 16px 20px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.filter-group { display: flex; flex-direction: column; gap: 5px; }
.filter-group label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
}
.filter-group select {
  padding: 7px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text-primary);
  font-size: 13px;
  outline: none;
  cursor: pointer;
  transition: border var(--transition);
  appearance: none;
  padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238b8d96' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.filter-group select:focus { border-color: var(--accent); }

/* ── KPI GRID ──────────────────────────────────────────────── */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.kpi-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}
.kpi-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  opacity: 0;
  transition: opacity var(--transition);
}
.kpi-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.kpi-card:hover::before { opacity: 1; }
.kpi-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--accent-dim);
  display: grid; place-items: center;
  color: var(--accent);
  flex-shrink: 0;
}
.kpi-body { flex: 1; min-width: 0; }
.kpi-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 600;
  margin-bottom: 6px;
}
.kpi-value {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  transition: color 0.3s;
}
.kpi-value.flash { animation: kpiFlash 0.5s ease; }
@keyframes kpiFlash {
  0% { color: var(--accent); transform: scale(1.05); }
  100% { color: var(--text-primary); transform: scale(1); }
}
.kpi-delta {
  font-family: var(--font-mono);
  font-size: 12px;
  margin-top: 6px;
  font-weight: 500;
}
.kpi-delta.up { color: var(--green); }
.kpi-delta.down { color: var(--red); }
.kpi-delta.neutral { color: var(--text-muted); }

/* ── CHARTS GRID ──────────────────────────────────────────────── */
.charts-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
.chart-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  overflow: hidden;
}
.chart-wide { grid-column: 1; }
.chart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 8px;
}
.chart-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
}
.chart-subtitle {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}
.pie-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
}
.legend-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

/* ── EVENT LOG ──────────────────────────────────────────────── */
.event-log-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.event-log {
  max-height: 160px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.log-placeholder { color: var(--text-muted); font-family: var(--font-mono); font-size: 12px; }
.log-entry {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 5px 8px;
  border-radius: 5px;
  animation: slideIn 0.3s ease;
  background: var(--bg-elevated);
}
@keyframes slideIn { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: translateX(0); } }
.log-time { color: var(--text-muted); font-size: 11px; }
.log-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.log-badge.new { background: rgba(62,207,142,0.15); color: var(--green); }
.log-badge.spike { background: rgba(240,100,100,0.15); color: var(--red); }
.log-badge.update { background: rgba(212,168,67,0.15); color: var(--accent); }

/* ══════════════════════════════════════════════ DATA VIEW ══ */
.view-header { margin-bottom: 28px; }
.view-header h2 { font-family: var(--font-display); font-size: 24px; font-weight: 700; margin-bottom: 6px; }
.view-header p { color: var(--text-secondary); font-size: 14px; }

.data-sources-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.source-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.source-card-wide { grid-column: 1 / -1; }
.source-icon { font-size: 28px; }
.source-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.source-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; }
.file-upload-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 24px;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text-muted);
  font-size: 13px;
  text-align: center;
}
.file-upload-area:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.file-upload-area svg { width: 28px; height: 28px; }
.source-card textarea {
  width: 100%;
  height: 100px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px;
  color: var(--text-primary);
  font-size: 12px;
  resize: vertical;
  outline: none;
  transition: border var(--transition);
}
.source-card textarea:focus { border-color: var(--accent); }
.source-status {
  font-family: var(--font-mono);
  font-size: 12px;
  min-height: 20px;
}
.source-status.success { color: var(--green); }
.source-status.error { color: var(--red); }
.demo-buttons { display: flex; gap: 10px; flex-wrap: wrap; }

.table-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.table-scroll { overflow-x: auto; max-height: 300px; overflow-y: auto; }
table { width: 100%; border-collapse: collapse; }
thead { position: sticky; top: 0; }
th {
  padding: 10px 14px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
td {
  padding: 9px 14px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
tr:hover td { background: var(--bg-elevated); color: var(--text-primary); }

/* ══════════════════════════════════════════════ INSIGHTS ══ */
.insights-full-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.insight-card-full {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  border-left: 3px solid;
  transition: transform var(--transition);
}
.insight-card-full:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.insight-card-full.trend { border-left-color: var(--green); }
.insight-card-full.anomaly { border-left-color: var(--red); }
.insight-card-full.warning { border-left-color: var(--yellow); }
.insight-card-full.correlation { border-left-color: var(--blue); }
.insight-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 10px;
}
.trend .insight-type-badge { background: rgba(62,207,142,0.15); color: var(--green); }
.anomaly .insight-type-badge { background: rgba(240,100,100,0.15); color: var(--red); }
.warning .insight-type-badge { background: rgba(245,200,66,0.15); color: var(--yellow); }
.correlation .insight-type-badge { background: rgba(91,156,246,0.15); color: var(--blue); }
.insight-text { font-size: 14px; line-height: 1.6; color: var(--text-primary); }
.insight-meta { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); margin-top: 8px; }
.insights-placeholder { color: var(--text-muted); font-family: var(--font-mono); font-size: 13px; grid-column: 1/-1; padding: 20px; }

/* ══════════════════════════════════════════════ EXPORT ══ */
.export-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.export-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.export-icon { font-size: 32px; }
.export-card h3 { font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.export-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.6; flex: 1; }
.export-preview {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.export-preview pre {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  max-height: 300px;
  overflow-y: auto;
  margin-top: 12px;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-all;
}

/* ══════════════════════════════════════════════ INSIGHTS SIDEBAR ══ */
.insights-sidebar {
  width: var(--insights-w);
  height: 100vh;
  position: fixed;
  top: 0; right: 0;
  background: var(--bg-surface);
  border-left: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  z-index: 100;
  transition: transform var(--transition), background var(--transition);
}
.insights-sidebar-header {
  padding: 20px 18px 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--topbar-h);
}
.insights-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.insights-list {
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-y: auto;
  flex: 1;
}
.insight-item {
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  padding: 12px;
  border-left: 3px solid;
  animation: slideIn 0.3s ease;
}
.insight-item.trend { border-left-color: var(--green); }
.insight-item.anomaly { border-left-color: var(--red); }
.insight-item.warning { border-left-color: var(--yellow); }
.insight-item.correlation { border-left-color: var(--blue); }
.insight-item-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}
.insight-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.trend .insight-dot { background: var(--green); }
.anomaly .insight-dot { background: var(--red); }
.warning .insight-dot { background: var(--yellow); }
.correlation .insight-dot { background: var(--blue); }
.insight-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
}
.insight-body { font-size: 13px; line-height: 1.5; color: var(--text-secondary); }

/* ══════════════════════════════════════════════ RESPONSIVE ══ */
@media (max-width: 1300px) {
  .insights-sidebar { display: none; }
  .main-content { margin-right: 0; }
}
@media (max-width: 1024px) {
  .charts-grid { grid-template-columns: 1fr 1fr; }
  .chart-wide { grid-column: 1 / -1; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .data-sources-grid { grid-template-columns: 1fr 1fr; }
  .source-card-wide { grid-column: 1 / -1; }
  .export-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  :root { --sidebar-w: 220px; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); box-shadow: var(--shadow); }
  .main-content { margin-left: 0; }
  .menu-toggle { display: flex; }
  .charts-grid { grid-template-columns: 1fr; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .export-grid { grid-template-columns: 1fr; }
  .data-sources-grid { grid-template-columns: 1fr; }
  .search-bar input { width: 120px; }
  .topbar { padding: 0 16px; }
  .view { padding: 16px; }
}
@media (max-width: 480px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .filter-bar { flex-direction: column; align-items: stretch; }
}
