/* ============================================
   Wolf HR - Shared Design Tokens
   Single source of truth for all pages
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* -- Brand Colors -- */
  --brand-primary: #1f5fa6;
  --brand-primary-hover: #173f73;
  --brand-primary-light: #e8f1fb;
  --brand-primary-subtle: #f3f8fd;
  --brand-primary-border: #d0ddf0;
  --brand-accent: #2c7a69;
  --brand-gold: #b9892c;

  /* -- Semantic Colors -- */
  --color-success: #2e7d32;
  --color-success-light: #edf8ee;
  --color-success-border: #c9e7ce;
  --color-danger: #c62828;
  --color-danger-light: #fff1f1;
  --color-danger-border: #f0cccc;
  --color-warning: #d97706;
  --color-warning-light: #fff6e7;
  --color-warning-border: #fde68a;

  /* -- Neutral Palette -- */
  --neutral-bg: #f3f6fb;
  --neutral-bg-alt: #edf2f8;
  --neutral-surface: #ffffff;
  --neutral-surface-2: #fbfdff;
  --neutral-surface-3: #f1f5fa;
  --neutral-surface-tint: #eef4fb;
  --neutral-border: #dde6f0;
  --neutral-border-hover: #cbd5e1;
  --neutral-border-strong: #94a3b8;

  /* -- Text -- */
  --text-primary: #102033;
  --text-secondary: #475569;
  --text-muted: #66778f;
  --text-muted-strong: #4b5e77;
  --text-placeholder: #94a3b8;
  --text-on-primary: #ffffff;

  /* -- Ink (legacy alias) -- */
  --ink: #13263f;
  --ink-muted: #7a8599;
  --ink-strong: #607089;

  /* -- Typography -- */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-ui: var(--font-sans);
  --font-brand: 'Outfit', 'Inter', sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Fira Mono', monospace;

  /* -- Font Sizes -- */
  --text-xs: 11px;
  --text-sm: 13px;
  --text-base: 14px;
  --text-lg: 17px;
  --text-xl: 22px;
  --text-2xl: 26px;
  --text-3xl: 32px;

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

  /* -- Spacing (4px grid) -- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 32px;
  --space-8: 40px;
  --space-9: 48px;

  /* -- Border Radius -- */
  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  --radius-2xl: 28px;
  --radius-full: 9999px;

  /* -- Shadows -- */
  --shadow-xs: 0 1px 2px rgba(17, 34, 68, 0.03);
  --shadow-sm: 0 10px 24px rgba(17, 34, 68, 0.06);
  --shadow-md: 0 16px 36px rgba(19, 34, 56, 0.07);
  --shadow-lg: 0 22px 48px rgba(19, 34, 56, 0.12);
  --shadow-xl: 0 30px 60px rgba(19, 34, 56, 0.16);

  /* -- Transitions -- */
  --transition-fast: 0.12s ease;
  --transition-base: 0.2s ease;
  --transition-slow: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* -- Z-Index Scale -- */
  --z-base: 1;
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-overlay: 400;
  --z-modal: 500;
  --z-toast: 2500;
  --z-loader: 9999;

  /* -- Backward-compatible aliases (page CSS can override) -- */
  --primary: var(--brand-primary);
  --primary-strong: var(--brand-primary-hover);
  --primary-hover: var(--brand-primary-hover);
  --primary-light: var(--brand-primary-light);
  --primary-soft: var(--brand-primary-subtle);
  --primary-border: var(--brand-primary-border);
  --success: var(--color-success);
  --success-soft: var(--color-success-light);
  --success-border: var(--color-success-border);
  --danger: var(--color-danger);
  --danger-soft: var(--color-danger-light);
  --danger-border: var(--color-danger-border);
  --warning: var(--color-warning);
  --warning-soft: var(--color-warning-light);
  --warning-border: var(--color-warning-border);
  --bg: var(--neutral-bg);
  --surface: var(--neutral-surface);
  --surface-tint: var(--neutral-surface-tint);
  --border: var(--neutral-border);
  --border-light: #e5ebf3;
  --border-mid: #d0d7e3;
  --text: var(--text-primary);
  --muted: var(--text-muted);
  --accent: var(--brand-accent);
  --accent-soft: #e7f3ef;
  --gold: var(--brand-gold);
  --gold-soft: #f7efe0;
  --shadow: var(--shadow-md);
  --shadow-strong: var(--shadow-lg);
}
