/*
 * Padrão de cores do sistema — carregado em TODOS os layouts (admin, portal, atleta, login).
 * Regra: nunca usar o amarelo claro do Bootstrap (#ffc107) para texto, contorno ou botão
 * sobre fundo claro — ele fica ilegível. "warning" passa a ser âmbar escuro (contraste AA).
 * Não sobrescrever estas cores nas views; para destaque use as classes do Bootstrap normalmente.
 */
:root, [data-bs-theme="light"] {
    --bs-warning: #b45309;
    --bs-warning-rgb: 180, 83, 9;
    --bs-warning-text-emphasis: #7c2d12;
    --bs-warning-bg-subtle: #fff4e5;
    --bs-warning-border-subtle: #f5c58a;
}
[data-bs-theme="dark"] {
    --bs-warning: #f59e0b;
    --bs-warning-rgb: 245, 158, 11;
    --bs-warning-text-emphasis: #fcd9a0;
    --bs-warning-bg-subtle: #3a2606;
    --bs-warning-border-subtle: #7a4a0c;
}

/* Texto e links */
.text-warning { color: var(--bs-warning) !important; }
.link-warning { color: var(--bs-warning) !important; }

/* Botões sólidos: âmbar escuro com texto branco */
.btn-warning {
    --bs-btn-color: #fff; --bs-btn-bg: #b45309; --bs-btn-border-color: #b45309;
    --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #92400e; --bs-btn-hover-border-color: #92400e;
    --bs-btn-active-color: #fff; --bs-btn-active-bg: #7c2d12; --bs-btn-active-border-color: #7c2d12;
    --bs-btn-disabled-color: #fff; --bs-btn-disabled-bg: #b45309; --bs-btn-disabled-border-color: #b45309;
}
/* Botões de contorno: texto e borda âmbar escuro */
.btn-outline-warning {
    --bs-btn-color: #b45309; --bs-btn-border-color: #b45309;
    --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #b45309; --bs-btn-hover-border-color: #b45309;
    --bs-btn-active-color: #fff; --bs-btn-active-bg: #92400e; --bs-btn-active-border-color: #92400e;
    --bs-btn-disabled-color: #b45309; --bs-btn-disabled-border-color: #b45309;
}
[data-bs-theme="dark"] .btn-outline-warning { --bs-btn-color: #f59e0b; --bs-btn-border-color: #f59e0b; }

/* Badges e fundos */
.bg-warning, .text-bg-warning { background-color: #b45309 !important; color: #fff !important; }
.alert-warning { --bs-alert-color: #7c2d12; --bs-alert-bg: #fff4e5; --bs-alert-border-color: #f5c58a; --bs-alert-link-color: #7c2d12; }
[data-bs-theme="dark"] .alert-warning { --bs-alert-color: #fcd9a0; --bs-alert-bg: #3a2606; --bs-alert-border-color: #7a4a0c; }
.border-warning { border-color: #b45309 !important; }
.progress-bar.bg-warning { background-color: #d97706 !important; }

/* Caixas de seleção, rádios e chaves bem visíveis: borda forte e fundo acinzentado quando desmarcadas */
.form-check-input {
    border: 2px solid #64748b;
    background-color: #e2e8f0;
}
.form-check-input:hover:not(:disabled) { border-color: #334155; }
.form-check-input:checked { border-color: var(--bs-primary, #1b5fd6); background-color: var(--bs-primary, #1b5fd6); }
.form-check-input:focus { box-shadow: 0 0 0 .2rem rgba(27, 95, 214, .25); }
.form-switch .form-check-input:not(:checked) {
    --bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%2364748b'/%3e%3c/svg%3e");
}
[data-bs-theme="dark"] .form-check-input { border-color: #94a3b8; background-color: #1e293b; }
[data-bs-theme="dark"] .form-check-input:checked { border-color: var(--bs-primary); background-color: var(--bs-primary); }
