/**
 * BNA Balancete — Temas de cor e modo claro/escuro
 * 4 temas: verde, azul, violeta, laranja
 */

/* ─── Tema Verde (padrão) ─── */
html[data-theme="verde"] {
  --bna-primary: #0d9488;
  --bna-primary-dark: #0f766e;
  --bna-primary-light: #14b8a6;
  --bna-sidebar-active: rgba(20, 184, 166, 0.22);
  --bna-primary-rgb: 13, 148, 136;
}

/* ─── Tema Azul ─── */
html[data-theme="azul"] {
  --bna-primary: #1A8BC3;
  --bna-primary-dark: #1579a8;
  --bna-primary-light: #2a9dd4;
  --bna-sidebar-active: rgba(42, 157, 212, 0.22);
  --bna-primary-rgb: 26, 139, 195;
}

/* ─── Tema Violeta ─── */
html[data-theme="violeta"] {
  --bna-primary: #562483;
  --bna-primary-dark: #451c6b;
  --bna-primary-light: #6b2fa3;
  --bna-sidebar-active: rgba(107, 47, 163, 0.22);
  --bna-primary-rgb: 86, 36, 131;
}

/* ─── Tema Laranja ─── */
html[data-theme="laranja"] {
  --bna-primary: #EA560E;
  --bna-primary-dark: #c94a0c;
  --bna-primary-light: #f06b1f;
  --bna-sidebar-active: rgba(240, 107, 31, 0.22);
  --bna-primary-rgb: 234, 86, 14;
}

/* ─── Tema Vermelho (referência bandeira AO) ─── */
html[data-theme="vermelho"] {
  --bna-primary: #CE1126;
  --bna-primary-dark: #9e0e1e;
  --bna-primary-light: #ef4444;
  --bna-sidebar-active: rgba(206, 17, 38, 0.28);
  --bna-primary-rgb: 206, 17, 38;
}

/* ─── Tema Amarelo (referência bandeira AO) ─── */
html[data-theme="amarelo"] {
  --bna-primary: #F9D900;
  --bna-primary-dark: #a16207;
  --bna-primary-light: #fef08a;
  --bna-sidebar-active: rgba(249, 217, 0, 0.32);
  --bna-primary-rgb: 249, 217, 0;
}

/* Botões sólidos no tema amarelo: texto escuro para contraste */
html[data-theme="amarelo"] .btn-primary,
html[data-theme="amarelo"] .btn-primary:hover {
  color: #422006 !important;
}
html[data-theme="amarelo"] .btn-primary i {
  color: #422006 !important;
}

html[data-theme="amarelo"] a.bna-config-hub-link .card-body > .d-flex > i {
  color: var(--bna-primary-dark) !important;
}

/* ─── Switch Restrição ao Fluxo de Aprovação Interna (dinâmico ao tema) ─── */
.config-page #collapse-iniciativas .custom-switch .custom-control-input:checked ~ .custom-control-label::before {
  background-color: var(--bna-primary) !important;
  border-color: var(--bna-primary) !important;
}
.config-page #collapse-iniciativas .custom-switch .custom-control-input:not(:checked) ~ .custom-control-label::before {
  background-color: #cbd5e1 !important;
  border-color: #cbd5e1 !important;
}
html[data-mode="dark"] .config-page #collapse-iniciativas .custom-switch .custom-control-input:not(:checked) ~ .custom-control-label::before {
  background-color: #475569 !important;
  border-color: #475569 !important;
}

/* ─── Modo escuro ─── */
html[data-mode="dark"] .content-wrapper {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%) !important;
}

html[data-mode="dark"] #page-title {
  color: #f1f5f9;
}

html[data-mode="dark"] .page-direcao {
  color: #94a3b8 !important;
}

html[data-mode="dark"] .main-header.navbar {
  background: #1e293b !important;
  border-bottom-color: #334155 !important;
}

html[data-mode="dark"] .main-header.navbar .navbar-nav .nav-link[data-widget="pushmenu"]:hover {
  background: #0f172a !important;
}

html[data-mode="dark"] .main-header .nav-link {
  color: #94a3b8 !important;
}

html[data-mode="dark"] .main-header .nav-link:hover {
  color: var(--bna-primary-light) !important;
  background: rgba(255,255,255,0.06) !important;
}

html[data-mode="dark"] .main-header .nav-link.active {
  color: var(--bna-primary-light) !important;
}

