/*
* demo.css
* File include item demo only specific css only
******************************************************************************/

.menu .app-brand.demo {
  height: 76px !important;
  margin: 0 !important;
}

.app-brand-logo.demo svg {
  width: 22px;
  height: 38px;
}

.app-brand-text.demo {
  font-size: 1.75rem;
  letter-spacing: -0.5px;
}

/* ! For .layout-navbar-fixed added fix padding top to .layout-page */
/* Detached navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-horizontal):not(.layout-without-menu) .layout-page {
  padding-top: 74px !important;
}
/* Detached navbar with Impersonation Topbar */
.has-impersonator.layout-navbar-fixed .layout-wrapper:not(.layout-horizontal):not(.layout-without-menu) .layout-page {
  padding-top: 102px !important;
}
.has-impersonator.layout-navbar-fixed .layout-navbar {
  top: 34px !important;
}
.has-impersonator.layout-navbar-fixed .layout-navbar.navbar-detached {
  margin-block: 0.5rem 0 !important;
}
.has-impersonator.layout-navbar-fixed .layout-wrapper:not(.layout-horizontal) .layout-page::before {
  top: 34px !important;
}
/* Default navbar */
.layout-navbar-fixed .layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 64px !important;
}
.docs-page .layout-navbar-fixed.layout-wrapper:not(.layout-without-menu) .layout-page,
.docs-page .layout-menu-fixed.layout-wrapper:not(.layout-without-menu) .layout-page {
  padding-top: 62px !important;
}

/* Navbar page z-index issue solution */
.content-wrapper .navbar {
  z-index: auto;
}

/*
* Content
******************************************************************************/

.demo-blocks > * {
  display: block !important;
}

.demo-inline-spacing > * {
  margin: 1rem 0.375rem 0 0 !important;
}

/* ? .demo-vertical-spacing class is used to have vertical margins between elements. To remove margin-top from the first-child, use .demo-only-element class with .demo-vertical-spacing class. For example, we have used this class in forms-input-groups.html file. */
.demo-vertical-spacing > * {
  margin-top: 1rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-lg > * {
  margin-top: 1.875rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-lg.demo-only-element > :first-child {
  margin-top: 0 !important;
}

.demo-vertical-spacing-xl > * {
  margin-top: 5rem !important;
  margin-bottom: 0 !important;
}
.demo-vertical-spacing-xl.demo-only-element > :first-child {
  margin-top: 0 !important;
}

/* Dropdown buttons going out of small screens */
@media (max-width: 576px) {
  #dropdown-variation-demo .btn-group .text-truncate {
    width: 231px;
    position: relative;
  }
  #dropdown-variation-demo .btn-group .text-truncate::after {
    position: absolute;
    top: 45%;
    right: 0.65rem;
  }
}

/*
* Layout demo
******************************************************************************/

.layout-demo-wrapper {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  margin-top: 1rem;
}
.layout-demo-placeholder img {
  width: 900px;
}
.layout-demo-info {
  text-align: center;
  margin-top: 1rem;
}

/* ==========================================================================
   Coosae Theme Customizations (Sneat + Blue #2563eb + Dark Sidebar #1e293b)
   ========================================================================== */

:root,
[data-bs-theme=light] {
  --bs-primary: #2563eb;
  --bs-primary-rgb: 37, 99, 235;
  --bs-primary-text-emphasis: #1e40af;
  --bs-primary-bg-subtle: #e0e7ff;
  --bs-primary-border-subtle: #c7d2fe;
  --bs-success: #16a34a;
  --bs-success-rgb: 22, 163, 74;
  --bs-success-text-emphasis: #15803d;
  --bs-success-bg-subtle: #dcfce7;
  --bs-success-border-subtle: #bbf7d0;
  --bs-info: #0284c7;
  --bs-info-rgb: 2, 132, 199;
  --bs-info-text-emphasis: #0369a1;
  --bs-info-bg-subtle: #e0f2fe;
  --bs-info-border-subtle: #bae6fd;
  --bs-warning: #d97706;
  --bs-warning-rgb: 217, 119, 6;
  --bs-warning-text-emphasis: #92400e;
  --bs-warning-bg-subtle: #fef3c7;
  --bs-warning-border-subtle: #fde68a;
  --bs-danger: #dc2626;
  --bs-danger-rgb: 220, 38, 38;
  --bs-danger-text-emphasis: #991b1b;
  --bs-danger-bg-subtle: #fee2e2;
  --bs-danger-border-subtle: #fecaca;
  --primary: #2563eb;
}

/* Primary color overrides */
.btn-primary {
  background-color: #2563eb !important;
  border-color: #2563eb !important;
  color: #fff !important;
}
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
  background-color: #1d4ed8 !important;
  border-color: #1d4ed8 !important;
}
.btn-outline-primary {
  color: #2563eb !important;
  border-color: #2563eb !important;
}
.btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary:active {
  background-color: #2563eb !important;
  border-color: #2563eb !important;
  color: #fff !important;
}
.text-primary {
  color: #2563eb !important;
}
.bg-primary {
  background-color: #2563eb !important;
}
.border-primary {
  border-color: #2563eb !important;
}
.badge.bg-primary {
  background-color: #2563eb !important;
  color: #ffffff !important;
}

/* ── Sneat Label Badges & Subtle Badges ──────────────────────────────── */
.bg-label-primary,
.badge.bg-label-primary,
.badge.bg-primary-subtle,
.badge.bg-primary.bg-opacity-10 {
  background-color: #e0e7ff !important;
  color: #2563eb !important;
}
.bg-label-secondary,
.badge.bg-label-secondary,
.badge.bg-secondary-subtle {
  background-color: #f1f5f9 !important;
  color: #334155 !important;
  border: 1px solid #cbd5e1 !important;
}
.bg-label-success,
.badge.bg-label-success,
.badge.bg-success-subtle {
  background-color: #dcfce7 !important;
  color: #16a34a !important;
}
.bg-label-info,
.badge.bg-label-info,
.badge.bg-info-subtle {
  background-color: #e0f2fe !important;
  color: #0284c7 !important;
}
.bg-label-warning,
.badge.bg-label-warning,
.badge.bg-warning-subtle {
  background-color: #fef3c7 !important;
  color: #b45309 !important;
}
.bg-label-danger,
.badge.bg-label-danger,
.badge.bg-danger-subtle {
  background-color: #fee2e2 !important;
  color: #dc2626 !important;
}

