/* ============================================================
   PaperTrade — tokens.css
   Design tokens (dark theme only). CSS logical properties are
   used everywhere so an RTL locale can be added later.
   ============================================================ */

:root {
  color-scheme: dark;

  /* Surfaces */
  --bg: #0B0E14;
  --panel: #131824;
  --raised: #1B2230;
  --border: #263042;
  --border-strong: #33405A;

  /* Text */
  --text: #E6EAF2;
  --muted: #8A94A8;

  /* Brand */
  --brand: #7C8CFF;
  --brand-text: #0B0E14;
  --brand-soft: color-mix(in srgb, var(--brand) 15%, transparent);

  /* Directional colors (long / short, profit / loss) */
  --long: #2EBD85;
  --long-text: #04130C;
  --short: #FF5C75;            /* short / loss text color */
  --short-solid: #C9304A;      /* solid short buttons */
  --short-solid-text: #FFFFFF;
  --pro: #F2B84B;              /* Pro gold */

  /* Aliases used by charts and utilities */
  --up: var(--long);
  --down: var(--short);

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --text-display: 700 32px/1.2 var(--font-sans);
  --text-heading: 600 22px/1.3 var(--font-sans);
  --text-body: 400 14px/1.55 var(--font-sans);
  --text-caption: 400 12px/1.45 var(--font-sans);

  /* Spacing — 4px grid */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 999px;

  /* Controls */
  --control-h: 44px;
  --control-h-sm: 32px;
  --topbar-h: 56px;
  --sidebar-w: 232px;

  /* Elevation */
  --shadow-1: 0 1px 2px rgb(0 0 0 / 0.35);
  --shadow-2: 0 8px 24px rgb(0 0 0 / 0.45);
  --shadow-3: 0 16px 48px rgb(0 0 0 / 0.55);

  /* Z-index scale */
  --z-sticky: 100;
  --z-dropdown: 300;
  --z-drawer: 400;
  --z-modal: 500;
  --z-toast: 600;
  --z-dev: 700;

  /* Motion */
  --speed: 140ms;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}