html[data-mode="dark"] .card {
  background: #1e293b !important;
  border-color: #334155 !important;
}

html[data-mode="dark"] .card-header {
  background: #0f172a !important;
  border-bottom-color: #334155 !important;
  color: #f1f5f9;
}

html[data-mode="dark"] .card-header .card-title .fas,
html[data-mode="dark"] .card-header .card-title .far {
  color: var(--bna-primary-light) !important;
}

/* Botões no cabeçalho de cartões (ex.: Serviços/Licenças): outline legível no modo escuro */
html[data-mode="dark"] .dashboard-tables .card-header .btn-outline-primary {
  border-color: var(--bna-primary-light);
  color: var(--bna-primary-light);
}
html[data-mode="dark"] .dashboard-tables .card-header .btn-outline-primary:hover {
  background: rgba(var(--bna-primary-rgb, 13, 148, 136), 0.18);
  border-color: var(--bna-primary-light);
  color: #f8fafc;
}

html[data-mode="dark"] .dashboard-tables .dt-export-collection-toggle.btn-outline-primary {
  border-color: var(--bna-primary-light);
  color: var(--bna-primary-light);
  background: transparent;
}
html[data-mode="dark"] .dashboard-tables .dt-export-collection-toggle.btn-outline-primary:hover {
  background: rgba(var(--bna-primary-rgb, 13, 148, 136), 0.18);
  border-color: var(--bna-primary-light);
  color: #f8fafc;
}

/* Menu Exportar (collection) no modo escuro */
html[data-mode="dark"] .dashboard-tables .dt-button-collection {
  background: #1e293b;
  border-color: #334155;
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.35);
}
html[data-mode="dark"] .dashboard-tables .dt-button-collection .dt-button,
html[data-mode="dark"] .dashboard-tables .dt-button-collection button.dt-button {
  color: #f1f5f9;
}
html[data-mode="dark"] .dashboard-tables .dt-button-collection .dt-button:hover,
html[data-mode="dark"] .dashboard-tables .dt-button-collection button.dt-button:hover {
  background: rgba(var(--bna-primary-rgb, 13, 148, 136), 0.2);
  color: #f8fafc;
}
html[data-mode="dark"] .dashboard-tables .dt-button-background {
  background: rgba(2, 6, 23, 0.55) !important;
}

html[data-mode="dark"] .nav-sidebar .nav-treeview .nav-treeview-chevron.nav-icon {
  color: rgba(255, 255, 255, 0.75);
}

html[data-mode="dark"] .dashboard-card {
  background: #1e293b !important;
  border-color: #334155 !important;
}

html[data-mode="dark"] .dashboard-card__value {
  color: #f1f5f9;
}

html[data-mode="dark"] .dashboard-card__label {
  color: #94a3b8;
}

html[data-mode="dark"] .content-header {
  background: transparent !important;
}

html[data-mode="dark"] .main-footer {
  background: #1e293b !important;
  border-top-color: #334155;
  color: #94a3b8;
}

html[data-mode="dark"] .main-footer a {
  color: var(--bna-primary-light);
}

html[data-mode="dark"] .main-footer a:hover {
  color: var(--bna-primary);
}

html[data-mode="dark"] .dashboard-tables thead th {
  background: #0f172a !important;
  color: #94a3b8;
  border-bottom-color: #334155;
}

html[data-mode="dark"] .dashboard-tables tbody td {
  border-bottom-color: #334155;
}

html[data-mode="dark"] .dashboard-tables tbody tr:hover {
  background: #0f172a;
}

html[data-mode="dark"] .dashboard-tables .dataTables_filter input,
html[data-mode="dark"] .dashboard-tables .dataTables_length select {
  background: #1e293b;
  border-color: #475569;
  color: #f1f5f9;
}

html[data-mode="dark"] .dashboard-tables .dataTables_paginate .paginate_button,
html[data-mode="dark"] .dashboard-tables .dataTables_paginate .page-item .page-link {
  background: #1e293b;
  border-color: #475569;
  color: #94a3b8;
}
html[data-mode="dark"] .dashboard-tables .dataTables_paginate .page-item:not(.active):not(.disabled) .page-link:hover,
html[data-mode="dark"] .dashboard-tables .dataTables_paginate .page-item.previous:not(.disabled) .page-link:hover,
html[data-mode="dark"] .dashboard-tables .dataTables_paginate .page-item.next:not(.disabled) .page-link:hover {
  background: rgba(var(--bna-primary-rgb, 13, 148, 136), 0.2);
  border-color: var(--bna-primary-light);
  color: var(--bna-primary-light);
}
html[data-mode="dark"] .dashboard-tables .dataTables_paginate .page-item.disabled .page-link {
  opacity: 0.6;
  background: #1e293b;
  color: #64748b;
}
html[data-mode="dark"] .dashboard-tables .dataTables_paginate .paginate_button.current,
html[data-mode="dark"] .dashboard-tables .dataTables_paginate .page-item.active .page-link {
  background: var(--bna-primary) !important;
  border-color: var(--bna-primary) !important;
  color: #fff !important;
}