/* Soften standard status badges across tables & views for Sneat aesthetic */
.badge.bg-success {
  background-color: #dcfce7 !important;
  color: #15803d !important;
}
.badge.bg-warning {
  background-color: #fef3c7 !important;
  color: #b45309 !important;
}
.badge.bg-danger {
  background-color: #fee2e2 !important;
  color: #b91c1c !important;
}
.badge.bg-info {
  background-color: #e0f2fe !important;
  color: #0369a1 !important;
}
.badge.bg-secondary {
  background-color: #f1f5f9 !important;
  color: #475569 !important;
}

/* Guard against low-contrast bg-light / light badges */
.badge.bg-light,
.badge.bg-light-subtle,
.badge.bg-white {
  background-color: #f1f5f9 !important;
  color: #334155 !important;
  border: 1px solid #cbd5e1 !important;
}

/* Ghost button & extra-small button helpers */
.btn-ghost {
  background: transparent;
  border: 0;
  color: #64748b;
  padding: 0.25rem 0.5rem;
  border-radius: 0.375rem;
}
.btn-ghost:hover,
.btn-ghost:focus {
  background-color: #f1f5f9;
  color: #1e293b;
}
.btn-xs {
  padding: 0.15rem 0.5rem;
  font-size: 0.75rem;
  border-radius: 0.25rem;
}

/* Stat Card polish */
.stat-card {
  transition: transform 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
.stat-card:hover {
  transform: translateY(-2px);
}

/* Nav pills & tabs active state */
.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  background-color: #2563eb !important;
  color: #ffffff !important;
  box-shadow: 0 2px 4px 0 rgba(37, 99, 235, 0.35);
}
.nav-tabs .nav-link.active {
  color: #2563eb !important;
  border-bottom: 2px solid #2563eb !important;
  font-weight: 600;
}
.form-check-input:checked {
  background-color: #2563eb !important;
  border-color: #2563eb !important;
}

/* Pagination active item */
.page-item.active .page-link {
  background-color: #2563eb !important;
  border-color: #2563eb !important;
}

/* ── Dark Sidebar Override (#1e293b) ─────────────────────────────────── */
.layout-menu.bg-menu-theme {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  background-color: #1e293b !important;
  color: #94a3b8 !important;
  border-right: 1px solid #334155 !important;
}

.layout-menu.bg-menu-theme .app-brand {
  height: 76px !important;
  margin: 0 !important;
  padding: 0 1.25rem !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.brand-icon-wrapper {
  width: 40px;
  height: 40px;
  background: #ffffff;
  border-radius: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brand-icon-wrapper:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

.brand-icon-wrapper img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
}

.layout-menu.bg-menu-theme .app-brand .app-brand-text {
  color: #ffffff !important;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  text-transform: uppercase;
}

.layout-menu.bg-menu-theme .menu-inner {
  flex: 1 1 auto !important;
  padding-top: 0.75rem !important;
  padding-bottom: 2rem !important;
  overflow-x: hidden !important;
}

.layout-menu.bg-menu-theme .menu-header {
  color: #64748b !important;
  padding: 1rem 1.5rem 0.35rem 1.5rem;
}

.layout-menu.bg-menu-theme .menu-header::before {
  background-color: #334155 !important;
}

.layout-menu.bg-menu-theme .menu-inner > .menu-item.active::before {
  display: none !important;
}

.layout-menu.bg-menu-theme .menu-link {
  color: #94a3b8 !important;
  border-radius: 0.375rem !important;
  margin: 0.15rem 0.85rem !important;
  transition: all 0.2s ease-in-out;
}

.layout-menu.bg-menu-theme .menu-link:hover {
  background-color: rgba(255, 255, 255, 0.07) !important;
  color: #f1f5f9 !important;
}

.layout-menu.bg-menu-theme .menu-item.active > .menu-link {
  background-color: #2563eb !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px 0 rgba(37, 99, 235, 0.48) !important;
  font-weight: 600;
}

.layout-menu.bg-menu-theme .menu-icon,
.layout-menu.bg-menu-theme .menu-icon i {
  color: inherit !important;
  font-size: 1.15rem;
  margin-right: 0.65rem;
}

/* Perfect scrollbar thumb in dark menu */
.layout-menu.bg-menu-theme .ps__thumb-y {
  background-color: rgba(255, 255, 255, 0.2) !important;
}

/* ── Typography & Global Sneat Polish ────────────────────────────────── */
body {
  font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif !important;
  color: #566a7f;
  background-color: #f5f5f9;
}

.card {
  background-clip: padding-box;
  box-shadow: 0 2px 6px 0 rgba(67, 89, 113, 0.12) !important;
  border: 0 !important;
  border-radius: 0.5rem !important;
}

.card.border-dashed {
  border: 2px dashed #cbd5e1 !important;
  box-shadow: none !important;
}

.card-header {
  background-color: transparent !important;
  border-bottom: 1px solid #f1f5f9 !important;
  padding: 1.25rem 1.5rem !important;
}
.card-header.bg-primary {
  background-color: #2563eb !important;
  color: #ffffff !important;
  border-bottom: 0 !important;
}
.card-header.bg-secondary {
  background-color: #64748b !important;
  color: #ffffff !important;
  border-bottom: 0 !important;
}

.card-footer {
  background-color: transparent !important;
  border-top: 1px solid #f1f5f9 !important;
  padding: 1rem 1.5rem !important;
}

/* ── Table Polish (Sneat Unified Headers & Padding) ──────────────────── */
.table thead th,
.table thead.table-light th {
  background-color: #f8fafc !important;
  color: #475569 !important;
  font-size: 0.78rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  font-weight: 600 !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

.card > .table-responsive > .table thead th:first-child,
.card > .table-responsive > .table tbody td:first-child,
.card > .table-responsive > .table tfoot td:first-child,
.card > .card-body.p-0 > .table thead th:first-child,
.card > .card-body.p-0 > .table tbody td:first-child,
.card > .card-body.p-0 > .table-responsive > .table thead th:first-child,
.card > .card-body.p-0 > .table-responsive > .table tbody td:first-child {
  padding-left: 1.5rem;
}

.card > .table-responsive > .table thead th:last-child,
.card > .table-responsive > .table tbody td:last-child,
.card > .table-responsive > .table tfoot td:last-child,
.card > .card-body.p-0 > .table thead th:last-child,
.card > .card-body.p-0 > .table tbody td:last-child,
.card > .card-body.p-0 > .table-responsive > .table thead th:last-child,
.card > .card-body.p-0 > .table-responsive > .table tbody td:last-child {
  padding-right: 1.5rem;
}

/* ── Fixed Navbar & Dropdowns (Light Mode) ────────────────────────────── */
.layout-navbar {
  background-color: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 1px 2px rgba(0, 0, 0, 0.03);
}

.dropdown-menu {
  background-color: #ffffff;
  border: 1px solid #e2e8f0 !important;
  border-radius: 0.5rem !important;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.14), 0 8px 10px -6px rgba(15, 23, 42, 0.08) !important;
}

.dropdown-divider {
  border-top: 1px solid #e2e8f0 !important;
}

.layout-navbar-fixed .layout-page {
  padding-top: 76px !important;
}

.layout-navbar-fixed .layout-navbar {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  z-index: 1075 !important;
  margin-top: 0.75rem !important;
}

@media (min-width: 1200px) {
  .layout-navbar-fixed:not(.layout-menu-collapsed) .layout-navbar {
    width: calc(100% - 16.25rem - 3rem) !important;
    right: 1.5rem !important;
    left: auto !important;
  }
}

@media (max-width: 1199.98px) {
  .layout-navbar-fixed .layout-navbar {
    width: calc(100% - 2rem) !important;
    right: 1rem !important;
    left: 1rem !important;
  }
}

/* ── DataTables Flush & Contained Responsive Table ───────────────────── */
div.dataTables_wrapper div.dataTables_length label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.375rem !important;
  white-space: nowrap !important;
  font-weight: 400;
  color: #566a7f;
}

