/* ==========================================================================
   Design Tokens — AMS Integration Tracker
   Refined palette: softer, professional tones with good contrast.
   Color-blind safe: always pair color with a second visual channel.
   ========================================================================== */

:root {
  /* --- Brand --- */
  --color-brand:       #0F4C81;   /* Deep blue — Globant-inspired */
  --color-brand-light: #E8F0FE;

  /* --- Severity Colors (more distinct, especially High vs Medium) --- */
  --color-severity-critical: #DC3545;   /* Bright red */
  --color-severity-high:     #E67E22;   /* Distinct orange */
  --color-severity-medium:   #3498DB;   /* Blue (was goldenrod — too close to orange) */
  --color-severity-low:      #6C757D;   /* Gray-blue */

  /* --- Status Colors (softer tones) --- */
  --color-status-not-started: #95A5A6;  /* Cool gray */
  --color-status-in-progress: #2E86C1;  /* Calm blue */
  --color-status-completed:   #27AE60;  /* Fresh green */
  --color-status-blocked:     #C0392B;  /* Muted red */
  --color-status-rejected:    #8E44AD;  /* Soft purple */

  /* --- Semantic Tokens --- */
  --color-primary:   #0F4C81;
  --color-secondary: #5D6D7E;
  --color-success:   #27AE60;
  --color-warning:   #D4740A;
  --color-error:     #C0392B;

  /* --- Background & Surface --- */
  --color-bg-primary:   #FAFBFC;
  --color-bg-secondary: #F0F2F5;
  --color-bg-surface:   #FFFFFF;
  --color-bg-hover:     #E8F0FE;

  /* --- Text --- */
  --color-text-primary:   #1A1A2E;
  --color-text-secondary: #5D6D7E;
  --color-text-disabled:  #AEB6BF;
  --color-text-inverse:   #FFFFFF;

  /* --- Borders --- */
  --color-border:       #D5DBDB;
  --color-border-focus: #0F4C81;

  /* --- Typographic Scale (5 levels) --- */
  --font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --font-size-h1:   1.75rem;   /* 28px */
  --font-size-h2:   1.375rem;  /* 22px */
  --font-size-h3:   1.125rem;  /* 18px */
  --font-size-h4:   0.9375rem; /* 15px */
  --font-size-body: 0.8125rem; /* 13px */
  --font-size-small: 0.6875rem;/* 11px */

  --font-weight-regular: 400;
  --font-weight-medium:  500;
  --font-weight-bold:    600;

  --line-height-tight:  1.3;
  --line-height-normal: 1.5;

  /* --- Spacing (8px base unit) --- */
  --space-1:  0.25rem;  /*  4px */
  --space-2:  0.5rem;   /*  8px */
  --space-3:  0.75rem;  /* 12px */
  --space-4:  1rem;     /* 16px */
  --space-5:  1.5rem;   /* 24px */
  --space-6:  2rem;     /* 32px */
  --space-8:  3rem;     /* 48px */
  --space-10: 4rem;     /* 64px */

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

  /* --- Shadows (subtle) --- */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.1);

  /* --- Transitions (max 300ms) --- */
  --transition-fast:   150ms ease;
  --transition-normal: 200ms ease;
  --transition-slow:   300ms ease;

  /* --- Z-Index Scale --- */
  --z-dropdown: 100;
  --z-tooltip:  200;
  --z-modal:    300;
  --z-toast:    400;
}
