/**
 * @license
 * SPDX-License-Identifier: Apache-2.0
 */

/* Import standard design-system typography */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Montserrat:wght@500;600;700;800&family=Roboto:wght@400;500;600;700&display=swap');

:root,
[data-theme-mode="dark"],
html[data-theme-mode="dark"],
body[data-theme-mode="dark"] {
  /* Color Palette - Coal Dark (Default) */
  --bg: #181a20;
  --surface: #1e2026;
  --surface-variant: #2b2f36;
  --border: #2b2f36;
  --text-main: #eaecef;
  --text-muted: #848e9c;

  /* Financial & Brand Accents */
  --primary: #f0b90b;
  --primary-hover: #fcd535;
  --primary-rgb: 240, 185, 11;
  --up: #0ecb81;
  --up-rgb: 14, 203, 129;
  --dn: #f6465d;
  --dn-rgb: 246, 70, 93;
  --down: #f6465d;
  --down-rgb: 246, 70, 93;
  --warn: #f0b90b;

  /* Geometry & Corner Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  /* Typography */
  --font-ui: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Montserrat', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Motion & Transitions */
  --transition-fast: all 0.15s ease;
  --transition-standard: all 0.2s ease;
  --transition-theme: background-color 0.3s ease, border-color 0.3s ease, color 0.2s ease;
}

:root[data-theme-mode="light"],
html[data-theme-mode="light"],
body[data-theme-mode="light"],
[data-theme-mode="light"] {
  /* Color Palette - Clean Light Institutional */
  --bg: #f5f5f5;
  --surface: #ffffff;
  --surface-variant: #f2f4f7;
  --border: #d0d5dd;
  --text-main: #181a20;
  --text-muted: #667085;

  /* Financial & Brand Accents */
  --primary: #f0b90b;
  --primary-hover: #d9a300;
  --primary-rgb: 240, 185, 11;
  --up: #0ecb81;
  --up-rgb: 14, 203, 129;
  --dn: #f6465d;
  --dn-rgb: 246, 70, 93;
  --down: #f6465d;
  --down-rgb: 246, 70, 93;
  --warn: #e0a800;

  /* Geometry & Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  /* Typography */
  --font-ui: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Montserrat', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* Global resets conforming to Design Tokens */
body {
  background-color: var(--bg);
  color: var(--text-main);
  font-family: var(--font-ui);
  margin: 0;
  padding: 0;
  transition: var(--transition-theme);
  -webkit-font-smoothing: antialiased;
}

/* Financial typography helper classes */
.font-display {
  font-family: var(--font-display);
}

.font-mono-numbers {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* Financial color utility classes */
.color-up {
  color: var(--up);
}

.color-dn {
  color: var(--dn);
}

.bg-up-muted {
  background-color: rgba(var(--up-rgb), 0.12);
}

.bg-dn-muted {
  background-color: rgba(var(--dn-rgb), 0.12);
}