div.dataTables_wrapper div.dataTables_length select,
.card .dataTables_wrapper div.dataTables_length select {
  display: inline-block !important;
  width: auto !important;
  min-width: 4.5rem !important;
  margin: 0 !important;
  padding: 0.375rem 2rem 0.375rem 0.75rem !important;
}

div.dataTables_wrapper div.dataTables_filter label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.375rem !important;
  white-space: nowrap !important;
  font-weight: 400;
  color: #566a7f;
  justify-content: flex-end;
}

div.dataTables_wrapper div.dataTables_filter input,
.card .dataTables_wrapper div.dataTables_filter input {
  display: inline-block !important;
  width: auto !important;
  margin: 0 !important;
  border: 1px solid #d9dee3;
  border-radius: 0.375rem;
  padding: 0.375rem 0.75rem;
}

.table.datatable thead th {
  background-color: #f8fafc;
  color: #475569;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  border-bottom: 1px solid #e2e8f0;
}
.table.datatable td {
  vertical-align: middle;
}

/* Card DataTable Flush styling */
.card .dataTables_wrapper {
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
}

.card .dataTables_wrapper > .table-responsive {
  margin: 0 !important;
  padding: 0 !important;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  width: 100% !important;
}

.card .dataTables_wrapper table.dataTable {
  margin: 0 !important;
  width: 100% !important;
  border-left: 0 !important;
  border-right: 0 !important;
  border-top: 0 !important;
}

.card .dataTables_wrapper table.dataTable thead th:first-child,
.card .dataTables_wrapper table.dataTable tbody td:first-child {
  padding-left: 1.5rem !important;
}

.card .dataTables_wrapper table.dataTable thead th:last-child,
.card .dataTables_wrapper table.dataTable tbody td:last-child {
  padding-right: 1.5rem !important;
}

/* ── Select2 Bootstrap 5 Adjustments ─────────────────────────────────── */
.select2-container--bootstrap-5 .select2-selection {
  min-height: calc(1.5em + 0.75rem + 2px);
  border: 1px solid #d9dee3;
  border-radius: 0.375rem;
  font-size: 0.9375rem;
}
.select2-container--bootstrap-5.select2-container--focus .select2-selection,
.select2-container--bootstrap-5.select2-container--open .select2-selection {
  border-color: #2563eb;
  box-shadow: 0 0 0 0.25rem rgba(37, 99, 235, 0.15);
}
.select2-container--bootstrap-5 .select2-dropdown .select2-results__option--highlighted {
  background-color: #2563eb;
}

/* ── Mobile Bottom Navigation ────────────────────────────────────────── */
#bottom-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #fff;
  border-top: 1px solid #e2e8f0;
  z-index: 1050;
  padding-bottom: env(safe-area-inset-bottom);
}
#bottom-nav .nav-link {
  flex: 1;
  text-align: center;
  color: #64748b;
  font-size: .7rem;
  padding: .5rem 0;
}
#bottom-nav .nav-link.active {
  color: #2563eb;
}
#bottom-nav .nav-link i {
  display: block;
  font-size: 1.3rem;
}

@media (max-width: 767.98px) {
  #bottom-nav {
    display: flex;
  }
  .content-wrapper {
    padding-bottom: 70px;
  }
}

/* ── Top Impersonation Bar (di atas navbar) ────────────────────────── */
.impersonation-topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  height: 34px;
  z-index: 1076;
  background-color: #fffbeb;
  border-bottom: 1px solid rgba(245, 158, 11, 0.25);
  display: flex;
  align-items: center;
  transition: left 0.2s ease;
  font-size: 0.78rem;
}

@media (min-width: 1200px) {
  .layout-menu-fixed .impersonation-topbar {
    left: 16.25rem;
  }
  .layout-menu-fixed.layout-menu-collapsed .impersonation-topbar {
    left: 5.25rem;
  }
}

.impersonation-topbar .btn-stop-impersonate {
  background-color: #f59e0b;
  border: 1px solid #d97706;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.6rem;
  border-radius: 0.375rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all 0.2s ease;
  line-height: 1.4;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(245, 158, 11, 0.2);
}

.impersonation-topbar .btn-stop-impersonate:hover {
  background-color: #d97706;
  border-color: #b45309;
  color: #ffffff;
  box-shadow: 0 2px 5px rgba(217, 119, 6, 0.3);
}

/* ==========================================================================
   JetBrains Dracula Theme ([data-bs-theme="dark"]) — Authentic JetBrains Spec
   Reference: https://github.com/dracula/jetbrains (Dracula.theme.json)
   Palette:
   - Sidebar / ToolWindow / Card:   #21222c (darkerBg)
   - Main Canvas / Editor BG:       #282a36 (backgroundColor)
   - Soft Seamless Border:          #2a2c38 (blend between #21222c & #282a36)
   - Selection / Hover:             #44475a (selectionBackground)
   - Foreground Text:               #f8f8f2 (foreground)
   - Comment / Secondary Muted:     #6272a4 (Dracula comment blue-grey)
   - Purple (Primary):              #bd93f9
   - Pink (Active Tab / Code):      #ff79c6
   - Cyan (Info):                   #8be9fd
   - Green (Success):               #50fa7b
   - Orange (Warning):              #ffb86c
   - Red (Danger):                  #ff5555
   - Yellow (Highlight):            #f1fa8c
   ========================================================================== */

