/* NOVO ESQUEMA DE CORES (TESTE) */
:root {
    /* Tokyo Night Light Theme (Default se não for dark) */
    --bg-base: #d5d6db;
    --bg-surface: #e1e2e7;
    --bg-glass: rgba(225, 226, 231, 0.6);
    --text-main: #343b58;
    --text-muted: #565f89;
    --primary: #6c71da;
    --primary-hover: #293966;
    --secondary: #9aa5ce;
    --accent: #0f4b6e;
    --danger: #8c4351;
    --success: #33635c;
    --warning: #8c6c3e; /* Added a warning fallback just in case */
    --border: rgba(52, 59, 88, 0.1);
    --shadow: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] {
    /* Tokyo Night Dark Theme */
    --bg-base: #1a1b26;
    --bg-surface: #24283b;
    --bg-glass: rgba(36, 40, 59, 0.6);
    --text-main: #c0caf5;
    --text-muted: #9aa5ce;
    --primary: #7aa2f7;
    --primary-hover: #8caaee;
    --secondary: #414868;
    --accent: #bb9af7;
    --danger: #f7768e;
    --success: #9ece6a;
    --warning: #e0af68; /* Added a warning fallback just in case */
    --border: rgba(192, 202, 245, 0.1);
    --shadow: rgba(0, 0, 0, 0.3);
}

/* 
   Mapeamento das variáveis antigas para as novas, 
   para garantir que o sistema não quebre durante o teste. 
*/
body, :root {
    --bg-color: var(--bg-base);
    --surface-color: var(--bg-surface);
    --surface-hover: var(--bg-glass);
    --input-bg: var(--bg-surface);
    
    --text-primary: var(--text-main);
    --text-secondary: var(--secondary);
    --text-muted-old: var(--text-muted); /* Avoid circular reference since both are named --text-muted */
    
    --primary-color: var(--primary);
    --primary-hover: var(--primary-hover);
    
    --success-color: var(--success);
    --warning-color: var(--warning);
    --error-color: var(--danger);
    
    --table-header-bg: var(--bg-surface);
    --table-row-odd: var(--bg-base);
    --table-row-even: var(--bg-surface);
    
    --gold-color: #976206;
    
    --summary-bg: var(--bg-surface);
    --summary-text: var(--text-main);
}

/* Explicitly setting light theme summary card bg as requested previously */
[data-theme="light"] {
    --summary-bg: #c5cbe6;
    --summary-text: #1a1b26;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    transition: background-color 0.3s ease, color 0.3s ease;
}

input, select, textarea {
    background-color: var(--input-bg);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

input:focus, select:focus, textarea:focus {
    outline: none;
    box-shadow: 0 0 0 2px var(--primary-color);
}
