/* ===================================
   Republic Financial - CSS Variables & Theme System
   Modern Financial Dashboard Design
   =================================== */

:root {
  /* ===================================
     Brand Colors - Republic Financial
     =================================== */
  --brand-primary: #4A90E2; /* Matching the blue from logo */
  --brand-secondary: #5BA3F5;
  --brand-accent: #357ABD;
  --brand-dark: #2E5F8A;
  
  /* ===================================
     Light Theme Colors
     =================================== */
  --color-scheme: light;
  
  /* Background Colors */
  --bg-primary: #FFFFFF;
  --bg-secondary: #F8FAFB;
  --bg-tertiary: #F1F4F8;
  --bg-card: #FFFFFF;
  --bg-hover: #F5F7FA;
  --bg-selected: #E8F0FE;
  
  /* Text Colors */
  --text-primary: #000000;
  --text-secondary: #000000;
  --text-muted: #000000;
  --text-disabled: #000000;
  --text-inverse: #FFFFFF;
  
  /* Border Colors */
  --border-primary: #E2E8F0;
  --border-secondary: #CBD5E0;
  --border-focus: var(--brand-primary);
  
  /* Status Colors */
  --color-success: #10B981;
  --color-warning: #F59E0B;
  --color-danger: #EF4444;
  --color-info: #3B82F6;
  
  /* Fund Type Colors */
  --fund-oef: #6366F1; /* Indigo */
  --fund-cef: #F59E0B; /* Amber */
  --fund-etf: #10B981; /* Emerald */
  --fund-tiaa: #8B5CF6; /* Violet */
  --fund-ucits: #14B8A6; /* Teal */
  --fund-solutions: #EC4899; /* Pink */
  --fund-sma: #84CC16; /* Lime */
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --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);
  
  /* Overlays */
  --overlay-bg: transparent;
  --overlay-light: rgba(255, 255, 255, 0.1);
  --overlay-dark: rgba(0, 0, 0, 0.1);
  
  /* Chart Colors */
  --chart-1: #4A90E2;
  --chart-2: #10B981;
  --chart-3: #F59E0B;
  --chart-4: #8B5CF6;
  --chart-5: #EC4899;
  --chart-6: #14B8A6;
}

/* ===================================
   Dark Theme Colors
   =================================== */
[data-theme="dark"] {
  --color-scheme: dark;
  
  /* Background Colors */
  --bg-primary: #0F172A;
  --bg-secondary: #1E293B;
  --bg-tertiary: #334155;
  --bg-card: #1E293B;
  --bg-hover: #334155;
  --bg-selected: #1E3A5F;
  
  /* Text Colors */
  --text-primary: #F1F5F9;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --text-disabled: #64748B;
  --text-inverse: #0F172A;
  
  /* Border Colors */
  --border-primary: #334155;
  --border-secondary: #475569;
  --border-focus: var(--brand-secondary);
  
  /* Adjusted Brand Colors for Dark Mode */
  --brand-primary: #5BA3F5;
  --brand-secondary: #6BB0FF;
  --brand-accent: #4A90E2;
  
  /* Adjusted Status Colors for Dark Mode */
  --color-success: #34D399;
  --color-warning: #FBBF24;
  --color-danger: #F87171;
  --color-info: #3B82F6;
  
  /* Adjusted Fund Type Colors for Dark Mode */
  --fund-oef: #818CF8;
  --fund-cef: #FCD34D;
  --fund-etf: #34D399;
  --fund-tiaa: #A78BFA;
  --fund-ucits: #2DD4BF;
  --fund-solutions: #F472B6;
  --fund-sma: #BEF264;
  
  /* Shadows for Dark Mode */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.4);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 10px 10px -5px rgba(0, 0, 0, 0.5);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.7);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.3);
  
  /* Overlays */
  --overlay-bg: transparent;
  --overlay-light: rgba(255, 255, 255, 0.05);
  --overlay-dark: rgba(0, 0, 0, 0.2);
  
  /* Chart Colors for Dark Mode */
  --chart-1: #3B82F6;
  --chart-2: #34D399;
  --chart-3: #FBBF24;
  --chart-4: #A78BFA;
  --chart-5: #F472B6;
  --chart-6: #2DD4BF;
}

/* ===================================
   Typography Variables
   =================================== */
:root {
  /* Font Families */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Poppins', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Monaco', 'Consolas', 'Liberation Mono', 'Courier New', monospace;
  
  /* Font Sizes */
  --text-xs: 0.75rem;     /* 12px */
  --text-sm: 0.875rem;    /* 14px */
  --text-base: 1rem;      /* 16px */
  --text-lg: 1.125rem;    /* 18px */
  --text-xl: 1.25rem;     /* 20px */
  --text-2xl: 1.5rem;     /* 24px */
  --text-3xl: 1.875rem;   /* 30px */
  --text-4xl: 2.25rem;    /* 36px */
  --text-5xl: 3rem;       /* 48px */
  
  /* Font Weights */
  --font-light: 300;
  --font-normal: 400;
  --font-medium: 500;
  --font-semibold: 600;
  --font-bold: 700;
  --font-extrabold: 800;
  
  /* Line Heights */
  --leading-none: 1;
  --leading-tight: 1.25;
  --leading-snug: 1.375;
  --leading-normal: 1.5;
  --leading-relaxed: 1.625;
  --leading-loose: 2;
}

/* ===================================
   Spacing & Layout Variables
   =================================== */
:root {
  /* Spacing Scale (8px base) */
  --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 */
  --space-24: 6rem;     /* 96px */
  
  /* Border Radius */
  --radius-none: 0;
  --radius-sm: 0.25rem;    /* 4px */
  --radius-md: 0.5rem;     /* 8px */
  --radius-lg: 0.75rem;    /* 12px */
  --radius-xl: 1rem;       /* 16px */
  --radius-2xl: 1.5rem;    /* 24px */
  --radius-full: 9999px;
  
  /* Container */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1536px;
  
  /* Z-Index Scale */
  --z-0: 0;
  --z-10: 10;
  --z-20: 20;
  --z-30: 30;
  --z-40: 40;
  --z-50: 50;
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

/* ===================================
   Animation Variables
   =================================== */
:root {
  /* Transitions */
  --transition-none: none;
  --transition-all: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-colors: background-color 0.3s, border-color 0.3s, color 0.3s, fill 0.3s, stroke 0.3s;
  --transition-opacity: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-shadow: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-transform: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Animation Durations */
  --duration-75: 75ms;
  --duration-100: 100ms;
  --duration-150: 150ms;
  --duration-200: 200ms;
  --duration-300: 300ms;
  --duration-500: 500ms;
  --duration-700: 700ms;
  --duration-1000: 1000ms;
  
  /* Animation Timing Functions */
  --ease-linear: linear;
  --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);
}