@import url('./brand-theme.css');

:root[data-theme] {
  --accent-primary: var(--brand-blue);
  --brand-gradient: linear-gradient(135deg, var(--brand-blue), var(--brand-mid) 50%, var(--brand-green));
  --brand-gradient-hover: linear-gradient(135deg, #2448bd, #37739e 50%, #47ac60);
  --border-focus: var(--brand-accent);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg-primary: #f8fbff;
  --bg-secondary: #ffffff;
  --surface: #ffffff;
  --surface-solid: #ffffff;
  --surface-card: #ffffff;
  --surface-card-hover: #f8fbff;
  --surface-alt: #f1f5fb;
  --surface-input: #ffffff;
  --border: rgba(50,95,244,.16);
  --border-subtle: rgba(50,95,244,.09);
  --border-hover: rgba(50,95,244,.4);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-dim: #64748b;
  --text-inverse: #ffffff;
  --accent-blue: #325ff4;
  --accent-cyan: #257a9c;
  --accent-emerald: #238346;
  --accent-rose: #be123c;
  --accent-purple: #7c3aed;
  --shadow-sm: 0 2px 8px #1931680a;
  --shadow-md: 0 8px 24px #19316812;
  --shadow-lg: 0 16px 40px #1931681a;
  --shadow-card: 0 20px 45px -10px #19316814;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg-primary: #0a101e;
  --bg-secondary: #101a2b;
  --surface: #111c2e;
  --surface-solid: #111c2e;
  --surface-card: #162237;
  --surface-card-hover: #1b2c43;
  --surface-alt: #ffffff08;
  --surface-input: #0e1829;
  --border: #ffffff1c;
  --border-subtle: #ffffff12;
  --border-hover: #7598fb80;
  --text-primary: #f1f5fb;
  --text-secondary: #b0bfd4;
  --text-muted: #94a3b8;
  --text-dim: #94a3b8;
  --text-inverse: #0a101e;
  --accent-blue: #8aabff;
  --accent-cyan: #67d2ed;
  --accent-emerald: #7cdb96;
  --accent-rose: #fda4af;
  --accent-purple: #c4b5fd;
  --shadow-sm: 0 2px 8px #0004;
  --shadow-md: 0 8px 24px #0005;
  --shadow-lg: 0 16px 40px #0006;
  --shadow-card: 0 20px 45px -10px #0006;
}
body { font-family: var(--brand-font); }
h1,h2,h3,h4,h5,h6 { font-family: var(--brand-heading-font); }
[data-theme-toggle] {
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px;
  background: var(--surface-input); color: var(--text-primary);
  border: 1px solid var(--border); cursor: pointer;
}
[data-theme-toggle]:hover { border-color: var(--accent-blue); }
[data-theme-toggle]:focus-visible { outline: 2px solid var(--accent-blue); outline-offset: 3px; }
[data-theme="dark"] .metric-val {
  background: none;
  -webkit-text-fill-color: var(--text-primary);
  color: var(--text-primary);
}
@media (max-width: 480px) {
  .top-nav .command-badge { display: none; }
  .top-nav-right { gap: 8px; }
}