:root {
  color-scheme: light dark;
}

:root:has(> head > meta[name="color-scheme"][content="dark"]),
html[data-bs-theme="dark"] {
  color-scheme: dark;
}

:root:has(> head > meta[name="color-scheme"][content="light"]),
html[data-bs-theme="light"] {
  color-scheme: light;
}

[data-bs-theme="dark"] {
  --dracula-bg: #282a36;
  --dracula-bg-darker: #21222c;
  --dracula-bg-deep: #191a21;
  --dracula-card: #21222c;
  --dracula-elevated: #2b2d3a;
  --dracula-border-soft: #2a2c38;
  --dracula-border-input: #343746;
  --dracula-selection: #44475a;
  --dracula-fg: #f8f8f2;
  --dracula-muted: #9ea8c7;
  --dracula-comment: #6272a4;
  --dracula-purple: #bd93f9;
  --dracula-purple-hover: #a97af5;
  --dracula-cyan: #8be9fd;
  --dracula-green: #50fa7b;
  --dracula-orange: #ffb86c;
  --dracula-pink: #ff79c6;
  --dracula-red: #ff5555;
  --dracula-yellow: #f1fa8c;

  --bs-body-bg: #282a36;
  --bs-body-bg-rgb: 40, 42, 54;
  --bs-body-color: #f8f8f2;
  --bs-body-color-rgb: 248, 248, 242;
  --bs-heading-color: #f8f8f2;
  --bs-emphasis-color: #f8f8f2;
  --bs-emphasis-color-rgb: 248, 248, 242;
  --bs-secondary-color: #9ea8c7;
  --bs-secondary-color-rgb: 158, 168, 199;
  --bs-secondary-bg: #2b2d3a;
  --bs-secondary-bg-rgb: 43, 45, 58;
  --bs-tertiary-color: #6272a4;
  --bs-tertiary-bg: #21222c;
  --bs-border-color: #2a2c38;
  --bs-border-color-translucent: rgba(42, 44, 56, 0.75);
  --bs-paper-bg: #21222c;
  --bs-paper-bg-rgb: 33, 34, 44;

  --bs-primary: #bd93f9;
  --bs-primary-rgb: 189, 147, 249;
  --bs-primary-text-emphasis: #bd93f9;
  --bs-primary-bg-subtle: rgba(189, 147, 249, 0.16);
  --bs-primary-border-subtle: rgba(189, 147, 249, 0.22);

  --bs-success: #50fa7b;
  --bs-success-rgb: 80, 250, 123;
  --bs-success-text-emphasis: #50fa7b;
  --bs-success-bg-subtle: rgba(80, 250, 123, 0.15);
  --bs-success-border-subtle: rgba(80, 250, 123, 0.22);

  --bs-info: #8be9fd;
  --bs-info-rgb: 139, 233, 253;
  --bs-info-text-emphasis: #8be9fd;
  --bs-info-bg-subtle: rgba(139, 233, 253, 0.15);
  --bs-info-border-subtle: rgba(139, 233, 253, 0.22);

  --bs-warning: #ffb86c;
  --bs-warning-rgb: 255, 184, 108;
  --bs-warning-text-emphasis: #ffb86c;
  --bs-warning-bg-subtle: rgba(255, 184, 108, 0.16);
  --bs-warning-border-subtle: rgba(255, 184, 108, 0.22);

  --bs-danger: #ff5555;
  --bs-danger-rgb: 255, 85, 85;
  --bs-danger-text-emphasis: #ff5555;
  --bs-danger-bg-subtle: rgba(255, 85, 85, 0.16);
  --bs-danger-border-subtle: rgba(255, 85, 85, 0.22);

  --bs-link-color: #8be9fd;
  --bs-link-color-rgb: 139, 233, 253;
  --bs-link-hover-color: #ff79c6;
  --bs-link-hover-color-rgb: 255, 121, 198;
  --bs-code-color: #ff79c6;

  accent-color: #bd93f9;
  scrollbar-color: #44475a #21222c;
}

[data-bs-theme="dark"] ::selection {
  background-color: #44475a;
  color: #f8f8f2;
}

[data-bs-theme="dark"] body,
[data-bs-theme="dark"] .layout-wrapper,
[data-bs-theme="dark"] .layout-container,
[data-bs-theme="dark"] .layout-page,
[data-bs-theme="dark"] .content-wrapper {
  background-color: #282a36 !important;
  color: #f8f8f2 !important;
}

[data-bs-theme="dark"] h1, [data-bs-theme="dark"] .h1,
[data-bs-theme="dark"] h2, [data-bs-theme="dark"] .h2,
[data-bs-theme="dark"] h3, [data-bs-theme="dark"] .h3,
[data-bs-theme="dark"] h4, [data-bs-theme="dark"] .h4,
[data-bs-theme="dark"] h5, [data-bs-theme="dark"] .h5,
[data-bs-theme="dark"] h6, [data-bs-theme="dark"] .h6 {
  color: #f8f8f2 !important;
}

[data-bs-theme="dark"] code {
  color: #ff79c6 !important;
  background-color: rgba(255, 121, 198, 0.12);
  padding: 0.12rem 0.35rem;
  border-radius: 0.25rem;
}

