/* ========================================================================
   NEUMORPHIC DARK — inspired by mhmdsairi.my.id
   Background: #0f172a (slate-900), shadows: #060a12 (dark) / #182442 (light)
   No borders — shadows define elevation
   ======================================================================== */

body {
  background: #0f172a;
  color: #f1f5f9;
}

/* --- Neumorphic utilities --- */
.neu-box {
  background: #0f172a;
  box-shadow: 8px 8px 16px #060a12, -8px -8px 16px #182442;
  border-radius: 24px;
}
.neu-box-sm {
  background: #0f172a;
  box-shadow: 6px 6px 12px #060a12, -6px -6px 12px #182442;
  border-radius: 16px;
}
.neu-box-lg {
  background: #0f172a;
  box-shadow: 10px 10px 20px #060a12, -10px -10px 20px #182442;
  border-radius: 28px;
}
.neu-input {
  background: #0f172a !important;
  box-shadow: inset 4px 4px 8px #060a12, inset -4px -4px 8px #182442 !important;
  border-radius: 16px !important;
  border: none !important;
  padding: 12px 16px;
  color: #f8fafc;
  width: 100%;
  font-size: 0.875rem;
  outline: none;
  transition: all 0.2s;
}
.neu-input:focus {
  box-shadow: inset 4px 4px 8px #060a12, inset -4px -4px 8px #182442, 0 0 0 2px #4f46e560 !important;
}
.neu-btn {
  background: #0f172a !important;
  box-shadow: 8px 8px 16px #060a12, -8px -8px 16px #182442 !important;
  border-radius: 16px;
  border: none;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  letter-spacing: 0.03em;
  color: #cbd5e1;
}
.neu-btn:active {
  box-shadow: inset 6px 6px 12px #060a12, inset -6px -6px 12px #182442 !important;
}
.neu-btn-primary {
  color: #fff !important;
  letter-spacing: 0.05em;
}
.neu-btn-primary:active {
  box-shadow: inset 6px 6px 12px #060a12, inset -6px -6px 12px #182442 !important;
}
.neu-btn-danger {
  color: #fca5a5 !important;
}
.neu-btn-danger:active {
  box-shadow: inset 6px 6px 12px #060a12, inset -6px -6px 12px #182442 !important;
}
.neu-card {
  background: #0f172a;
  box-shadow: 6px 6px 12px #060a12, -6px -6px 12px #182442;
  border-radius: 20px;
  padding: 1.25rem;
  transition: all 0.2s ease;
}
.neu-card:hover {
  box-shadow: 8px 8px 16px #060a12, -8px -8px 16px #182442;
}
.neu-card-sm {
  background: #0f172a;
  box-shadow: 4px 4px 8px #060a12, -4px -4px 8px #182442;
  border-radius: 16px;
  padding: 1rem;
  transition: all 0.2s ease;
}
.neu-card-sm:hover {
  box-shadow: 6px 6px 12px #060a12, -6px -6px 12px #182442;
}
.card {
  background: #0f172a;
  box-shadow: 6px 6px 12px #060a12, -6px -6px 12px #182442;
  border-radius: 20px;
  padding: 1.25rem;
  transition: all 0.2s ease;
  color: #e2e8f0;
}
.card pre {
  background: #0f172a;
  box-shadow: inset 3px 3px 6px #060a12, inset -3px -3px 6px #182442;
  border-radius: 12px;
  padding: 0.75rem;
}
.neu-progress {
  height: 0.5rem;
  border-radius: 9999px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: inset 2px 2px 4px #060a12, inset -2px -2px 4px #182442;
}
.neu-progress-bar {
  height: 100%;
  background: linear-gradient(to right, #6366f1, #8b5cf6);
  border-radius: 9999px;
  transition: width 0.3s ease;
}
.neu-label {
  display: block;
  font-size: 0.65rem;
  color: #64748b;
  letter-spacing: 0.08em;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  margin-left: 0.25rem;
}

/* --- Alerts --- */
.neu-alert-error {
  background: #0f172a;
  box-shadow: 6px 6px 12px #060a12, -6px -6px 12px #182442;
  border-radius: 16px;
  padding: 0.75rem 1rem;
  color: #fecaca;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  border-left: 3px solid #ef4444;
}
.neu-alert-success {
  background: #0f172a;
  box-shadow: 6px 6px 12px #060a12, -6px -6px 12px #182442;
  border-radius: 16px;
  padding: 0.75rem 1rem;
  color: #bbf7d0;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  border-left: 3px solid #22c55e;
}

/* --- Theme Cards --- */
.theme-card {
  background: #0f172a;
  box-shadow: 6px 6px 12px #060a12, -6px -6px 12px #182442;
  border-radius: 20px;
  padding: 1.25rem;
  transition: all 0.2s ease;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: clip;
  overflow-wrap: anywhere;
}
.theme-card:hover {
  box-shadow: 8px 8px 16px #060a12, -8px -8px 16px #182442;
}

.theme-light .theme-card {
  background: #ffffff !important;
  box-shadow: 6px 6px 12px #d1d5db, -6px -6px 12px #ffffff !important;
}
.theme-light .theme-card:hover {
  box-shadow: 8px 8px 16px #d1d5db, -8px -8px 16px #ffffff !important;
}
.theme-light input:checked + .theme-card {
  box-shadow: inset 4px 4px 8px #d1d5db, inset -4px -4px 8px #ffffff !important;
}
input:checked + .theme-card {
  box-shadow: inset 4px 4px 8px #060a12, inset -4px -4px 8px #182442 !important;
}
.card-link {
  display: block;
  padding: 1rem;
  background: #0f172a;
  box-shadow: 4px 4px 8px #060a12, -4px -4px 8px #182442;
  border-radius: 16px;
  border: none;
  color: #e2e8f0;
  text-decoration: none;
  transition: all 0.15s;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}
.card-link:hover {
  box-shadow: 6px 6px 12px #060a12, -6px -6px 12px #182442;
  color: #f1f5f9;
}
.card-stat {
  min-height: 90px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.card-stat:active {
  box-shadow: inset 3px 3px 6px #060a12, inset -3px -3px 6px #182442;
}
.card-stat-icon {
  line-height: 0;
  opacity: 0.85;
}
.card-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 0.75rem;
  background: #0f172a;
  box-shadow: 4px 4px 8px #060a12, -4px -4px 8px #182442;
  border-radius: 16px;
  text-align: center;
  font-size: 0.875rem;
  color: #e2e8f0;
  transition: all 0.15s;
  min-height: 90px;
}
.card-action:hover {
  box-shadow: 6px 6px 12px #060a12, -6px -6px 12px #182442;
}
.card-action-sm {
  gap: 0.35rem;
  padding: 0.55rem 0.35rem;
  min-height: 68px;
  font-size: 0.68rem;
  border-radius: 12px;
  box-shadow: 3px 3px 6px #060a12, -3px -3px 6px #182442;
}
.card-action-sm:hover {
  box-shadow: 4px 4px 8px #060a12, -4px -4px 8px #182442;
}
.card-action-icon {
  line-height: 0;
  opacity: 0.85;
}
.card-action-icon svg {
  width: 18px;
  height: 18px;
}
.card-action-label {
  line-height: 1.2;
  font-weight: 600;
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  border-radius: 16px;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.8rem;
  transition: all 0.1s;
  line-height: 1.2;
  border: none;
  letter-spacing: 0.03em;
  background: #0f172a;
  box-shadow: 6px 6px 12px #060a12, -6px -6px 12px #182442;
}
.btn:active {
  box-shadow: inset 5px 5px 10px #060a12, inset -5px -5px 10px #182442 !important;
}
.btn-primary {
  background: #0f172a;
  color: #a5b4fc;
  font-weight: 800;
  letter-spacing: 0.05em;
}
.btn-secondary {
  background: #0f172a;
  color: #cbd5e1;
}
.btn-danger {
  background: #0f172a;
  color: #fca5a5;
}

.form-input {
  background: #0f172a !important;
  box-shadow: inset 4px 4px 8px #060a12, inset -4px -4px 8px #182442 !important;
  border-radius: 16px !important;
  border: none !important;
  padding: 12px 16px;
  color: #f8fafc;
  width: 100%;
  font-size: 0.875rem;
  outline: none;
  transition: all 0.2s;
}
.form-input:focus {
  box-shadow: inset 4px 4px 8px #060a12, inset -4px -4px 8px #182442, 0 0 0 2px #4f46e560 !important;
}
.label {
  display: block;
  font-size: 0.65rem;
  color: #64748b;
  letter-spacing: 0.08em;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.4rem;
  margin-left: 0.25rem;
}

.alert-error {
  background: #0f172a;
  box-shadow: 6px 6px 12px #060a12, -6px -6px 12px #182442;
  border-radius: 16px;
  padding: 0.75rem 1rem;
  color: #fecaca;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  border-left: 3px solid #ef4444;
}
.alert-success {
  background: #0f172a;
  box-shadow: 6px 6px 12px #060a12, -6px -6px 12px #182442;
  border-radius: 16px;
  padding: 0.75rem 1rem;
  color: #bbf7d0;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  border-left: 3px solid #22c55e;
}
.alert-warning {
  background: #0f172a;
  box-shadow: 6px 6px 12px #060a12, -6px -6px 12px #182442;
  border-radius: 16px;
  padding: 0.75rem 1rem;
  color: #fde68a;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  border-left: 3px solid #f59e0b;
}

/* --- Code wrap --- */
.code-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.75rem;
  line-height: 1.5;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: anywhere;
  word-break: break-all;
  hyphens: none;
}
.code-field {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.card > *,
.grid > * {
  min-width: 0;
}

/* --- Confirm modal --- */
.confirm-modal {
  padding: max(1rem, env(safe-area-inset-top, 0px))
           max(1rem, env(safe-area-inset-right, 0px))
           max(1rem, env(safe-area-inset-bottom, 0px))
           max(1rem, env(safe-area-inset-left, 0px));
  box-sizing: border-box;
}
.confirm-modal__panel {
  background: #0f172a;
  box-shadow: 10px 10px 20px #060a12, -10px -10px 20px #182442;
  border-radius: 24px;
  margin: auto;
  max-height: calc(100dvh - 2rem);
  max-height: calc(100svh - 2rem);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transform: scale(0.96);
  opacity: 0;
  transition: transform 150ms ease-out, opacity 150ms ease-out;
}

/* --- Page loader --- */
.page-loader__panel {
  background: #0f172a;
  box-shadow: 12px 12px 24px #060a12, -12px -12px 24px #182442;
  border-radius: 24px;
}
.page-loader__ring--outer {
  border: 3px solid #1e293b;
}
.page-loader__ring--spin {
  border: 3px solid transparent;
  border-top-color: #818cf8;
  border-right-color: #818cf850;
  animation: loader-spin 0.9s linear infinite;
}
.page-loader__ring--pulse {
  border: 2px solid #6366f170;
  animation: loader-pulse 1.6s ease-in-out infinite;
}
.page-loader.is-payment .page-loader__ring--spin {
  border-top-color: #34d399;
  border-right-color: #34d39950;
}
.page-loader.is-payment .page-loader__ring--pulse {
  border-color: #10b98180;
}
.page-loader.is-payment .page-loader__panel {
  box-shadow: 0 12px 24px #060a12, -12px -12px 24px #182442;
}
.page-loader__icon {
  animation: loader-icon-bob 1.2s ease-in-out infinite;
}
.page-loader__bar {
  height: 4px;
  width: 100%;
  background: #1e293b;
  border-radius: 999px;
  overflow: hidden;
}
.page-loader__bar-fill {
  height: 100%;
  width: 42%;
  border-radius: 999px;
  background: linear-gradient(90deg, #4f46e5, #34d399, #818cf8);
  animation: loader-bar-slide 1.4s ease-in-out infinite;
}
.page-loader.is-payment .page-loader__bar-fill {
  background: linear-gradient(90deg, #10b981, #34d399, #6ee7b7);
}
.page-loader__dots {
  display: flex;
  justify-content: center;
  gap: 0.35rem;
}
.page-loader__dots span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #94a3b8;
  animation: loader-dot-bounce 1.1s ease-in-out infinite;
}
.page-loader.is-payment .page-loader__dots span {
  background: #34d399;
}
.page-loader__dots span:nth-child(2) { animation-delay: 0.15s; }
.page-loader__dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes loader-spin { to { transform: rotate(360deg); } }
@keyframes loader-pulse {
  0%, 100% { transform: scale(0.92); opacity: 0.55; }
  50% { transform: scale(1.05); opacity: 1; }
}
@keyframes loader-icon-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
@keyframes loader-bar-slide {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(280%); }
}
@keyframes loader-dot-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.45; }
  40% { transform: translateY(-5px); opacity: 1; }
}

