/**
 * ============================================
 * CSS Variables - Clean Dashboard Theme
 * ============================================
 * 
 * Based on reference: White/light, icon sidebar, 
 * subtle borders, teal accent.
 * 
 * @package Botteraabox
 */

/* ============================================
   CSS Layer Order (Modern Cascade Control)
   ============================================ */
@layer reset, base, layout, components, utilities;

:root {
   /* ============================================
       Color Palette
       ============================================ */

   /* Primary - Teal/Green */
   --color-primary: #10b981;
   --color-primary-light: #34d399;
   --color-primary-dark: #059669;
   --color-primary-bg: rgba(16, 185, 129, 0.1);

   /* Secondary - Blue */
   --color-secondary: #3b82f6;
   --color-secondary-bg: rgba(59, 130, 246, 0.1);

   /* Accent */
   --color-accent: #8b5cf6;
   --color-accent-bg: rgba(139, 92, 246, 0.1);

   /* Success */
   --color-success: #22c55e;
   --color-success-bg: rgba(34, 197, 94, 0.08);

   /* Warning */
   --color-warning: #f59e0b;
   --color-warning-bg: rgba(245, 158, 11, 0.08);

   /* Error */
   --color-error: #ef4444;
   --color-error-dark: #dc2626;
   --color-error-bg: rgba(239, 68, 68, 0.08);

   /* Info */
   --color-info: #06b6d4;
   --color-info-bg: rgba(6, 182, 212, 0.08);

   /* ============================================
       Light Theme (Default)
       ============================================ */

   /* Backgrounds */
   --bg-body: #f9fafb;
   --bg-sidebar: #1f2937;
   --bg-card: #ffffff;
   --bg-hover: #f3f4f6;
   --bg-input: #ffffff;

   /* Text */
   --text-primary: #111827;
   --text-secondary: #4b5563;
   --text-muted: #9ca3af;
   --text-sidebar: #9ca3af;
   --text-sidebar-active: #ffffff;

   /* Borders */
   --border-color: #e5e7eb;
   --border-light: #f3f4f6;

   /* Shadows */
   --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
   --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
   --shadow: 0 2px 4px rgba(0, 0, 0, 0.06);

   /* ============================================
       Typography
       ============================================ */

   --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

   --text-xs: 0.6875rem;
   /* 11px */
   --text-sm: 0.8125rem;
   /* 13px */
   --text-base: 0.875rem;
   /* 14px */
   --text-lg: 1rem;
   /* 16px */
   --text-xl: 1.25rem;
   /* 20px */
   --text-2xl: 1.5rem;
   /* 24px */
   --text-3xl: 2rem;
   /* 32px */

   /* ============================================
       Spacing - Tight
       ============================================ */

   --space-1: 4px;
   --space-2: 8px;
   --space-3: 12px;
   --space-4: 16px;
   --space-5: 20px;
   --space-6: 24px;

   /* ============================================
       Layout
       ============================================ */

   --sidebar-width: 60px;
   --header-height: 60px;

   /* ============================================
       Border Radius
       ============================================ */

   --radius-sm: 4px;
   --radius: 6px;
   --radius-lg: 8px;
   --radius-xl: 12px;
   --radius-full: 9999px;

   /* ============================================
       Transitions
       ============================================ */

   --transition-fast: 150ms ease;
   --transition: 200ms ease;
}

/* ============================================
   Dark Theme
   ============================================ */

[data-theme="dark"] {
   --bg-body: #111827;
   --bg-sidebar: #0f172a;
   --bg-card: #1f2937;
   --bg-hover: #374151;
   --bg-input: #1f2937;

   --text-primary: #f9fafb;
   --text-secondary: #d1d5db;
   --text-muted: #6b7280;

   --border-color: #374151;
   --border-light: #1f2937;

   --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.2);
   --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
   --shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}