/* Buttons in JetBrains Dracula */
[data-bs-theme="dark"] .btn-primary {
  background-color: #bd93f9 !important;
  border-color: #bd93f9 !important;
  color: #191a21 !important;
  font-weight: 600;
}
[data-bs-theme="dark"] .btn-primary:hover,
[data-bs-theme="dark"] .btn-primary:focus,
[data-bs-theme="dark"] .btn-primary:active {
  background-color: #ff79c6 !important;
  border-color: #ff79c6 !important;
  color: #191a21 !important;
  box-shadow: 0 2px 10px rgba(255, 121, 198, 0.3) !important;
}
[data-bs-theme="dark"] .btn-success {
  background-color: #50fa7b !important;
  border-color: #50fa7b !important;
  color: #191a21 !important;
  font-weight: 600;
}
[data-bs-theme="dark"] .btn-success:hover,
[data-bs-theme="dark"] .btn-success:focus {
  background-color: #3be868 !important;
  border-color: #3be868 !important;
  color: #191a21 !important;
}
[data-bs-theme="dark"] .btn-warning {
  background-color: #ffb86c !important;
  border-color: #ffb86c !important;
  color: #191a21 !important;
  font-weight: 600;
}
[data-bs-theme="dark"] .btn-danger {
  background-color: #ff5555 !important;
  border-color: #ff5555 !important;
  color: #f8f8f2 !important;
  font-weight: 600;
}
[data-bs-theme="dark"] .btn-info {
  background-color: #8be9fd !important;
  border-color: #8be9fd !important;
  color: #191a21 !important;
  font-weight: 600;
}
[data-bs-theme="dark"] .btn-secondary {
  background-color: #343746 !important;
  border-color: #383b4c !important;
  color: #f8f8f2 !important;
}
[data-bs-theme="dark"] .btn-secondary:hover {
  background-color: #44475a !important;
  border-color: #44475a !important;
  color: #f8f8f2 !important;
}
[data-bs-theme="dark"] .btn-outline-primary {
  color: #bd93f9 !important;
  border-color: rgba(189, 147, 249, 0.45) !important;
}
[data-bs-theme="dark"] .btn-outline-primary:hover,
[data-bs-theme="dark"] .btn-outline-primary:focus,
[data-bs-theme="dark"] .btn-outline-primary:active {
  background-color: #bd93f9 !important;
  border-color: #bd93f9 !important;
  color: #191a21 !important;
}
[data-bs-theme="dark"] .btn-outline-success {
  color: #50fa7b !important;
  border-color: rgba(80, 250, 123, 0.45) !important;
}
[data-bs-theme="dark"] .btn-outline-success:hover {
  background-color: #50fa7b !important;
  border-color: #50fa7b !important;
  color: #191a21 !important;
}
[data-bs-theme="dark"] .btn-outline-danger {
  color: #ff5555 !important;
  border-color: rgba(255, 85, 85, 0.45) !important;
}
[data-bs-theme="dark"] .btn-outline-danger:hover {
  background-color: #ff5555 !important;
  border-color: #ff5555 !important;
  color: #f8f8f2 !important;
}
[data-bs-theme="dark"] .btn-outline-warning {
  color: #ffb86c !important;
  border-color: rgba(255, 184, 108, 0.45) !important;
}
[data-bs-theme="dark"] .btn-outline-warning:hover {
  background-color: #ffb86c !important;
  border-color: #ffb86c !important;
  color: #191a21 !important;
}
[data-bs-theme="dark"] .btn-outline-secondary {
  color: #f8f8f2 !important;
  border-color: #383b4c !important;
}
[data-bs-theme="dark"] .btn-outline-secondary:hover {
  background-color: #44475a !important;
  border-color: #44475a !important;
  color: #f8f8f2 !important;
}
[data-bs-theme="dark"] .btn-light {
  background-color: #343746 !important;
  border-color: #383b4c !important;
  color: #f8f8f2 !important;
}
[data-bs-theme="dark"] .btn-light:hover {
  background-color: #44475a !important;
  border-color: #44475a !important;
  color: #f8f8f2 !important;
}
[data-bs-theme="dark"] .btn-ghost {
  color: #9ea8c7;
}
[data-bs-theme="dark"] .btn-ghost:hover,
[data-bs-theme="dark"] .btn-ghost:focus {
  background-color: #44475a;
  color: #f8f8f2;
}

/* Text Colors in Dracula */
[data-bs-theme="dark"] .text-primary {
  color: #bd93f9 !important;
}
[data-bs-theme="dark"] .text-success,
[data-bs-theme="dark"] .text-success-emphasis {
  color: #50fa7b !important;
}
[data-bs-theme="dark"] .text-info,
[data-bs-theme="dark"] .text-info-emphasis {
  color: #8be9fd !important;
}
[data-bs-theme="dark"] .text-warning,
[data-bs-theme="dark"] .text-warning-emphasis {
  color: #ffb86c !important;
}
[data-bs-theme="dark"] .text-danger,
[data-bs-theme="dark"] .text-danger-emphasis {
  color: #ff5555 !important;
}
[data-bs-theme="dark"] .text-dark {
  color: #f8f8f2 !important;
}
[data-bs-theme="dark"] .text-muted,
[data-bs-theme="dark"] .text-secondary,
[data-bs-theme="dark"] .text-secondary-emphasis,
[data-bs-theme="dark"] .form-text {
  color: #9ea8c7 !important;
}
[data-bs-theme="dark"] .fw-light.text-muted {
  color: #6272a4 !important;
}

[data-bs-theme="dark"] .bg-primary {
  background-color: #bd93f9 !important;
  color: #191a21 !important;
}
[data-bs-theme="dark"] .border-primary {
  border-color: rgba(189, 147, 249, 0.4) !important;
}

/* Dracula Soft Badges & Labels */
[data-bs-theme="dark"] .badge.bg-primary {
  background-color: #bd93f9 !important;
  color: #191a21 !important;
  font-weight: 600;
}
[data-bs-theme="dark"] .bg-label-primary,
[data-bs-theme="dark"] .badge.bg-label-primary,
[data-bs-theme="dark"] .badge.bg-primary-subtle,
[data-bs-theme="dark"] .badge.bg-primary.bg-opacity-10,
[data-bs-theme="dark"] .bg-primary.bg-opacity-10 {
  background-color: rgba(189, 147, 249, 0.18) !important;
  color: #bd93f9 !important;
}
[data-bs-theme="dark"] .bg-label-secondary,
[data-bs-theme="dark"] .badge.bg-label-secondary,
[data-bs-theme="dark"] .badge.bg-secondary-subtle,
[data-bs-theme="dark"] .badge.bg-secondary,
[data-bs-theme="dark"] .bg-secondary.bg-opacity-10 {
  background-color: rgba(68, 71, 90, 0.55) !important;
  color: #f8f8f2 !important;
  border: 1px solid rgba(68, 71, 90, 0.4) !important;
}
[data-bs-theme="dark"] .bg-label-success,
[data-bs-theme="dark"] .badge.bg-label-success,
[data-bs-theme="dark"] .badge.bg-success-subtle,
[data-bs-theme="dark"] .badge.bg-success,
[data-bs-theme="dark"] .bg-success.bg-opacity-10 {
  background-color: rgba(80, 250, 123, 0.16) !important;
  color: #50fa7b !important;
}
[data-bs-theme="dark"] .bg-label-info,
[data-bs-theme="dark"] .badge.bg-label-info,
[data-bs-theme="dark"] .badge.bg-info-subtle,
[data-bs-theme="dark"] .badge.bg-info,
[data-bs-theme="dark"] .bg-info.bg-opacity-10 {
  background-color: rgba(139, 233, 253, 0.16) !important;
  color: #8be9fd !important;
}
[data-bs-theme="dark"] .bg-label-warning,
[data-bs-theme="dark"] .badge.bg-label-warning,
[data-bs-theme="dark"] .badge.bg-warning-subtle,
[data-bs-theme="dark"] .badge.bg-warning,
[data-bs-theme="dark"] .bg-warning.bg-opacity-10 {
  background-color: rgba(255, 184, 108, 0.18) !important;
  color: #ffb86c !important;
}
[data-bs-theme="dark"] .bg-label-danger,
[data-bs-theme="dark"] .badge.bg-label-danger,
[data-bs-theme="dark"] .badge.bg-danger-subtle,
[data-bs-theme="dark"] .badge.bg-danger,
[data-bs-theme="dark"] .bg-danger.bg-opacity-10 {
  background-color: rgba(255, 85, 85, 0.18) !important;
  color: #ff5555 !important;
}
[data-bs-theme="dark"] .badge.bg-light,
[data-bs-theme="dark"] .badge.bg-light-subtle,
[data-bs-theme="dark"] .badge.bg-white {
  background-color: #343746 !important;
  color: #f8f8f2 !important;
  border: 1px solid #383b4c !important;
}

