/*
 * EMS design system v2 — tokens (Phase 1, docs/ai-context/UI_REDESIGN.md)
 * Loaded only when UI_V2_ENABLED=true. Swap the --ds-brand-* values for the
 * company brand; everything else derives from these.
 */
:root {
    /* Brand: Appgenix navy (logo #104169) + teal accent (logo "INFOTECH") */
    --ds-brand-500: #104169;
    --ds-brand-600: #0d3658;
    --ds-brand-700: #0a2b47;
    --ds-brand-900: #061a2c;
    --ds-brand-050: #eaf1f7;
    --ds-brand-100: #d4e3ef;
    --ds-accent-500: #12898f;
    --ds-accent-400: #2aa7ad;
    --ds-accent-050: #e6f4f4;

    /* Neutrals */
    --ds-gray-000: #ffffff;
    --ds-gray-025: #fafbfc;
    --ds-gray-050: #f5f6f8;
    --ds-gray-100: #eceef2;
    --ds-gray-200: #dfe2e8;
    --ds-gray-300: #c8cdd6;
    --ds-gray-500: #6b7280;
    --ds-gray-600: #4b5563;
    --ds-gray-700: #374151;
    --ds-gray-900: #111827;

    /* Semantic */
    --ds-success-500: #1a7f4b;
    --ds-success-050: #e8f6ee;
    --ds-warning-500: #b45309;
    --ds-warning-050: #fef5e7;
    --ds-danger-500: #c62828;
    --ds-danger-050: #fdecec;
    --ds-info-500: #0e7490;
    --ds-info-050: #e6f6fa;

    /* Surfaces & text */
    --ds-bg: var(--ds-gray-050);
    --ds-surface: var(--ds-gray-000);
    --ds-surface-muted: var(--ds-gray-025);
    --ds-border: var(--ds-gray-200);
    --ds-border-strong: var(--ds-gray-300);
    --ds-text: var(--ds-gray-900);
    --ds-text-muted: var(--ds-gray-500);
    --ds-text-subtle: var(--ds-gray-600);
    --ds-focus: 0 0 0 3px rgba(16, 65, 105, .22);

    /* Sidebar */
    --ds-sidebar-bg: #ffffff;
    --ds-sidebar-text: var(--ds-gray-600);
    --ds-sidebar-text-hover: var(--ds-gray-900);
    --ds-sidebar-hover-bg: var(--ds-gray-050);
    --ds-sidebar-active-bg: var(--ds-brand-050);
    --ds-sidebar-active-text: var(--ds-brand-700);

    /* Type */
    --ds-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --ds-fs-xs: 12px;
    --ds-fs-sm: 13px;
    --ds-fs-md: 14px;
    --ds-fs-lg: 16px;
    --ds-fs-xl: 20px;
    --ds-fs-2xl: 24px;

    /* Space, radius, elevation, motion */
    --ds-space-1: 4px;
    --ds-space-2: 8px;
    --ds-space-3: 12px;
    --ds-space-4: 16px;
    --ds-space-5: 20px;
    --ds-space-6: 24px;
    --ds-radius-sm: 6px;
    --ds-radius-md: 8px;
    --ds-radius-lg: 12px;
    --ds-radius-pill: 999px;
    --ds-shadow-1: 0 1px 2px rgba(17, 24, 39, .06), 0 1px 3px rgba(17, 24, 39, .04);
    --ds-shadow-2: 0 4px 12px rgba(17, 24, 39, .08);
    --ds-shadow-3: 0 12px 32px rgba(17, 24, 39, .16);
    --ds-ease: cubic-bezier(.2, 0, 0, 1);
    --ds-dur: 150ms;
}

/* Accent palette (colour layer): used for KPI icons, card accents, soft buttons */
:root {
    --ds-c-navy: #104169;  --ds-c-navy-bg: #e6eef6;
    --ds-c-teal: #12898f;  --ds-c-teal-bg: #e3f4f4;
    --ds-c-amber: #c27803; --ds-c-amber-bg: #fdf3dc;
    --ds-c-violet: #6d4bd8; --ds-c-violet-bg: #efeafd;
    --ds-c-rose: #d0365f;  --ds-c-rose-bg: #fde8ee;
    --ds-c-green: #1a8a50; --ds-c-green-bg: #e3f5eb;
    --ds-c-sky: #1f7ab8;   --ds-c-sky-bg: #e4f1fa;
    --ds-grad-brand: linear-gradient(135deg, #104169 0%, #12898f 100%);
    --ds-grad-brand-hover: linear-gradient(135deg, #0d3658 0%, #0f7a7f 100%);
}
