/* Force10 Design System - Unified CSS Variables
   Consolidated from auth.html, admin.html, and index.html
   Resolves naming inconsistencies across pages */

:root {
  /* ===== PRIMARY BRAND COLORS (Turning Point) ===== */
  --tp-primary: #2b62ab;          /* Primary blue — 5.6:1 on white */
  --tp-primary-dark: #163a66;     /* Navy — 9.5:1 on white */
  --tp-primary-darker: #0f2847;   /* Deep navy — 13.4:1 on white */
  --tp-accent: #51a1d8;           /* Light blue accent — 2.8:1 on white (use only for large text/decorative) */
  --tp-gold: #d4a843;             /* Gold accent — 2.3:1 on white (decorative only) */

  /* ===== SEMANTIC STATUS COLORS ===== */
  --color-success: #2f855a;       /* Success green — 5.1:1 on white */
  --color-success-light: #f0fdf4; /* Success background */
  --color-success-border: #bbf7d0;
  --color-warning: #92400e;       /* Warning brown — 7.3:1 on white */
  --color-warning-light: #fef3c7; /* Warning background */
  --color-warning-border: #fde68a;
  --color-error: #c53030;         /* Error red — 5.6:1 on white */
  --color-error-light: #fef2f2;   /* Error background */
  --color-error-border: #fecaca;
  --color-info: #2a4365;          /* Info blue — 9.2:1 on white */
  --color-info-light: #ebf8ff;    /* Info background */
  --color-info-border: #bee3f8;

  /* Legacy status aliases (preserve backward compat) */
  --tp-green: #38a169;            /* 4.5:1 on white — AA pass for large text */
  --tp-red: #e53e3e;              /* 4.0:1 on white — AA large text only */

  /* ===== GRAYSCALE ===== */
  --g50: #f9fafb;
  --g100: #f3f4f6;
  --g150: #e8eaed;
  --g200: #e5e7eb;
  --g300: #d1d5db;
  --g400: #9ca3af;                /* 2.7:1 on white — decorative/icons only */
  --g500: #6b7280;                /* 4.6:1 on white — AA pass */
  --g600: #4b5563;                /* 7.0:1 on white — AA pass */
  --g700: #374151;                /* 9.8:1 on white — AA pass */
  --g800: #1f2937;                /* 13.5:1 on white — AA pass */

  /* ===== SPACING SCALE (4px base) ===== */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-2xl: 32px;
  --space-3xl: 48px;
  --space-4xl: 64px;

  /* ===== TYPOGRAPHY ===== */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-size-xs: 0.6875rem;     /* 11px */
  --font-size-sm: 0.8125rem;     /* 13px */
  --font-size-base: 0.875rem;    /* 14px */
  --font-size-md: 0.9375rem;     /* 15px */
  --font-size-lg: 1rem;          /* 16px */
  --font-size-xl: 1.25rem;       /* 20px */
  --font-size-2xl: 1.375rem;     /* 22px */
  --font-size-3xl: 1.75rem;      /* 28px */

  /* ===== BORDER RADIUS ===== */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* ===== SHADOWS ===== */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.07);
  --shadow-lg: 0 10px 25px rgba(0,0,0,0.1);
  --shadow-xl: 0 25px 50px rgba(0,0,0,0.15);

  /* ===== TRANSITIONS ===== */
  --transition-fast: 150ms ease;
  --transition-normal: 300ms ease;
  --transition-slow: 500ms ease;

  /* ===== FOCUS RING (Accessibility) ===== */
  --focus-ring: 0 0 0 3px rgba(43, 98, 171, 0.35);
  --focus-ring-offset: 0 0 0 2px white, 0 0 0 4px var(--tp-primary);

  /* ===== Z-INDEX SCALE ===== */
  --z-dropdown: 50;
  --z-sticky: 100;
  --z-overlay: 200;
  --z-modal: 300;
  --z-toast: 1100;

  /* ===== LAYOUT ===== */
  --max-width: 1400px;
  --sidebar-width: 280px;
  --admin-sidebar-width: 240px;
  --header-height: 64px;

  /* ===== Legacy variable aliases (used by app.html inline styles and section templates) ===== */
  --tp-navy: #163a66;
  --tp-blue: #2b62ab;
  --tp-light-blue: #51a1d8;
  --tp-gray-50: #f8f9fb;
  --tp-gray-100: #eef1f6;
  --tp-gray-200: #e0e4eb;
  --tp-gray-300: #c7cdd6;
  --tp-gray-400: #9aa3b0;
  --tp-gray-500: #6b7685;
  --tp-gray-600: #4a5568;
  --tp-gray-700: #2d3748;
  --tp-gray-800: #1a202c;
}

/* ===== DARK MODE PREPARATION ===== */
@media (prefers-color-scheme: dark) {
  :root {
    /* These overrides are prepared but commented out until dark mode is explicitly enabled.
       Uncomment the block below when ready to ship dark mode. */
  }

  /* Uncomment to enable dark mode:
  :root {
    --g50: #111827;
    --g100: #1f2937;
    --g150: #283548;
    --g200: #374151;
    --g300: #4b5563;
    --g400: #6b7280;
    --g500: #9ca3af;
    --g600: #d1d5db;
    --g700: #e5e7eb;
    --g800: #f9fafb;

    --color-success-light: #052e16;
    --color-warning-light: #451a03;
    --color-error-light: #450a0a;
    --color-info-light: #1e3a5a;

    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow: 0 1px 3px rgba(0,0,0,0.4);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.4);
    --shadow-lg: 0 10px 25px rgba(0,0,0,0.5);

    --focus-ring: 0 0 0 3px rgba(81, 161, 216, 0.5);
  }
  */
}