/* Subtle Card / Box Utilities in Dracula (e.g., Analisis Pasar & Serah Terima) */
[data-bs-theme="dark"] .bg-primary-subtle {
  background-color: rgba(189, 147, 249, 0.14) !important;
  color: #f8f8f2 !important;
}
[data-bs-theme="dark"] .bg-success-subtle {
  background-color: rgba(80, 250, 123, 0.12) !important;
  color: #f8f8f2 !important;
}
[data-bs-theme="dark"] .bg-warning-subtle {
  background-color: rgba(255, 184, 108, 0.14) !important;
  color: #f8f8f2 !important;
}
[data-bs-theme="dark"] .bg-danger-subtle {
  background-color: rgba(255, 85, 85, 0.14) !important;
  color: #f8f8f2 !important;
}
[data-bs-theme="dark"] .bg-info-subtle {
  background-color: rgba(139, 233, 253, 0.14) !important;
  color: #f8f8f2 !important;
}
[data-bs-theme="dark"] .bg-secondary-subtle {
  background-color: rgba(68, 71, 90, 0.35) !important;
  color: #f8f8f2 !important;
}

/* Sidebar in JetBrains Dracula Mode (#21222c Project Tool Window + Soft Border) */
[data-bs-theme="dark"] .layout-menu.bg-menu-theme {
  background-color: #21222c !important;
  border-right: 1px solid #282a36 !important;
}
[data-bs-theme="dark"] .layout-menu.bg-menu-theme .app-brand {
  background-color: #191a21 !important;
  border-bottom: 1px solid #242631 !important;
}
[data-bs-theme="dark"] .layout-menu.bg-menu-theme .app-brand .app-brand-text {
  color: #bd93f9 !important;
  text-shadow: 0 0 12px rgba(189, 147, 249, 0.25);
}
[data-bs-theme="dark"] .layout-menu.bg-menu-theme .menu-header {
  color: #6272a4 !important;
}
[data-bs-theme="dark"] .layout-menu.bg-menu-theme .menu-header::before {
  background-color: #2e303e !important;
}
[data-bs-theme="dark"] .layout-menu.bg-menu-theme .menu-link {
  color: #f8f8f2 !important;
  opacity: 0.78;
}
[data-bs-theme="dark"] .layout-menu.bg-menu-theme .menu-link:hover {
  background-color: #44475a !important;
  color: #f8f8f2 !important;
  opacity: 1;
}
[data-bs-theme="dark"] .layout-menu.bg-menu-theme .menu-item.active > .menu-link {
  background-color: #44475a !important;
  color: #ff79c6 !important;
  border-left: 3px solid #ff79c6 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
  font-weight: 600;
  opacity: 1;
}
[data-bs-theme="dark"] .layout-menu.bg-menu-theme .menu-item.active > .menu-link .menu-icon,
[data-bs-theme="dark"] .layout-menu.bg-menu-theme .menu-item.active > .menu-link i {
  color: #bd93f9 !important;
}

/* Cards, Headers, Footers & Utility Backgrounds in JetBrains Dracula (Soft Border) */
[data-bs-theme="dark"] .card {
  background-color: #21222c !important;
  border: 1px solid #2a2c38 !important;
  box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.22) !important;
  color: #f8f8f2;
}
[data-bs-theme="dark"] .card.border-dashed {
  border: 2px dashed #343746 !important;
  background-color: rgba(33, 34, 44, 0.6) !important;
}
[data-bs-theme="dark"] .card-header {
  background-color: rgba(25, 26, 33, 0.3) !important;
  border-bottom: 1px solid #282a36 !important;
  color: #f8f8f2;
}
[data-bs-theme="dark"] .card-header.bg-primary {
  background-color: #bd93f9 !important;
  color: #191a21 !important;
}
[data-bs-theme="dark"] .card-header.bg-primary .modal-title,
[data-bs-theme="dark"] .card-header.bg-primary i {
  color: #191a21 !important;
}
[data-bs-theme="dark"] .card-header.bg-secondary {
  background-color: #343746 !important;
  color: #f8f8f2 !important;
}
[data-bs-theme="dark"] .card-footer {
  background-color: rgba(25, 26, 33, 0.25) !important;
  border-top: 1px solid #282a36 !important;
}
[data-bs-theme="dark"] .bg-white {
  background-color: #21222c !important;
  color: #f8f8f2 !important;
}
[data-bs-theme="dark"] .bg-light {
  background-color: #2b2d3a !important;
  color: #f8f8f2 !important;
}
[data-bs-theme="dark"] .border,
[data-bs-theme="dark"] .border-top,
[data-bs-theme="dark"] .border-bottom,
[data-bs-theme="dark"] .border-start,
[data-bs-theme="dark"] .border-end {
  border-color: #2a2c38 !important;
}
[data-bs-theme="dark"] .list-group-item {
  background-color: #21222c !important;
  border-color: #282a36 !important;
  color: #f8f8f2 !important;
}

