/**
 * Walegaset Theme - CSS Custom Properties
 *
 * This file defines all color variables and design tokens for the Walegaset
 * Django HTMX frontend. Colors are synchronized with the Next.js application
 * to ensure visual consistency across both frontends.
 *
 * Reference: docs/color-scheme.md
 * Version: 2.0
 * Last Updated: November 2025
 */

:root {
  /* ============================================================================
   * Background Colors
   * ========================================================================== */
  --color-background: #020817;
  --color-foreground: #F9FAFB;

  /* Card Colors */
  --color-card: #020817;
  --color-card-foreground: #F9FAFB;

  /* Popover Colors */
  --color-popover: #020817;
  --color-popover-foreground: #F9FAFB;

  /* ============================================================================
   * Primary Colors (Brand)
   * ========================================================================== */
  --color-primary: #F9FAFB;
  --color-primary-foreground: #1E293B;

  /* ============================================================================
   * Secondary Colors
   * ========================================================================== */
  --color-secondary: #1E293B;
  --color-secondary-foreground: #F9FAFB;

  /* ============================================================================
   * Muted Colors
   * ========================================================================== */
  --color-muted: #1E293B;
  --color-muted-foreground: #94A3B8;

  /* ============================================================================
   * Accent Colors
   * ========================================================================== */
  --color-accent: #1E293B;
  --color-accent-foreground: #F9FAFB;

  /* ============================================================================
   * Destructive Colors (Errors, Delete actions)
   * ========================================================================== */
  --color-destructive: #7C2D12;
  --color-destructive-foreground: #F9FAFB;

  /* ============================================================================
   * Border and Input Colors
   * ========================================================================== */
  --color-border: #1E293B;
  --color-input: #1E293B;
  --color-ring: #D4D4D8;

  /* ============================================================================
   * Semantic Colors (Status indicators)
   * ========================================================================== */

  /* Success Colors */
  --color-success: #16A34A;
  --color-success-light: #22C55E;
  --color-success-dark: #15803D;

  /* Warning Colors */
  --color-warning: #F59E0B;
  --color-warning-light: #FCD34D;
  --color-warning-dark: #D97706;

  /* Error Colors */
  --color-error: #EF4444;
  --color-error-light: #F87171;
  --color-error-dark: #DC2626;

  /* Info Colors */
  --color-info: #3B82F6;
  --color-info-light: #60A5FA;
  --color-info-dark: #2563EB;

  /* ============================================================================
   * Border Radius
   * ========================================================================== */
  --radius: 0.5rem;
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-full: 9999px;

  /* ============================================================================
   * Spacing Scale
   * ========================================================================== */
  --spacing-xs: 0.25rem;    /* 4px */
  --spacing-sm: 0.5rem;     /* 8px */
  --spacing-md: 1rem;       /* 16px */
  --spacing-lg: 1.5rem;     /* 24px */
  --spacing-xl: 2rem;       /* 32px */
  --spacing-2xl: 3rem;      /* 48px */
  --spacing-3xl: 4rem;      /* 64px */

  /* ============================================================================
   * Typography
   * ========================================================================== */

  /* Font Families */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", Monaco, "Cascadia Code", "Roboto Mono", Consolas, "Courier New", 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-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* Line Heights */
  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;

  /* ============================================================================
   * 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 -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);

  /* ============================================================================
   * Transitions
   * ========================================================================== */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);

  /* ============================================================================
   * Z-Index Scale
   * ========================================================================== */
  --z-index-dropdown: 1000;
  --z-index-sticky: 1020;
  --z-index-fixed: 1030;
  --z-index-modal-backdrop: 1040;
  --z-index-modal: 1050;
  --z-index-popover: 1060;
  --z-index-tooltip: 1070;

  /* ============================================================================
   * Breakpoints (for reference in media queries)
   * ========================================================================== */
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
  --breakpoint-xl: 1280px;
  --breakpoint-2xl: 1536px;
}

/**
 * Dark Mode Override (optional - for future implementation)
 * Currently, we use a single dark theme.
 */
@media (prefers-color-scheme: light) {
  /* Future: Override variables here if light mode is implemented */
}
