/* NASIRUDIN TRADING JURNAL — DESIGN TOKENS */
:root {
  /* Default: Terminal Dark */
  --bg-root: #0a0b0e;
  --bg-surface: #12141a;
  --bg-panel: #181b22;
  --bg-panel-hover: #20242e;
  --bg-input: #0f1117;
  
  --border-subtle: #242933;
  --border-medium: #323947;
  --border-focus: #f59e0b;

  --text-main: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-inverted: #0a0b0e;

  --accent: #f59e0b;
  --accent-hover: #d97706;
  --accent-subtle: rgba(245, 158, 11, 0.12);

  --profit: #10b981;
  --profit-subtle: rgba(16, 185, 129, 0.12);
  --loss: #ef4444;
  --loss-subtle: rgba(239, 68, 68, 0.12);
  --info: #38bdf8;
  --info-subtle: rgba(56, 189, 248, 0.12);
  --warning: #f59e0b;

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Fira Code", Menlo, Monaco, Consolas, monospace;

  /* Density: Standard default */
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --touch-target: 44px;

  --shadow-panel: 0 4px 16px rgba(0, 0, 0, 0.4);
}

/* Light Professional Theme */
[data-theme="light-pro"] {
  --bg-root: #f8fafc;
  --bg-surface: #ffffff;
  --bg-panel: #f1f5f9;
  --bg-panel-hover: #e2e8f0;
  --bg-input: #ffffff;

  --border-subtle: #cbd5e1;
  --border-medium: #94a3b8;
  --border-focus: #d97706;

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #94a3b8;
  --text-inverted: #ffffff;

  --accent: #d97706;
  --accent-hover: #b45309;
  --accent-subtle: rgba(217, 119, 6, 0.12);

  --profit: #059669;
  --profit-subtle: rgba(5, 150, 105, 0.12);
  --loss: #dc2626;
  --loss-subtle: rgba(220, 38, 38, 0.12);
  --info: #0284c7;
  --info-subtle: rgba(2, 132, 199, 0.12);
  --warning: #d97706;

  --shadow-panel: 0 4px 16px rgba(15, 23, 42, 0.08);
}

/* Density overrides */
[data-density="comfort"] {
  --space-xs: 10px;
  --space-sm: 16px;
  --space-md: 20px;
  --space-lg: 28px;
}

[data-density="dense"] {
  --space-xs: 6px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 18px;
  --touch-target: 36px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
