/* ======================================================================
   MISA IMS - Design Tokens & Custom Properties (variables.css)
   Enterprise System Palette & Ultra-Modern Typography Tokens
   ====================================================================== */

:root {
    /* Brand & Accent Palette (Refined Light Executive Theme: Oceanic Teal & Warm Amber) */
    --primary: #0f766e;           /* Executive Deep Teal */
    --primary-dark: #134e4a;      /* Deep Forest Teal */
    --primary-hover: #115e59;     /* Deep Pine Hover */
    --primary-light: #f0fdfa;     /* Soft Mint Tint */
    --primary-border: #99f6e4;    /* Subtle Teal Border */
    --primary-shadow: rgba(15, 118, 110, 0.16);

    --secondary: #d97706;         /* Warm Amber / Gold */
    --secondary-hover: #b45309;
    --secondary-light: #fffbeb;
    --secondary-border: #fde68a;

    --accent: #059669;            /* Emerald */
    --accent-hover: #047857;
    --accent-light: #ecfdf5;

    /* Semantic Status Colors */
    --success: #059669;           /* Emerald Green */
    --success-hover: #047857;
    --success-bg: #ecfdf5;
    --success-border: #a7f3d0;
    --success-text: #065f46;

    --warning: #d97706;           /* Amber */
    --warning-hover: #b45309;
    --warning-bg: #fffbeb;
    --warning-border: #fde68a;
    --warning-text: #92400e;

    --danger: #e11d48;            /* Rose Red */
    --danger-hover: #be123c;
    --danger-bg: #fff1f2;
    --danger-border: #fecdd3;
    --danger-text: #9f1239;

    --info: #0f766e;              /* Teal Info */
    --info-bg: #f0fdfa;
    --info-border: #99f6e4;
    --info-text: #0f766e;

    /* Neutrals & Surfaces (Clean Light Mode) */
    --bg-main: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-hover: #f1f5f9;
    --bg-sidebar: #ffffff;
    --bg-header: rgba(255, 255, 255, 0.96);
    
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-light: #94a3b8;
    
    --border-subtle: #e2e8f0;
    --border-hover: #cbd5e1;
    --border-focus: #0f766e;

    /* Layout Sizing & Spacing */
    --sidebar-width: 260px;
    --sidebar-collapsed-width: 72px;
    --header-height: 64px;
    --container-max: 1440px;

    /* Classic Professional Typography — Inter */
    --font-sans: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;

    --fw-regular: 400;
    --fw-medium: 500;
    --fw-semibold: 600;
    --fw-bold: 700;
    --fw-extrabold: 800;

    --ls-tight: -0.03em;
    --ls-snug: -0.011em;
    --ls-normal: 0em;
    --ls-wide: 0.04em;
    --ls-wider: 0.08em;

    --text-xs: 0.8125rem;   /* 13px — slightly larger for accessibility */
    --text-sm: 0.9375rem;   /* 15px */
    --text-base: 1rem;      /* 16px — universal base */
    --text-lg: 1.125rem;    /* 18px */
    --text-xl: 1.25rem;     /* 20px */
    --text-2xl: 1.5rem;     /* 24px */
    --text-3xl: 1.875rem;   /* 30px */
    --text-4xl: 2.25rem;    /* 36px */

    /* Radius Scale */
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* Elevation & Shadows */
    --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.08), 0 1px 2px -1px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -4px rgba(15, 23, 42, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.06);

    /* Animation Timings */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);

    /* Z-Index Hierarchy */
    --z-base: 1;
    --z-sticky: 100;
    --z-sidebar: 200;
    --z-header: 300;
    --z-dropdown: 400;
    --z-modal: 1000;
    --z-toast: 2000;
}
