html.theme-dark {
  color-scheme: dark;
}

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

html.theme-dark #content-wrapper,
html.theme-dark #content,
html.theme-dark main {
  background-color: #111827;
  color: #e5e7eb;
}

html.theme-dark .navbar.bg-white,
html.theme-dark .topbar {
  background-color: #182132 !important;
  color: #e5e7eb;
}

html.theme-dark .footer,
html.theme-dark footer {
  background-color: #111827;
  border-color: #2f3b52 !important;
  color: #cbd5e1 !important;
}

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

html.theme-dark .card-header,
html.theme-dark .card-footer,
html.theme-dark .modal-header,
html.theme-dark .modal-footer {
  background-color: #182132 !important;
  border-color: #374151 !important;
  color: #f9fafb;
}

html.theme-dark .bg-white,
html.theme-dark .bg-light {
  background-color: #1f2937 !important;
  color: #e5e7eb !important;
}

html.theme-dark .text-dark,
html.theme-dark .text-gray-600,
html.theme-dark .text-gray-700,
html.theme-dark .text-gray-800,
html.theme-dark .text-gray-900,
html.theme-dark .text-muted,
html.theme-dark .card-title,
html.theme-dark label,
html.theme-dark h1,
html.theme-dark h2,
html.theme-dark h3,
html.theme-dark h4,
html.theme-dark h5,
html.theme-dark h6,
html.theme-dark p,
html.theme-dark td,
html.theme-dark th {
  color: #e5e7eb !important;
}

html.theme-dark .text-muted,
html.theme-dark .small,
html.theme-dark small,
html.theme-dark .collapse-header {
  color: #cbd5e1 !important;
}

html.theme-dark a:not(.btn):not(.nav-link):not(.dropdown-item):not(.collapse-item) {
  color: #93c5fd;
}

html.theme-dark a:not(.btn):not(.nav-link):not(.dropdown-item):not(.collapse-item):hover {
  color: #bfdbfe;
}

html.theme-dark .dropdown-item,
html.theme-dark .collapse-item {
  color: #e5e7eb !important;
}

html.theme-dark .dropdown-item:hover,
html.theme-dark .dropdown-item:focus,
html.theme-dark .collapse-item:hover,
html.theme-dark .collapse-item:focus {
  background-color: #2f3b52 !important;
  color: #ffffff !important;
}

html.theme-dark .dropdown-divider,
html.theme-dark hr {
  border-color: #374151;
}

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

html.theme-dark .form-control:focus,
html.theme-dark .custom-select:focus,
html.theme-dark input:focus,
html.theme-dark select:focus,
html.theme-dark textarea:focus {
  background-color: #111827 !important;
  border-color: #93c5fd !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 0.2rem rgba(147, 197, 253, 0.25);
}

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

html.theme-dark .custom-control-label,
html.theme-dark .form-check-label {
  color: #e5e7eb;
}

html.theme-dark .table {
  color: #e5e7eb;
  background-color: #1f2937;
}

html.theme-dark .table th,
html.theme-dark .table td {
  border-color: #374151;
}

html.theme-dark .table thead th,
html.theme-dark .table .thead-light th {
  background-color: #182132 !important;
  border-color: #374151 !important;
  color: #f9fafb !important;
}

html.theme-dark .table-striped tbody tr:nth-of-type(odd) {
  background-color: #253044;
}

html.theme-dark .table-hover tbody tr:hover,
html.theme-dark .table tbody tr:hover {
  background-color: #1d4ed8 !important;
  color: #ffffff !important;
}

html.theme-dark .table-hover tbody tr:hover td,
html.theme-dark .table tbody tr:hover td {
  color: #ffffff !important;
}

html.theme-dark .alert-success {
  background-color: #064e3b;
  border-color: #047857;
  color: #d1fae5;
}

html.theme-dark .alert-warning {
  background-color: #78350f;
  border-color: #b45309;
  color: #fef3c7;
}

html.theme-dark .alert-danger {
  background-color: #7f1d1d;
  border-color: #b91c1c;
  color: #fee2e2;
}

html.theme-dark .alert-info {
  background-color: #164e63;
  border-color: #0891b2;
  color: #cffafe;
}

html.theme-dark .btn-light,
html.theme-dark .btn-outline-secondary {
  background-color: #1f2937;
  border-color: #4b5563;
  color: #e5e7eb;
}

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

html.theme-dark .page-link {
  background-color: #1f2937;
  border-color: #374151;
  color: #bfdbfe;
}

html.theme-dark .page-link:hover {
  background-color: #2f3b52;
  color: #ffffff;
}

html.theme-dark .theme-settings-panel {
  background-color: #182132;
  border: 1px solid #374151;
  border-radius: 0.35rem;
  padding: 1rem;
}

html.theme-dark img {
  opacity: 0.96;
}
