/* Admin / dashboard dark mode overrides for Sneat surfaces */
html[data-bs-theme="dark"] {
  color-scheme: dark;
  --bs-body-bg: #232333;
  --bs-body-color: #b2b2c4;
  --bs-emphasis-color: #fff;
  --bs-heading-color: #e7e7f2;
  --bs-secondary-color: #a1a1b5;
  --bs-border-color: #444564;
  --bs-paper-bg: #2b2c40;
  --bs-paper-bg-rgb: 43, 44, 64;
  --bs-gray-25: #2b2c40;
  --bs-gray-60: #32334a;
  --bs-gray-80: #38394d;
  --bs-gray-100: #3b3e59;
  --bs-menu-bg: #2b2c40;
  --bs-menu-color: #b2b2c4;
  --bs-menu-hover-bg: #32334a;
  --bs-menu-hover-color: #e7e7f2;
  --bs-menu-sub-active-bg: #32334a;
  --bs-navbar-bg: #2b2c40;
  --bs-footer-bg: #2b2c40;
  --bs-card-bg: #2b2c40;
  --bs-card-color: #b2b2c4;
  --bs-dropdown-bg: #32334a;
  --bs-dropdown-color: #e7e7f2;
  --bs-dropdown-link-color: #e7e7f2;
  --bs-dropdown-link-hover-bg: #3b3e59;
  --bs-dropdown-link-hover-color: #fff;
  --bs-modal-bg: #2b2c40;
  --bs-modal-color: #b2b2c4;
  --bs-table-bg: transparent;
  --bs-table-color: #b2b2c4;
  --bs-table-border-color: #444564;
  --bs-table-striped-bg: rgba(255, 255, 255, 0.03);
  --bs-table-hover-bg: rgba(255, 255, 255, 0.05);
  --bs-input-bg: #232333;
  --bs-form-control-bg: #232333;
}

html[data-bs-theme="dark"] body,
html[data-bs-theme="dark"] .layout-wrapper,
html[data-bs-theme="dark"] .layout-container,
html[data-bs-theme="dark"] .layout-page,
html[data-bs-theme="dark"] .content-wrapper {
  background-color: var(--bs-body-bg) !important;
  color: var(--bs-body-color);
}

html[data-bs-theme="dark"] .bg-menu-theme,
html[data-bs-theme="dark"] .layout-menu {
  background-color: var(--bs-menu-bg) !important;
  color: var(--bs-menu-color) !important;
  box-shadow: none;
}

html[data-bs-theme="dark"] .bg-navbar-theme,
html[data-bs-theme="dark"] .layout-navbar {
  background-color: var(--bs-navbar-bg) !important;
  color: var(--bs-heading-color) !important;
  box-shadow: 0 1px 0 var(--bs-border-color);
}

html[data-bs-theme="dark"] .bg-footer-theme,
html[data-bs-theme="dark"] .content-footer {
  background-color: var(--bs-footer-bg) !important;
  color: var(--bs-secondary-color) !important;
}

html[data-bs-theme="dark"] .card,
html[data-bs-theme="dark"] .dropdown-menu,
html[data-bs-theme="dark"] .modal-content,
html[data-bs-theme="dark"] .list-group-item,
html[data-bs-theme="dark"] .accordion-item,
html[data-bs-theme="dark"] .offcanvas {
  background-color: var(--bs-paper-bg) !important;
  color: var(--bs-body-color) !important;
  border-color: var(--bs-border-color) !important;
}

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

html[data-bs-theme="dark"] .form-control,
html[data-bs-theme="dark"] .form-select,
html[data-bs-theme="dark"] .input-group-text {
  background-color: var(--bs-input-bg) !important;
  color: var(--bs-body-color) !important;
  border-color: var(--bs-border-color) !important;
}

html[data-bs-theme="dark"] .form-control:focus,
html[data-bs-theme="dark"] .form-select:focus {
  background-color: var(--bs-input-bg) !important;
  color: var(--bs-heading-color) !important;
}

html[data-bs-theme="dark"] .text-muted,
html[data-bs-theme="dark"] .text-heading {
  color: var(--bs-secondary-color) !important;
}

html[data-bs-theme="dark"] h1,
html[data-bs-theme="dark"] h2,
html[data-bs-theme="dark"] h3,
html[data-bs-theme="dark"] h4,
html[data-bs-theme="dark"] h5,
html[data-bs-theme="dark"] h6,
html[data-bs-theme="dark"] .card-header,
html[data-bs-theme="dark"] .dropdown-item {
  color: var(--bs-heading-color) !important;
}

html[data-bs-theme="dark"] .dropdown-item:hover,
html[data-bs-theme="dark"] .dropdown-item:focus,
html[data-bs-theme="dark"] .dropdown-item.active {
  background-color: var(--bs-dropdown-link-hover-bg) !important;
  color: #fff !important;
}

html[data-bs-theme="dark"] .menu-link,
html[data-bs-theme="dark"] .menu-header {
  color: var(--bs-menu-color) !important;
}

html[data-bs-theme="dark"] .menu-inner > .menu-item.active > .menu-link:not(.menu-toggle) {
  color: #fff !important;
}

html[data-bs-theme="dark"] .layout-navbar .theme-dropdown-toggle,
html[data-bs-theme="dark"] .layout-navbar .lang-dropdown-toggle {
  background: #32334a;
  border-color: #444564;
  color: #e7e7f2;
}

html[data-bs-theme="dark"] .bg-label-primary {
  background-color: rgba(105, 108, 255, 0.16) !important;
  color: #a5a7ff !important;
}

html[data-bs-theme="dark"] .bg-label-secondary {
  background-color: rgba(133, 146, 163, 0.16) !important;
  color: #b6bec8 !important;
}

html[data-bs-theme="dark"] .border,
html[data-bs-theme="dark"] .border-bottom,
html[data-bs-theme="dark"] .border-top,
html[data-bs-theme="dark"] hr {
  border-color: var(--bs-border-color) !important;
}
