/* ============================================================
   DESIGN TOKENS
   Fonte única de verdade para cores, espaçamento, tipografia,
   raios de borda, sombras, transições e z-index.
   Não coloque valores de estilo hardcoded fora deste arquivo.
   ============================================================ */

:root {
    /* ---------- Cor: marca ---------- */
    --primary: #0f4c81;
    --primary-hover: #0b3d68;
    --primary-active: #082f50;
    --primary-light: #eaf2f8;

    --secondary: #1677b8;
    --secondary-light: #e6f4fb;

    /* ---------- Cor: sidebar ---------- */
    --sidebar-background: #101c2f;
    --sidebar-secondary: #172840;
    --sidebar-active: #19375b;
    --sidebar-hover: #213c5f;
    --sidebar-text: rgba(255, 255, 255, 0.72);
    --sidebar-text-strong: #ffffff;
    --sidebar-text-muted: rgba(255, 255, 255, 0.45);
    --sidebar-border: rgba(255, 255, 255, 0.08);

    /* ---------- Cor: superfícies ---------- */
    --background: #f4f7fa;
    --surface: #ffffff;
    --surface-secondary: #f8fafc;

    --border: #dce4ec;
    --border-light: #edf1f5;

    /* ---------- Cor: texto ---------- */
    --text-primary: #172033;
    --text-secondary: #667085;
    --text-muted: #98a2b3;
    --text-on-primary: #ffffff;

    /* ---------- Cor: estados semânticos ---------- */
    --success: #198754;
    --success-light: #e8f5ee;
    --success-text: #0f5132;

    --warning: #d97706;
    --warning-light: #fff4e5;
    --warning-text: #92400e;

    --danger: #dc3545;
    --danger-hover: #bb2d3b;
    --danger-light: #fdecee;
    --danger-text: #842029;

    --info: #087ea4;
    --info-light: #e7f5fa;
    --info-text: #055160;

    /* ---------- Tipografia ---------- */
    --font-family-base: 'Segoe UI', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;

    --font-size-xs: 0.75rem;
    --font-size-sm: 0.8125rem;
    --font-size-md: 0.875rem;
    --font-size-base: 0.95rem;
    --font-size-lg: 1.05rem;
    --font-size-xl: 1.25rem;
    --font-size-2xl: 1.5rem;
    --font-size-3xl: 2rem;

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

    --line-height-base: 1.6;
    --line-height-tight: 1.25;

    /* ---------- Espaçamento ---------- */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-7: 1.75rem;
    --space-8: 2rem;
    --space-10: 2.5rem;

    /* ---------- Raios de borda ---------- */
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 14px;
    --radius-pill: 999px;

    /* ---------- Sombras ---------- */
    --shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 1px 3px 0 rgba(15, 23, 42, 0.06);
    --shadow-md: 0 4px 14px rgba(15, 23, 42, 0.08);
    --shadow-lg: 0 10px 24px rgba(15, 23, 42, 0.10);
    --shadow-xl: 0 20px 40px rgba(15, 23, 42, 0.14);

    /* ---------- Transições ---------- */
    --ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 150ms var(--ease-standard);
    --transition-base: 200ms var(--ease-standard);
    --transition-slow: 300ms var(--ease-standard);

    /* ---------- Layout ---------- */
    --sidebar-width: 272px;
    --sidebar-width-collapsed: 76px;
    --topbar-height: 68px;

    /* ---------- Z-index ---------- */
    --z-sidebar: 1030;
    --z-sidebar-mobile: 1050;
    --z-backdrop: 1040;
    --z-topbar: 1020;
    --z-dropdown: 1060;
    --z-modal: 1070;
    --z-toast: 1090;
    --z-tooltip: 1095;

    /* ---------- Compat: nomes usados por Bootstrap ---------- */
    --bs-primary: var(--primary);
    --bs-primary-rgb: 15, 76, 129;
    --bs-success: var(--success);
    --bs-success-rgb: 25, 135, 84;
    --bs-danger: var(--danger);
    --bs-danger-rgb: 220, 53, 69;
    --bs-warning: var(--warning);
    --bs-warning-rgb: 217, 119, 6;
    --bs-info: var(--info);
    --bs-info-rgb: 8, 126, 164;
    --bs-body-bg: var(--background);
    --bs-body-color: var(--text-primary);
    --bs-border-color: var(--border);
    --bs-link-color: var(--primary);
    --bs-link-hover-color: var(--primary-hover);
    --bs-font-sans-serif: var(--font-family-base);
}