/* --- Sidebar transition --- */
#sidebar { transition: transform 0.2s ease; }

/* --- Sidebar --- */
.neu-sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 14px;
  font-size: 0.875rem;
  color: #94a3b8;
  transition: all 0.15s ease;
  cursor: pointer;
}
.neu-sidebar-link:hover {
  background: #0f172a;
  box-shadow: 5px 5px 10px #060a12, -5px -5px 10px #182442;
  color: #e2e8f0;
}
.neu-sidebar-link.active {
  background: #0f172a;
  box-shadow: 5px 5px 10px #060a12, -5px -5px 10px #182442;
  color: #a5b4fc;
}
.neu-sidebar-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: #0f172a;
  box-shadow: 3px 3px 6px #060a12, -3px -3px 6px #182442;
  flex-shrink: 0;
}
.neu-sidebar-link.active .neu-sidebar-icon {
  box-shadow: inset 3px 3px 6px #060a12, inset -3px -3px 6px #182442;
}
.neu-sidebar-group {
  font-size: 0.6rem;
  color: #475569;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.5rem 0.75rem 0.25rem;
  margin-top: 0.75rem;
}

/* --- Dropdown parent --- */
.neu-sidebar-dropdown {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  color: #94a3b8;
  padding: 0.6rem 0.75rem;
  margin-top: 0.75rem;
  border-radius: 12px;
  background: #0f172a;
  box-shadow: 4px 4px 8px #060a12, -4px -4px 8px #182442;
  transition: all 0.2s ease;
  user-select: none;
}
.neu-sidebar-dropdown:hover {
  color: #e2e8f0;
  box-shadow: 5px 5px 10px #060a12, -5px -5px 10px #182442;
}
.neu-sidebar-dropdown.open {
  color: #c7d2fe;
  box-shadow: inset 4px 4px 8px #060a12, inset -4px -4px 8px #182442;
}
.neu-sidebar-dropdown .chevron {
  transition: transform 0.25s ease;
  opacity: 0.6;
  flex-shrink: 0;
}
.neu-sidebar-dropdown.open .chevron {
  transform: rotate(180deg);
  opacity: 1;
}

