/* ══════════════════════════════════════════
   PMESP — Design Tokens
   Paleta: Azul institucional + azul marinho
   ══════════════════════════════════════════ */

:root {
    /* ─── Core Backgrounds ─── */
    --bg-primary: #141414;
    --bg-secondary: #1d1d1d;
    --bg-card: #272727;
    --bg-card-hover: #343434;
    --bg-surface: #202020;
    --bg-elevated: #3b3b3b;
    --bg-inset: #161616;
    --bg-input: #1d1d1d;
    --border-input: rgba(255, 255, 255, 0.07);

    /* ─── Accent: Institutional Blue ─── */
    --gold-700: #6f5a2a;
    --gold-600: #b29143;
    --gold-500: #be9d52;
    --gold-400: #ddcca4;
    --gold-300: #ece2cc;
    --gold-200: #f6f2e9;
    --gold-glow: rgba(199,171,106, 0.15);
    --gold-glow-strong: rgba(199,171,106, 0.35);

    /* ─── Accent: Warm Neutral ─── */
    --neutral-900: #141414;
    --neutral-800: #272727;
    --neutral-700: #2a2a31;
    --neutral-600: #3a3a42;
    --neutral-500: #52525b;
    --neutral-400: #71717a;
    --neutral-300: #a1a1aa;
    --neutral-200: #d4d4d8;
    --neutral-100: #e4e4e7;

    /* ─── Status Colors ─── */
    --green-600: #16a34a;
    --green-500: #22c55e;
    --green-400: #4ade80;
    --green-bg: rgba(34, 197, 94, 0.08);
    --green-border: rgba(34, 197, 94, 0.2);
    --red-600: #dc2626;
    --red-500: #ef4444;
    --red-400: #f87171;
    --red-bg: rgba(239, 68, 68, 0.08);
    --red-border: rgba(239, 68, 68, 0.2);
    --orange-500: #f97316;
    --orange-400: #fb923c;
    --orange-bg: rgba(249, 115, 22, 0.08);
    --yellow-500: #e1d2af;
    --yellow-400: #e1d2af;
    --yellow-bg: rgba(234, 179, 8, 0.08);
    --blue-600: #be9d52;
    --blue-500: #c7ab6a;
    --blue-400: #d2bc88;
    --blue-bg: rgba(199,171,106, 0.08);
    --purple-500: #a855f7;
    --purple-400: #c084fc;
    --purple-bg: rgba(168, 85, 247, 0.08);
    --cyan-500: #9e813c;
    --cyan-400: #be9d52;

    /* ─── Text Colors ─── */
    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --text-accent: var(--gold-400);

    /* ─── Borders ─── */
    --border-default: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(255, 255, 255, 0.14);
    --border-active: var(--gold-500);
    --border-gold: rgba(199,171,106, 0.25);
    --border-subtle: rgba(255, 255, 255, 0.04);

    /* ─── Shadows ─── */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.6);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.7);
    --shadow-glow-gold: 0 0 30px rgba(199,171,106, 0.2);
    --shadow-glow-green: 0 0 20px rgba(34, 197, 94, 0.15);
    --shadow-inner: inset 0 1px 0 rgba(255, 255, 255, 0.03);

    /* ─── Glass ─── */
    --glass-bg: rgba(26, 26, 31, 0.85);
    --glass-border: rgba(255, 255, 255, 0.06);
    --glass-blur: 16px;

    /* ─── Gradients ─── */
    --gradient-gold: linear-gradient(135deg, var(--gold-600), var(--gold-400));
    --gradient-dark: linear-gradient(180deg, var(--bg-secondary), var(--bg-primary));
    --gradient-card: linear-gradient(145deg, var(--bg-card), var(--bg-surface));
    --gradient-hero: radial-gradient(ellipse at 30% 20%, rgba(199,171,106, 0.06) 0%, transparent 60%),
                     radial-gradient(ellipse at 70% 80%, rgba(199,171,106, 0.03) 0%, transparent 50%);

    /* ─── Spacing ─── */
    --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem;
    --space-4: 1rem; --space-5: 1.25rem; --space-6: 1.5rem;
    --space-8: 2rem; --space-10: 2.5rem; --space-12: 3rem;
    --space-16: 4rem; --space-20: 5rem;

    /* ─── Border Radius ─── */
    --radius-sm: 6px; --radius-md: 10px; --radius-lg: 14px;
    --radius-xl: 20px; --radius-2xl: 28px; --radius-full: 9999px;

    /* ─── Typography ─── */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --font-display: 'Inter', sans-serif;

    /* ─── Layout ─── */
    --sidebar-width: 272px;
    --sidebar-collapsed: 72px;
    --header-height: 60px;

    /* ─── Transitions ─── */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

    /* ─── Z-Index ─── */
    --z-sidebar: 100; --z-header: 90; --z-modal: 200;
    --z-toast: 300; --z-tooltip: 400;
}
