/* ============================================================
   Scriptica — Design Tokens
   Single source of truth. No hardcoded values elsewhere.
   ============================================================ */

:root {
  /* --- Colors — Surfaces --- */
  --color-surface-1: #ECECF6;
  --color-surface-2: #F5F5FD;
  --color-surface-white: #FFFFFF;

  /* --- Colors — Interactive & Typography --- */
  --color-default: #B4AEC4;
  --color-default-highlight: #47386A;
  --color-content: #000000;
  --color-important: #FFBF14;
  --color-important-highlight: #FFDF89;

  /* --- Colors — Semantic --- */
  --color-critical: #FF3C80;
  --color-pending: #F9A956;
  --color-success: #38BA31;

  /* --- Colors — Derived / Supporting --- */
  --color-text-primary: #1A1433;
  --color-text-secondary: #4B4560;
  --color-text-muted: #918D9C;
  --color-border: #D4CFDA;
  --color-border-strong: #B4AEC4;

  /* Chat bubble tints */
  --color-chat-left: #F7F7F7;
  --color-chat-right: #F4F0FF;

  /* Button hover states */
  --color-important-hover: #E5A800;
  --color-purple-hover: #3C2F59;

  /* --- Typography --- */
  --font-family-base: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --font-size-headline-1: 36px;
  --font-size-headline-2: 24px;
  --font-size-subtitle: 18px;
  --font-size-headline-3: 16px;
  --font-size-body: 14px;
  --font-size-small: 12px;
  --font-size-tiny: 10px;

  --font-weight-regular: 400;
  --font-weight-bold: 700;
  --font-weight-black: 900;

  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;

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

  /* --- Radius --- */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* --- Shadows --- */
  --shadow-sm: 0 1px 2px rgba(39, 35, 67, 0.06);
  --shadow-md: 0 4px 12px rgba(39, 35, 67, 0.08);
  --shadow-lg: 0 12px 32px rgba(39, 35, 67, 0.12);

  /* --- Z-index scale --- */
  --z-base: 1;
  --z-sticky: 100;
  --z-dropdown: 200;
  --z-modal: 300;
  --z-toast: 400;

  /* --- Transitions --- */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;

  /* --- Layout dimensions --- */
  --sidebar-width-expanded: 225px;
  --sidebar-width-collapsed: 72px;
  --header-height: 64px;
  --messaging-panel-width: 340px;
}
