/* CSS Variables derived from style-config.js */

/* Base variables - shared across themes */
:root {
  /* Border radius */
  --radius-none: 0;
  --radius-sm: 0.125rem;
  --radius: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-3xl: 1.5rem;
  --radius-full: 9999px;

  /* Light theme (default) */
  --color-primary: #3b82f6;
  --color-primary-hover: #2563eb;
  --color-secondary: #7c3aed;
  --color-secondary-hover: #6d28d9;
  --color-background: #f8f8fa;
  --color-background-end: #ffffff;
  --color-card: #ffffff;
  --color-text: #000000;
  --color-text-secondary: #6b7280;
  --color-border: #e5e7eb;
  --color-footer: #1f2937;

  /* Status colors - Light theme */
  --color-success-bg: #dcfce7;
  --color-success-text: #166534;
  --color-warning-bg: #fef3c7;
  --color-warning-text: #92400e;
  --color-error-bg: #fee2e2;
  --color-error-text: #b91c1c;
  --color-info-bg: #dbeafe;
  --color-info-text: #1e40af;

  /* Shadows - shared with light theme defaults */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.1),
    0 2px 8px -2px 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);
}

/* Dark theme */
.dark {
  --color-primary: #2563eb;
  --color-primary-hover: #1d4ed8;
  --color-secondary: #6d28d9;
  --color-secondary-hover: #5b21b6;
  --color-background: #0f172a;
  --color-background-end: #111827;
  --color-card: #1f2937;
  --color-text: #ffffff;
  --color-text-secondary: #9ca3af;
  --color-border: #374151;
  --color-footer: #0f172a;

  /* Status colors - Dark theme */
  --color-success-bg: rgba(22, 101, 52, 0.3);
  --color-success-text: #86efac;
  --color-warning-bg: rgba(146, 64, 14, 0.3);
  --color-warning-text: #fde68a;
  --color-error-bg: rgba(185, 28, 28, 0.3);
  --color-error-text: #fca5a5;
  --color-info-bg: rgba(30, 64, 175, 0.3);
  --color-info-text: #93c5fd;

  /* Shadows for dark mode */
  --shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.3),
    0 2px 8px -2px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3),
    0 4px 6px -2px rgba(0, 0, 0, 0.25);
}

/* 
 * Theme System
 * Uses CSS variables to implement light and dark themes
 * References color values from the themeColors.js constants
 */

:root {
  /* Base theme variables */
  --theme-primary: var(--color-primary, #3b82f6);
  --theme-primary-hover: var(--color-primary-hover, #2563eb);
  --theme-secondary: var(--color-secondary, #7c3aed);
  --theme-secondary-hover: var(--color-secondary-hover, #6d28d9);
  --theme-background: var(--color-background, #f8f8fa);
  --theme-background-end: var(--color-background-end, #ffffff);
  --theme-card: var(--color-card, #ffffff);
  --theme-text: var(--color-text, #000000);
  --theme-text-secondary: var(--color-text-secondary, #6b7280);
  --theme-border: var(--color-border, #e5e7eb);
  --theme-footer: var(--color-footer, #1f2937);

  /* Status colors */
  --theme-success-bg: var(--color-success-bg, #dcfce7);
  --theme-success-text: var(--color-success-text, #166534);
  --theme-warning-bg: var(--color-warning-bg, #fef3c7);
  --theme-warning-text: var(--color-warning-text, #92400e);
  --theme-error-bg: var(--color-error-bg, #fee2e2);
  --theme-error-text: var(--color-error-text, #b91c1c);
  --theme-info-bg: var(--color-info-bg, #dbeafe);
  --theme-info-text: var(--color-info-text, #1e40af);

  /* Shadow variables */
  --theme-shadow: var(
    --color-shadow,
    0 4px 15px -3px rgba(0, 0, 0, 0.1),
    0 2px 8px -2px rgba(0, 0, 0, 0.05)
  );
  --theme-shadow-lg: var(
    --color-shadow-lg,
    0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05)
  );

  /* Additional UI variables */
  --theme-muted: var(--color-muted, #f3f4f6);
  --theme-muted-foreground: var(--color-muted-foreground, #6b7280);
  --theme-accent: var(--color-accent, #f9fafb);
  --theme-accent-foreground: var(--color-accent-foreground, #111827);

  /* Light theme (default) */
  --color-primary: #3b82f6;
  --color-primary-hover: #2563eb;
  --color-secondary: #7c3aed;
  --color-secondary-hover: #6d28d9;
  --color-background: #f8f8fa;
  --color-background-end: #ffffff;
  --color-card: #ffffff;
  --color-text: #000000;
  --color-text-secondary: #6b7280;
  --color-border: #e5e7eb;
  --color-footer: #1f2937;

  /* Status colors - Light theme */
  --color-success-bg: #dcfce7;
  --color-success-text: #166534;
  --color-warning-bg: #fef3c7;
  --color-warning-text: #92400e;
  --color-error-bg: #fee2e2;
  --color-error-text: #b91c1c;
  --color-info-bg: #dbeafe;
  --color-info-text: #1e40af;

  /* Shadows - Light theme */
  --color-shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.1),
    0 2px 8px -2px rgba(0, 0, 0, 0.05);
  --color-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1),
    0 4px 6px -2px rgba(0, 0, 0, 0.05);

  /* Additional UI colors - Light theme */
  --color-muted: #f3f4f6;
  --color-muted-foreground: #6b7280;
  --color-accent: #f9fafb;
  --color-accent-foreground: #111827;
}

/* Dark theme */
.dark {
  --color-primary: #2563eb;
  --color-primary-hover: #1d4ed8;
  --color-secondary: #6d28d9;
  --color-secondary-hover: #5b21b6;
  --color-background: #0f172a;
  --color-background-end: #111827;
  --color-card: #1f2937;
  --color-text: #ffffff;
  --color-text-secondary: #9ca3af;
  --color-border: #374151;
  --color-footer: #0f172a;

  /* Status colors - Dark theme */
  --color-success-bg: rgba(22, 101, 52, 0.3);
  --color-success-text: #86efac;
  --color-warning-bg: rgba(146, 64, 14, 0.3);
  --color-warning-text: #fde68a;
  --color-error-bg: rgba(185, 28, 28, 0.3);
  --color-error-text: #fca5a5;
  --color-info-bg: rgba(30, 64, 175, 0.3);
  --color-info-text: #93c5fd;

  /* Shadows - Dark theme */
  --color-shadow: 0 4px 15px -3px rgba(0, 0, 0, 0.3),
    0 2px 8px -2px rgba(0, 0, 0, 0.2);
  --color-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3),
    0 4px 6px -2px rgba(0, 0, 0, 0.25);

  /* Additional UI colors - Dark theme */
  --color-muted: #374151;
  --color-muted-foreground: #9ca3af;
  --color-accent: #1f2937;
  --color-accent-foreground: #f9fafb;
}

