html.dark-theme,
html.dark-theme body {
  background-color: #111827;
  color: #e5e7eb;
}

html.dark-theme .wrapper,
html.dark-theme .body,
html.dark-theme .footer,
html.dark-theme .bg-light,
html.dark-theme .bg-light.bg-opacity-50,
html.dark-theme .table-light,
html.dark-theme .table-light > :not(caption) > * > * {
  background-color: #111827 !important;
  color: #e5e7eb !important;
}

html.dark-theme .header,
html.dark-theme .footer,
html.dark-theme .card,
html.dark-theme .modal-content,
html.dark-theme .dropdown-menu,
html.dark-theme .list-group-item,
html.dark-theme .accordion-item,
html.dark-theme .input-group-text {
  background-color: #1f2937 !important;
  color: #e5e7eb !important;
  border-color: #374151 !important;
}

html.dark-theme .card-header,
html.dark-theme .card-footer,
html.dark-theme .modal-header,
html.dark-theme .modal-footer,
html.dark-theme .table > :not(caption) > * > *,
html.dark-theme .table-bordered > :not(caption) > * {
  border-color: #374151 !important;
}

html.dark-theme .form-control,
html.dark-theme .form-select,
html.dark-theme .form-check-input,
html.dark-theme textarea.form-control {
  background-color: #111827 !important;
  color: #e5e7eb !important;
  border-color: #4b5563 !important;
}

html.dark-theme .form-control:focus,
html.dark-theme .form-select:focus,
html.dark-theme textarea.form-control:focus {
  background-color: #111827 !important;
  color: #f9fafb !important;
  border-color: #60a5fa !important;
  box-shadow: 0 0 0 0.25rem rgba(96, 165, 250, 0.18) !important;
}

html.dark-theme .form-control::placeholder,
html.dark-theme textarea.form-control::placeholder {
  color: #9ca3af !important;
}

html.dark-theme .text-body,
html.dark-theme .card-title,
html.dark-theme .form-label,
html.dark-theme .modal-title,
html.dark-theme h1,
html.dark-theme h2,
html.dark-theme h3,
html.dark-theme h4,
html.dark-theme h5,
html.dark-theme h6,
html.dark-theme th,
html.dark-theme td,
html.dark-theme label,
html.dark-theme p,
html.dark-theme span,
html.dark-theme strong,
html.dark-theme div {
  color: inherit;
}

html.dark-theme .text-body-secondary,
html.dark-theme .text-medium-emphasis,
html.dark-theme .form-text,
html.dark-theme small,
html.dark-theme .small {
  color: #9ca3af !important;
}

html.dark-theme .table {
  --cui-table-color: #e5e7eb;
  --cui-table-bg: transparent;
  --cui-table-border-color: #374151;
  color: #e5e7eb;
}

html.dark-theme .table-hover > tbody > tr:hover > * {
  --cui-table-accent-bg: rgba(255, 255, 255, 0.04);
  color: #f9fafb;
}

html.dark-theme .btn-outline-secondary {
  color: #e5e7eb;
  border-color: #6b7280;
}

html.dark-theme .btn-outline-secondary:hover,
html.dark-theme .btn-outline-secondary:focus {
  background-color: #374151;
  border-color: #6b7280;
  color: #ffffff;
}

html.dark-theme .btn-ghost-secondary,
html.dark-theme .nav-link,
html.dark-theme a {
  color: #e5e7eb;
}

html.dark-theme .btn-outline-danger,
html.dark-theme .btn-outline-primary,
html.dark-theme .btn-outline-light {
  color: inherit;
}

html.dark-theme .badge.bg-info,
html.dark-theme .badge.bg-primary,
html.dark-theme .badge.bg-success,
html.dark-theme .badge.bg-warning,
html.dark-theme .badge.bg-danger {
  color: #fff !important;
}

html.dark-theme .progress {
  background-color: #374151;
}

html.dark-theme .bg-info.bg-opacity-25,
html.dark-theme .bg-success.bg-opacity-10,
html.dark-theme .bg-danger.bg-opacity-10,
html.dark-theme .bg-warning.bg-opacity-10 {
  color: inherit;
}

html.dark-theme .header-toggler,
html.dark-theme .sidebar-close,
html.dark-theme #btn-theme-toggle {
  color: #e5e7eb;
}