/* --- Collapsible children --- */
.neu-sidebar-children {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding-left: 0.5rem;
}
.neu-sidebar-children.open {
  max-height: 600px;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}
.neu-sidebar-children .neu-sidebar-link {
  padding-left: 1rem;
  font-size: 0.8rem;
  margin-top: 0.25rem;
  border-left: 2px solid transparent;
}
.neu-sidebar-children .neu-sidebar-link:hover,
.neu-sidebar-children .neu-sidebar-link.active {
  border-left-color: #818cf8;
}
.neu-sidebar-children .neu-sidebar-link svg {
  width: 14px;
  height: 14px;
  margin-right: 0.5rem;
  flex-shrink: 0;
}
.neu-sidebar-children .neu-sidebar-link .neu-sidebar-icon {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  box-shadow: 2px 2px 4px #060a12, -2px -2px 4px #182442;
}

/* --- Bottom nav icons neumorphic --- */
.neu-bottom-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #0f172a;
  box-shadow: 4px 4px 8px #060a12, -4px -4px 8px #182442;
  margin-bottom: 0.25rem;
}
.neu-bottom-icon.active {
  box-shadow: inset 4px 4px 8px #060a12, inset -4px -4px 8px #182442;
  color: #818cf8;
}

/* --- Header icons --- */
.neu-header-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #0f172a;
  box-shadow: 3px 3px 6px #060a12, -3px -3px 6px #182442;
}
.neu-header-icon-round {
  border-radius: 50%;
}

