/* ============================================================================
   GOATLAS TOOLBOX - CSS CUSTOM PROPERTIES (VARIABLES)
   Central location for all design tokens and custom properties
============================================================================ */

:root {
  /* ============================================================================
     COLOR PALETTE
  ============================================================================ */
  
  /* Primary Brand Colors */
  --color-primary: #2196f3;
  --color-primary-dark: #1976d2;
  --color-primary-light: #64b5f6;
  --color-secondary: #ff9800;
  --color-secondary-dark: #f57c00;
  --color-secondary-light: #ffb74d;
  
  /* Navigation Colors */
  --color-nav-light: rgb(252, 184, 4);
  --color-nav-dark: #2196f3;

  /* Skeleton Loader Colors */
  --skeleton-shimmer-gradient: linear-gradient(90deg,
    rgba(0, 0, 0, 0.08) 25%,
    rgba(0, 0, 0, 0.04) 50%,
    rgba(0, 0, 0, 0.08) 75%
  );
  --skeleton-shimmer-bg: var(--color-grey-200);
  --skeleton-shimmer-fg: var(--color-grey-100);

  /* Page Loader Spinner Colors */
  --spinner-color: var(--color-primary-dark);

  /* Integration / partner brand colors */
  --integration-salesforce: #00a1e0;
  --integration-sharepoint: #0078d4;
  --integration-basecamp: #1f7e88;
  
  /* Status Colors */
  --color-success: #4caf50;
  --color-success-dark: #388e3c;
  --color-warning: #ff9800;
  --color-error: #f44336;
  --color-error-dark: #d32f2f;
  --color-info: #2196f3;
  
  /* Neutral Colors */
  --color-white: #ffffff;
  --color-black: #000000;
  --color-grey-50: #fafafa;
  --color-grey-100: #f5f5f5;
  --color-grey-200: #e0e0e0;
  --color-grey-300: #d0d0d0;
  --color-grey-400: #bdbdbd;
  --color-grey-500: #9e9e9e;
  --color-grey-600: #757575;
  --color-grey-700: #616161;
  --color-grey-800: #424242;
  --color-grey-900: #212121;
  
  /* Dark Mode Colors */
  --color-dark-bg: #121212;
  --color-dark-surface: #1e1e1e;
  --color-dark-surface-variant: #2a2a2a;
  --color-dark-text: #e0e0e0;
  --color-dark-text-secondary: #cccccc;
  --color-dark-border: #333333;
  
  /* ============================================================================
     SEMANTIC COLOR ASSIGNMENTS
  ============================================================================ */
  
  /* Background Colors */
  --bg-color: var(--color-grey-50);
  --bg-surface: var(--color-white);
  --bg-card: var(--color-white);
  --bg-overlay: rgba(0, 0, 0, 0.5);
  --bg-input: var(--color-white);
  
  /* Navigation Colors */
  --nav-bg: var(--color-nav-light);
  
  /* Text Colors */
  --text-color: var(--color-grey-900);
  --text-color-secondary: var(--color-grey-600);
  --text-color-muted: var(--color-grey-500);
  --text-color-inverse: var(--color-white);
  
  /* Border Colors */
  --border-color: var(--color-grey-200);
  --border-color-focus: var(--color-primary);
  --border-color-error: var(--color-error);
  
  /* ============================================================================
     TYPOGRAPHY
  ============================================================================ */
  
  /* Font Families */
  --font-family-primary: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-family-secondary: Georgia, "Times New Roman", serif;
  --font-family-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
  
  /* Font Sizes */
  --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: 1.875rem;  /* 30px */
  --font-size-4xl: 2.25rem;   /* 36px */
  --font-size-5xl: 3rem;      /* 48px */
  
  /* Font Weights */
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  
  /* Line Heights */
  --line-height-tight: 1.25;
  --line-height-snug: 1.375;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.625;
  --line-height-loose: 2;
  
  /* ============================================================================
     SPACING SYSTEM
  ============================================================================ */
  
  /* Base spacing unit: 4px */
  --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 */
  --space-24: 6rem;     /* 96px */
  --space-32: 8rem;     /* 128px */
  
  /* ============================================================================
     LAYOUT & SIZING
  ============================================================================ */
  
  /* Container Max Widths */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1280px;
  --container-2xl: 1536px;
  
  /* Component Heights */
  --height-xs: 1.5rem;    /* 24px */
  --height-sm: 2rem;      /* 32px */
  --height-md: 2.5rem;    /* 40px */
  --height-lg: 3rem;      /* 48px */
  --height-xl: 3.5rem;    /* 56px */
  --height-2xl: 4rem;     /* 64px */
  
  /* Border Radius */
  --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;
  
  /* ============================================================================
     SHADOWS & EFFECTS
  ============================================================================ */
  
  /* Box Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-base: 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);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
  
  /* Focus Shadows */
  --shadow-focus: 0 0 0 3px rgba(33, 150, 243, 0.1);
  --shadow-focus-error: 0 0 0 3px rgba(244, 67, 54, 0.1);
  
  /* ============================================================================
     TRANSITIONS & ANIMATIONS
  ============================================================================ */
  
  /* Transition Durations */
  --duration-75: 75ms;
  --duration-100: 100ms;
  --duration-150: 150ms;
  --duration-200: 200ms;
  --duration-300: 300ms;
  --duration-500: 500ms;
  --duration-700: 700ms;
  --duration-1000: 1000ms;
  
  /* Transition Timing Functions */
  --ease-linear: linear;
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Common Transitions */
  --transition-all: all var(--duration-300) var(--ease-in-out);
  --transition-colors: color var(--duration-300) var(--ease-in-out), 
                      background-color var(--duration-300) var(--ease-in-out), 
                      border-color var(--duration-300) var(--ease-in-out);
  --transition-transform: transform var(--duration-300) var(--ease-in-out);
  --transition-opacity: opacity var(--duration-300) var(--ease-in-out);
  
  /* ============================================================================
     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;
  --z-toast: 1080;
  --z-lightbox: 9999;
  
  /* ============================================================================
     BREAKPOINTS (for JavaScript usage)
  ============================================================================ */
  
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  --breakpoint-2xl: 1536px;
}