html[data-mode="dark"] .form-control {
  background: #1e293b;
  border-color: #475569;
  color: #f1f5f9;
}

html[data-mode="dark"] .form-control:focus {
  background: #1e293b;
}

html[data-mode="dark"] select.form-control,
html[data-mode="dark"] select.form-control-sm,
html[data-mode="dark"] select.custom-select {
  color: #f1f5f9;
  -webkit-text-fill-color: #f1f5f9;
  background-color: #1e293b;
}

html[data-mode="dark"] select.form-control:disabled,
html[data-mode="dark"] select.form-control-sm:disabled,
html[data-mode="dark"] select.custom-select:disabled {
  color: #94a3b8;
  background-color: #0f172a;
}

html[data-mode="dark"] .input-group-text {
  background: #0f172a;
  border-color: #475569;
  color: #94a3b8;
}

html[data-mode="dark"] .config-page .card-header .card-title .fas,
html[data-mode="dark"] .config-page .card-header .card-title .far,
html[data-mode="dark"] .info-suptech .card-header .card-title .fas,
html[data-mode="dark"] .info-suptech .card-header .card-title .far,
html[data-mode="dark"] .info-suptech .card-header .fas,
html[data-mode="dark"] .perfil-page .card-header .fas,
html[data-mode="dark"] .perfil-page .card-header .far,
html[data-mode="dark"] .gerar-page .card-header .card-title .fas,
html[data-mode="dark"] .gerar-page .card-header .card-title .far {
  color: var(--bna-primary-light) !important;
}
html[data-mode="dark"] .manual-page .manual-page-icon {
  color: var(--bna-primary-light) !important;
}
/* Ícones dos botões: branco em modo escuro (contraste com fundo laranja) */
html[data-mode="dark"] .config-page .card-header .btn .fas,
html[data-mode="dark"] .config-page .card-header .btn .far,
html[data-mode="dark"] .info-suptech .card-header .btn .fas,
html[data-mode="dark"] .info-suptech .card-header .btn .far {
  color: #fff !important;
}

html[data-mode="dark"] .config-page .card-header[data-toggle="collapse"]:hover {
  background: #334155 !important;
}

html[data-mode="dark"] .config-page .templates-modulo-row {
  background: #0f172a;
}

html[data-mode="dark"] .config-page .templates-sub-row:nth-child(even) {
  background: #1e293b;
}

html[data-mode="dark"] .config-page .templates-sub-row:nth-child(odd) {
  background: #0f172a;
}

html[data-mode="dark"] .config-page .templates-sub-row:hover {
  background: #334155 !important;
}

/* Labels, textos e placeholders na página Configurações — modo noturno */
html[data-mode="dark"] .config-page .card-body {
  color: #e2e8f0;
}

html[data-mode="dark"] .config-page .form-group label {
  color: #e2e8f0 !important;
}

html[data-mode="dark"] .config-page .form-text,
html[data-mode="dark"] .config-page small.text-muted,
html[data-mode="dark"] .config-page .text-muted {
  color: #94a3b8 !important;
}

html[data-mode="dark"] .config-page a.bna-config-hub-link,
html[data-mode="dark"] .config-page a.bna-config-hub-link:hover {
  color: #f1f5f9 !important;
}

html[data-mode="dark"] .config-page a.bna-config-hub-link strong.text-dark {
  color: #f1f5f9 !important;
}

html[data-mode="dark"] .config-page .form-control::placeholder {
  color: #94a3b8;
}

html[data-mode="dark"] .config-page .card-header .card-title {
  color: #f1f5f9;
}

html[data-mode="dark"] .config-page .card-header.collapsed .card-title {
  color: #f1f5f9;
}

html[data-mode="dark"] .config-page dl dt {
  color: #94a3b8;
}