/* Navbar & Dropdowns in JetBrains Dracula (#21222c Toolbar + Soft Border) */
[data-bs-theme="dark"] .layout-navbar,
[data-bs-theme="dark"] .layout-menu.menu-vertical ~ .layout-page.window-scrolled .layout-navbar {
  background-color: rgba(33, 34, 44, 0.95) !important;
  border: 1px solid #2a2c38 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
}
[data-bs-theme="dark"] .layout-navbar .nav-link,
[data-bs-theme="dark"] .layout-navbar .navbar-nav {
  color: #f8f8f2 !important;
}
[data-bs-theme="dark"] .dropdown-menu {
  background-color: #21222c !important;
  border: 1px solid #383b4c !important;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55) !important;
}
[data-bs-theme="dark"] .dropdown-item {
  color: #f8f8f2 !important;
}
[data-bs-theme="dark"] .dropdown-item:hover,
[data-bs-theme="dark"] .dropdown-item:focus {
  background-color: #44475a !important;
  color: #ff79c6 !important;
}
[data-bs-theme="dark"] .dropdown-item.active,
[data-bs-theme="dark"] .dropdown-item:active {
  background-color: #44475a !important;
  color: #50fa7b !important;
  font-weight: 600;
}
[data-bs-theme="dark"] .dropdown-divider {
  border-top-color: #2a2c38 !important;
}

/* Tables & DataTables in JetBrains Dracula */
[data-bs-theme="dark"] .table {
  --bs-table-bg: transparent;
  --bs-table-color: #f8f8f2;
  --bs-table-border-color: #282a36;
  --bs-table-striped-bg: rgba(40, 42, 54, 0.45);
  --bs-table-striped-color: #f8f8f2;
  --bs-table-hover-bg: rgba(68, 71, 90, 0.45);
  --bs-table-hover-color: #f8f8f2;
  color: #f8f8f2 !important;
  border-color: #282a36 !important;
}
[data-bs-theme="dark"] .table thead th,
[data-bs-theme="dark"] .table thead.table-light th,
[data-bs-theme="dark"] .table.datatable thead th,
[data-bs-theme="dark"] .table tfoot.table-light tr,
[data-bs-theme="dark"] .table tfoot tr.table-light,
[data-bs-theme="dark"] .table tfoot.table-light td,
[data-bs-theme="dark"] .table tfoot tr.table-light td {
  background-color: #191a21 !important;
  color: #bd93f9 !important;
  border-color: #282a36 !important;
}
[data-bs-theme="dark"] .table thead.table-success th {
  background-color: rgba(80, 250, 123, 0.14) !important;
  color: #50fa7b !important;
  border-color: rgba(80, 250, 123, 0.2) !important;
}
[data-bs-theme="dark"] .table tbody td,
[data-bs-theme="dark"] .table tbody th,
[data-bs-theme="dark"] .table tfoot td {
  border-color: #282a36 !important;
  color: #f8f8f2;
}
[data-bs-theme="dark"] .table-hover > tbody > tr:hover > * {
  background-color: rgba(68, 71, 90, 0.45) !important;
  color: #f8f8f2 !important;
}
[data-bs-theme="dark"] .table tr.table-secondary td {
  background-color: #282a36 !important;
  color: #ff79c6 !important;
}
[data-bs-theme="dark"] .table tr.table-primary td {
  background-color: rgba(189, 147, 249, 0.18) !important;
  color: #f8f8f2 !important;
}
[data-bs-theme="dark"] .card .dataTables_wrapper > .table-responsive {
  border-top-color: #282a36;
  border-bottom-color: #282a36;
}
[data-bs-theme="dark"] div.dataTables_wrapper div.dataTables_length label,
[data-bs-theme="dark"] div.dataTables_wrapper div.dataTables_filter label,
[data-bs-theme="dark"] div.dataTables_wrapper div.dataTables_info {
  color: #9ea8c7 !important;
}
[data-bs-theme="dark"] .page-link {
  background-color: #282a36 !important;
  border-color: #313442 !important;
  color: #f8f8f2 !important;
}
[data-bs-theme="dark"] .page-link:hover {
  background-color: #44475a !important;
  color: #ff79c6 !important;
}
[data-bs-theme="dark"] .page-item.active .page-link {
  background-color: #bd93f9 !important;
  border-color: #bd93f9 !important;
  color: #191a21 !important;
  font-weight: 700;
}
[data-bs-theme="dark"] .page-item.disabled .page-link {
  background-color: #191a21 !important;
  border-color: #282a36 !important;
  color: #6272a4 !important;
}

