/* ============================================
   FundVault — Design Tokens
   Inspired by Tickertape.in's design system
   ============================================ */

:root {
  /* ── Page backgrounds ── */
  --bg-page: #f3f5fa;
  --bg-white: #ffffff;
  --bg-dark: #141d29;
  --bg-dark-secondary: #1d2938;
  --bg-hover-light: #f5f7fb;
  --bg-hover-dark: #373f48;
  --bg-selected-light: rgba(37, 99, 235, 0.06);
  --bg-light-grey: #f7f9fc;
  --bg-dark-grey: #eef2f8;

  /* ── Brand & text colors ── */
  --text-brand: #151e28;
  --text-primary: #2f363f;
  --text-secondary: #535b62;
  --text-tertiary: #81878c;
  --text-disabled: #bdc3cb;
  --text-white: #ffffff;
  --text-link: #2563eb;

  /* ── Semantic colors ── */
  --color-up: #12a150;
  --color-up-dark: #0f7a3d;
  --color-up-light: rgba(18, 161, 80, 0.12);
  --color-up-bg: #e9fbf1;
  --color-down: #e23a4e;
  --color-down-light: rgba(226, 58, 78, 0.12);
  --color-down-bg: #fdeef0;
  --color-warning: #fbe283;
  --color-warning-dark: #8a6f05;
  --color-pro: #6d5bff;
  --color-pro-light: #f0efff;
  --color-blue: #2563eb;
  --color-blue-light: #eaf1ff;

  /* ── MMI Gauge colors ── */
  --mmi-ext-fear: #12be57;
  --mmi-fear: #ff9923;
  --mmi-greed: #f57011;
  --mmi-ext-greed: #e23d3d;

  /* ── Chart palette ── */
  --chart-1: #4f8ff0;
  --chart-2: #5ad3e0;
  --chart-3: #fa6d92;
  --chart-4: #f9b72f;
  --chart-5: #8398af;
  --chart-6: #fee666;
  --chart-7: #6d5bff;
  --chart-8: #12a150;

  /* ── Risk meter colors ── */
  --risk-low: #19af55;
  --risk-low-mod: #7bc67e;
  --risk-moderate: #f9b72f;
  --risk-mod-high: #ff9923;
  --risk-high: #f57011;
  --risk-very-high: #d82f44;

  /* ── Borders ── */
  --border-light: #e7ebf2;
  --border-default: #d6dce6;
  --border-dark: #373f48;

  /* ── Shadows (soft, cool-tinted) ── */
  --shadow-flat: 0 1px 2px 0 rgba(28, 39, 58, 0.06);
  --shadow-raised: 0 4px 16px -2px rgba(28, 39, 58, 0.10);
  --shadow-overlay: 0 6px 16px 0 rgba(28, 39, 58, 0.09);
  --shadow-nav: 0 8px 18px 0 rgba(28, 39, 58, 0.10);
  --shadow-popup: 0 14px 32px -4px rgba(28, 39, 58, 0.14);

  /* ── Border Radius ── */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-2xl: 16px;
  --radius-full: 9999px;

  /* ── Spacing ── */
  --sp-1: 2px;
  --sp-2: 4px;
  --sp-3: 8px;
  --sp-4: 12px;
  --sp-5: 16px;
  --sp-6: 24px;
  --sp-7: 32px;
  --sp-8: 40px;
  --sp-9: 48px;

  /* extra left indent applied to the brand logo AND (on dashboard/calc/portfolio)
     the page content, so they share the same left edge */
  --brand-indent: var(--sp-6);
  --sp-10: 64px;
  --sp-11: 80px;
  --sp-12: 96px;

  /* ── Typography ── */
  --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;

  --fs-10: 10px;
  --fs-11: 11px;
  --fs-12: 12px;
  --fs-13: 13px;
  --fs-14: 14px;
  --fs-15: 15px;
  --fs-16: 16px;
  --fs-18: 18px;
  --fs-20: 20px;
  --fs-24: 24px;
  --fs-28: 28px;
  --fs-32: 32px;
  --fs-34: 34px;
  --fs-40: 40px;
  --fs-48: 48px;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;

  --lh-tight: 1.1;
  --lh-snug: 1.2;
  --lh-normal: 1.4;
  --lh-relaxed: 1.57;

  --ls-tight: -0.02em;
  --ls-tighter: -0.05em;
  --ls-normal: 0em;

  /* ── Transitions ── */
  --transition-fast: 0.15s ease-out;
  --transition-normal: 0.3s ease-out;
  --transition-slow: 0.5s ease-out;
  --transition-spring: 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);

  /* ── Z-index stack ── */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-header: 300;
  --z-overlay: 400;
  --z-modal: 500;
  --z-toast: 600;
  --z-tooltip: 700;

  /* ── Layout ── */
  --header-height: 64px;
  --ticker-height: 36px;
  --nav-height: 56px;
  --sidebar-width: 240px;
  --sidebar-collapsed: 64px;
  --content-max-width: 1280px;
}
