/**
 * CSS Variables - Design System
 * This file contains all the design tokens from the main Freckled Fairy website
 * These variables ensure consistent styling across the admin dashboard
 */

:root {
    /* ========================================
       COLOR PALETTE
       Primary colors from the main brand
       ======================================== */
    
    /* Brand Colors */
    --sage-green: #8A9876;        /* Primary brand color - sage green */
    --blush-pink: #E5BDAA;        /* Secondary brand color - blush pink */
    --rose-gold: #B66E5D;         /* Accent color - rose gold */
    --deep-moss: #50674A;         /* Dark accent - deep moss */
    --warm-white: #FDF9F4;        /* Background - warm white */
    
    /* Extended Palette for UI */
    --sage-green-light: #A8B494;  /* Lighter shade for hover states */
    --sage-green-dark: #6C7A5E;   /* Darker shade for active states */
    --blush-pink-light: #F0D4C5;  /* Light pink for backgrounds */
    --rose-gold-light: #D08B7C;   /* Light rose for accents */
    --deep-moss-light: #708968;   /* Lighter moss for secondary text */
    
    /* Semantic Colors */
    --color-success: #50674A;      /* Success states - using deep moss */
    --color-warning: #E5BDAA;      /* Warning states - using blush pink */
    --color-error: #B66E5D;        /* Error states - using rose gold */
    --color-info: #8A9876;         /* Info states - using sage green */
    
    /* Neutral Colors */
    --gray-50: #FAFAF9;
    --gray-100: #F5F5F4;
    --gray-200: #E5E5E3;
    --gray-300: #D4D4D1;
    --gray-400: #A3A39F;
    --gray-500: #737370;
    --gray-600: #525250;
    --gray-700: #404040;
    --gray-800: #262626;
    --gray-900: #171717;
    
    /* Text Colors */
    --text-primary: #262626;       /* Main text color */
    --text-secondary: #525250;     /* Secondary text */
    --text-muted: #737370;         /* Muted/disabled text */
    --text-inverse: #FDF9F4;       /* Text on dark backgrounds */
    
    /* Background Colors */
    --bg-primary: #FDF9F4;         /* Main background */
    --bg-secondary: #FAFAF9;       /* Secondary background */
    --bg-tertiary: #F5F5F4;        /* Tertiary background */
    --bg-hover: rgba(138, 152, 118, 0.08);  /* Hover state background */
    --bg-active: rgba(138, 152, 118, 0.15); /* Active state background */
    
    /* Border Colors */
    --border-light: #E5E5E3;       /* Light borders */
    --border-default: #D4D4D1;     /* Default borders */
    --border-dark: #A3A39F;        /* Dark borders */
    
    /* ========================================
       TYPOGRAPHY
       Font families and sizes
       ======================================== */
    
    /* Font Families */
    --primary-font: 'Lora', serif;           /* Primary heading font */
    --secondary-font: 'Crimson Text', serif; /* Secondary/body font */
    --system-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    
    /* 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 */
    
    /* Font Weights */
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    
    /* Line Heights */
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 2;
    
    /* Letter Spacing */
    --tracking-tight: -0.025em;
    --tracking-normal: 0;
    --tracking-wide: 0.025em;
    --tracking-wider: 0.05em;
    --tracking-widest: 0.1em;
    
    /* ========================================
       SPACING
       Consistent spacing scale
       ======================================== */
    
    --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 */
    
    /* ========================================
       SHADOWS
       Box shadow definitions
       ======================================== */
    
    --shadow-light: 0 2px 10px rgba(80, 103, 74, 0.1);
    --shadow-medium: 0 4px 20px rgba(80, 103, 74, 0.15);
    --shadow-strong: 0 8px 30px rgba(80, 103, 74, 0.2);
    --shadow-xl: 0 20px 40px rgba(80, 103, 74, 0.25);
    
    /* Subtle shadows for cards and containers */
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --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);
    
    /* ========================================
       TRANSITIONS
       Animation and transition timing
       ======================================== */
    
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    --transition-fast: all 0.15s ease-in-out;
    --transition-base: all 0.2s ease-in-out;
    --transition-slow: all 0.5s ease-in-out;
    
    /* ========================================
       BORDER RADIUS
       Consistent rounded corners
       ======================================== */
    
    --radius-none: 0;
    --radius-sm: 0.125rem;   /* 2px */
    --radius-base: 0.25rem;  /* 4px */
    --radius-md: 0.375rem;   /* 6px */
    --radius-lg: 0.5rem;     /* 8px */
    --radius-xl: 0.75rem;    /* 12px */
    --radius-2xl: 1rem;      /* 16px */
    --radius-full: 9999px;   /* Full round */
    
    /* ========================================
       Z-INDEX SCALE
       Layering system
       ======================================== */
    
    --z-base: 0;
    --z-dropdown: 10;
    --z-sticky: 20;
    --z-fixed: 30;
    --z-modal-backdrop: 40;
    --z-modal: 50;
    --z-popover: 60;
    --z-tooltip: 70;
    --z-toast: 80;
    --z-max: 9999;
    
    /* ========================================
       BREAKPOINTS
       Responsive design breakpoints
       ======================================== */
    
    --breakpoint-xs: 480px;
    --breakpoint-sm: 640px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 1024px;
    --breakpoint-xl: 1280px;
    --breakpoint-2xl: 1536px;
    
    /* ========================================
       COMPONENT-SPECIFIC VARIABLES
       Common component configurations
       ======================================== */
    
    /* Buttons */
    --btn-padding-x: var(--space-4);
    --btn-padding-y: var(--space-2);
    --btn-font-weight: var(--font-medium);
    --btn-border-width: 1px;
    
    /* Forms */
    --input-padding-x: var(--space-3);
    --input-padding-y: var(--space-2);
    --input-border-width: 1px;
    --input-border-color: var(--border-default);
    --input-focus-color: var(--sage-green);
    --input-error-color: var(--color-error);
    
    /* Tables */
    --table-border-color: var(--border-light);
    --table-header-bg: var(--bg-tertiary);
    --table-hover-bg: var(--bg-hover);
    
    /* Modals */
    --modal-backdrop-bg: rgba(0, 0, 0, 0.5);
    --modal-content-bg: var(--bg-primary);
    --modal-max-width: 600px;
    
    /* Notifications */
    --toast-success-bg: var(--color-success);
    --toast-error-bg: var(--color-error);
    --toast-warning-bg: var(--color-warning);
    --toast-info-bg: var(--color-info);
}

/* ========================================
   DARK MODE VARIABLES (Optional)
   Can be activated with a .dark class
   ======================================== */

.dark {
    --text-primary: #F5F5F4;
    --text-secondary: #D4D4D1;
    --text-muted: #A3A39F;
    --text-inverse: #262626;
    
    --bg-primary: #1A1A1A;
    --bg-secondary: #262626;
    --bg-tertiary: #333333;
    
    --border-light: #404040;
    --border-default: #525250;
    --border-dark: #737370;
}