/* --- Scrollbar --- */

/* Hide scrollbar strictly on sidebar */
  display: none;
}
#sidebar {
  -ms-overflow-style: none;  /* IE and Edge */
  scrollbar-width: none;  /* Firefox */
}

/* Hide scrollbar for Firefox and Edge */
* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

/* --- JSON / Pre --- */
pre {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

/* --- Tabs neumorphic --- */
.neu-tabs {
  background: #0f172a;
  box-shadow: inset 3px 3px 6px #060a12, inset -3px -3px 6px #182442;
  border-radius: 16px;
  padding: 4px;
}
.neu-tab {
  padding: 0.6rem 1rem;
  border-radius: 14px;
  font-size: 0.75rem;
  font-weight: 700;
  transition: all 0.15s;
  cursor: pointer;
  color: #64748b;
  text-align: center;
}
.neu-tab-active {
  background: #0f172a;
  box-shadow: 4px 4px 8px #060a12, -4px -4px 8px #182442;
  color: #a5b4fc;
}

/* --- Stat card (dashboard hero field) --- */
.neu-stat {
  background: #0f172a;
  box-shadow: 4px 4px 8px #060a12, -4px -4px 8px #182442;
  border-radius: 14px;
  padding: 0.75rem 1rem;
}

/* --- Dashboard inset card & badge --- */
.neu-inset-card {
  box-shadow: inset 3px 3px 6px #060a12, inset -3px -3px 6px #182442;
}
.neu-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.125rem 0.5rem;
  border-radius: 0.25rem;
  font-size: 0.75rem;
  color: #e2e8f0;
}