html[data-mode="dark"] .config-page dl dd {
  color: #e2e8f0;
}

html[data-mode="dark"] .config-page .custom-control-label {
  color: #e2e8f0;
}

html[data-mode="dark"] .config-page .custom-switch-activo .custom-control-input:not(:checked) ~ .custom-control-label::before {
  background-color: #475569 !important;
  border-color: #64748b !important;
  box-shadow: none;
}
html[data-mode="dark"] .config-page .custom-switch-activo .custom-control-input:checked ~ .custom-control-label::before {
  background-color: var(--bna-accent) !important;
  border-color: var(--bna-accent) !important;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.35);
}
html[data-mode="dark"] .config-page .custom-switch-activo .custom-control-input:checked ~ .custom-control-label::after {
  background-color: #e2e8f0 !important;
}

html[data-mode="dark"] .config-page .form-control-file {
  background: #0f172a;
  border-color: #475569;
  color: #94a3b8;
}

html[data-mode="dark"] .config-page .sistema-info-form .input-group-text {
  background: #0f172a;
  border-color: #475569;
  color: #94a3b8;
}
html[data-mode="dark"] .config-page .sistema-info-form .input-group-text .fas,
html[data-mode="dark"] .perfil-page .input-group-text .fas {
  color: var(--bna-primary-light) !important;
}

html[data-mode="dark"] .config-page .templates-modulo-row td {
  color: #e2e8f0;
}

html[data-mode="dark"] .config-page .templates-sub-row td,
html[data-mode="dark"] .config-page .templates-sub-row .form-check-label {
  color: #e2e8f0;
}

html[data-mode="dark"] .gerar-page .gerar-page__ficheiro-actual,
html[data-mode="dark"] .gerar-page .templates-checkboxes {
  background: #0f172a;
  border-color: #475569;
}

html[data-mode="dark"] .gerar-page .gerar-page__ficheiro-actual-label {
  color: #f1f5f9;
}

html[data-mode="dark"] .gerar-page .gerar-page__ficheiro-actual-nome {
  color: #94a3b8;
}

/* Labels, textos e placeholders na página Gerar — modo noturno */
html[data-mode="dark"] .gerar-page .form-group label {
  color: #e2e8f0 !important;
}

html[data-mode="dark"] .gerar-page .form-text,
html[data-mode="dark"] .gerar-page small.text-muted {
  color: #94a3b8 !important;
}

html[data-mode="dark"] .gerar-page .form-control::placeholder {
  color: #94a3b8;
}

html[data-mode="dark"] .gerar-page select.form-control option {
  background: #1e293b;
  color: #f1f5f9;
}

html[data-mode="dark"] .gerar-page .form-control-file {
  background: #0f172a;
  border-color: #475569;
  color: #94a3b8;
}

html[data-mode="dark"] .gerar-page .form-control-file:hover {
  background: #1e293b;
  border-color: #64748b;
}

html[data-mode="dark"] .gerar-page .templates-checkboxes .form-check-label {
  color: #e2e8f0;
}

html[data-mode="dark"] .gerar-page .page-footer-link {
  color: #94a3b8;
}

html[data-mode="dark"] .gerar-page .page-footer-link a {
  color: var(--bna-primary-light);
}

html[data-mode="dark"] .gerar-page .page-footer-link a:hover {
  color: var(--bna-primary);
}

html[data-mode="dark"] .gerar-page .card-body {
  color: #e2e8f0;
}

html[data-mode="dark"] .perfil-page .form-control:disabled,
html[data-mode="dark"] .perfil-page .form-control[readonly] {
  background: #0f172a;
  color: #94a3b8;
}

html[data-mode="dark"] .perfil-page .card .card-header {
  color: #f1f5f9;
}

html[data-mode="dark"] .perfil-page .form-group label {
  color: #e2e8f0;
}

html[data-mode="dark"] .perfil-page .text-muted {
  color: #94a3b8 !important;
}

html[data-mode="dark"] .perfil-page .custom-control-label {
  color: #e2e8f0;
}

html[data-mode="dark"] .modal-content {
  background: #1e293b;
  border-color: #334155;
}

html[data-mode="dark"] .modal-body {
  background: #1e293b !important;
  color: #e2e8f0;
}

html[data-mode="dark"] .modal-footer {
  background: #0f172a !important;
  border-top-color: #334155;
}

html[data-mode="dark"] .alert-success {
  background: #064e3b;
  border-color: #047857;
  color: #a7f3d0;
}

