/* Public TPM sections follow the same preference as the admin Dark mode switch. */
html[data-bs-theme="dark"] {
  color-scheme: dark;
  --bs-body-bg: #282828;
  --bs-body-bg-rgb: 40, 40, 40;
  --bs-body-color: #e5e5e5;
  --bs-body-color-rgb: 229, 229, 229;
  --bs-emphasis-color: #f5f5f5;
  --bs-emphasis-color-rgb: 245, 245, 245;
  --bs-secondary-color: #b8b8b8;
  --bs-secondary-color-rgb: 184, 184, 184;
  --bs-secondary-bg: #383838;
  --bs-secondary-bg-rgb: 56, 56, 56;
  --bs-tertiary-bg: #303030;
  --bs-tertiary-bg-rgb: 48, 48, 48;
  --bs-border-color: #484848;
  --bs-border-color-translucent: #ffffff20;
  --bs-link-color: #c0b6ff;
  --bs-link-color-rgb: 192, 182, 255;
  --bs-link-hover-color: #ded8ff;
}
html[data-bs-theme="dark"] .container-exotic { background: rgba(35, 35, 35, .92); border-color: #4b4b4b; }
html[data-bs-theme="dark"] .accordion { --bs-accordion-bg: #303030; --bs-accordion-color: #e5e5e5; --bs-accordion-border-color: #484848; --bs-accordion-btn-color: #ededed; --bs-accordion-active-color: #f5f5f5; --bs-accordion-active-bg: #3b3b3b; }
html[data-bs-theme="dark"] .accordion-button.collapsed { background: #303030; color: #ededed; }
html[data-bs-theme="dark"] .accordion-button:not(.collapsed) { background: #3b3b3b; color: #f5f5f5; box-shadow: inset 0 -1px 0 #484848; }
html[data-bs-theme="dark"] .submission-status-text, html[data-bs-theme="dark"] .team-submit-status { color: #bfbfbf; }
html[data-bs-theme="dark"] .leader-mini-avatar-empty { color: #eee; background: #484848; }
html[data-bs-theme="dark"] .chapa-note { color: #e5e5e5; text-shadow: none; }
html[data-bs-theme="dark"] .card { --bs-card-bg: #303030; --bs-card-color: #e5e5e5; --bs-card-border-color: #484848; --bs-card-cap-bg: #383838; }
html[data-bs-theme="dark"] .form-control, html[data-bs-theme="dark"] .form-select { background-color: #222; color: #ededed; border-color: #505050; }
html[data-bs-theme="dark"] .form-control::placeholder { color: #a5a5a5; }
html[data-bs-theme="dark"] .form-control:disabled, html[data-bs-theme="dark"] .form-select:disabled { background-color: #383838; color: #b8b8b8; }
html[data-bs-theme="dark"] .modal-content { --bs-modal-bg: #2b2b2b; --bs-modal-color: #e5e5e5; --bs-modal-border-color: #484848; }
html[data-bs-theme="dark"] .calendar-result-section { background: #363636; color: #ededed; }
html[data-bs-theme="dark"] .tpm-result-card { background: #303030; color: #e5e5e5; border-color: #484848; }
html[data-bs-theme="dark"] .tpm-result-header { border-bottom-color: #484848; }
html[data-bs-theme="dark"] .tpm-result-meta { color: #bfbfbf; }
html[data-bs-theme="dark"] .tpm-calendar-table { --bs-table-bg: #303030; --bs-table-color: #e5e5e5; --bs-table-border-color: #484848; }
html[data-bs-theme="dark"] .tpm-calendar-table thead th { background: #383838; color: #c7c7c7; }
html[data-bs-theme="dark"] .tpm-calendar-table td[data-label]::before { color: #bfbfbf; }
html[data-bs-theme="dark"] .tpm-calendar-table .tpm-result-row:not(.has-verification-note) { border-bottom-color: #484848; }
html[data-bs-theme="dark"] .tpm-verification-note { background: #3b3b3b; }
html[data-bs-theme="dark"] .tpm-note-label { color: #c3c3c3; }
html[data-bs-theme="dark"] .tpm-verification-edit, html[data-bs-theme="dark"] .tpm-note-toggle { color: #c0b6ff; }
html[data-bs-theme="dark"] .tpm-result-badge.is-fail { background: #542e36; color: #ffb6c1; }
html[data-bs-theme="dark"] .tpm-result-badge.is-pass { background: #294535; color: #a6dfb8; }
html[data-bs-theme="dark"] #ackGlobalModal .modal-content { background: #2b2b2b; color: #e5e5e5; border-color: #484848; }
html[data-bs-theme="dark"] #ackGlobalModal .form-control, html[data-bs-theme="dark"] #ackGlobalModal .form-select { background-color: #222; color: #ededed; border-color: #505050; }
html[data-bs-theme="dark"] #ackGlobalModal .form-text, html[data-bs-theme="dark"] #ackGlobalModal .verification-required { color: #bfbfbf; }
html[data-bs-theme="dark"] .tpm-verification-summary { background: #383838; }
html[data-bs-theme="dark"] #ackGlobalModal .btn-light { --bs-btn-bg: #444; --bs-btn-color: #ededed; --bs-btn-border-color: #555; --bs-btn-hover-bg: #505050; --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: #666; }
html[data-bs-theme="dark"] .btn-outline-primary { --bs-btn-color: #c0b6ff; --bs-btn-border-color: #9f91db; --bs-btn-hover-bg: #66519a; --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: #9f91db; }
html[data-bs-theme="dark"] .btn-outline-danger { --bs-btn-color: #f0a1aa; --bs-btn-border-color: #c57680; --bs-btn-hover-bg: #86404b; --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: #f0a1aa; }
