/**
 * Variáveis CSS - port62-controlefinanceiro
 * Paleta de cores para modo claro e escuro
 */

:root {
    /* ==================== MODO CLARO ==================== */
    --bg-body: #F4F6F8;
    --bg-header: #FFFFFF;
    --text-primary: #1C1E21;
    --text-secondary: #4E5D6C;
    --btn-primary: #C8943B;
    --btn-primary-hover: #b07f2f;
    --link-action: #4A4A4A;
    --border-color: #D0D7DE;
    --highlight: #7E57C2;
    --btn-github: #7E57C2;
    --btn-github-hover: #6a47a8;
    
    /* Backgrounds adicionais */
    --bg-card: #FFFFFF;
    --bg-input: #FFFFFF;
    --bg-sidebar: #FFFFFF;
    --bg-modal: #FFFFFF;
    
    /* Sombras */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.15);
    
    /* Status colors */
    --color-success: #22c55e;
    --color-danger: #ef4444;
    --color-warning: #f59e0b;
    --color-info: #3b82f6;
    
    /* Receitas e Despesas */
    --color-receita: #22c55e;
    --color-despesa: #ef4444;
    --color-essencial: #f59e0b;
    --color-superfluo: #ec4899;
    --color-fixo: #3b82f6;
    --color-variavel: #8b5cf6;
}

[data-theme="dark"] {
    /* ==================== MODO ESCURO ==================== */
    --bg-body: #0D1117;
    --bg-header: #161B22;
    --text-primary: #E6EDF3;
    --text-secondary: #8B949E;
    --btn-primary: #C8943B;
    --btn-primary-hover: #d9a550;
    --link-action: #4A4A4A;
    --border-color: #30363D;
    --highlight: #9B6BFF;
    --btn-github: #7E57C2;
    --btn-github-hover: #9B6BFF;
    
    /* Backgrounds adicionais */
    --bg-card: #161B22;
    --bg-input: #0D1117;
    --bg-sidebar: #161B22;
    --bg-modal: #161B22;
    
    /* Sombras */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);
    
    /* Status colors - ajustados para dark mode */
    --color-success: #10b981;
    --color-danger: #dc2626;
    --color-warning: #d97706;
    --color-info: #2563eb;
    
    /* Receitas e Despesas */
    --color-receita: #10b981;
    --color-despesa: #dc2626;
    --color-essencial: #d97706;
    --color-superfluo: #db2777;
    --color-fixo: #2563eb;
    --color-variavel: #7c3aed;
}

/* ==================== VARIÁVEIS GLOBAIS ==================== */
:root {
    /* Tipografia */
    --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
    
    /* Font sizes */
    --fs-xs: 0.75rem;
    --fs-sm: 0.875rem;
    --fs-base: 1rem;
    --fs-lg: 1.125rem;
    --fs-xl: 1.25rem;
    --fs-2xl: 1.5rem;
    --fs-3xl: 1.875rem;
    --fs-4xl: 2.25rem;
    
    /* 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;
    
    /* Border radius */
    --radius-sm: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms ease-in-out;
    --transition-base: 250ms ease-in-out;
    --transition-slow: 350ms ease-in-out;
    
    /* Z-index */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-tooltip: 1070;
}