html[data-mode="dark"] .alert-danger {
  background: #7f1d1d;
  border-color: #991b1b;
  color: #fecaca;
}

html[data-mode="dark"] .alert-info {
  background: #1e3a8a;
  border-color: #2563eb;
  color: #bfdbfe;
}

html[data-mode="dark"] .table {
  color: #e2e8f0;
}

html[data-mode="dark"] .table thead th {
  border-color: #334155;
}

html[data-mode="dark"] .table td,
html[data-mode="dark"] .table th {
  border-color: #334155;
}

html[data-mode="dark"] .estado-reporte-em_processamento {
  background: rgba(245, 158, 11, 0.2);
  color: #fcd34d;
  border-color: rgba(245, 158, 11, 0.5);
}
html[data-mode="dark"] .estado-reporte-aceite {
  background: rgba(5, 150, 105, 0.2);
  color: #6ee7b7;
  border-color: rgba(5, 150, 105, 0.5);
}
html[data-mode="dark"] .estado-reporte-rejeitado {
  background: rgba(220, 38, 38, 0.2);
  color: #fca5a5;
  border-color: rgba(220, 38, 38, 0.5);
}
html[data-mode="dark"] .estado-reporte-na {
  background: #334155;
  color: #94a3b8;
  border-color: #475569;
}

/* ─── Info SUPTECH — modo noturno ─── */
html[data-mode="dark"] .info-suptech .card {
  background: #0f172a !important;
  border-color: #334155 !important;
}

html[data-mode="dark"] .info-suptech .card-header {
  background: #0f172a !important;
  border-bottom-color: #334155 !important;
  color: #f1f5f9 !important;
}

html[data-mode="dark"] .info-suptech .card-header .card-title {
  color: #f1f5f9 !important;
}

html[data-mode="dark"] .info-suptech .card-header[data-toggle="collapse"]:hover {
  background: #334155 !important;
}
html[data-mode="dark"] .info-suptech .card-header .toggle-chevron,
html[data-mode="dark"] .config-page .card-header .toggle-chevron {
  color: #cbd5e1 !important;
}

html[data-mode="dark"] .info-suptech .card-body {
  color: #e2e8f0;
}

html[data-mode="dark"] .info-suptech .form-group label {
  color: #e2e8f0 !important;
}

html[data-mode="dark"] .info-suptech .templates-modulo-row {
  background: #0f172a !important;
}

html[data-mode="dark"] .info-suptech .templates-modulo-row td {
  color: #e2e8f0 !important;
  border-top-color: #334155 !important;
}

html[data-mode="dark"] .info-suptech .templates-sub-row:nth-child(even) {
  background: #1e293b !important;
}

html[data-mode="dark"] .info-suptech .templates-sub-row:nth-child(odd) {
  background: #0f172a !important;
}

html[data-mode="dark"] .info-suptech .templates-sub-row:hover {
  background: #334155 !important;
}

html[data-mode="dark"] .info-suptech .templates-sub-row td {
  color: #e2e8f0 !important;
}

html[data-mode="dark"] .info-suptech.dashboard-tables thead th {
  background: #0f172a !important;
  color: #94a3b8 !important;
  border-bottom-color: #334155 !important;
}

html[data-mode="dark"] .info-suptech.dashboard-tables tbody td {
  color: #e2e8f0 !important;
  border-bottom-color: #334155 !important;
}

html[data-mode="dark"] .info-suptech.dashboard-tables tbody tr:hover {
  background: #334155 !important;
}

html[data-mode="dark"] .info-suptech.dashboard-tables .dataTables_length label,
html[data-mode="dark"] .info-suptech.dashboard-tables .dataTables_filter label {
  color: #94a3b8 !important;
}

html[data-mode="dark"] .info-suptech.dashboard-tables .dataTables_length select {
  background: #1e293b !important;
  border-color: #475569 !important;
  color: #f1f5f9 !important;
}

html[data-mode="dark"] .info-suptech.dashboard-tables .dataTables_filter input {
  background: #1e293b !important;
  border-color: #475569 !important;
  color: #f1f5f9 !important;
}

html[data-mode="dark"] .info-suptech.dashboard-tables .dataTables_info {
  color: #94a3b8 !important;
}

html[data-mode="dark"] .info-suptech.dashboard-tables .dataTables_paginate .paginate_button,
html[data-mode="dark"] .info-suptech.dashboard-tables .dataTables_paginate .page-item .page-link {
  background: #1e293b !important;
  border-color: #475569 !important;
  color: #94a3b8 !important;
}

