/* ── Tema escuro (Bootstrap data-bs-theme) ───────────── */

[data-bs-theme="dark"] {
  color-scheme: dark;
}

[data-bs-theme="dark"] body,
[data-bs-theme="dark"] .hub-page {
  background-color: #0f1419 !important;
  color: #e8eaed;
}

[data-bs-theme="dark"] .bg-white,
[data-bs-theme="dark"] .bg-light,
[data-bs-theme="dark"] article.content.bg-white,
[data-bs-theme="dark"] .content.bg-white {
  background-color: #1a1f2e !important;
  color: #e8eaed;
}

[data-bs-theme="dark"] .card,
[data-bs-theme="dark"] .hub-card {
  background-color: #1a1f2e;
  border-color: #2c3344;
  color: #e8eaed;
}

[data-bs-theme="dark"] .hub-card:hover {
  border-color: #007f8f;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

[data-bs-theme="dark"] .hub-card h2,
[data-bs-theme="dark"] .hub-card .h5 {
  color: #f1f3f5;
}

[data-bs-theme="dark"] .text-muted,
[data-bs-theme="dark"] .hub-card .text-muted {
  color: #9aa3b2 !important;
}

[data-bs-theme="dark"] .hub-footer {
  background: #0f1419 !important;
  border-top-color: #2c3344 !important;
  color: #9aa3b2 !important;
}

[data-bs-theme="dark"] .hub-footer.text-muted {
  color: #9aa3b2 !important;
}

[data-bs-theme="dark"] .table {
  --bs-table-bg: #1a1f2e;
  --bs-table-color: #e8eaed;
  --bs-table-border-color: #2c3344;
  --bs-table-striped-bg: #151a27;
  --bs-table-hover-bg: #222838;
}

[data-bs-theme="dark"] .table-light,
[data-bs-theme="dark"] thead.table-light,
[data-bs-theme="dark"] .table > :not(caption) > * > * {
  background-color: var(--bs-table-bg);
  color: var(--bs-table-color);
  border-color: var(--bs-table-border-color);
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select,
[data-bs-theme="dark"] .form-check-input {
  background-color: #12161f;
  border-color: #3a4255;
  color: #e8eaed;
}

[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
  background-color: #12161f;
  border-color: #007f8f;
  color: #e8eaed;
}

[data-bs-theme="dark"] .modal-content {
  background-color: #1a1f2e;
  color: #e8eaed;
  border-color: #2c3344;
}

[data-bs-theme="dark"] .modal-header,
[data-bs-theme="dark"] .modal-footer {
  border-color: #2c3344;
}

[data-bs-theme="dark"] .dropdown-menu {
  background-color: #1a1f2e;
  border-color: #2c3344;
}

[data-bs-theme="dark"] .list-group-item {
  background-color: #1a1f2e;
  border-color: #2c3344;
  color: #e8eaed;
}

[data-bs-theme="dark"] .border,
[data-bs-theme="dark"] .border-1,
[data-bs-theme="dark"] .border-dark {
  border-color: #3a4255 !important;
}

[data-bs-theme="dark"] .alert-info {
  --bs-alert-bg: #132a3a;
  --bs-alert-color: #b6e0f0;
  --bs-alert-border-color: #1e4a5c;
}

[data-bs-theme="dark"] .alert-warning {
  --bs-alert-bg: #3a2e12;
  --bs-alert-color: #f5e6b8;
  --bs-alert-border-color: #6b5420;
}

[data-bs-theme="dark"] .rodape {
  background-color: #0b1432;
  color: #9aa3b2;
}

[data-bs-theme="dark"] .btn-theme-toggle {
  color: inherit;
}
