/*
 * GeoAttend Design Tokens
 * WCAG AA compliant colors for Light and Dark themes.
 * Zero web fonts; uses clean system font stack.
 */

:root {
  /* Light Theme Color Tokens */
  --bg: #F6F8F8;
  --surface: #FFFFFF;
  --surface-raised: #FFFFFF;
  --surface-subtle: #EDF2F1;
  --text: #0F1F1E;
  --text-muted: #5B6B6A;
  --border: #DCE4E3;
  --border-focus: #0F766E;
  
  --accent: #0F766E;
  --accent-hover: #115E59;
  --on-accent: #FFFFFF;
  
  --present: #15803D;
  --present-tint: #DCFCE7;
  --present-text: #14532D;
  
  --absent: #B91C1C;
  --absent-tint: #FEE2E2;
  --absent-text: #7F1D1D;
  
  --warning: #B45309;
  --warning-tint: #FEF3C7;
  --warning-text: #78350F;
  
  --off-day: #94A3A1;
  --off-day-tint: #F0F4F3;
  --off-day-text: #475553;

  /* Typography */
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  
  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-md: 16px;
  --font-size-lg: 20px;
  --font-size-xl: 24px;
  --font-size-xxl: 32px;

  --line-height-tight: 1.2;
  --line-height-normal: 1.5;

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;   /* Controls (buttons, inputs) */
  --radius-lg: 16px;   /* Cards */
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(15, 31, 30, 0.05);
  --shadow-md: 0 4px 12px rgba(15, 31, 30, 0.08);
  --shadow-lg: 0 10px 25px rgba(15, 31, 30, 0.12);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 220ms ease;
}

[data-theme="dark"] {
  /* Dark Theme Color Tokens */
  --bg: #0B1413;
  --surface: #111E1D;
  --surface-raised: #182B2A;
  --surface-subtle: #142423;
  --text: #E6F1F0;
  --text-muted: #8FA5A3;
  --border: #223534;
  --border-focus: #2DD4BF;

  --accent: #2DD4BF;
  --accent-hover: #5EEAD4;
  --on-accent: #042F2C;

  --present: #4ADE80;
  --present-tint: rgba(74, 222, 128, 0.15);
  --present-text: #86EFAC;

  --absent: #F87171;
  --absent-tint: rgba(248, 113, 113, 0.15);
  --absent-text: #FCA5A5;

  --warning: #FBBF24;
  --warning-tint: rgba(251, 191, 36, 0.15);
  --warning-text: #FDE68A;

  --off-day: #6B7C7A;
  --off-day-tint: rgba(107, 124, 122, 0.15);
  --off-day-text: #A0B2B0;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.6);
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
