/**
 * FireSys — overrides de componentes
 * Azul institucional + vermelho acento
 */

/* Botões primários — azul institucional */
.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--brand-primary);
    --bs-btn-border-color: var(--brand-primary);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--brand-primary-dark);
    --bs-btn-hover-border-color: var(--brand-primary-dark);
    --bs-btn-focus-shadow-rgb: var(--brand-primary-rgb);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: var(--brand-primary-darker);
    --bs-btn-active-border-color: var(--brand-primary-darker);
    border-radius: 10px;
    font-weight: 600;
}

.btn-danger {
    --bs-btn-bg: var(--accent-red);
    --bs-btn-border-color: var(--accent-red);
    --bs-btn-hover-bg: var(--accent-red-hover);
    --bs-btn-hover-border-color: var(--accent-red-hover);
    border-radius: 10px;
}

.btn-outline-primary {
    --bs-btn-color: var(--brand-primary);
    --bs-btn-border-color: var(--brand-primary);
    --bs-btn-hover-bg: var(--brand-primary);
    --bs-btn-hover-border-color: var(--brand-primary);
    --bs-btn-hover-color: #fff;
    border-radius: 10px;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: var(--brand-primary-dark) !important;
    border-color: var(--brand-primary-dark) !important;
}

/* Badges críticos — vermelho acento */
.badge.bg-danger,
.notification-badge,
.topbar-badge {
    background-color: var(--accent-red) !important;
}

/* Stat icons — extintor vermelho, demais azul */
.stat-icon.bg-danger,
.stat-icon.bg-accent,
.quick-action-icon.bg-danger {
    background-color: var(--accent-red-subtle) !important;
    color: var(--accent-red) !important;
}

.stat-icon.bg-primary,
.quick-action-icon.bg-primary {
    background-color: var(--primary-subtle) !important;
    color: var(--brand-primary) !important;
}

.text-danger {
    color: var(--accent-red) !important;
}

.border-danger {
    border-color: var(--accent-red) !important;
}

/* Formulários — focus azul */
.form-check-input:checked {
    background-color: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--brand-primary) !important;
    box-shadow: 0 0 0 3px rgba(var(--brand-primary-rgb), 0.15) !important;
}

/* Links */
.text-decoration-none,
.auth-footer a,
.page-link {
    color: var(--brand-primary);
}

.page-item.active .page-link,
.active > .page-link,
.page-link.active {
    background-color: var(--brand-primary) !important;
    border-color: var(--brand-primary) !important;
}

/* Tabelas */
.table thead th {
    background-color: var(--table-header-bg);
    color: var(--table-header-color);
}

/* Alertas */
.alert-info {
    --bs-alert-color: var(--alert-info-color);
    --bs-alert-bg: var(--alert-info-bg);
    --bs-alert-border-color: var(--alert-info-border);
}

/* Dropdowns */
.dropdown-item:active,
.dropdown-item.active {
    background-color: var(--brand-primary);
}

/* Progress */
.progress-bar {
    background-color: var(--brand-primary) !important;
}

/* Legacy sidebar overrides — desativados (novo firesys-sidebar) */
.sidebar .nav-link.active {
    background-color: transparent !important;
    color: inherit !important;
}
