/* ============================================
   JIRLEE ADMIN PANEL — Enterprise Design System
   Modern · Clean · Scalable
   ============================================ */

/* ============================================
   1. DESIGN TOKENS
   ============================================ */
:root {
    /* ---- Surface Colors ---- */
    --surface-base: #0b0f19;
    --surface-raised: #111827;
    --surface-overlay: #1e293b;
    --surface-sunken: #060a13;
    --surface-card: #161e2e;
    --surface-card-hover: #1c2640;

    /* ---- Brand / Accent ---- */
    --brand: #6366f1;
    --brand-hover: #818cf8;
    --brand-muted: rgba(99, 102, 241, 0.12);
    --brand-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a78bfa 100%);

    /* ---- Semantic Colors ---- */
    --success: #10b981;
    --success-muted: rgba(16, 185, 129, 0.12);
    --warning: #f59e0b;
    --warning-muted: rgba(245, 158, 11, 0.12);
    --danger: #ef4444;
    --danger-muted: rgba(239, 68, 68, 0.12);
    --info: #3b82f6;
    --info-muted: rgba(59, 130, 246, 0.12);

    /* ---- Typography ---- */
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-inverse: #0f172a;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

    /* ---- Borders & Elevation ---- */
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-default: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.16);
    --ring-brand: 0 0 0 3px rgba(99, 102, 241, 0.25);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 24px rgba(99, 102, 241, 0.2);

    /* ---- Layout ---- */
    --sidebar-w: 72px;
    --sidebar-w-open: 260px;
    --topbar-h: 60px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* ---- Motion ---- */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --duration-fast: 150ms;
    --duration: 250ms;
    --duration-slow: 400ms;
    --duration-enter: 500ms;

    /* ---- Extended Palette ---- */
    --brand-50: rgba(99, 102, 241, 0.06);
    --brand-glow: 0 0 32px rgba(99, 102, 241, 0.25), 0 0 8px rgba(99, 102, 241, 0.1);
    --success-glow: 0 0 16px rgba(16, 185, 129, 0.2);
    --danger-glow: 0 0 16px rgba(239, 68, 68, 0.2);
    --info-glow: 0 0 16px rgba(59, 130, 246, 0.2);
    --surface-glass: rgba(17, 24, 39, 0.75);
    --surface-interactive: rgba(255, 255, 255, 0.03);
    --surface-interactive-hover: rgba(255, 255, 255, 0.06);
    --border-interactive: rgba(99, 102, 241, 0.2);

    /* ---- Interaction ---- */
    --ripple-color: rgba(99, 102, 241, 0.15);
    --focus-ring: 0 0 0 2px var(--surface-base), 0 0 0 4px rgba(99, 102, 241, 0.5);
}

/* ============================================
   1b. LIGHT THEME OVERRIDES
   ============================================ */
[data-theme="light"] {
    /* ---- Surface Colors ---- */
    --surface-base: #f8fafc;
    --surface-raised: #ffffff;
    --surface-overlay: #f1f5f9;
    --surface-sunken: #e2e8f0;
    --surface-card: #ffffff;
    --surface-card-hover: #f8fafc;

    /* ---- Brand / Accent (keep the same) ---- */
    --brand: #6366f1;
    --brand-hover: #4f46e5;
    --brand-muted: rgba(99, 102, 241, 0.1);

    /* ---- Typography ---- */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;
    --text-inverse: #f1f5f9;

    /* ---- Borders & Elevation ---- */
    --border-subtle: rgba(0, 0, 0, 0.06);
    --border-default: rgba(0, 0, 0, 0.1);
    --border-strong: rgba(0, 0, 0, 0.16);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 24px rgba(99, 102, 241, 0.15);

    /* ---- Extended Palette ---- */
    --brand-50: rgba(99, 102, 241, 0.06);
    --brand-glow: 0 0 24px rgba(99, 102, 241, 0.15), 0 0 8px rgba(99, 102, 241, 0.06);
    --surface-glass: rgba(255, 255, 255, 0.85);
    --surface-interactive: rgba(0, 0, 0, 0.02);
    --surface-interactive-hover: rgba(0, 0, 0, 0.04);
    --border-interactive: rgba(99, 102, 241, 0.2);
    --ripple-color: rgba(99, 102, 241, 0.12);
}
