/* ==========================================================================
   CSS Custom Properties - Save the Children iCCM App
   Derived from acHostConfig.js with modern design improvements
   ========================================================================== */

:root {
  /* ========== Brand Colors ========== */
  --stc-red: #E11B22;
  --stc-red-dark: #B8151A;
  --stc-green: #486241;
  --stc-green-light: #5a7a51;
  --stc-sand: #f6d7b0;
  --stc-soil: #A42015;

  /* ========== Semantic Colors ========== */
  --color-primary: var(--stc-green);
  --color-primary-hover: var(--stc-green-light);
  --color-secondary: var(--stc-red);
  --color-secondary-hover: var(--stc-red-dark);
  
  --color-success: #10B981;
  --color-success-light: #D1FAE5;
  --color-warning: #F59E0B;
  --color-warning-light: #FEF3C7;
  --color-danger: #EF4444;
  --color-danger-light: #FEE2E2;
  --color-info: #3B82F6;
  --color-info-light: #DBEAFE;

  /* ========== Neutral Colors ========== */
  --color-white: #FFFFFF;
  --color-gray-50: #F9FAFB;
  --color-gray-100: #F3F4F6;
  --color-gray-200: #E5E7EB;
  --color-gray-300: #D1D5DB;
  --color-gray-400: #9CA3AF;
  --color-gray-500: #6B7280;
  --color-gray-600: #4B5563;
  --color-gray-700: #374151;
  --color-gray-800: #1F2937;
  --color-gray-900: #111827;

  /* ========== Background Colors ========== */
  --bg-primary: var(--color-white);
  --bg-secondary: var(--color-gray-50);
  --bg-accent: var(--stc-green);
  --bg-card: var(--color-white);
  --bg-input: var(--color-white);
  --bg-overlay: rgba(0, 0, 0, 0.5);

  /* ========== Text Colors ========== */
  --text-primary: var(--color-gray-900);
  --text-secondary: var(--color-gray-600);
  --text-muted: var(--color-gray-400);
  --text-inverse: var(--color-white);
  --text-link: var(--color-primary);

  /* ========== Spacing (from hostConfig) ========== */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --spacing-3xl: 64px;

  /* ========== Typography ========== */
  --font-family: 'Inter', 'Segoe UI', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-family-mono: 'SF Mono', 'Consolas', monospace;
  
  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-base: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 20px;
  --font-size-2xl: 24px;
  --font-size-3xl: 30px;
  --font-size-4xl: 36px;

  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --line-height-tight: 1.25;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.75;

  /* ========== Border Radius ========== */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* ========== 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);
  --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);

  /* ========== Transitions ========== */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;
  --transition-slow: 350ms ease;

  /* ========== Z-Index Scale ========== */
  --z-dropdown: 100;
  --z-sticky: 200;
  --z-modal: 300;
  --z-toast: 400;

  /* ========== Container Widths ========== */
  --container-sm: 540px;
  --container-md: 720px;
  --container-lg: 960px;
  --container-xl: 1140px;

  /* ========== Avatar Colors ========== */
  --avatar-color-0: #E11B22;
  --avatar-color-1: #486241;
  --avatar-color-2: #3B82F6;
  --avatar-color-3: #8B5CF6;
  --avatar-color-4: #F59E0B;
  --avatar-color-5: #10B981;
  --avatar-color-6: #EC4899;
  --avatar-color-7: #6366F1;
}

/* ========== Dark Mode Support (optional) ========== */
@media (prefers-color-scheme: dark) {
  :root {
    /* Can be enabled later if needed */
  }
}
