/**
 * Light theme variables for the bakery management application
 * Generated from centralized color configuration
 */

.light,
[data-theme="light"] {
  /* === SEMANTIC COLORS === */
  
  /* Primary Colors - Warm Orange (Bakery Brand) */
  --color-primary-50: #fffbeb;
  --color-primary-100: #fef3c7;
  --color-primary-200: #fde68a;
  --color-primary-300: #fcd34d;
  --color-primary-400: #fbbf24;
  --color-primary-500: #f59e0b;
  --color-primary-600: #d97706;
  --color-primary-700: #b45309;
  --color-primary-800: #92400e;
  --color-primary-900: #78350f;
  --color-primary: #d97706;
  --color-primary-light: #f59e0b;
  --color-primary-dark: #b45309;

  /* Secondary Colors - Professional Sage Green */
  --color-secondary-50: #f0fdf4;
  --color-secondary-100: #dcfce7;
  --color-secondary-200: #bbf7d0;
  --color-secondary-300: #86efac;
  --color-secondary-400: #4ade80;
  --color-secondary-500: #22c55e;
  --color-secondary-600: #16a34a;
  --color-secondary-700: #15803d;
  --color-secondary-800: #166534;
  --color-secondary-900: #14532d;
  --color-secondary: #16a34a;
  --color-secondary-light: #22c55e;
  --color-secondary-dark: #15803d;

  /* Success Colors */
  --color-success-50: #ecfdf5;
  --color-success-100: #d1fae5;
  --color-success-200: #a7f3d0;
  --color-success-300: #6ee7b7;
  --color-success-400: #34d399;
  --color-success-500: #10b981;
  --color-success-600: #059669;
  --color-success-700: #047857;
  --color-success-800: #065f46;
  --color-success-900: #064e3b;
  --color-success: #059669;
  --color-success-light: #10b981;
  --color-success-dark: #047857;

  /* Warning Colors */
  --color-warning-50: #fffbeb;
  --color-warning-100: #fef3c7;
  --color-warning-200: #fde68a;
  --color-warning-300: #fcd34d;
  --color-warning-400: #fbbf24;
  --color-warning-500: #f59e0b;
  --color-warning-600: #ea580c;
  --color-warning-700: #c2410c;
  --color-warning-800: #9a3412;
  --color-warning-900: #7c2d12;
  --color-warning: #ea580c;
  --color-warning-light: #f59e0b;
  --color-warning-dark: #c2410c;

  /* Error Colors */
  --color-error-50: #fef2f2;
  --color-error-100: #fee2e2;
  --color-error-200: #fecaca;
  --color-error-300: #fca5a5;
  --color-error-400: #f87171;
  --color-error-500: #ef4444;
  --color-error-600: #dc2626;
  --color-error-700: #b91c1c;
  --color-error-800: #991b1b;
  --color-error-900: #7f1d1d;
  --color-error: #dc2626;
  --color-error-light: #ef4444;
  --color-error-dark: #b91c1c;

  /* Info Colors */
  --color-info-50: #eff6ff;
  --color-info-100: #dbeafe;
  --color-info-200: #bfdbfe;
  --color-info-300: #93c5fd;
  --color-info-400: #60a5fa;
  --color-info-500: #3b82f6;
  --color-info-600: #0284c7;
  --color-info-700: #0369a1;
  --color-info-800: #075985;
  --color-info-900: #0c4a6e;
  --color-info: #0284c7;
  --color-info-light: #3b82f6;
  --color-info-dark: #0369a1;

  /* === THEME-SPECIFIC COLORS === */
  
  /* Background Colors */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --bg-quaternary: #e2e8f0;
  --bg-overlay: rgba(255, 255, 255, 0.8);
  --bg-modal-backdrop: rgba(0, 0, 0, 0.5);

  /* Text Colors */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #64748b;
  --text-quaternary: #94a3b8;
  --text-inverse: #ffffff;
  --text-muted: #64748b;
  --text-disabled: #cbd5e1;

  /* Border Colors */
  --border-primary: #e2e8f0;
  --border-secondary: #cbd5e1;
  --border-tertiary: #94a3b8;
  --border-focus: #d97706;
  --border-error: #dc2626;
  --border-success: #059669;

  /* Surface Colors */
  --surface-primary: #ffffff;
  --surface-secondary: #f8fafc;
  --surface-tertiary: #f1f5f9;
  --surface-raised: #ffffff;
  --surface-overlay: rgba(255, 255, 255, 0.95);

  /* Input Colors */
  --input-bg: #ffffff;
  --input-border: #d1d5db;
  --input-border-focus: #d97706;
  --input-border-error: #dc2626;
  --input-placeholder: #9ca3af;

  /* Navigation Colors */
  --nav-bg: #ffffff;
  --nav-border: #e5e7eb;
  --nav-item-hover: #f9fafb;
  --nav-item-active: #fef3c7;

  /* Card Colors */
  --card-bg: #ffffff;
  --card-border: #e5e7eb;
  --card-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);

  /* === BAKERY COLORS === */
  --color-sourdough: #d4a574;
  --color-wholeWheat: #a67c52;
  --color-brioche: #f4e4bc;
  --color-rye: #8b6f47;
  --color-croissant: #f5d76e;
  --color-danish: #e8b4cb;
  --color-espresso: #3c2415;
  --color-latte: #c8a882;
  --color-bread: #deb887;
  --color-wheat: #f5deb3;
  --color-flour: #faf0e6;
  --color-butter: #fff8dc;
  --color-chocolate: #8b4513;
  --color-vanilla: #f5f5dc;
  --color-strawberry: #ff69b4;
  --color-mint: #98fb98;
  --color-caramel: #d2691e;
  --color-cream: #fffdd0;

  /* === CHART COLORS === */
  --chart-primary: #d97706;
  --chart-secondary: #0369a1;
  --chart-tertiary: #16a34a;
  --chart-quaternary: #dc2626;
  --chart-quinary: #7c3aed;
  --chart-senary: #0891b2;
  --chart-septenary: #ea580c;
  --chart-octonary: #059669;

  /* === 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 -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.05);

  /* === INTERACTIVE STATES === */
  --hover-opacity: 0.8;
  --active-opacity: 0.9;
  --disabled-opacity: 0.5;
}

/* Light theme specific overrides */
.light {
  color-scheme: light;
}

/* Component-specific light theme styles */
.light .bg-pattern {
  background-image: 
    radial-gradient(circle at 25% 25%, rgba(217, 119, 6, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 75% 75%, rgba(22, 163, 74, 0.03) 0%, transparent 50%);
}

.light .glass-effect {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.light .focus-ring:focus {
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.2);
}

.light .focus-ring:focus-visible {
  box-shadow: 0 0 0 3px rgba(217, 119, 6, 0.3);
}

/* Form elements in light theme */
.light input[type="checkbox"]:checked {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.light input[type="radio"]:checked {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

/* Scrollbar in light theme */
.light ::-webkit-scrollbar-track {
  background-color: #f1f5f9;
}

.light ::-webkit-scrollbar-thumb {
  background-color: #cbd5e1;
}

.light ::-webkit-scrollbar-thumb:hover {
  background-color: #94a3b8;
}