html[data-mode="dark"] .info-suptech.dashboard-tables .dataTables_paginate .page-item:not(.active):not(.disabled) .page-link:hover,
html[data-mode="dark"] .info-suptech.dashboard-tables .dataTables_paginate .page-item.previous:not(.disabled) .page-link:hover,
html[data-mode="dark"] .info-suptech.dashboard-tables .dataTables_paginate .page-item.next:not(.disabled) .page-link:hover {
  background: rgba(var(--bna-primary-rgb, 13, 148, 136), 0.2) !important;
  border-color: var(--bna-primary-light) !important;
  color: var(--bna-primary-light) !important;
}

html[data-mode="dark"] .info-suptech .text-muted {
  color: #94a3b8 !important;
}

/* Theme selector no perfil */
.theme-option {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 3px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.theme-option:hover {
  transform: scale(1.05);
}

.theme-option.active {
  border-color: #0f172a;
  box-shadow: 0 0 0 2px #fff;
}

html[data-mode="dark"] .theme-option.active {
  border-color: #f1f5f9;
  box-shadow: 0 0 0 2px #1e293b;
}

.theme-option--verde { background: #0d9488; }
.theme-option--azul { background: #1A8BC3; }
.theme-option--violeta { background: #562483; }
.theme-option--laranja { background: #EA560E; }
.theme-option--vermelho { background: #CE1126; }
.theme-option--amarelo { background: #F9D900; border: 1px solid rgba(0, 0, 0, 0.12); }

#theme-options .theme-option,
#theme-options-config .theme-option {
  margin-right: 0.75rem;
  margin-bottom: 0.5rem;
}

/* Ícones sol/lua no modo noturno */
.theme-mode-icon {
  font-size: 1.1rem;
  opacity: 0.5;
  color: #64748b;
  transition: opacity 0.2s, color 0.2s;
}
.theme-mode-icon--light { color: #f59e0b; }
.theme-mode-icon--dark { color: #94a3b8; }
html[data-mode="light"] .theme-mode-icon--light {
  opacity: 1;
  color: #f59e0b;
}
html[data-mode="light"] .theme-mode-icon--dark {
  opacity: 0.4;
}
html[data-mode="dark"] .theme-mode-icon--light {
  opacity: 0.4;
}
html[data-mode="dark"] .theme-mode-icon--dark {
  opacity: 1;
  color: var(--bna-primary-light);
}

/* ─── Login page: tema e modo ─── */
body.login-page {
  background: linear-gradient(135deg, #f0fdfa 0%, #e2e8f0 50%, #f1f5f9 100%);
}

html[data-mode="dark"] body.login-page {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}

html[data-mode="dark"] .login-card {
  background: #1e293b !important;
  border: 1px solid #334155 !important;
}

html[data-mode="dark"] .login-card .card-header {
  background: #0f172a !important;
  border-bottom-color: #334155;
}

html[data-mode="dark"] .login-card .card-header .logo-fallback {
  color: var(--bna-primary-light);
}

html[data-mode="dark"] .login-card .card-header .text-muted {
  color: #94a3b8 !important;
}

html[data-mode="dark"] .login-card .card-body {
  background: #1e293b !important;
}

html[data-mode="dark"] .login-card .login-box-msg {
  color: #94a3b8;
}

html[data-mode="dark"] .login-card .form-control {
  background: #0f172a;
  border-color: #475569;
  color: #f1f5f9;
}

html[data-mode="dark"] .login-card .form-control::placeholder {
  color: #64748b;
}

html[data-mode="dark"] .login-card .input-group-text {
  background: #0f172a;
  border-color: #475569;
  color: #94a3b8;
}

/* ─── Página Manutenção ─── */
body.manutencao-page {
  background: linear-gradient(135deg, #f0fdfa 0%, #e2e8f0 50%, #f1f5f9 100%);
}

html[data-mode="dark"] body.manutencao-page {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
}

html[data-mode="dark"] .manutencao-card {
  background: #1e293b !important;
  border: 1px solid #334155;
}

html[data-mode="dark"] .manutencao-title {
  color: #f1f5f9;
}

html[data-mode="dark"] .manutencao-text {
  color: #94a3b8;
}

html[data-mode="dark"] .manutencao-footer {
  color: #64748b;
}

