/* ============================================================
   Mileto CRM - Design tokens e base
   Inspirado em CRMs de mercado (Pipedrive / HubSpot / Salesforce)
   ============================================================ */

:root {
    /* Marca */
    --brand-900: #0b1f3a;
    --brand-800: #122a4d;
    --brand-700: #1b3a66;
    --brand-600: #24508c;

    /* Acento (acoes/links) */
    --accent-50: #eef4ff;
    --accent-100: #dbe7ff;
    --accent-400: #5b8def;
    --accent-500: #2f6bed;
    --accent-600: #1e54cc;
    --accent-700: #1942a3;

    /* Neutros */
    --bg: #f4f6fb;
    --surface: #ffffff;
    --surface-2: #f8fafc;
    --border: #e6e9f0;
    --border-strong: #d4d9e4;

    --text: #1a2230;
    --text-muted: #5b6678;
    --text-soft: #8a93a6;

    /* Semanticos */
    --success-50: #e8f7ef;
    --success-500: #1fa463;
    --warning-50: #fdf4e3;
    --warning-500: #d9962a;
    --danger-50: #fdecec;
    --danger-500: #d64545;
    --info-50: #e8f1fd;
    --info-500: #2f6bed;

    /* Tipografia */
    --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

    /* Espacamento */
    --sp-1: 4px;
    --sp-2: 8px;
    --sp-3: 12px;
    --sp-4: 16px;
    --sp-5: 24px;
    --sp-6: 32px;
    --sp-7: 48px;

    /* Raios e sombras */
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06);
    --shadow: 0 4px 16px rgba(16, 24, 40, 0.08);
    --shadow-lg: 0 12px 32px rgba(16, 24, 40, 0.12);

    --sidebar-w: 248px;
    --topbar-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.5;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p { margin: 0; }

a { color: var(--accent-600); text-decoration: none; }
a:hover { text-decoration: underline; }

button { font-family: inherit; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 999px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--text-soft); }
