/* ============================================
   FinCare Design System - CSS Variables
   ============================================
   This file contains all CSS custom properties (variables)
   used throughout the FinCare application.

   DO NOT define :root variables in individual templates.
   Import this file instead.
   ============================================ */

:root {
    /* ===== Brand Colors ===== */
    --color-primary: #d00000;
    --color-primary-hover: #b00000;
    --color-primary-light: rgba(208, 0, 0, 0.1);

    --color-secondary: #005aad;
    --color-secondary-hover: #004a8f;
    --color-secondary-light: rgba(0, 90, 173, 0.1);

    --color-tertiary: #143047;

    /* ===== Status Colors ===== */
    /* Standardized to Tailwind CSS colors for consistency */
    --color-success: #22c55e;
    --color-success-hover: #16a34a;
    --color-success-light: rgba(34, 197, 94, 0.1);

    --color-warning: #f59e0b;
    --color-warning-hover: #d97706;
    --color-warning-light: rgba(245, 158, 11, 0.15);

    --color-danger: #ef4444;
    --color-danger-hover: #dc2626;
    --color-danger-light: rgba(239, 68, 68, 0.1);

    --color-info: #3b82f6;
    --color-info-hover: #2563eb;
    --color-info-light: rgba(59, 130, 246, 0.1);

    /* ===== Background Colors ===== */
    --color-bg: #f7f7f7;
    --color-bg-light: #f8f9fa;
    --color-bg-card: #ffffff;
    --color-bg-sidebar: #ffffff;
    --color-bg-hover: rgba(0, 0, 0, 0.02);

    /* ===== Text Colors ===== */
    --color-text-primary: #1a1a1a;
    --color-text-secondary: #6b7280;
    --color-text-muted: #9ca3af;

    /* ===== Border Colors ===== */
    --color-border: #e9ecef;
    --color-border-light: #f1f3f4;

    /* ===== Spacing Scale ===== */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 12px;
    --spacing-lg: 16px;
    --spacing-xl: 24px;
    --spacing-2xl: 32px;

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

    /* ===== Shadows ===== */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 10px 40px rgba(0, 0, 0, 0.15);

    /* ===== Transitions ===== */
    --transition-fast: 150ms ease;
    --transition-normal: 200ms ease;
    --transition-slow: 300ms ease;
}

/* ===== Dark Mode Support ===== */
[data-pc-theme="dark"] {
    --color-bg: #1a1a2e;
    --color-bg-light: #16213e;
    --color-bg-card: #1f1f3a;
    --color-bg-sidebar: #1a1a2e;
    --color-bg-hover: rgba(255, 255, 255, 0.03);
    --color-text-primary: #ffffff;
    --color-text-secondary: #a0a0a0;
    --color-text-muted: #6b6b6b;
    --color-border: #2d2d4a;
    --color-border-light: #252542;
}
