/* ===================================================================
   PORTAL VARIABLES - Design Tokens & CSS Custom Properties
   ===================================================================
   
   This file contains all design tokens used throughout the portal.
   Modify these values to change the overall look and feel.
   
   Contents:
   1. Typography
   2. Colors
   3. Layout
   4. Spacing
   5. Border Radius
   6. Shadows
   7. Transitions
   8. Z-Index
   
   =================================================================== */

:root {
  /* =================================================================
     1. TYPOGRAPHY
     ================================================================= */
   color-scheme: light;
  /* Font Families */
  --font-primary: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-secondary: 'DM Sans', sans-serif;
  
  /* Font Sizes - Fluid Typography using clamp() */
  --text-xs: clamp(0.7rem, 0.65rem + 0.25vw, 0.75rem);       /* 11-12px */
  --text-sm: clamp(0.8rem, 0.75rem + 0.25vw, 0.875rem);      /* 13-14px */
  --text-base: clamp(0.9rem, 0.85rem + 0.25vw, 1rem);        /* 14-16px */
  --text-lg: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);        /* 16-18px */
  --text-xl: clamp(1.1rem, 1rem + 0.5vw, 1.25rem);           /* 18-20px */
  --text-2xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);       /* 20-24px */
  --text-3xl: clamp(1.5rem, 1.25rem + 1vw, 2rem);            /* 24-32px */
  --text-4xl: clamp(1.75rem, 1.5rem + 1.25vw, 2.5rem);       /* 28-40px */
  
  /* Font Weights */
  --fw-normal: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;
  
  /* Line Heights */
  --leading-tight: 1.2;
  --leading-normal: 1.5;
  --leading-relaxed: 1.6;
  
  /* =================================================================
     FOOTER-COMPATIBLE TYPOGRAPHY VARIABLES
     These match the naming convention used in footer.css
     ================================================================= */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --line-height-base: 1.6;
  --line-height-tight: 1.2;
  
  /* =================================================================
     2. COLORS
     ================================================================= */
  
  /* Primary Brand Colors */
  --color-primary: #010080;
  --color-primary-light: #1414a0;
  --color-primary-dark: #000060;
  --color-primary-50: rgba(1, 0, 128, 0.05);
  --color-primary-100: rgba(1, 0, 128, 0.1);
  --color-primary-200: rgba(1, 0, 128, 0.2);
  
  /* Accent Colors */
  --color-accent: #ffcc00;
  --color-accent-light: #ffd700;
  --color-accent-dark: #e6b800;
  
  /* Neutral Colors - Light Mode */
  --color-white: #ffffff;
  --color-gray-50: #f8fafc;
  --color-gray-100: #f1f5f9;
  --color-gray-200: #e2e8f0;
  --color-gray-300: #cbd5e1;
  --color-gray-400: #94a3b8;
  --color-gray-500: #64748b;
  --color-gray-600: #475569;
  --color-gray-700: #334155;
  --color-gray-800: #1e293b;
  --color-gray-900: #0f172a;
  
  /* Semantic Colors - Status */
  --color-success: #10b981;
  --color-success-light: #d1fae5;
  --color-success-dark: #059669;
  
  --color-warning: #f59e0b;
  --color-warning-light: #fef3c7;
  --color-warning-dark: #d97706;
  
  --color-danger: #ef4444;
  --color-danger-light: #fee2e2;
  --color-danger-dark: #dc2626;
  
  --color-info: #3b82f6;
  --color-info-light: #dbeafe;
  --color-info-dark: #2563eb;
  
  /* =================================================================
     FOOTER-COMPATIBLE COLOR VARIABLES
     These match the naming convention used in footer.css
     ================================================================= */
  --primary-color: #010080;
  --primary-color-hover: #1414a0;
  --primary-color-dark: #000060;
  --light-color: #ffffff;
  --dark-color: #0f172a;
  --text-color: #334155;
  --text-muted: #64748b;
  
  /* =================================================================
     3. LAYOUT
     ================================================================= */
  
  --sidebar-width: 280px;
  --sidebar-width-collapsed: 80px;
  --topbar-height: 72px;
  --topbar-height-mobile: 64px;
  --content-max-width: 1400px;
  
  /* =================================================================
     4. SPACING SCALE
     ================================================================= */
  
  --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-8: 2rem;       /* 32px */
  --space-10: 2.5rem;    /* 40px */
  --space-12: 3rem;      /* 48px */
  --space-16: 4rem;      /* 64px */
  --space-20: 5rem;      /* 80px */
  
  /* =================================================================
     FOOTER-COMPATIBLE SPACING VARIABLES
     These match the naming convention used in footer.css
     ================================================================= */
  --space-xs: 0.25rem;   /* 4px */
  --space-sm: 0.5rem;    /* 8px */
  --space-md: 1rem;      /* 16px */
  --space-lg: 1.5rem;    /* 24px */
  --space-xl: 2rem;      /* 32px */
  --space-2xl: 3rem;     /* 48px */
  --space-3xl: 4rem;     /* 64px */
  
  /* =================================================================
     5. BORDER RADIUS
     ================================================================= */
  
  --radius-none: 0;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-2xl: 24px;
  --radius-full: 9999px;
  
  /* =================================================================
     6. SHADOWS
     ================================================================= */
  
  --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-sm: 0 2px 4px -1px rgba(0, 0, 0, 0.06), 
               0 1px 2px -1px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 
               0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 
               0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 
               0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
  
  /* Colored Shadows */
  --shadow-primary: 0 4px 14px 0 rgba(1, 0, 128, 0.25);
  --shadow-accent: 0 4px 14px 0 rgba(255, 204, 0, 0.3);
  --shadow-success: 0 4px 14px 0 rgba(16, 185, 129, 0.25);
  --shadow-danger: 0 4px 14px 0 rgba(239, 68, 68, 0.25);
  
  /* =================================================================
     7. TRANSITIONS
     ================================================================= */
  
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slower: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Specific Transitions */
  --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.68, -0.55, 0.265, 1.55);
  
  /* =================================================================
     8. Z-INDEX SCALE
     ================================================================= */
  
  --z-base: 0;
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  --z-toast: 1080;
  
  /* =================================================================
     9. MISCELLANEOUS
     ================================================================= */
  
  /* Focus Ring */
  --focus-ring-width: 3px;
  --focus-ring-color: var(--color-primary);
  --focus-ring-offset: 3px;
  
  /* Overlay */
  --overlay-color: rgba(15, 23, 42, 0.7);
  --overlay-blur: 4px;
}