html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}
/* ── Dark theme ───────────────────────────────────────────────────────────
   Bootstrap 5.3's data-bs-theme repaints its own components; these rules cover
   the surfaces this app hard-codes light. Same set of traps the Portal hit:

   .bg-light / .table-light are FIXED light surfaces in Bootstrap — they do not
   follow data-bs-theme. Left alone, .text-dark below repaints their sortable
   header links to a near-white and they vanish into a light background, so the
   surfaces are repainted rather than the text. */
[data-bs-theme="dark"] body            { background-color: #12151c; }
[data-bs-theme="dark"] .bg-white       { background-color: #1b202b !important; color: #dee2e6; }
[data-bs-theme="dark"] .card           { background-color: #1b202b; border-color: #2a3140; }
[data-bs-theme="dark"] .card-header,
[data-bs-theme="dark"] .card-footer    { background-color: #1b202b; border-color: #2a3140; }
[data-bs-theme="dark"] .text-dark      { color: #dee2e6 !important; }
[data-bs-theme="dark"] footer.bg-light { background-color: #1b202b !important; border-color: #2a3140 !important; }
[data-bs-theme="dark"] body.bg-light   { background-color: #12151c !important; }   /* sign-in page */
[data-bs-theme="dark"] .border-top,
[data-bs-theme="dark"] .border-bottom  { border-color: #2a3140 !important; }

[data-bs-theme="dark"] .table-light {
    --bs-table-color: #dee2e6;
    --bs-table-bg: #232a3d;
    --bs-table-border-color: #2d3348;
    --bs-table-striped-color: #dee2e6;
    --bs-table-striped-bg: #262d42;
    --bs-table-hover-color: #f8f9fa;
    --bs-table-hover-bg: #2a3148;
}
[data-bs-theme="dark"] .badge.bg-light { background-color: #2a3140 !important; }
/* .bg-warning / .bg-info badges carry text-dark, which the dark .text-dark override above repaints
   near-white — unreadable on the light fills. Deepen the fill and use white text in dark mode (option C). */
[data-bs-theme="dark"] .badge.bg-warning { background-color: #b5820c !important; color: #fff !important; }
[data-bs-theme="dark"] .badge.bg-info    { background-color: #1187a8 !important; color: #fff !important; }
/* Ticket conversation pane (_TicketConversation): a fixed-light .bg-light box that otherwise stays
   white in dark mode. Sink it to the body tone so the message bubbles (#1b202b) read against it. */
[data-bs-theme="dark"] .cs-conversation { background-color: #12151c !important; border-color: #2a3140 !important; }

/* .alert-light is likewise a fixed light surface. */
[data-bs-theme="dark"] .alert-light {
    background-color: #1b202b;
    border-color: #2a3140;
    color: #dee2e6;
}

/* The navbar is already dark in both themes; keep its border from glowing. */
[data-bs-theme="dark"] .navbar.bg-dark { border-color: #2a3140 !important; }

/* The theme toggle is a link-button inside a dark navbar in BOTH themes. */
#theme-toggle        { color: rgba(255, 255, 255, .55); text-decoration: none; box-shadow: none; }
#theme-toggle:hover  { color: #fff; }