/* --- Toggle switch style --- */
.neu-toggle {
  background: #0f172a;
  box-shadow: inset 3px 3px 6px #060a12, inset -3px -3px 6px #182442;
  border-radius: 999px;
  width: 44px;
  height: 24px;
  padding: 2px;
  cursor: pointer;
  transition: all 0.2s;
}
.neu-toggle.on {
  box-shadow: 4px 4px 8px #060a12, -4px -4px 8px #182442;
}
.neu-toggle-knob {
  width: 20px;
  height: 20px;
  background: #334155;
  border-radius: 999px;
  transition: all 0.2s;
}
.neu-toggle.on .neu-toggle-knob {
  background: #818cf8;
  transform: translateX(20px);
}

/* ========================================================================
   LIGHT THEME OVERRIDES
   ======================================================================== */
/* --- Light theme overrides --- */
.theme-light body {
  background: #f1f5f9 !important;
  color: #1e293b !important;
}
.theme-light header {
  background: rgba(255,255,255,0.85) !important;
}
.theme-light header a,
.theme-light header span,
.theme-light header button {
  color: #475569 !important;
}
.theme-light .neu-box,
.theme-light .neu-box-sm,
.theme-light .neu-card,
.theme-light .neu-card-sm,
.theme-light .card,
.theme-light .card-link,
.theme-light .card-action,
.theme-light .btn,
.theme-light .confirm-modal__panel,
.theme-light .page-loader__panel,
.theme-light .neu-tab-active {
  background: #ffffff !important;
  box-shadow: 8px 8px 16px #d1d5db, -8px -8px 16px #ffffff !important;
}
.theme-light .neu-input,
.theme-light .form-input {
  background: #ffffff !important;
  box-shadow: inset 4px 4px 8px #d1d5db, inset -4px -4px 8px #ffffff !important;
}
.theme-light .neu-btn:active,
.theme-light .btn:active {
  box-shadow: inset 5px 5px 10px #d1d5db, inset -5px -5px 10px #ffffff !important;
}
.theme-light .neu-tabs {
  box-shadow: inset 3px 3px 6px #d1d5db, inset -3px -3px 6px #ffffff !important;
  background: transparent !important;
}
.theme-light .neu-alert-success,
.theme-light .alert-success {
  color: #065f46 !important;
  background: #d1fae5 !important;
  border-left: 3px solid #059669 !important;
  font-weight: 600;
  box-shadow: 6px 6px 12px #d1d5db, -6px -6px 12px #ffffff, inset 0 0 0 1px rgba(5, 150, 105, 0.25) !important;
}
.theme-light .neu-alert-error,
.theme-light .alert-error {
  color: #b91c1c !important;
  background: #fef2f2 !important;
  border-left-color: #ef4444 !important;
  box-shadow: 6px 6px 12px #d1d5db, -6px -6px 12px #ffffff, inset 0 0 0 1px rgba(239, 68, 68, 0.2) !important;
}
.theme-light .alert-warning {
  color: #b45309 !important;
  background: #fffbeb !important;
  border-left: 3px solid #f59e0b !important;
  box-shadow: 6px 6px 12px #d1d5db, -6px -6px 12px #ffffff, inset 0 0 0 1px rgba(245, 158, 11, 0.25) !important;
}
.theme-light .neu-stat {
  background: #ffffff !important;
  box-shadow: 4px 4px 8px #d1d5db, -4px -4px 8px #ffffff !important;
}
.theme-light .neu-inset-card {
  box-shadow: inset 3px 3px 6px #d1d5db, inset -3px -3px 6px #ffffff !important;
}
.theme-light .card-stat:active {
  box-shadow: inset 3px 3px 6px #d1d5db, inset -3px -3px 6px #ffffff !important;
}
.theme-light .card {
  color: #334155 !important;
}
.theme-light .card pre {
  background: #f1f5f9 !important;
  box-shadow: inset 3px 3px 6px #d1d5db, inset -3px -3px 6px #ffffff !important;
}
.theme-light .neu-progress {
  background: #f1f5f9 !important;
  box-shadow: inset 2px 2px 4px #d1d5db, inset -2px -2px 4px #ffffff !important;
}
.theme-light .neu-badge {
  background: rgba(0, 0, 0, 0.08) !important;
  color: #475569 !important;
}
.theme-light .text-emerald-300 { color: #059669 !important; }
.theme-light .text-amber-300 { color: #d97706 !important; }
.theme-light .text-sky-300 { color: #0284c7 !important; }
.theme-light .text-fuchsia-300 { color: #c026d3 !important; }
.theme-light .text-red-400 { color: #dc2626 !important; }
.theme-light .page-loader__backdrop {
  background: rgba(241,245,249,0.88) !important;
}
.theme-light #page-loader-msg { color: #334155 !important; }
.theme-light #page-loader-sub { color: #94a3b8 !important; }
.theme-light .page-loader__ring--outer { border-color: #e2e8f0 !important; }
.theme-light #sidebar { background: #ffffff !important; }
.theme-light #sidebar nav a { color: #475569 !important; }
.theme-light #sidebar nav a.text-indigo-200 { color: #4f46e5 !important; }
.theme-light .text-slate-200 { color: #334155 !important; }
.theme-light .text-slate-300 { color: #475569 !important; }
.theme-light .text-slate-400 { color: #64748b !important; }
.theme-light .text-slate-500 { color: #94a3b8 !important; }
.theme-light .text-slate-600 { color: #94a3b8 !important; }
.theme-light .text-slate-100 { color: #1e293b !important; }
.theme-light .text-indigo-300 { color: #4f46e5 !important; }
.theme-light .text-indigo-200 { color: #4f46e5 !important; }
.theme-light .bg-slate-950 { background: #f1f5f9 !important; }
.theme-light .bg-slate-900 { background: #ffffff !important; }
.theme-light .bg-slate-900\/70 { background: rgba(255,255,255,0.85) !important; }
.theme-light .bg-slate-900\/95 { background: rgba(255,255,255,0.95) !important; }
.theme-light .bg-slate-800 { background: #e2e8f0 !important; }
.theme-light .bg-slate-800\/60 { background: rgba(226,232,240,0.8) !important; }
.theme-light .bg-black\/50 { background: rgba(0,0,0,0.15) !important; }
.theme-light .border-slate-800 { border-color: #e2e8f0 !important; }
.theme-light .border-slate-700 { border-color: #e2e8f0 !important; }

/* Light theme: Sidebar, Bottom Nav, Header Icons */
.theme-light .neu-sidebar-link {
  color: #334155 !important;
}
.theme-light .neu-sidebar-link:hover {
  background: #f1f5f9 !important;
  box-shadow: 5px 5px 10px #d1d5db, -5px -5px 10px #ffffff !important;
  color: #0f172a !important;
}
.theme-light .neu-sidebar-link.active {
  background: #f1f5f9 !important;
  box-shadow: 5px 5px 10px #d1d5db, -5px -5px 10px #ffffff !important;
  color: #4338ca !important;
}
.theme-light .neu-sidebar-icon {
  background: #f1f5f9 !important;
  box-shadow: 3px 3px 6px #d1d5db, -3px -3px 6px #ffffff !important;
}
.theme-light .neu-sidebar-link.active .neu-sidebar-icon {
  box-shadow: inset 3px 3px 6px #d1d5db, inset -3px -3px 6px #ffffff !important;
}
.theme-light .neu-sidebar-group {
  color: #64748b !important;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.theme-light .neu-sidebar-dropdown {
  background: #f1f5f9 !important;
  box-shadow: 4px 4px 8px #d1d5db, -4px -4px 8px #ffffff !important;
  color: #334155 !important;
}
.theme-light .neu-sidebar-dropdown:hover {
  box-shadow: 5px 5px 10px #d1d5db, -5px -5px 10px #ffffff !important;
  color: #1e293b !important;
}
.theme-light .neu-sidebar-dropdown.open {
  box-shadow: inset 4px 4px 8px #d1d5db, inset -4px -4px 8px #ffffff !important;
  color: #4338ca !important;
}
.theme-light .neu-sidebar-dropdown .chevron {
  opacity: 0.7 !important;
}
.theme-light .neu-sidebar-children .neu-sidebar-link {
  color: #475569 !important;
}
.theme-light .neu-sidebar-children .neu-sidebar-link:hover,
.theme-light .neu-sidebar-children .neu-sidebar-link.active {
  border-left-color: #4338ca !important;
  color: #1e293b !important;
}
.theme-light .neu-sidebar-children .neu-sidebar-link .neu-sidebar-icon {
  background: #f1f5f9 !important;
  box-shadow: 2px 2px 4px #d1d5db, -2px -2px 4px #ffffff !important;
}
.theme-light .neu-sidebar-children .neu-sidebar-link.active .neu-sidebar-icon {
  box-shadow: inset 2px 2px 4px #d1d5db, inset -2px -2px 4px #ffffff !important;
}
.theme-light .neu-bottom-icon {
  background: #f1f5f9 !important;
  box-shadow: 4px 4px 8px #d1d5db, -4px -4px 8px #ffffff !important;
}
.theme-light .neu-bottom-icon.active {
  box-shadow: inset 4px 4px 8px #d1d5db, inset -4px -4px 8px #ffffff !important;
  color: #4338ca !important;
}
.theme-light .neu-header-icon {
  background: #f1f5f9 !important;
  box-shadow: 3px 3px 6px #d1d5db, -3px -3px 6px #ffffff !important;
}

/* Light theme: Sidebar container */
.theme-light #sidebar {
  background: #ffffff !important;
  box-shadow: 8px 0 20px #d1d5db !important;
  border-right: 1px solid #e2e8f0 !important;
}
.theme-light #sidebar .text-slate-400 { color: #64748b !important; }
.theme-light #sidebar .text-slate-200 { color: #1e293b !important; }
.theme-light #sidebar .text-slate-600 { color: #94a3b8 !important; }

/* Light theme: Bottom nav container */
.theme-light nav.fixed.bottom-0 {
  background: #ffffff !important;
  box-shadow: 0 -4px 20px #d1d5db !important;
  border-top: 1px solid #e2e8f0 !important;
}

/* Light theme: Header container */
.theme-light header {
  background: #ffffff !important;
  box-shadow: 0 4px 20px #d1d5db !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

/* --- Light theme: extended fixes (v8) --- */
.theme-light .neu-box-lg {
  background: #ffffff !important;
  box-shadow: 10px 10px 20px #d1d5db, -10px -10px 20px #ffffff !important;
}
.theme-light .neu-label,
.theme-light .label {
  color: #64748b !important;
}
.theme-light .neu-input,
.theme-light .form-input {
  color: #0f172a !important;
}
.theme-light .btn-primary { color: #4338ca !important; }
.theme-light .btn-secondary { color: #475569 !important; }
.theme-light .btn-danger { color: #dc2626 !important; }
.theme-light .neu-tab { color: #64748b !important; }
.theme-light .neu-tab-active { color: #4338ca !important; }
.theme-light .text-indigo-400 { color: #4f46e5 !important; }
.theme-light .text-white { color: #0f172a !important; }
.theme-light .hover\:text-white:hover { color: #0f172a !important; }
.theme-light .hover\:text-slate-200:hover { color: #334155 !important; }
.theme-light #confirm-backdrop,
.theme-light .page-loader__backdrop {
  background: rgba(241, 245, 249, 0.88) !important;
}
.theme-light #confirm-title { color: #0f172a !important; }
.theme-light #confirm-message { color: #475569 !important; }
.theme-light #confirm-detail {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #334155 !important;
}
.theme-light #confirm-icon {
  background: rgba(245, 158, 11, 0.12) !important;
  border-color: rgba(245, 158, 11, 0.35) !important;
  color: #d97706 !important;
}
.theme-light pre,
.theme-light .bg-\[\#0f172a\] {
  background: #f1f5f9 !important;
  color: #1e293b !important;
  border: 1px solid #e2e8f0;
}
.theme-light .card-link.bg-emerald-500\/10 {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
}
.theme-light .card-link.bg-amber-500\/10 {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
}
.theme-light .card-link.bg-sky-500\/10 {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
}
.theme-light .card-link.bg-fuchsia-500\/10 {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
}
.theme-light .card-link.hover\:bg-emerald-500\/20:hover { background: #f8fafc !important; }
.theme-light .card-link.hover\:bg-amber-500\/20:hover { background: #f8fafc !important; }
.theme-light .card-link.hover\:bg-sky-500\/20:hover { background: #f8fafc !important; }
.theme-light .card-link.hover\:bg-fuchsia-500\/20:hover { background: #f8fafc !important; }
.theme-light .card-action { color: #334155 !important; }
.theme-light .card-action:hover {
  box-shadow: 5px 5px 10px #d1d5db, -5px -5px 10px #ffffff !important;
}
.theme-light .neu-toggle {
  background: #e2e8f0 !important;
  box-shadow: inset 3px 3px 6px #cbd5e1, inset -3px -3px 6px #ffffff !important;
}
.theme-light .neu-toggle-knob { background: #94a3b8 !important; }
.theme-light .neu-toggle.on .neu-toggle-knob { background: #4f46e5 !important; }
.theme-light .hover\:bg-slate-800:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}
.theme-light .neu-tabs { background: #e2e8f0 !important; }
.theme-light .neu-tabs .neu-tab-active { background: #ffffff !important; }
.theme-light .text-red-300 { color: #dc2626 !important; }
.theme-light .hover\:text-red-300:hover { color: #b91c1c !important; }
.theme-light .border-amber-500\/30,
.theme-light .border-emerald-500\/30,
.theme-light .border-sky-500\/30,
.theme-light .border-fuchsia-500\/30 {
  border-width: 1px;
  border-style: solid;
}
/* --- Hide sidebar scrollbar --- */
  display: none;
}
#sidebar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* --- Hide sidebar scrollbar --- */
  display: none;
}
#sidebar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* --- Neumorphic Pill --- */
.neu-pill {
  background: #0f172a;
  box-shadow: 4px 4px 8px #060a12, -4px -4px 8px #182442;
  border-radius: 9999px;
  border: none !important;
}
.theme-light .neu-pill {
  background: #ffffff !important;
  box-shadow: 4px 4px 8px #d1d5db, -4px -4px 8px #ffffff !important;
}

/* --- Hide all scrollbars for clean UI --- */
*::-webkit-scrollbar { display: none !important; width: 0 !important; height: 0 !important; }
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}
* {
  -ms-overflow-style: none !important;
  scrollbar-width: none !important;
}
