/* ==========================================================================
   DESIGN SYSTEM TOKENS - REGRA 60 / 30 / 10 (DARK TECH SAAS)
   ========================================================================== */
:root {
    /* 60% - Fundo Principal */
    --bg-primary: #0B0F19;
    --bg-primary-rgb: 11, 15, 25;
    --bg-subtle: #0F1523;
    --bg-code: #070A11;

    /* 30% - Painéis e Superfícies */
    --bg-surface: #1E293B;
    --bg-surface-hover: #253349;
    --bg-surface-active: #2D3D57;
    --bg-elevated: #334155;
    --bg-glass: rgba(30, 41, 59, 0.78);

    /* 10% - Destaque Esmeralda */
    --accent-primary: #10B981;
    --accent-primary-rgb: 16, 185, 129;
    --accent-hover: #059669;
    --accent-soft: rgba(16, 185, 129, 0.14);
    --accent-border: rgba(16, 185, 129, 0.38);

    /* Textos */
    --text-primary: #F8FAFC;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;

    /* Bordas */
    --border-color: #334155;
    --border-subtle: rgba(51, 65, 85, 0.65);

    /* Estados Semânticos */
    --status-success: #10B981;
    --status-success-bg: rgba(16, 185, 129, 0.12);
    --status-warning: #F59E0B;
    --status-warning-bg: rgba(245, 158, 11, 0.12);
    --status-error: #EF4444;
    --status-error-bg: rgba(239, 68, 68, 0.12);
    --status-info: #3B82F6;
    --status-info-bg: rgba(59, 130, 246, 0.12);

    /* Tipografia */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace;

    /* Layout & Dimensões */
    --sidebar-width: 272px;
    --sidebar-collapsed-width: 72px;
    --topbar-height: 64px;
    --content-max-width: 1480px;

    /* Raios e Sombras */
    --radius-xs: 4px;
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 18px;

    --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 18px 42px rgba(0, 0, 0, 0.52);
    --shadow-glow: 0 0 22px rgba(16, 185, 129, 0.22);

    /* Transições */
    --transition-fast: 140ms cubic-bezier(0.16, 1, 0.3, 1);
    --transition-base: 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    background-image: radial-gradient(circle at 12% 0%, rgba(16, 185, 129, 0.06), transparent 36%),
        radial-gradient(circle at 88% 12%, rgba(59, 130, 246, 0.05), transparent 32%);
    background-attachment: fixed;
}

code, pre, .mono {
    font-family: var(--font-mono);
}

/* Scrollbar técnica customizada */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
    background: var(--bg-elevated);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}
