/*
 * Portal MTB — Tema laranja (#ff5a00)
 * Override das variáveis CSS primárias do demo43 (roxo → laranja)
 * Carregado após style.bundle.css
 */

/* ── Modo claro ──────────────────────────────────────────────────────────── */
:root,
[data-bs-theme=light] {
    --bs-primary:               #ff5a00;
    --bs-primary-rgb:           255, 90, 0;
    --bs-primary-active:        #e05000;
    --bs-primary-light:         #fff3ee;
    --bs-primary-clarity:       rgba(255, 90, 0, .20);
    --bs-primary-inverse:       #ffffff;
    --bs-primary-bg-subtle:     #fff3ee;
    --bs-primary-border-subtle: #ffb380;
    --bs-primary-text-emphasis: #7a2b00;

    --bs-link-color:       #ff5a00;
    --bs-link-hover-color: #e05000;

    --bs-text-primary: #ff5a00;
    --kt-primary:      #ff5a00;
}

/* ── Modo escuro ─────────────────────────────────────────────────────────── */
[data-bs-theme=dark] {
    --bs-primary:               #ff7030;
    --bs-primary-rgb:           255, 112, 48;
    --bs-primary-active:        #ff8c55;
    --bs-primary-light:         #2d1a0a;
    --bs-primary-clarity:       rgba(255, 112, 48, .20);
    --bs-primary-inverse:       #ffffff;
    --bs-primary-bg-subtle:     #2d1a0a;
    --bs-primary-border-subtle: #7a3000;
    --bs-primary-text-emphasis: #ff9966;

    --bs-link-color:       #ff7030;
    --bs-link-hover-color: #ff8c55;

    --bs-text-primary: #ff7030;
    --kt-primary:      #ff7030;
}

/* ── Componentes que usam primary hardcoded ──────────────────────────────── */

/* Botões btn-primary */
.btn-primary {
    --bs-btn-bg:                #ff5a00;
    --bs-btn-border-color:      #ff5a00;
    --bs-btn-hover-bg:          #e05000;
    --bs-btn-hover-border-color:#e05000;
    --bs-btn-active-bg:         #cc4800;
    --bs-btn-active-border-color:#cc4800;
    --bs-btn-disabled-bg:       #ff5a00;
    --bs-btn-disabled-border-color:#ff5a00;
}
.btn-light-primary {
    --bs-btn-color:             #ff5a00;
    --bs-btn-bg:                #fff3ee;
    --bs-btn-border-color:      transparent;
    --bs-btn-hover-bg:          #ff5a00;
    --bs-btn-hover-color:       #fff;
}
[data-bs-theme=dark] .btn-primary {
    --bs-btn-bg:                #ff7030;
    --bs-btn-border-color:      #ff7030;
    --bs-btn-hover-bg:          #ff8c55;
    --bs-btn-hover-border-color:#ff8c55;
}

/* Badges */
.badge.bg-primary         { background-color: #ff5a00 !important; }
.badge.badge-light-primary{ background-color: #fff3ee !important; color: #ff5a00 !important; }

/* Texto */
.text-primary             { color: #ff5a00 !important; }
[data-bs-theme=dark] .text-primary { color: #ff7030 !important; }

/* Backgrounds */
.bg-primary               { background-color: #ff5a00 !important; }
[data-bs-theme=dark] .bg-primary { background-color: #ff7030 !important; }

/* Bordas */
.border-primary           { border-color: #ff5a00 !important; }

/* Links */
a.text-primary,
a.text-hover-primary:hover { color: #ff5a00 !important; }

/* Symbol inicial do usuário */
.symbol-label.bg-primary  { background-color: #ff5a00 !important; }
[data-bs-theme=dark] .symbol-label.bg-primary { background-color: #ff7030 !important; }

/* Menu ativo — overrides com !important para ganhar sobre o bundle */
.menu-active-bg .menu-item.here > .menu-link,
.menu-active-bg .menu-item.here.show > .menu-link,
.menu-active-bg .menu-item.show > .menu-link,
.menu-state-primary .menu-item.here > .menu-link,
.menu-state-primary .menu-item .menu-link.active {
    background-color: #fff3ee !important;
    color:            #ff5a00 !important;
}
[data-bs-theme=dark] .menu-active-bg .menu-item.here > .menu-link,
[data-bs-theme=dark] .menu-active-bg .menu-item.here.show > .menu-link,
[data-bs-theme=dark] .menu-active-bg .menu-item.show > .menu-link {
    background-color: #2d1a0a !important;
    color:            #ff7030 !important;
}

/* Botões com active-color-primary (ex: hamburger mobile) */
.btn.btn-active-color-primary:hover,
.btn.btn-active-color-primary:active,
.btn.btn-active-color-primary:focus,
.btn.btn-active-color-primary.active,
.btn-check:checked + .btn.btn-active-color-primary {
    color: #ff5a00 !important;
}

/* Focus ring e outline */
:root { --bs-focus-ring-color: rgba(255, 90, 0, .25); }

/* Spinner / loader */
.spinner-border.text-primary { color: #ff5a00 !important; }
