/* Dashboard Design System - CSS Variables */
:root {
  /* Color Palette */
  --dashboard-primary: #667eea;
  --dashboard-primary-dark: #764ba2;
  --dashboard-secondary: #764ba2;
  --dashboard-success: #10b981;
  --dashboard-warning: #f59e0b;
  --dashboard-danger: #ef4444;
  --dashboard-info: #3b82f6;
  
  /* Neutral Colors */
  --dashboard-gray-50: #f9fafb;
  --dashboard-gray-100: #f3f4f6;
  --dashboard-gray-200: #e5e7eb;
  --dashboard-gray-300: #d1d5db;
  --dashboard-gray-400: #9ca3af;
  --dashboard-gray-500: #6b7280;
  --dashboard-gray-600: #4b5563;
  --dashboard-gray-700: #374151;
  --dashboard-gray-800: #1f2937;
  --dashboard-gray-900: #111827;
  
  /* Background Colors - Light Theme */
  --dashboard-bg: #f8f9fa;
  --dashboard-card-bg: #ffffff;
  --dashboard-sidebar-bg: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --dashboard-header-bg: #ffffff;
  --dashboard-text-primary: #111827;
  --dashboard-text-secondary: #4b5563;
  --dashboard-border-color: #e5e7eb;
  
  /* Spacing System (8px grid) */
  --spacing-xs: 0.5rem;    /* 8px */
  --spacing-sm: 0.75rem;   /* 12px */
  --spacing-md: 1rem;      /* 16px */
  --spacing-lg: 1.5rem;    /* 24px */
  --spacing-xl: 2rem;      /* 32px */
  --spacing-2xl: 3rem;     /* 48px */
  --spacing-3xl: 4rem;     /* 64px */
  
  /* Typography Scale */
  --font-family-base: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-size-xs: 0.75rem;    /* 12px */
  --font-size-sm: 0.875rem;   /* 14px */
  --font-size-base: 1rem;     /* 16px */
  --font-size-lg: 1.125rem;   /* 18px */
  --font-size-xl: 1.25rem;    /* 20px */
  --font-size-2xl: 1.5rem;    /* 24px */
  --font-size-3xl: 2rem;      /* 32px */
  
  /* Font Weights */
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  
  /* Line Heights */
  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.6;
  
  /* Border Radius */
  --radius-sm: 0.5rem;     /* 8px */
  --radius-md: 0.75rem;    /* 12px */
  --radius-lg: 1rem;       /* 16px */
  --radius-full: 9999px;
  
  /* 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);
  
  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 300ms ease;
  --transition-slow: 500ms ease;
  
  /* Z-index Scale */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

/* Dark Theme */
[data-theme="dark"],
.dark-theme {
  /* Background Colors - Dark Theme */
  --dashboard-bg: #0f172a;
  --dashboard-card-bg: #1e293b;
  --dashboard-header-bg: #1e293b;
  --dashboard-sidebar-bg: linear-gradient(135deg, #475569 0%, #334155 100%);
  
  /* Text Colors - Dark Theme */
  --dashboard-text-primary: #f1f5f9;
  --dashboard-text-secondary: #cbd5e1;
  --dashboard-border-color: #334155;
  
  /* Adjusted Neutral Colors for Dark Theme */
  --dashboard-gray-50: #1e293b;
  --dashboard-gray-100: #334155;
  --dashboard-gray-200: #475569;
  --dashboard-gray-300: #64748b;
  --dashboard-gray-400: #94a3b8;
  --dashboard-gray-500: #cbd5e1;
  --dashboard-gray-600: #e2e8f0;
  --dashboard-gray-700: #f1f5f9;
  --dashboard-gray-800: #f8fafc;
  --dashboard-gray-900: #ffffff;
  
  /* Shadows for Dark Theme (lighter shadows) */
  --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);
  
  /* Primary Colors Adjusted for Dark Theme */
  --dashboard-primary: #818cf8;
  --dashboard-primary-dark: #a78bfa;
  
  /* Typography Colors for Dark Theme */
  .dashboard-h1,
  .dashboard-h2,
  .dashboard-h3,
  .dashboard-h4,
  .dashboard-h5,
  .dashboard-h6 {
    color: var(--dashboard-text-primary);
  }
  
  .dashboard-body,
  .dashboard-caption,
  .dashboard-small {
    color: var(--dashboard-text-secondary);
  }
}

/* Typography Classes */
.dashboard-h1 {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--dashboard-text-primary);
  margin-bottom: var(--spacing-lg);
}

.dashboard-h2 {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-tight);
  color: var(--dashboard-text-primary);
  margin-bottom: var(--spacing-md);
}

.dashboard-h3 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-normal);
  color: var(--dashboard-text-primary);
  margin-bottom: var(--spacing-md);
}

.dashboard-h4 {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-normal);
  color: var(--dashboard-text-primary);
  margin-bottom: var(--spacing-sm);
}

.dashboard-h5 {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-normal);
  color: var(--dashboard-text-primary);
  margin-bottom: var(--spacing-sm);
}

.dashboard-h6 {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  line-height: var(--line-height-normal);
  color: var(--dashboard-text-primary);
  margin-bottom: var(--spacing-xs);
}

.dashboard-body {
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-relaxed);
  color: var(--dashboard-text-secondary);
}

.dashboard-caption {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
  color: var(--dashboard-text-secondary);
}

.dashboard-small {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-normal);
  line-height: var(--line-height-normal);
  color: var(--dashboard-text-secondary);
}