/* Forms, Inputs & Select2 in JetBrains Dracula */
[data-bs-theme="dark"] .form-label,
[data-bs-theme="dark"] .col-form-label {
  color: #f8f8f2 !important;
}
[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select,
[data-bs-theme="dark"] div.dataTables_wrapper div.dataTables_filter input,
[data-bs-theme="dark"] div.dataTables_wrapper div.dataTables_length select {
  background-color: #282a36 !important;
  border-color: #343746 !important;
  color: #f8f8f2 !important;
}
[data-bs-theme="dark"] .form-control::placeholder {
  color: #6272a4 !important;
}
[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus,
[data-bs-theme="dark"] div.dataTables_wrapper div.dataTables_filter input:focus {
  background-color: #282a36 !important;
  border-color: #bd93f9 !important;
  box-shadow: 0 0 0 0.18rem rgba(189, 147, 249, 0.2) !important;
  color: #f8f8f2 !important;
}
[data-bs-theme="dark"] .form-control:disabled,
[data-bs-theme="dark"] .form-control[readonly] {
  background-color: #191a21 !important;
  border-color: #282a36 !important;
  color: #9ea8c7 !important;
}
[data-bs-theme="dark"] .input-group-text {
  background-color: #2b2d3a !important;
  border-color: #343746 !important;
  color: #f8f8f2 !important;
}
[data-bs-theme="dark"] .form-check-input {
  background-color: #282a36;
  border-color: #44475a;
}
[data-bs-theme="dark"] .form-check-input:checked {
  background-color: #bd93f9 !important;
  border-color: #bd93f9 !important;
}

/* Select2 Bootstrap-5 Theme in JetBrains Dracula */
[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-selection {
  background-color: #282a36 !important;
  border-color: #343746 !important;
  color: #f8f8f2 !important;
}
[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
  color: #f8f8f2 !important;
}
[data-bs-theme="dark"] .select2-container--bootstrap-5.select2-container--focus .select2-selection,
[data-bs-theme="dark"] .select2-container--bootstrap-5.select2-container--open .select2-selection {
  border-color: #bd93f9 !important;
  box-shadow: 0 0 0 0.18rem rgba(189, 147, 249, 0.2) !important;
}
[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-dropdown {
  background-color: #21222c !important;
  border-color: #343746 !important;
  color: #f8f8f2 !important;
}
[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-dropdown .select2-search .select2-search__field {
  background-color: #282a36 !important;
  border-color: #343746 !important;
  color: #f8f8f2 !important;
}
[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option {
  color: #f8f8f2 !important;
}
[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option--highlighted {
  background-color: #44475a !important;
  color: #ff79c6 !important;
}
[data-bs-theme="dark"] .select2-container--bootstrap-5 .select2-dropdown .select2-results__options .select2-results__option[aria-selected="true"]:not(.select2-results__option--highlighted) {
  background-color: rgba(189, 147, 249, 0.22) !important;
  color: #bd93f9 !important;
}

/* Nav Pills & Tabs in JetBrains Dracula (Pink #ff79c6 / Purple #bd93f9 Active Indicator) */
[data-bs-theme="dark"] .nav-pills .nav-link:not(.active) {
  color: #9ea8c7;
  background-color: #21222c;
  border: 1px solid #2a2c38;
}
[data-bs-theme="dark"] .nav-pills .nav-link:not(.active):hover {
  background-color: #44475a;
  color: #f8f8f2;
}
[data-bs-theme="dark"] .nav-pills .nav-link.active,
[data-bs-theme="dark"] .nav-pills .show > .nav-link {
  background-color: #bd93f9 !important;
  color: #191a21 !important;
  font-weight: 700;
  box-shadow: 0 2px 8px 0 rgba(189, 147, 249, 0.4);
}
[data-bs-theme="dark"] .nav-tabs .nav-link {
  color: #9ea8c7;
}
[data-bs-theme="dark"] .nav-tabs .nav-link:hover {
  color: #f8f8f2;
}
[data-bs-theme="dark"] .nav-tabs .nav-link.active {
  color: #ff79c6 !important;
  border-bottom: 2px solid #ff79c6 !important;
  background-color: rgba(68, 71, 90, 0.35) !important;
}

/* Modals, Alerts & Progress in JetBrains Dracula */
[data-bs-theme="dark"] .modal-content {
  background-color: #21222c !important;
  border: 1px solid #313442 !important;
  color: #f8f8f2 !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.65) !important;
}
[data-bs-theme="dark"] .modal-header,
[data-bs-theme="dark"] .modal-footer {
  border-color: #282a36 !important;
}
[data-bs-theme="dark"] .modal-header .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}
[data-bs-theme="dark"] .modal-header.bg-primary {
  background-color: #bd93f9 !important;
  color: #191a21 !important;
}
[data-bs-theme="dark"] .modal-header.bg-primary .modal-title {
  color: #191a21 !important;
}
[data-bs-theme="dark"] .modal-header.bg-primary .btn-close {
  filter: none;
}
[data-bs-theme="dark"] .alert-light {
  background-color: #2b2d3a !important;
  border-color: #343746 !important;
  color: #f8f8f2 !important;
}
[data-bs-theme="dark"] .alert-info {
  background-color: rgba(139, 233, 253, 0.12) !important;
  border-color: rgba(139, 233, 253, 0.2) !important;
  color: #8be9fd !important;
}
[data-bs-theme="dark"] .alert-warning {
  background-color: rgba(255, 184, 108, 0.12) !important;
  border-color: rgba(255, 184, 108, 0.2) !important;
  color: #ffb86c !important;
}
[data-bs-theme="dark"] .alert-success {
  background-color: rgba(80, 250, 123, 0.12) !important;
  border-color: rgba(80, 250, 123, 0.2) !important;
  color: #50fa7b !important;
}
[data-bs-theme="dark"] .alert-danger {
  background-color: rgba(255, 85, 85, 0.12) !important;
  border-color: rgba(255, 85, 85, 0.22) !important;
  color: #ff5555 !important;
}
[data-bs-theme="dark"] .progress {
  background-color: #191a21 !important;
}

/* FullCalendar & Custom Components in JetBrains Dracula */
[data-bs-theme="dark"] .fc-theme-standard td,
[data-bs-theme="dark"] .fc-theme-standard th,
[data-bs-theme="dark"] .fc .fc-scrollgrid {
  border-color: #2a2c38 !important;
}
[data-bs-theme="dark"] .fc .fc-toolbar-title,
[data-bs-theme="dark"] .fc .fc-daygrid-day-number,
[data-bs-theme="dark"] .fc .fc-list-event-title a {
  color: #f8f8f2 !important;
}
[data-bs-theme="dark"] .fc .fc-col-header-cell-cushion {
  color: #bd93f9 !important;
}
[data-bs-theme="dark"] .fc-daygrid-day.fc-day-today {
  background: rgba(189, 147, 249, 0.15) !important;
}
[data-bs-theme="dark"] .fc-daygrid-day.fc-day-today .fc-daygrid-day-number {
  background: #ff79c6 !important;
  color: #191a21 !important;
}
[data-bs-theme="dark"] .fc .fc-button-primary {
  background: #343746 !important;
  border-color: #383b4c !important;
  color: #f8f8f2 !important;
  font-weight: 600;
}
[data-bs-theme="dark"] .fc .fc-button-primary:hover,
[data-bs-theme="dark"] .fc .fc-button-primary:not(:disabled):active,
[data-bs-theme="dark"] .fc .fc-button-primary:not(:disabled).fc-button-active {
  background: #bd93f9 !important;
  border-color: #bd93f9 !important;
  color: #191a21 !important;
}
[data-bs-theme="dark"] .fc .fc-list-empty {
  background: #282a36 !important;
  color: #9ea8c7 !important;
}
[data-bs-theme="dark"] .ev-item {
  background: #282a36 !important;
  border-left-color: #bd93f9;
}
[data-bs-theme="dark"] .ev-item:hover {
  background: #44475a !important;
}
[data-bs-theme="dark"] .ev-item .ev-title {
  color: #f8f8f2 !important;
}
[data-bs-theme="dark"] .ev-item .ev-date,
[data-bs-theme="dark"] .ev-item .ev-desc {
  color: #9ea8c7 !important;
}
[data-bs-theme="dark"] #voicePreview {
  background: rgba(255, 85, 85, 0.12) !important;
  color: #f8f8f2 !important;
  border-color: rgba(255, 85, 85, 0.3) !important;
}

/* Mobile Bottom Nav & Impersonation Topbar in JetBrains Dracula */
[data-bs-theme="dark"] #bottom-nav {
  background: #191a21;
  border-top-color: #282a36;
}
[data-bs-theme="dark"] #bottom-nav .nav-link {
  color: #6272a4;
}
[data-bs-theme="dark"] #bottom-nav .nav-link.active {
  color: #ff79c6;
}
[data-bs-theme="dark"] .impersonation-topbar {
  background-color: #191a21;
  border-bottom-color: rgba(255, 184, 108, 0.22);
}
[data-bs-theme="dark"] .auth-card {
  background: #21222c !important;
  color: #f8f8f2 !important;
  border: 1px solid #2a2c38;
}
