/* ==========================================================================
   Design Tokens — SOLLO Trading Terminal
   HSL-based semantic design tokens for a dark trading terminal UI.
   Brand hue: 174 (teal)
   ========================================================================== */

:root {
  /* ---------------------------------------------------------------------------
     Brand
     --------------------------------------------------------------------------- */
  --brand-hue: 174;
  --brand-saturation: 55%;
  --brand-lightness: 56%;

  /* ---------------------------------------------------------------------------
     Backgrounds
     --------------------------------------------------------------------------- */
  --bg-base:      #0a0a0a;
  --bg-surface:   #0f0f0f;
  --bg-elevated:  #1a1a1a;
  --bg-overlay:   #2a2a2a;

  /* ---------------------------------------------------------------------------
     Accent
     --------------------------------------------------------------------------- */
  --accent:           hsl(174, 55%, 56%);
  --accent-hover:     hsl(174, 55%, 64%);
  --accent-active:    hsl(174, 55%, 48%);
  --accent-muted:     hsl(174, 30%, 20%);
  --accent-subtle:    hsl(174, 40%, 14%);
  --accent-rgb:       72, 199, 186; /* for rgba() usage */

  /* ---------------------------------------------------------------------------
     Status Colors
     --------------------------------------------------------------------------- */
  --color-success:        hsl(142, 60%, 50%);
  --color-success-bg:     hsl(142, 40%, 12%);
  --color-success-border: hsl(142, 40%, 24%);

  --color-error:          hsl(0, 72%, 56%);
  --color-error-bg:       hsl(0, 40%, 12%);
  --color-error-border:   hsl(0, 40%, 24%);

  --color-warning:        hsl(32, 85%, 56%);
  --color-warning-bg:     hsl(32, 40%, 12%);
  --color-warning-border: hsl(32, 40%, 24%);

  --color-info:           hsl(210, 70%, 56%);
  --color-info-bg:        hsl(210, 40%, 12%);
  --color-info-border:    hsl(210, 40%, 24%);

  --color-sell:           hsl(270, 60%, 60%);
  --color-sell-bg:        hsl(270, 30%, 14%);
  --color-sell-border:    hsl(270, 30%, 26%);

  /* ---------------------------------------------------------------------------
     Text
     --------------------------------------------------------------------------- */
  --text-primary:   hsl(0, 0%, 100%);
  --text-secondary: hsl(0, 0%, 53%);
  --text-muted:     hsl(0, 0%, 40%);
  --text-disabled:  hsl(0, 0%, 28%);
  --text-inverse:   hsl(0, 0%, 8%);

  /* ---------------------------------------------------------------------------
     Borders
     --------------------------------------------------------------------------- */
  --border-default: #333333;
  --border-muted:   #222222;
  --border-accent:  var(--accent);
  --border-focus:   var(--accent);

  /* ---------------------------------------------------------------------------
     Typography — Font Families
     --------------------------------------------------------------------------- */
  --font-ui: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
             Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'SF Mono', 'Cascadia Code',
               'Consolas', 'Liberation Mono', monospace;

  /* ---------------------------------------------------------------------------
     Typography — Font Sizes
     --------------------------------------------------------------------------- */
  --text-xs:   0.6875rem;  /* 11px */
  --text-sm:   0.75rem;    /* 12px */
  --text-base: 0.8125rem;  /* 13px */
  --text-md:   0.875rem;   /* 14px */
  --text-lg:   1rem;       /* 16px */
  --text-xl:   1.25rem;    /* 20px */
  --text-2xl:  1.5rem;     /* 24px */

  /* ---------------------------------------------------------------------------
     Typography — Font Weights
     --------------------------------------------------------------------------- */
  --weight-normal:   400;
  --weight-medium:   500;
  --weight-semibold: 600;
  --weight-bold:     700;

  /* ---------------------------------------------------------------------------
     Typography — Line Heights
     --------------------------------------------------------------------------- */
  --leading-tight:  1.2;
  --leading-normal: 1.5;
  --leading-loose:  1.75;

  /* ---------------------------------------------------------------------------
     Spacing — 4px grid
     --------------------------------------------------------------------------- */
  --space-0:  0;
  --space-1:  0.25rem;   /* 4px */
  --space-2:  0.5rem;    /* 8px */
  --space-3:  0.75rem;   /* 12px */
  --space-4:  1rem;      /* 16px */
  --space-5:  1.25rem;   /* 20px */
  --space-6:  1.5rem;    /* 24px */
  --space-7:  1.75rem;   /* 28px */
  --space-8:  2rem;      /* 32px */
  --space-9:  2.5rem;    /* 40px */
  --space-10: 3rem;      /* 48px */

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

  /* ---------------------------------------------------------------------------
     Shadows
     --------------------------------------------------------------------------- */
  --shadow-sm:    0 1px 2px  rgba(0, 0, 0, 0.3);
  --shadow-md:    0 2px 8px  rgba(0, 0, 0, 0.4);
  --shadow-lg:    0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-xl:    0 8px 32px rgba(0, 0, 0, 0.6);
  --shadow-glow:  0 0 12px rgba(var(--accent-rgb), 0.25);
  --shadow-inset: inset 0 1px 3px rgba(0, 0, 0, 0.4);

  /* ---------------------------------------------------------------------------
     Transitions
     --------------------------------------------------------------------------- */
  --duration-fast:    100ms;
  --duration-normal:  200ms;
  --duration-slow:    300ms;
  --ease-default:     cubic-bezier(0.4, 0, 0.2, 1);
  --ease-in:          cubic-bezier(0.4, 0, 1, 1);
  --ease-out:         cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out:      cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce:      cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-fast:  var(--duration-fast) var(--ease-default);
  --transition-base:  var(--duration-normal) var(--ease-default);
  --transition-slow:  var(--duration-slow) var(--ease-default);

  /* ---------------------------------------------------------------------------
     Z-Index Scale
     --------------------------------------------------------------------------- */
  --z-base:      1;
  --z-dropdown:  100;
  --z-sticky:    200;
  --z-sidebar:   300;
  --z-overlay:   400;
  --z-modal:     500;
  --z-toast:     600;
  --z-tooltip:   700;

  /* ---------------------------------------------------------------------------
     Layout Dimensions
     --------------------------------------------------------------------------- */
  --header-height:    56px;
  --sidebar-width:    280px;
  --sidebar-collapsed: 0px;
  --content-max-width: 1800px;
  --activity-width:    340px;
  --footer-height:     50px;
}
