/* ==========================================================================
   MinimalCloud Modern Pastel Soft-Glow Design System
   Universal Theme Engine (Client, Staff, Login, Register)
   Bootstrap 5.3+ & Sneat Pro Standard Compliance
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Typography & Global Font Enforcement
   -------------------------------------------------------------------------- */
* {
  font-family: 'Sarabun', 'Public Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body, button, input, select, textarea, .form-control, .form-select, .btn, .modal, .card, .dropdown-menu, .nav, .table {
  font-family: 'Sarabun', 'Public Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

/* --------------------------------------------------------------------------
   2. Design Tokens & Color Palettes
   -------------------------------------------------------------------------- */
:root {
  --mc-transition-speed: 0.28s;

  /* Pastel Core Brand Tokens */
  --mc-pastel-primary: #6366f1;
  --mc-pastel-primary-light: #e0e7ff;
  --mc-pastel-primary-border: #c7d2fe;
  --mc-pastel-primary-text: #4338ca;

  --mc-pastel-secondary: #64748b;
  --mc-pastel-secondary-light: #f1f5f9;
  --mc-pastel-secondary-border: #e2e8f0;
  --mc-pastel-secondary-text: #334155;

  --mc-pastel-success: #10b981;
  --mc-pastel-success-light: #d1fae5;
  --mc-pastel-success-border: #a7f3d0;
  --mc-pastel-success-text: #065f46;

  --mc-pastel-danger: #f43f5e;
  --mc-pastel-danger-light: #ffe4e6;
  --mc-pastel-danger-border: #fecdd3;
  --mc-pastel-danger-text: #9f1239;

  --mc-pastel-warning: #f59e0b;
  --mc-pastel-warning-light: #fef3c7;
  --mc-pastel-warning-border: #fde68a;
  --mc-pastel-warning-text: #92400e;

  --mc-pastel-info: #06b6d4;
  --mc-pastel-info-light: #cffafe;
  --mc-pastel-info-border: #a5f3fc;
  --mc-pastel-info-text: #155e75;

  --mc-pastel-purple: #8b5cf6;
  --mc-pastel-purple-light: #ede9fe;
  --mc-pastel-purple-border: #ddd6fe;
  --mc-pastel-purple-text: #5b21b6;
}

/* Smooth global transition for background and borders */
body,
.layout-wrapper,
.layout-page,
.content-wrapper,
.layout-menu,
.layout-navbar,
.card,
.modal-content,
.dropdown-menu,
.list-group-item,
.form-control,
.form-select,
.input-group-text,
.table {
  transition: background-color var(--mc-transition-speed) ease,
              border-color var(--mc-transition-speed) ease,
              color var(--mc-transition-speed) ease,
              box-shadow var(--mc-transition-speed) ease;
}

/* --------------------------------------------------------------------------
   3. Light Theme Palette (Soft Pastel Airy & Ambient Mesh Gradients)
   -------------------------------------------------------------------------- */
html.light-style,
[data-bs-theme="light"] {
  --mc-bg-body: #f8fafc;
  --mc-bg-gradient: linear-gradient(135deg, #f0f4ff 0%, #fdf2f8 45%, #f0fdf4 100%);
  --mc-bg-card: #ffffff;
  --mc-bg-nav: rgba(255, 255, 255, 0.88);
  --mc-bg-sidebar: #ffffff;
  --mc-border: rgba(99, 102, 241, 0.12);
  --mc-border-subtle: rgba(226, 232, 240, 0.8);
  --mc-text-heading: #1e293b;
  --mc-text-body: #475569;
  --mc-text-muted: #94a3b8;
  --mc-card-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.06), 0 8px 10px -6px rgba(0, 0, 0, 0.03);
  --mc-card-shadow-hover: 0 20px 30px -10px rgba(99, 102, 241, 0.12);
  
  /* Primary accents */
  --bs-primary: #6366f1;
  --bs-primary-rgb: 99, 102, 241;
  --bs-body-bg: var(--mc-bg-body);
  --bs-body-color: var(--mc-text-body);
}

/* Apply gradient backdrop on Light Theme */
html.light-style body,
[data-bs-theme="light"] body,
html.light-style .layout-wrapper,
[data-bs-theme="light"] .layout-wrapper,
html.light-style .content-wrapper,
[data-bs-theme="light"] .content-wrapper {
  background: var(--mc-bg-gradient) !important;
  background-attachment: fixed !important;
  color: var(--mc-text-body);
}

/* --------------------------------------------------------------------------
   4. Dark Theme Palette (Obsidian Pastel Soft-Glow & Deep Slate Mesh)
   -------------------------------------------------------------------------- */
html.dark-style,
[data-bs-theme="dark"] {
  color-scheme: dark;
  --mc-bg-body: #0a0d14;
  --mc-bg-gradient: linear-gradient(135deg, #07090e 0%, #0f172a 50%, #0d131f 100%);
  --mc-bg-card: #141b2d;
  --mc-bg-nav: rgba(20, 27, 45, 0.9);
  --mc-bg-sidebar: #0f1422;
  --mc-border: rgba(255, 255, 255, 0.08);
  --mc-border-subtle: rgba(255, 255, 255, 0.04);
  --mc-text-heading: #f8fafc;
  --mc-text-body: #cbd5e1;
  --mc-text-muted: #8492a6;
  --mc-card-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
  --mc-card-shadow-hover: 0 20px 40px -10px rgba(99, 102, 241, 0.25);
  
  /* Bootstrap overrides */
  --bs-body-bg: var(--mc-bg-body);
  --bs-body-color: var(--mc-text-body);
  --bs-card-bg: var(--mc-bg-card);
  --bs-card-border-color: var(--mc-border);
  --bs-border-color: var(--mc-border);
  --bs-heading-color: var(--mc-text-heading);

  /* Pastel Text Overrides for Dark Mode */
  --mc-pastel-primary-light: rgba(99, 102, 241, 0.2);
  --mc-pastel-primary-border: rgba(99, 102, 241, 0.4);
  --mc-pastel-primary-text: #a5b4fc;

  --mc-pastel-success-light: rgba(16, 185, 129, 0.2);
  --mc-pastel-success-border: rgba(16, 185, 129, 0.4);
  --mc-pastel-success-text: #6ee7b7;

  --mc-pastel-danger-light: rgba(244, 63, 94, 0.2);
  --mc-pastel-danger-border: rgba(244, 63, 94, 0.4);
  --mc-pastel-danger-text: #fda4af;

  --mc-pastel-warning-light: rgba(245, 158, 11, 0.2);
  --mc-pastel-warning-border: rgba(245, 158, 11, 0.4);
  --mc-pastel-warning-text: #fde68a;

  --mc-pastel-info-light: rgba(6, 182, 212, 0.2);
  --mc-pastel-info-border: rgba(6, 182, 212, 0.4);
  --mc-pastel-info-text: #67e8f9;

  --mc-pastel-purple-light: rgba(139, 92, 246, 0.2);
  --mc-pastel-purple-border: rgba(139, 92, 246, 0.4);
  --mc-pastel-purple-text: #c4b5fd;

  /* Bootstrap 5.3 Table Variables */
  --bs-table-bg: transparent;
  --bs-table-color: var(--mc-text-body);
  --bs-table-border-color: var(--mc-border);
  --bs-table-accent-bg: transparent;
  --bs-table-striped-bg: rgba(255, 255, 255, 0.02);
  --bs-table-striped-color: var(--mc-text-heading);
  --bs-table-hover-bg: rgba(99, 102, 241, 0.06);
  --bs-table-hover-color: #ffffff;
}

/* Apply gradient backdrop on Dark Theme */
html.dark-style body,
[data-bs-theme="dark"] body,
html.dark-style .layout-wrapper,
[data-bs-theme="dark"] .layout-wrapper,
html.dark-style .layout-page,
[data-bs-theme="dark"] .layout-page,
html.dark-style .content-wrapper,
[data-bs-theme="dark"] .content-wrapper {
  background: var(--mc-bg-gradient) !important;
  background-attachment: fixed !important;
  color: var(--mc-text-body);
}

/* --------------------------------------------------------------------------
   5. Modern Pastel Card Styling (Glassmorphic Glow & Soft Shadows)
   -------------------------------------------------------------------------- */
.card {
  border-radius: 1rem !important;
  border: 1px solid var(--mc-border) !important;
  box-shadow: var(--mc-card-shadow) !important;
  background-color: var(--mc-bg-card) !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
}

.card:hover {
  box-shadow: var(--mc-card-shadow-hover) !important;
}

/* Pastel Card Header & Footer */
.card-header,
.card-footer {
  background-color: transparent !important;
  border-color: var(--mc-border) !important;
  padding: 1.25rem 1.5rem !important;
}

/* --------------------------------------------------------------------------
   6. Universal Pastel Badges (Light & Dark Mode Full Compatibility)
   -------------------------------------------------------------------------- */
.badge.bg-label-primary {
  background-color: var(--mc-pastel-primary-light) !important;
  color: var(--mc-pastel-primary-text) !important;
  border: 1px solid var(--mc-pastel-primary-border) !important;
  font-weight: 600;
  border-radius: 0.5rem;
}

.badge.bg-label-success {
  background-color: var(--mc-pastel-success-light) !important;
  color: var(--mc-pastel-success-text) !important;
  border: 1px solid var(--mc-pastel-success-border) !important;
  font-weight: 600;
  border-radius: 0.5rem;
}

.badge.bg-label-danger {
  background-color: var(--mc-pastel-danger-light) !important;
  color: var(--mc-pastel-danger-text) !important;
  border: 1px solid var(--mc-pastel-danger-border) !important;
  font-weight: 600;
  border-radius: 0.5rem;
}

.badge.bg-label-warning {
  background-color: var(--mc-pastel-warning-light) !important;
  color: var(--mc-pastel-warning-text) !important;
  border: 1px solid var(--mc-pastel-warning-border) !important;
  font-weight: 600;
  border-radius: 0.5rem;
}

.badge.bg-label-info {
  background-color: var(--mc-pastel-info-light) !important;
  color: var(--mc-pastel-info-text) !important;
  border: 1px solid var(--mc-pastel-info-border) !important;
  font-weight: 600;
  border-radius: 0.5rem;
}

.badge.bg-label-secondary {
  background-color: var(--mc-pastel-secondary-light) !important;
  color: var(--mc-pastel-secondary-text) !important;
  border: 1px solid var(--mc-pastel-secondary-border) !important;
  font-weight: 600;
  border-radius: 0.5rem;
}

.badge.bg-label-purple {
  background-color: var(--mc-pastel-purple-light) !important;
  color: var(--mc-pastel-purple-text) !important;
  border: 1px solid var(--mc-pastel-purple-border) !important;
  font-weight: 600;
  border-radius: 0.5rem;
}

/* --------------------------------------------------------------------------
   7. Modern Pastel Buttons (Unified Smooth Pill / Oval Shape & Exact Sizing)
   -------------------------------------------------------------------------- */
.btn {
  border-radius: 9999px !important;
  font-weight: 600 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  line-height: 1.35 !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn:not(.btn-sm):not(.btn-xs):not(.btn-lg):not(.btn-link):not(.btn-icon) {
  min-height: 38px;
  padding: 0.45rem 1.05rem;
  font-size: 0.875rem;
}

.btn-sm:not(.btn-link):not(.btn-icon) {
  min-height: 32px !important;
  height: 32px;
  padding: 0.25rem 0.8rem !important;
  font-size: 0.8125rem !important;
  border-radius: 9999px !important;
}

.btn-xs:not(.btn-link):not(.btn-icon) {
  min-height: 26px !important;
  height: 26px;
  padding: 0.14rem 0.62rem !important;
  font-size: 0.75rem !important;
  border-radius: 9999px !important;
}

.btn-icon {
  border-radius: 9999px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.btn-icon.btn-sm {
  width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
}

.btn-icon.btn-xs {
  width: 26px !important;
  height: 26px !important;
  min-height: 26px !important;
}

.btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
  border: 1px solid #6366f1 !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  border-radius: 9999px !important;
  box-shadow: 0 3px 10px rgba(99, 102, 241, 0.24) !important;
  transition: all 0.22s ease !important;
}

.btn-primary:hover,
.btn-primary:focus {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%) !important;
  border-color: #4f46e5 !important;
  box-shadow: 0 5px 15px rgba(99, 102, 241, 0.38) !important;
  transform: translateY(-1px);
  color: #ffffff !important;
}

.btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  border: 1px solid #10b981 !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  border-radius: 9999px !important;
  box-shadow: 0 3px 10px rgba(16, 185, 129, 0.24) !important;
}

.btn-danger {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%) !important;
  border: 1px solid #f43f5e !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  border-radius: 9999px !important;
  box-shadow: 0 3px 10px rgba(244, 63, 94, 0.24) !important;
}

.btn-warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  border: 1px solid #f59e0b !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  border-radius: 9999px !important;
  box-shadow: 0 3px 10px rgba(245, 158, 11, 0.24) !important;
}

.btn-info {
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%) !important;
  border: 1px solid #06b6d4 !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  border-radius: 9999px !important;
  box-shadow: 0 3px 10px rgba(6, 182, 212, 0.24) !important;
}

.btn-secondary {
  border-radius: 9999px !important;
  font-weight: 600 !important;
}

/* Pastel Outline Buttons */
.btn-outline-primary {
  color: #6366f1 !important;
  border-color: rgba(99, 102, 241, 0.65) !important;
  background-color: transparent !important;
  border-radius: 9999px !important;
  font-weight: 600;
}

.btn-outline-primary:hover {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
  border-color: #6366f1 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.28) !important;
}

.btn-outline-secondary,
.btn-outline-success,
.btn-outline-danger,
.btn-outline-warning,
.btn-outline-info,
.btn-outline-dark,
.btn-outline-light {
  border-radius: 9999px !important;
  font-weight: 600 !important;
}

/* --------------------------------------------------------------------------
   7.1 Separated Pill Button Groups (.btn-group, .btn-group-vertical)
   No sharp square corners: every button in a group renders as a smooth pill
   -------------------------------------------------------------------------- */
.btn-group {
  position: relative !important;
  display: inline-flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 0.35rem !important;
  vertical-align: middle !important;
  box-shadow: none !important;
}

.btn-group-vertical {
  position: relative !important;
  display: inline-flex !important;
  flex-direction: column !important;
  gap: 0.4rem !important;
  vertical-align: middle !important;
  box-shadow: none !important;
}

/* Every button inside .btn-group or .btn-group-vertical is a standalone pill */
.btn-group > .btn,
.btn-group > .btn-group > .btn,
.btn-group-vertical > .btn,
.btn-group-vertical > .btn-group > .btn {
  position: relative !important;
  flex: 0 1 auto !important;
  border-radius: 9999px !important;
  border-width: 1px !important;
  border-style: solid !important;
  margin: 0 !important;
}

.btn-group.w-100 > .btn,
.btn-group-vertical.w-100 > .btn {
  flex: 1 1 0% !important;
}

.btn-group > .btn:not(:first-child),
.btn-group > .btn-group:not(:first-child),
.btn-group-vertical > .btn:not(:first-child),
.btn-group-vertical > .btn-group:not(:first-child) {
  margin-left: 0 !important;
  margin-top: 0 !important;
}

.btn-group > .btn:hover,
.btn-group > .btn:focus,
.btn-group > .btn:active,
.btn-group > .btn.active,
.btn-group > .btn-check:checked + .btn {
  z-index: 2 !important;
}

.btn-group > .btn-check:checked + .btn-outline-primary {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
  border-color: #6366f1 !important;
  color: #ffffff !important;
  box-shadow: 0 3px 10px rgba(99, 102, 241, 0.25) !important;
}

.btn-group > .btn-check:checked + .btn-outline-secondary {
  background-color: #475569 !important;
  border-color: #475569 !important;
  color: #ffffff !important;
}

/* Override first/middle/last child square rules so all 4 corners stay pill-rounded */
.btn-group > .btn:first-child,
.btn-group > .btn:last-child,
.btn-group > .btn:first-child:last-child,
.btn-group > .btn:not(:first-child):not(:last-child),
.btn-group-sm > .btn,
.btn-group-sm > .btn:first-child,
.btn-group-sm > .btn:last-child,
.btn-group-sm > .btn:first-child:last-child,
.btn-group-sm > .btn:not(:first-child):not(:last-child),
.btn-group-vertical > .btn:first-child,
.btn-group-vertical > .btn:last-child,
.btn-group-vertical > .btn:not(:first-child):not(:last-child) {
  border-radius: 9999px !important;
}

/* Compact Button Groups (.btn-group-sm) - matches .btn-sm height (32px) */
.btn-group-sm {
  gap: 0.3rem !important;
}

.btn-group-sm > .btn {
  min-height: 32px !important;
  height: 32px;
  padding: 0.25rem 0.72rem !important;
  font-size: 0.8rem !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  border-radius: 9999px !important;
}

.btn-group-sm > .btn.btn-xs {
  min-height: 26px !important;
  height: 26px;
  padding: 0.14rem 0.55rem !important;
  font-size: 0.75rem !important;
}

/* Colors and outline styling inside button groups */
.btn-group > .btn-primary {
  border-color: #6366f1 !important;
  color: #ffffff !important;
}
.btn-group > .btn-success {
  border-color: #10b981 !important;
  color: #ffffff !important;
}
.btn-group > .btn-warning {
  border-color: #f59e0b !important;
  color: #ffffff !important;
}
.btn-group > .btn-danger {
  border-color: #f43f5e !important;
  color: #ffffff !important;
}
.btn-group > .btn-info {
  border-color: #06b6d4 !important;
  color: #ffffff !important;
}

/* Outline buttons inside btn-group (Light Mode) */
.btn-group > .btn-outline-secondary {
  border-color: var(--mc-border, #d9dee3) !important;
  background-color: var(--mc-bg-card, #ffffff) !important;
  color: var(--mc-text-body, #566a7f) !important;
}

.btn-group > .btn-outline-secondary:hover {
  background-color: rgba(67, 89, 113, 0.08) !important;
  border-color: #c4cdd5 !important;
  color: var(--mc-text-heading, #32475b) !important;
}

.btn-group > .btn-outline-primary {
  border-color: rgba(99, 102, 241, 0.65) !important;
  background-color: var(--mc-bg-card, #ffffff) !important;
  color: #6366f1 !important;
}

.btn-group > .btn-outline-primary:hover {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
  border-color: #6366f1 !important;
  color: #ffffff !important;
}

/* Dark Mode Button Group Styles */
html.dark-style .btn-group > .btn-outline-secondary,
[data-bs-theme="dark"] .btn-group > .btn-outline-secondary {
  border-color: var(--mc-border, #444b6e) !important;
  background-color: var(--mc-bg-card, #2b2c40) !important;
  color: var(--mc-text-body, #cbd5e1) !important;
}

html.dark-style .btn-group > .btn-outline-secondary:hover,
[data-bs-theme="dark"] .btn-group > .btn-outline-secondary:hover {
  background-color: rgba(255, 255, 255, 0.08) !important;
  border-color: #5d678d !important;
  color: #ffffff !important;
}

html.dark-style .btn-group > .btn-outline-primary,
[data-bs-theme="dark"] .btn-group > .btn-outline-primary {
  border-color: #818cf8 !important;
  background-color: var(--mc-bg-card, #2b2c40) !important;
  color: #a5b4fc !important;
}

html.dark-style .btn-group > .btn-outline-primary:hover,
[data-bs-theme="dark"] .btn-group > .btn-outline-primary:hover {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
  color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   7.2 Modern Staff Sub-Navigation Hub & Segmented Tabs (Image 2 Style)
   -------------------------------------------------------------------------- */
.staff-nav-wrapper {
  background: var(--mc-bg-card, #ffffff);
  border: 1px solid var(--mc-border, rgba(67, 89, 113, 0.15));
  border-radius: 0.85rem;
  padding: 0.45rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  margin-bottom: 1.5rem;
}

.staff-nav-wrapper::-webkit-scrollbar {
  height: 4px;
}
.staff-nav-wrapper::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.25);
  border-radius: 4px;
}

.staff-nav-tab {
  display: inline-flex;
  align-items: center;
  padding: 0.48rem 0.95rem !important;
  font-weight: 600 !important;
  font-size: 0.82rem !important;
  white-space: nowrap;
  border-radius: 0.6rem !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  color: var(--mc-text-body, #566a7f) !important;
  text-decoration: none !important;
  cursor: pointer;
  box-shadow: none !important;
}

.staff-nav-tab:hover {
  transform: translateY(-1px);
  background: rgba(67, 89, 113, 0.06) !important;
  color: var(--mc-text-heading, #32475b) !important;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05) !important;
}

/* Active primary (Indigo / Blue Gradient - Default) */
.staff-nav-tab.active,
.staff-nav-tab.active-primary {
  background: linear-gradient(135deg, #4f46e5 0%, #3b82f6 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35) !important;
  border-color: transparent !important;
}
.staff-nav-tab.active .tab-icon,
.staff-nav-tab.active-primary .tab-icon,
.staff-nav-tab.active i,
.staff-nav-tab.active-primary i {
  color: #ffffff !important;
}

/* Active success (Emerald / Green Gradient) */
.staff-nav-tab.active-success {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35) !important;
  border-color: transparent !important;
}
.staff-nav-tab.active-success .tab-icon,
.staff-nav-tab.active-success i {
  color: #ffffff !important;
}

/* Active danger (Rose / Red Gradient) */
.staff-nav-tab.active-danger {
  background: linear-gradient(135deg, #e11d48 0%, #f43f5e 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(244, 63, 94, 0.35) !important;
  border-color: transparent !important;
}
.staff-nav-tab.active-danger .tab-icon,
.staff-nav-tab.active-danger i {
  color: #ffffff !important;
}

/* Active purple (Violet / Purple Gradient) */
.staff-nav-tab.active-purple {
  background: linear-gradient(135deg, #7c3aed 0%, #8b5cf6 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35) !important;
  border-color: transparent !important;
}
.staff-nav-tab.active-purple .tab-icon,
.staff-nav-tab.active-purple i {
  color: #ffffff !important;
}

/* Active warning (Amber / Orange Gradient) */
.staff-nav-tab.active-warning {
  background: linear-gradient(135deg, #d97706 0%, #f59e0b 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35) !important;
  border-color: transparent !important;
}
.staff-nav-tab.active-warning .tab-icon,
.staff-nav-tab.active-warning i {
  color: #ffffff !important;
}

/* Active info (Cyan / Teal Gradient) */
.staff-nav-tab.active-info {
  background: linear-gradient(135deg, #0891b2 0%, #06b6d4 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(6, 182, 212, 0.35) !important;
  border-color: transparent !important;
}
.staff-nav-tab.active-info .tab-icon,
.staff-nav-tab.active-info i {
  color: #ffffff !important;
}

/* Dark mode adjustments */
html.dark-style .staff-nav-wrapper,
[data-bs-theme="dark"] .staff-nav-wrapper {
  background: #2b2c40 !important;
  border-color: #444b6e !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25) !important;
}

html.dark-style .staff-nav-tab,
[data-bs-theme="dark"] .staff-nav-tab {
  color: #cbd5e1 !important;
}

html.dark-style .staff-nav-tab:hover,
[data-bs-theme="dark"] .staff-nav-tab:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   8. Form Controls & Inputs (Unified Height Scale & Smooth Rounded Styling)
   -------------------------------------------------------------------------- */
.form-control,
.form-select {
  border: 1.5px solid var(--mc-border);
  background-color: var(--mc-bg-card);
  color: var(--mc-text-body);
  padding: 0.45rem 0.9rem;
  font-size: 0.875rem;
  line-height: 1.4;
  min-height: 38px;
  border-radius: 0.75rem;
}

.form-select {
  padding-right: 2.15rem !important;
  background-position: right 0.75rem center !important;
}

/* Compact Form Controls (.form-control-sm, .form-select-sm) - exact 32px match with .btn-sm */
.form-control-sm,
.form-select-sm,
.input-group-sm > .form-control,
.input-group-sm > .form-select,
.input-group-sm > .input-group-text,
.input-group-sm > .btn {
  min-height: 32px !important;
  height: 32px !important;
  padding: 0.25rem 0.75rem !important;
  font-size: 0.8125rem !important;
  line-height: 1.35 !important;
  border-radius: 9999px;
}

.form-select-sm,
.input-group-sm > .form-select {
  padding-right: 1.95rem !important;
  background-position: right 0.65rem center !important;
}

/* Standalone inputs & selects have smooth rounded / pill corners */
.form-control:not(.input-group > .form-control):not(textarea):not([contenteditable="true"]):not(.gmail-wysiwyg-editor),
.form-select:not(.input-group > .form-select) {
  border-radius: 9999px !important;
}

textarea,
textarea.form-control,
.form-control[contenteditable="true"],
.gmail-wysiwyg-editor {
  border-radius: 4px !important;
  height: auto !important;
}

.form-control:focus,
.form-select:focus {
  border-color: #818cf8 !important;
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.22) !important;
  outline: none !important;
  z-index: 3 !important;
}

.input-group-text {
  border: 1.5px solid var(--mc-border);
  background-color: var(--mc-pastel-secondary-light);
  color: var(--mc-text-muted);
  display: inline-flex;
  align-items: center;
}

/* --------------------------------------------------------------------------
   Input Group Seamless Fusion & Rounded Pill Edges
   Ensure input groups merge seamlessly with matching height & capsule shape
   -------------------------------------------------------------------------- */
.input-group {
  border-radius: 9999px;
  align-items: stretch;
}

/* Merged Input Groups (icons seamlessly integrated inside input) */
.input-group-merge {
  border-radius: 9999px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-group-merge .input-group-text {
  background-color: var(--mc-bg-card) !important;
  border: 1.5px solid var(--mc-border);
  color: var(--mc-text-muted);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-group-merge .form-control {
  border: 1.5px solid var(--mc-border);
  background-color: var(--mc-bg-card);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-group-merge .input-group-text:first-child {
  border-right: 0 !important;
  border-top-left-radius: 9999px !important;
  border-bottom-left-radius: 9999px !important;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  padding-left: 0.85rem !important;
  padding-right: 0.45rem !important;
}

.input-group-merge .form-control:not(:first-child) {
  border-left: 0 !important;
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  padding-left: 0.35rem !important;
}

.input-group-merge .form-control:not(:last-child) {
  border-right: 0 !important;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  padding-right: 0.35rem !important;
}

.input-group-merge .input-group-text:last-child {
  border-left: 0 !important;
  border-top-right-radius: 9999px !important;
  border-bottom-right-radius: 9999px !important;
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  padding-left: 0.5rem !important;
  padding-right: 0.85rem !important;
}

.input-group-merge > :not(:first-child) {
  margin-left: 0 !important;
}

.input-group-merge:focus-within {
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.22) !important;
  border-radius: 9999px;
}

.input-group-merge:focus-within .input-group-text,
.input-group-merge:focus-within .form-control {
  border-color: #818cf8 !important;
  box-shadow: none !important;
}

/* Regular Input Groups & Compact Toolbar Input Groups (.input-group, .input-group-sm) */
.input-group:not(.input-group-merge) > :first-child {
  border-top-left-radius: 9999px !important;
  border-bottom-left-radius: 9999px !important;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
}

.input-group:not(.input-group-merge) > :last-child {
  border-top-right-radius: 9999px !important;
  border-bottom-right-radius: 9999px !important;
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
}

.input-group:not(.input-group-merge) > :not(:first-child):not(:last-child) {
  border-radius: 0 !important;
}

.input-group:not(.input-group-merge) > :not(:first-child) {
  margin-left: -1px !important;
}

.input-group-sm > .input-group-text:first-child {
  padding-left: 0.7rem !important;
  padding-right: 0.45rem !important;
}

.input-group-sm > .form-control.border-start-0,
.input-group-sm > .form-select.border-start-0 {
  padding-left: 0.35rem !important;
}

.input-group-sm > .btn:last-child {
  padding-left: 0.65rem !important;
  padding-right: 0.75rem !important;
}

/* --------------------------------------------------------------------------
   9. Tables & Data-Grids
   -------------------------------------------------------------------------- */
.table {
  color: var(--mc-text-body) !important;
  border-color: var(--mc-border) !important;
}

.table th {
  font-size: 0.78rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  color: var(--mc-text-muted) !important;
  font-weight: 700 !important;
  border-bottom: 2px solid var(--mc-border) !important;
}

.table td {
  vertical-align: middle !important;
  border-color: var(--mc-border) !important;
}

.table-hover tbody tr:hover {
  background-color: rgba(99, 102, 241, 0.04) !important;
}

/* --------------------------------------------------------------------------
   10. Navbar & Sidebar Glassmorphic Refinements
   -------------------------------------------------------------------------- */
#layout-navbar {
  background: var(--mc-bg-nav) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border-bottom: 1px solid var(--mc-border) !important;
  border-radius: 1rem !important;
  margin-top: 0.75rem !important;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.04) !important;
}

#layout-menu {
  background: var(--mc-bg-sidebar) !important;
  border-right: 1px solid var(--mc-border) !important;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.03) !important;
}

/* Active menu item gradient */
#layout-menu .menu-inner > .menu-item.active:not(.open) > .menu-link {
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35) !important;
  border-radius: 0.5rem !important;
}


/* Submenu Item Active Styling (Dark & Light) */
html.dark-style #layout-menu .menu-sub > .menu-item.active > .menu-link,
[data-bs-theme="dark"] #layout-menu .menu-sub > .menu-item.active > .menu-link {
  background: rgba(105, 108, 255, 0.16) !important;
  color: #8592ff !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

html.light-style #layout-menu .menu-sub > .menu-item.active > .menu-link,
[data-bs-theme="light"] #layout-menu .menu-sub > .menu-item.active > .menu-link {
  background: rgba(105, 108, 255, 0.12) !important;
  color: #696cff !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

html.dark-style #layout-menu .menu-header,
[data-bs-theme="dark"] #layout-menu .menu-header {
  color: var(--mc-text-muted);
}

/* Sidebar Scrolling & Overflow Mechanics */
#layout-menu.layout-menu {
  display: flex !important;
  flex-direction: column !important;
  height: 100vh !important;
  max-height: 100vh !important;
  overflow: hidden !important;
}

#layout-menu .app-brand {
  flex-shrink: 0 !important;
  padding: 0.85rem 1rem !important;
  height: auto !important;
}

#layout-menu .app-brand-link {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  padding: 0.5rem 0.85rem !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
  text-decoration: none !important;
  transition: box-shadow 0.2s ease, border-color 0.2s ease !important;
}

#layout-menu .app-brand-link:hover {
  border-color: rgba(105, 108, 255, 0.3) !important;
  box-shadow: 0 2px 6px rgba(105, 108, 255, 0.08) !important;
}

#layout-menu .app-brand-link #logo {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.6rem !important;
  margin-left: 0 !important;
  font-size: 1.05rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.015em !important;
  color: #1e293b !important;
  text-transform: none !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

#layout-menu .app-brand-link #logo img {
  height: 26px !important;
  max-height: 26px !important;
  width: auto !important;
  flex-shrink: 0 !important;
  object-fit: contain !important;
}

html.dark-style #layout-menu .app-brand-link,
[data-theme="dark"] #layout-menu .app-brand-link {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: none !important;
}

html.dark-style #layout-menu .app-brand-link #logo,
[data-theme="dark"] #layout-menu .app-brand-link #logo {
  color: #f1f5f9 !important;
}

#layout-menu .menu-inner {
  flex: 1 1 auto !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior: contain !important;
  -webkit-overflow-scrolling: touch !important;
}

/* Custom sleek scrollbar for layout menu */
#layout-menu .menu-inner::-webkit-scrollbar {
  width: 5px;
}

#layout-menu .menu-inner::-webkit-scrollbar-track {
  background: transparent;
}

#layout-menu .menu-inner::-webkit-scrollbar-thumb {
  background: rgba(161, 172, 184, 0.35);
  border-radius: 4px;
}

#layout-menu .menu-inner::-webkit-scrollbar-thumb:hover {
  background: rgba(105, 108, 255, 0.6);
}

/* 1. Global Menu Sizing & Spacing */
.menu-vertical .menu-inner > .menu-item {
  margin: 0.1rem 0 !important;
}

.menu-vertical .menu-inner > .menu-item > .menu-link {
  font-size: 0.885rem !important;
  padding: 0.52rem 0.95rem !important;
  border-radius: 0.45rem !important;
  margin: 0.1rem 0.65rem !important;
  transition: all 0.2s ease-in-out;
}

.menu-vertical .menu-inner > .menu-item > .menu-link .menu-icon {
  font-size: 1.05rem !important;
  width: 1.35rem !important;
  margin-right: 0.65rem !important;
  text-align: center;
}

.menu-vertical .menu-header {
  padding: 0.75rem 1.25rem 0.35rem 1.25rem !important;
  font-size: 0.72rem !important;
  letter-spacing: 0.05rem !important;
}

/* 2. Submenu Polishing & Bullet Elimination */
.menu-vertical .menu-sub > .menu-item > .menu-link:before,
.bg-menu-theme .menu-sub > .menu-item > .menu-link:before,
.bg-menu-theme .menu-sub > .menu-item.active > .menu-link:not(.menu-toggle):before {
  display: none !important;
}

.menu-vertical .menu-sub {
  padding-top: 0.25rem !important;
  padding-bottom: 0.25rem !important;
}

.menu-vertical .menu-sub .menu-item {
  margin: 0.08rem 0 !important;
}

.menu-vertical .menu-sub .menu-link {
  padding-left: 1.85rem !important;
  padding-right: 0.75rem !important;
  padding-top: 0.42rem !important;
  padding-bottom: 0.42rem !important;
  font-size: 0.835rem !important;
  border-radius: 0.375rem !important;
  margin: 0.08rem 0.55rem !important;
  transition: all 0.2s ease-in-out;
}

.menu-vertical .menu-sub .menu-link .menu-icon {
  font-size: 0.92rem !important;
  width: 1.25rem !important;
  margin-right: 0.45rem !important;
  text-align: center;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

/* 3. Text Fitting & No Awkward Line Wrapping */
.menu-vertical .menu-item .menu-link > div {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.35;
}

/* Dark Mode: Cards & Containers */
html.dark-style .card,
[data-bs-theme="dark"] .card {
  background-color: var(--mc-bg-card) !important;
  border-color: var(--mc-border) !important;
  box-shadow: var(--mc-card-shadow) !important;
  color: var(--mc-text-body);
}

html.dark-style .card-header,
html.dark-style .card-footer,
[data-bs-theme="dark"] .card-header,
[data-bs-theme="dark"] .card-footer {
  border-color: var(--mc-border) !important;
  background-color: transparent !important;
}

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

/* --------------------------------------------------------------------------
   Bootstrap 5.3 Color Modes Typography Overrides (Dark Mode)
   High-Contrast Vibrant Colors (Never washed out / never invisible)
   -------------------------------------------------------------------------- */
html.dark-style .text-primary,
[data-bs-theme="dark"] .text-primary {
  color: #8592ff !important;
}

html.dark-style .text-warning,
[data-bs-theme="dark"] .text-warning {
  color: #fde047 !important;
}

html.dark-style .text-info,
[data-bs-theme="dark"] .text-info {
  color: #7dd3fc !important;
}

html.dark-style .text-success,
[data-bs-theme="dark"] .text-success {
  color: #86efac !important;
}

html.dark-style .text-danger,
[data-bs-theme="dark"] .text-danger {
  color: #fca5a5 !important;
}

html.dark-style .text-dark,
[data-bs-theme="dark"] .text-dark {
  color: #f1f5f9 !important;
}

html.dark-style .text-secondary,
[data-bs-theme="dark"] .text-secondary {
  color: #cbd5e1 !important;
}

html.dark-style .text-muted,
[data-bs-theme="dark"] .text-muted {
  color: #94a3b8 !important;
}

/* Card titles and headings with primary color */
html.dark-style .card-title.text-primary,
html.dark-style h4.text-primary,
html.dark-style h5.text-primary,
[data-bs-theme="dark"] .card-title.text-primary,
[data-bs-theme="dark"] h4.text-primary,
[data-bs-theme="dark"] h5.text-primary {
  color: #8592ff !important;
}

html.dark-style .card .display-6,
html.dark-style .card .display-5,
[data-bs-theme="dark"] .card .display-6,
[data-bs-theme="dark"] .card .display-5 {
  color: #ffffff !important;
}

/* Stat Cards Bottom Border Accent in Dark Mode */
html.dark-style .card-border-shadow-primary,
[data-bs-theme="dark"] .card-border-shadow-primary {
  border-bottom: 3px solid #696cff !important;
}

html.dark-style .card-border-shadow-success,
[data-bs-theme="dark"] .card-border-shadow-success {
  border-bottom: 3px solid #71dd37 !important;
}

html.dark-style .card-border-shadow-info,
[data-bs-theme="dark"] .card-border-shadow-info {
  border-bottom: 3px solid #03c3ec !important;
}

html.dark-style .card-border-shadow-warning,
[data-bs-theme="dark"] .card-border-shadow-warning {
  border-bottom: 3px solid #ffab00 !important;
}

html.dark-style .card-border-shadow-danger,
[data-bs-theme="dark"] .card-border-shadow-danger {
  border-bottom: 3px solid #ff3e1d !important;
}

/* Dark Mode: Button Overrides & Outline Buttons */
html.dark-style .btn-outline-primary,
[data-bs-theme="dark"] .btn-outline-primary {
  color: #8592ff !important;
  border-color: #696cff !important;
  background-color: transparent !important;
}

html.dark-style .btn-outline-primary:hover,
html.dark-style .btn-outline-primary:focus,
html.dark-style .btn-outline-primary:active,
[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: #696cff !important;
  border-color: #696cff !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(105, 108, 255, 0.4) !important;
}

html.dark-style .btn-outline-secondary,
[data-bs-theme="dark"] .btn-outline-secondary {
  color: #cbd5e1 !important;
  border-color: #475569 !important;
  background-color: transparent !important;
}

html.dark-style .btn-outline-secondary:hover,
[data-bs-theme="dark"] .btn-outline-secondary:hover {
  background-color: #334155 !important;
  border-color: #64748b !important;
  color: #ffffff !important;
}

html.dark-style .btn-outline-info,
[data-bs-theme="dark"] .btn-outline-info {
  color: #38bdf8 !important;
  border-color: #0284c7 !important;
  background-color: transparent !important;
}

html.dark-style .btn-outline-info:hover,
[data-bs-theme="dark"] .btn-outline-info:hover {
  background-color: #0284c7 !important;
  color: #ffffff !important;
}

html.dark-style .btn-outline-warning,
[data-bs-theme="dark"] .btn-outline-warning {
  color: #fbbf24 !important;
  border-color: #d97706 !important;
  background-color: transparent !important;
}

html.dark-style .btn-outline-warning:hover,
[data-bs-theme="dark"] .btn-outline-warning:hover {
  background-color: #d97706 !important;
  color: #ffffff !important;
}

html.dark-style .btn-outline-danger,
[data-bs-theme="dark"] .btn-outline-danger {
  color: #f87171 !important;
  border-color: #dc2626 !important;
  background-color: transparent !important;
}

html.dark-style .btn-outline-danger:hover,
[data-bs-theme="dark"] .btn-outline-danger:hover {
  background-color: #dc2626 !important;
  color: #ffffff !important;
}

html.dark-style .btn-outline-dark,
[data-bs-theme="dark"] .btn-outline-dark {
  color: #cbd5e1 !important;
  border-color: #475569 !important;
  background-color: transparent !important;
}

html.dark-style .btn-outline-dark:hover,
[data-bs-theme="dark"] .btn-outline-dark:hover {
  background-color: #334155 !important;
  border-color: #64748b !important;
  color: #ffffff !important;
}

/* Dark Mode: Solid Badges Contrast */
html.dark-style .badge.bg-success,
[data-bs-theme="dark"] .badge.bg-success {
  background-color: #166534 !important;
  color: #86efac !important;
  border: 1px solid rgba(134, 239, 172, 0.3);
}

html.dark-style .badge.bg-warning,
[data-bs-theme="dark"] .badge.bg-warning {
  background-color: #854d0e !important;
  color: #fef08a !important;
  border: 1px solid rgba(254, 240, 138, 0.3);
}

html.dark-style .badge.bg-danger,
[data-bs-theme="dark"] .badge.bg-danger {
  background-color: #991b1b !important;
  color: #fecaca !important;
  border: 1px solid rgba(254, 202, 202, 0.3);
}

html.dark-style .badge.bg-info,
[data-bs-theme="dark"] .badge.bg-info {
  background-color: #075985 !important;
  color: #bae6fd !important;
  border: 1px solid rgba(186, 230, 253, 0.3);
}

html.dark-style .badge.bg-secondary,
[data-bs-theme="dark"] .badge.bg-secondary {
  background-color: #334155 !important;
  color: #cbd5e1 !important;
  border: 1px solid rgba(203, 213, 225, 0.2);
}

html.dark-style .badge.bg-dark,
[data-bs-theme="dark"] .badge.bg-dark {
  background-color: #1e293b !important;
  color: #94a3b8 !important;
  border: 1px solid #475569;
}

/* Dark Mode: High Contrast Status Label Badges */
html.dark-style .bg-label-primary,
[data-bs-theme="dark"] .bg-label-primary {
  background-color: rgba(105, 108, 255, 0.25) !important;
  color: #a5b4fc !important;
  border: 1px solid rgba(105, 108, 255, 0.4);
}

html.dark-style .bg-label-info,
[data-bs-theme="dark"] .bg-label-info {
  background-color: rgba(3, 195, 236, 0.22) !important;
  color: #7dd3fc !important;
  border: 1px solid rgba(3, 195, 236, 0.4);
}

html.dark-style .bg-label-success,
[data-bs-theme="dark"] .bg-label-success {
  background-color: rgba(113, 221, 55, 0.22) !important;
  color: #86efac !important;
  border: 1px solid rgba(113, 221, 55, 0.4);
}

html.dark-style .bg-label-warning,
[data-bs-theme="dark"] .bg-label-warning {
  background-color: rgba(255, 171, 0, 0.22) !important;
  color: #fde047 !important;
  border: 1px solid rgba(255, 171, 0, 0.4);
}

html.dark-style .bg-label-danger,
[data-bs-theme="dark"] .bg-label-danger {
  background-color: rgba(255, 62, 29, 0.22) !important;
  color: #fca5a5 !important;
  border: 1px solid rgba(255, 62, 29, 0.4);
}

html.dark-style .bg-label-secondary,
[data-bs-theme="dark"] .bg-label-secondary {
  background-color: rgba(148, 163, 184, 0.2) !important;
  color: #cbd5e1 !important;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

/* Dark Mode: Quick Navigation Cards Text */
html.dark-style .hosting-plan-card h6,
[data-bs-theme="dark"] .hosting-plan-card h6 {
  color: #ffffff !important;
}

html.dark-style .hosting-plan-card .text-muted,
[data-bs-theme="dark"] .hosting-plan-card .text-muted {
  color: #94a3b8 !important;
}

/* Dark Mode: List Group */
html.dark-style .list-group-item,
[data-bs-theme="dark"] .list-group-item {
  background-color: var(--mc-bg-card) !important;
  border-color: var(--mc-border) !important;
  color: var(--mc-text-body) !important;
}

/* Dark Mode: Modals */
html.dark-style .modal-content,
[data-bs-theme="dark"] .modal-content {
  background-color: var(--mc-bg-card) !important;
  border: 1px solid var(--mc-border) !important;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6) !important;
  color: var(--mc-text-body);
}

html.dark-style .modal-header,
html.dark-style .modal-footer,
[data-bs-theme="dark"] .modal-header,
[data-bs-theme="dark"] .modal-footer {
  border-color: var(--mc-border) !important;
}

html.dark-style .btn-close,
[data-bs-theme="dark"] .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
}

/* Dark Mode: Form Controls & Inputs */
html.dark-style .form-control,
html.dark-style .form-select,
html.dark-style .input-group-text,
[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select,
[data-bs-theme="dark"] .input-group-text {
  background-color: #141724 !important;
  border-color: var(--mc-border) !important;
  color: #f1f5f9 !important;
}

html.dark-style .form-control:focus,
html.dark-style .form-select:focus,
[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus {
  border-color: var(--mc-primary) !important;
  box-shadow: 0 0 0 0.25rem rgba(105, 108, 255, 0.2) !important;
}

html.dark-style .input-group-merge:focus-within,
[data-bs-theme="dark"] .input-group-merge:focus-within {
  box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.25) !important;
  border-radius: 0.5rem;
}

html.dark-style .input-group-merge:focus-within .input-group-text,
html.dark-style .input-group-merge:focus-within .form-control,
[data-bs-theme="dark"] .input-group-merge:focus-within .input-group-text,
[data-bs-theme="dark"] .input-group-merge:focus-within .form-control {
  border-color: #818cf8 !important;
  box-shadow: none !important;
}

html.dark-style .form-control::placeholder,
[data-bs-theme="dark"] .form-control::placeholder {
  color: #64748b !important;
}

/* Dark Mode: Dropdowns */
html.dark-style .dropdown-menu,
[data-bs-theme="dark"] .dropdown-menu {
  background-color: var(--mc-bg-card) !important;
  border: 1px solid var(--mc-border) !important;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5) !important;
}

html.dark-style .dropdown-item,
[data-bs-theme="dark"] .dropdown-item {
  color: var(--mc-text-body) !important;
}

html.dark-style .dropdown-item:hover,
html.dark-style .dropdown-item:focus,
[data-bs-theme="dark"] .dropdown-item:hover,
[data-bs-theme="dark"] .dropdown-item:focus {
  background-color: rgba(255, 255, 255, 0.06) !important;
  color: #ffffff !important;
}

html.dark-style .dropdown-divider,
[data-bs-theme="dark"] .dropdown-divider {
  border-color: var(--mc-border) !important;
}

/* --------------------------------------------------------------------------
   Bootstrap 5.3 & 6.0 Standard Table Engine (Dark Mode)
   Eliminates White Background Bleed, Inset Box-Shadow Overlays & Color Conflicts
   -------------------------------------------------------------------------- */
html.dark-style .table,
[data-bs-theme="dark"] .table {
  --bs-table-color: var(--mc-text-body) !important;
  --bs-table-bg: transparent !important;
  --bs-table-border-color: var(--mc-border) !important;
  --bs-table-accent-bg: transparent !important;
  --bs-table-striped-color: var(--mc-text-heading) !important;
  --bs-table-striped-bg: rgba(255, 255, 255, 0.025) !important;
  --bs-table-active-color: #ffffff !important;
  --bs-table-active-bg: rgba(255, 255, 255, 0.06) !important;
  --bs-table-hover-color: #ffffff !important;
  --bs-table-hover-bg: rgba(255, 255, 255, 0.04) !important;
  color: var(--mc-text-body) !important;
  border-color: var(--mc-border) !important;
  background-color: transparent !important;
}

/* Ensure table cells inherit background and handle box-shadow properly */
html.dark-style .table > :not(caption) > * > *,
[data-bs-theme="dark"] .table > :not(caption) > * > * {
  background-color: var(--bs-table-bg) !important;
  box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg) !important;
  border-color: var(--mc-border) !important;
  color: inherit;
}

html.dark-style .table th,
html.dark-style .table td,
[data-bs-theme="dark"] .table th,
[data-bs-theme="dark"] .table td {
  border-color: var(--mc-border) !important;
  color: inherit;
}

/* Dark Mode: Striped Rows (Zebra) */
html.dark-style .table-striped > tbody > tr:nth-of-type(odd) > *,
[data-bs-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) > * {
  --bs-table-accent-bg: rgba(255, 255, 255, 0.025) !important;
  box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg) !important;
  color: var(--mc-text-heading) !important;
}

html.dark-style .table-striped > tbody > tr:nth-of-type(even) > *,
[data-bs-theme="dark"] .table-striped > tbody > tr:nth-of-type(even) > * {
  --bs-table-accent-bg: transparent !important;
  box-shadow: none !important;
}

/* Dark Mode: Hovered Rows */
html.dark-style .table-hover > tbody > tr:hover > *,
[data-bs-theme="dark"] .table-hover > tbody > tr:hover > * {
  --bs-table-accent-bg: rgba(255, 255, 255, 0.045) !important;
  box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg) !important;
  color: #ffffff !important;
}

/* Dark Mode: Active Rows */
html.dark-style .table-active,
html.dark-style .table-active > *,
[data-bs-theme="dark"] .table-active,
[data-bs-theme="dark"] .table-active > * {
  --bs-table-accent-bg: rgba(255, 255, 255, 0.06) !important;
  box-shadow: inset 0 0 0 9999px var(--bs-table-accent-bg) !important;
  color: #ffffff !important;
}

/* Dark Mode: Thead & Table-Light Header Overrides */
html.dark-style .table-light,
[data-bs-theme="dark"] .table-light,
html.dark-style .table thead th,
[data-bs-theme="dark"] .table thead th,
html.dark-style .table thead.table-light th,
[data-bs-theme="dark"] .table thead.table-light th,
html.dark-style tr.table-light > *,
[data-bs-theme="dark"] tr.table-light > * {
  --bs-table-bg: #141724 !important;
  --bs-table-accent-bg: transparent !important;
  --bs-table-striped-bg: #181c2d !important;
  --bs-table-striped-color: var(--mc-text-heading) !important;
  --bs-table-hover-bg: #1c2136 !important;
  --bs-table-hover-color: #ffffff !important;
  --bs-table-color: var(--mc-text-heading) !important;
  --bs-table-border-color: var(--mc-border) !important;
  background-color: #141724 !important;
  color: var(--mc-text-heading) !important;
  border-color: var(--mc-border) !important;
}

/* Dark Mode: Table-Dark Variant */
html.dark-style .table-dark,
[data-bs-theme="dark"] .table-dark {
  --bs-table-bg: #10121d !important;
  --bs-table-accent-bg: transparent !important;
  --bs-table-color: #ffffff !important;
  --bs-table-border-color: var(--mc-border) !important;
  background-color: #10121d !important;
  color: #ffffff !important;
  border-color: var(--mc-border) !important;
}

/* Dark Mode Contextual Table Variants */
html.dark-style .table-primary,
[data-bs-theme="dark"] .table-primary {
  --bs-table-bg: rgba(105, 108, 255, 0.12) !important;
  --bs-table-accent-bg: transparent !important;
  --bs-table-color: #c7d2fe !important;
  background-color: rgba(105, 108, 255, 0.12) !important;
  color: #c7d2fe !important;
}

html.dark-style .table-success,
[data-bs-theme="dark"] .table-success {
  --bs-table-bg: rgba(113, 221, 55, 0.12) !important;
  --bs-table-accent-bg: transparent !important;
  --bs-table-color: #bbf7d0 !important;
  background-color: rgba(113, 221, 55, 0.12) !important;
  color: #bbf7d0 !important;
}

html.dark-style .table-warning,
[data-bs-theme="dark"] .table-warning {
  --bs-table-bg: rgba(255, 171, 0, 0.12) !important;
  --bs-table-accent-bg: transparent !important;
  --bs-table-color: #fef08a !important;
  background-color: rgba(255, 171, 0, 0.12) !important;
  color: #fef08a !important;
}

html.dark-style .table-danger,
[data-bs-theme="dark"] .table-danger {
  --bs-table-bg: rgba(255, 62, 29, 0.12) !important;
  --bs-table-accent-bg: transparent !important;
  --bs-table-color: #fecaca !important;
  background-color: rgba(255, 62, 29, 0.12) !important;
  color: #fecaca !important;
}

html.dark-style .table-info,
[data-bs-theme="dark"] .table-info {
  --bs-table-bg: rgba(3, 195, 236, 0.12) !important;
  --bs-table-accent-bg: transparent !important;
  --bs-table-color: #bae6fd !important;
  background-color: rgba(3, 195, 236, 0.12) !important;
  color: #bae6fd !important;
}

/* Empty State & Single Row Table Guard: Never force stripe overlay */
html.dark-style .table tbody tr:only-child > td,
[data-bs-theme="dark"] .table tbody tr:only-child > td,
html.dark-style .table tbody tr.empty-row > td,
[data-bs-theme="dark"] .table tbody tr.empty-row > td {
  --bs-table-accent-bg: transparent !important;
  background-color: transparent !important;
  box-shadow: none !important;
}

/* Table Responsive wrapper in Dark Mode */
html.dark-style .table-responsive,
[data-bs-theme="dark"] .table-responsive {
  background-color: transparent !important;
}

/* Dark Mode: Custom Options & Radios */
html.dark-style .custom-option,
[data-bs-theme="dark"] .custom-option {
  background-color: #141724 !important;
  border-color: var(--mc-border) !important;
}

html.dark-style .custom-option.border-primary,
[data-bs-theme="dark"] .custom-option.border-primary {
  border-color: var(--mc-primary) !important;
  background-color: rgba(105, 108, 255, 0.08) !important;
}

/* Dark Mode: Accordion */
html.dark-style .accordion-item,
[data-bs-theme="dark"] .accordion-item {
  background-color: var(--mc-bg-card) !important;
  border-color: var(--mc-border) !important;
}

html.dark-style .accordion-button,
[data-bs-theme="dark"] .accordion-button {
  background-color: #141724 !important;
  color: #f1f5f9 !important;
  border-color: var(--mc-border) !important;
}

html.dark-style .accordion-button:not(.collapsed),
[data-bs-theme="dark"] .accordion-button:not(.collapsed) {
  background-color: rgba(105, 108, 255, 0.15) !important;
  color: #a5b4fc !important;
  box-shadow: none !important;
}

html.dark-style .accordion-button::after,
[data-bs-theme="dark"] .accordion-button::after {
  filter: invert(1);
}

html.dark-style .accordion-body,
[data-bs-theme="dark"] .accordion-body {
  background-color: var(--mc-bg-card) !important;
  color: var(--mc-text-body) !important;
}

/* Dark Mode: Nav Pills */
html.dark-style .nav-pills .nav-link,
[data-bs-theme="dark"] .nav-pills .nav-link {
  color: #cbd5e1 !important;
}

html.dark-style .nav-pills .nav-link:hover,
[data-bs-theme="dark"] .nav-pills .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.05) !important;
  color: #ffffff !important;
}

html.dark-style .nav-pills .nav-link.active,
[data-bs-theme="dark"] .nav-pills .nav-link.active {
  background-color: #696cff !important;
  color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(105, 108, 255, 0.4) !important;
}

/* Dark Mode Text & Background Utilities */
html.dark-style .bg-white,
[data-bs-theme="dark"] .bg-white {
  background-color: var(--mc-bg-card) !important;
  color: var(--mc-text-body) !important;
}

html.dark-style .bg-light,
[data-bs-theme="dark"] .bg-light {
  background-color: #141724 !important;
  color: var(--mc-text-body) !important;
}

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

/* Dark Mode: Border Utilities */
html.dark-style .border,
html.dark-style .border-top,
html.dark-style .border-bottom,
html.dark-style .border-start,
html.dark-style .border-end,
[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: var(--mc-border) !important;
}

/* --------------------------------------------------------------------------
   Bootstrap 5.3 & 6.0 Standard Pagination Engine (Dark Mode)
   -------------------------------------------------------------------------- */
html.dark-style .pagination,
[data-bs-theme="dark"] .pagination {
  --bs-pagination-bg: #141724;
  --bs-pagination-border-color: var(--mc-border);
  --bs-pagination-color: var(--mc-text-body);
  --bs-pagination-hover-bg: rgba(105, 108, 255, 0.15);
  --bs-pagination-hover-border-color: var(--mc-primary);
  --bs-pagination-hover-color: #ffffff;
  --bs-pagination-focus-bg: rgba(105, 108, 255, 0.15);
  --bs-pagination-focus-color: #ffffff;
  --bs-pagination-active-bg: var(--mc-primary);
  --bs-pagination-active-border-color: var(--mc-primary);
  --bs-pagination-active-color: #ffffff;
  --bs-pagination-disabled-bg: rgba(20, 23, 36, 0.5);
  --bs-pagination-disabled-border-color: rgba(40, 44, 64, 0.5);
  --bs-pagination-disabled-color: #64748b;
}

html.dark-style .page-link,
[data-bs-theme="dark"] .page-link {
  background-color: #141724 !important;
  border-color: var(--mc-border) !important;
  color: var(--mc-text-body) !important;
}

html.dark-style .page-link:hover,
html.dark-style .page-link:focus,
[data-bs-theme="dark"] .page-link:hover,
[data-bs-theme="dark"] .page-link:focus {
  background-color: rgba(105, 108, 255, 0.15) !important;
  border-color: var(--mc-primary) !important;
  color: #ffffff !important;
}

html.dark-style .page-item.active .page-link,
[data-bs-theme="dark"] .page-item.active .page-link {
  background-color: #696cff !important;
  border-color: #696cff !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(105, 108, 255, 0.4) !important;
}

html.dark-style .page-item.disabled .page-link,
[data-bs-theme="dark"] .page-item.disabled .page-link {
  background-color: rgba(20, 23, 36, 0.5) !important;
  border-color: rgba(40, 44, 64, 0.5) !important;
  color: #64748b !important;
  opacity: 0.6;
}

html.dark-style .page-item.first .page-link,
html.dark-style .page-item.last .page-link,
html.dark-style .page-item.next .page-link,
html.dark-style .page-item.prev .page-link,
html.dark-style .page-item.previous .page-link,
[data-bs-theme="dark"] .page-item.first .page-link,
[data-bs-theme="dark"] .page-item.last .page-link,
[data-bs-theme="dark"] .page-item.next .page-link,
[data-bs-theme="dark"] .page-item.prev .page-link,
[data-bs-theme="dark"] .page-item.previous .page-link {
  background-color: #141724 !important;
  border-color: var(--mc-border) !important;
  color: var(--mc-text-body) !important;
}

/* --------------------------------------------------------------------------
   Bootstrap 5.3 & 6.0 Standard Alerts Engine (Dark Mode)
   -------------------------------------------------------------------------- */
html.dark-style .alert-primary,
[data-bs-theme="dark"] .alert-primary {
  background-color: rgba(105, 108, 255, 0.12) !important;
  border: 1px solid rgba(105, 108, 255, 0.3) !important;
  color: #a5b4fc !important;
}

html.dark-style .alert-secondary,
[data-bs-theme="dark"] .alert-secondary {
  background-color: rgba(148, 163, 184, 0.1) !important;
  border: 1px solid rgba(148, 163, 184, 0.25) !important;
  color: #cbd5e1 !important;
}

html.dark-style .alert-success,
[data-bs-theme="dark"] .alert-success {
  background-color: rgba(113, 221, 55, 0.12) !important;
  border: 1px solid rgba(113, 221, 55, 0.3) !important;
  color: #86efac !important;
}

html.dark-style .alert-danger,
[data-bs-theme="dark"] .alert-danger {
  background-color: rgba(255, 62, 29, 0.12) !important;
  border: 1px solid rgba(255, 62, 29, 0.3) !important;
  color: #fca5a5 !important;
}

html.dark-style .alert-warning,
[data-bs-theme="dark"] .alert-warning {
  background-color: rgba(255, 171, 0, 0.12) !important;
  border: 1px solid rgba(255, 171, 0, 0.3) !important;
  color: #fde047 !important;
}

html.dark-style .alert-info,
[data-bs-theme="dark"] .alert-info {
  background-color: rgba(3, 195, 236, 0.12) !important;
  border: 1px solid rgba(3, 195, 236, 0.3) !important;
  color: #7dd3fc !important;
}

/* --------------------------------------------------------------------------
   4. Interactive Theme Switcher Button Styling
   -------------------------------------------------------------------------- */
.theme-toggle-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--mc-border-subtle);
  background: rgba(105, 108, 255, 0.06);
  color: var(--mc-text-body);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  position: relative;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle-btn:hover {
  background: rgba(105, 108, 255, 0.15);
  transform: scale(1.08);
  box-shadow: 0 4px 12px var(--mc-primary-glow);
}

.theme-toggle-btn i {
  font-size: 1.15rem;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.theme-toggle-btn:active i {
  transform: rotate(45deg) scale(0.9);
}

/* --------------------------------------------------------------------------
   5. Navbar Credit Widget Styling
   -------------------------------------------------------------------------- */
.navbar-credit-pill {
  background: linear-gradient(135deg, rgba(255, 171, 0, 0.12), rgba(255, 171, 0, 0.04));
  border: 1px solid rgba(255, 171, 0, 0.35);
  border-radius: 30px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 2px 8px rgba(255, 171, 0, 0.08);
  transition: all 0.25s ease;
}

.navbar-credit-pill:hover {
  border-color: rgba(255, 171, 0, 0.6);
  box-shadow: 0 4px 14px rgba(255, 171, 0, 0.2);
  transform: translateY(-1px);
}

.navbar-credit-pill .coin-icon {
  color: #ffab00;
  font-size: 1.25rem;
  animation: pulse-coin 2.5s infinite ease-in-out;
}

@keyframes pulse-coin {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.12); opacity: 0.9; }
}

.navbar-credit-pill .topup-btn {
  background: #ffab00;
  color: #1e1e2d;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.navbar-credit-pill .topup-btn:hover {
  background: #ff9900;
  color: #000;
  box-shadow: 0 2px 6px rgba(255, 171, 0, 0.4);
}

/* --------------------------------------------------------------------------
   6. Premium Client Dashboard Cards & Elements
   -------------------------------------------------------------------------- */
/* Hero Welcome Banner */
.hero-welcome-card {
  background: linear-gradient(135deg, #696cff 0%, #3f51b5 100%);
  border-radius: 1rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(105, 108, 255, 0.25);
  border: none;
}

.hero-welcome-card::after {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

/* Hero Badge Pill for High Contrast in Both Themes */
.hero-badge-pill {
  background: rgba(0, 0, 0, 0.3) !important;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
}

.hero-badge-pill .badge {
  font-weight: 700;
  letter-spacing: 0.5px;
}

/* Pricing Card Modern Polish & Animations */
@keyframes planCardEnter {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ctaSheen {
  0% {
    transform: translateX(-120%) skewX(-20deg);
  }
  100% {
    transform: translateX(260%) skewX(-20deg);
  }
}

.plans-header-icon,
.checkout-title-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(105, 108, 255, 0.22), rgba(139, 92, 246, 0.14));
  border: 1px solid rgba(105, 108, 255, 0.3);
  color: var(--mc-primary, #696cff);
  font-size: 1.05rem;
  flex-shrink: 0;
}

.plan-card-col {
  animation: planCardEnter 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--card-index, 0) * 65ms);
}

.hosting-plan-card {
  border-radius: 1.1rem;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.16);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.28s ease;
  position: relative;
}

.hosting-plan-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 36px -12px rgba(105, 108, 255, 0.25), var(--mc-card-shadow-hover) !important;
  border-color: rgba(105, 108, 255, 0.55) !important;
}

.hosting-plan-card.plan-unavailable {
  opacity: 0.72;
}

.hosting-plan-card.plan-unavailable:hover {
  transform: translateY(-2px);
  border-color: rgba(239, 68, 68, 0.35) !important;
}

.hosting-plan-card.featured-plan {
  border: 1.5px solid var(--mc-primary, #696cff) !important;
  box-shadow: 0 10px 28px -10px rgba(105, 108, 255, 0.32) !important;
}

.plan-card-accent,
.checkout-card-accent {
  height: 4px;
  width: 100%;
  background: linear-gradient(90deg, #696cff, #8b5cf6, #38bdf8);
}

.plan-card-accent.accent-default {
  background: linear-gradient(90deg, rgba(105, 108, 255, 0.7), rgba(99, 102, 241, 0.35));
}

.plan-card-accent.accent-free {
  background: linear-gradient(90deg, #10b981, #34d399);
}

.plan-card-accent.accent-danger {
  background: linear-gradient(90deg, #ef4444, #f87171);
}

.plan-tier-tag {
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: rgba(148, 163, 184, 0.9);
  font-weight: 600;
}

.plan-status-badge {
  font-size: 0.72rem;
  font-weight: 600;
}

.plan-price-box {
  background: rgba(105, 108, 255, 0.06);
  border: 1px solid rgba(105, 108, 255, 0.14);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.hosting-plan-card:hover .plan-price-box {
  background: rgba(105, 108, 255, 0.11);
  border-color: rgba(105, 108, 255, 0.28);
}

.plan-price-value {
  font-size: 1.85rem;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.plan-spec-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.58rem 0.25rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  transition: background-color 0.2s ease, padding-left 0.2s ease;
  border-radius: 6px;
}

.hosting-plan-card:hover .plan-spec-row:hover {
  background-color: rgba(105, 108, 255, 0.06);
  padding-left: 0.45rem;
}

.plan-spec-val {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.hosting-plan-card .plan-ribbon {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
}

.plan-spec-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  margin-right: 10px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.plan-spec-row:hover .plan-spec-badge {
  transform: scale(1.08);
}

.btn-cta-sheen {
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-cta-sheen::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: translateX(-120%) skewX(-20deg);
  pointer-events: none;
}

.btn-cta-sheen:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -6px rgba(105, 108, 255, 0.55) !important;
}

.btn-cta-sheen:hover:not(:disabled)::after {
  animation: ctaSheen 0.75s ease forwards;
}

/* Checkout Page Polish */
.checkout-page-header {
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
}

.checkout-breadcrumb {
  font-size: 0.8rem;
  letter-spacing: 0.01em;
}

.checkout-back-btn {
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.checkout-back-btn:hover {
  transform: translateX(-2px);
}

.checkout-card {
  border-radius: 1rem;
  overflow: hidden;
}

.checkout-enter {
  animation: planCardEnter 0.4s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: var(--enter-delay, 0ms);
}

.checkout-price-pill {
  background: rgba(105, 108, 255, 0.08);
  border: 1px solid rgba(105, 108, 255, 0.2);
}

.checkout-spec-tile {
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.checkout-spec-tile:hover {
  transform: translateY(-2px);
  border-color: rgba(105, 108, 255, 0.45) !important;
  background-color: rgba(105, 108, 255, 0.05);
}

.checkout-option-card {
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.checkout-option-card:hover:not(.opacity-50) {
  border-color: rgba(105, 108, 255, 0.5) !important;
  transform: translateY(-1px);
}

.checkout-option-card.active {
  box-shadow: 0 0 0 2px rgba(105, 108, 255, 0.22);
}

.coupon-chip {
  animation: planCardEnter 0.22s ease both;
}

.coupon-voucher-item {
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.coupon-voucher-item:hover {
  transform: translateX(2px);
}

@media (prefers-reduced-motion: reduce) {
  .plan-card-col,
  .checkout-enter,
  .coupon-chip {
    animation: none !important;
  }
  .hosting-plan-card,
  .btn-cta-sheen,
  .checkout-spec-tile,
  .checkout-option-card {
    transition: none !important;
  }
}

/* ==========================================================================
   SweetAlert2 Light & Dark Mode Universal Integration
   ========================================================================== */

/* Universal Container Z-Index */
.swal2-container {
  z-index: 999999 !important;
}

/* --------------------------------------------------------------------------
   SweetAlert2: Dark Mode
   -------------------------------------------------------------------------- */
html[data-bs-theme="dark"] .swal2-popup,
html.dark-style .swal2-popup {
  background-color: #2b3035 !important;
  color: #f1f5f9 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 0.75rem !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5), 0 8px 10px -6px rgba(0, 0, 0, 0.5) !important;
}

html[data-bs-theme="dark"] .swal2-title,
html.dark-style .swal2-title {
  color: #ffffff !important;
  font-weight: 700 !important;
}

html[data-bs-theme="dark"] .swal2-html-container,
html.dark-style .swal2-html-container {
  color: #cbd5e1 !important;
}

html[data-bs-theme="dark"] .swal2-close,
html.dark-style .swal2-close {
  color: #94a3b8 !important;
}

html[data-bs-theme="dark"] .swal2-close:hover,
html.dark-style .swal2-close:hover {
  color: #ffffff !important;
}

html[data-bs-theme="dark"] .swal2-footer,
html.dark-style .swal2-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #94a3b8 !important;
}

html[data-bs-theme="dark"] .swal2-input,
html[data-bs-theme="dark"] .swal2-textarea,
html[data-bs-theme="dark"] .swal2-select,
html.dark-style .swal2-input,
html.dark-style .swal2-textarea,
html.dark-style .swal2-select {
  background-color: #1e2227 !important;
  color: #f1f5f9 !important;
  border: 1px solid #475569 !important;
}

html[data-bs-theme="dark"] .swal2-validation-message,
html.dark-style .swal2-validation-message {
  background: #1e2227 !important;
  color: #fca5a5 !important;
  border: 1px solid rgba(239, 68, 68, 0.3) !important;
}

/* Success Icon Mask Fix in Dark Mode */
html[data-bs-theme="dark"] .swal2-icon.swal2-success [class^='swal2-success-circular-line'],
html[data-bs-theme="dark"] .swal2-icon.swal2-success .swal2-success-fix,
html.dark-style .swal2-icon.swal2-success [class^='swal2-success-circular-line'],
html.dark-style .swal2-icon.swal2-success .swal2-success-fix {
  background-color: #2b3035 !important;
}

/* Toast Notification in Dark Mode */
html[data-bs-theme="dark"] .swal2-popup.swal2-toast,
html.dark-style .swal2-popup.swal2-toast {
  background-color: #2b3035 !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5) !important;
}

/* --------------------------------------------------------------------------
   SweetAlert2: Light Mode
   -------------------------------------------------------------------------- */
html[data-bs-theme="light"] .swal2-popup,
html.light-style .swal2-popup {
  background-color: #ffffff !important;
  color: #334155 !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: 0.75rem !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
}

html[data-bs-theme="light"] .swal2-title,
html.light-style .swal2-title {
  color: #1e293b !important;
  font-weight: 700 !important;
}

html[data-bs-theme="light"] .swal2-html-container,
html.light-style .swal2-html-container {
  color: #475569 !important;
}

html[data-bs-theme="light"] .swal2-close,
html.light-style .swal2-close {
  color: #64748b !important;
}

html[data-bs-theme="light"] .swal2-footer,
html.light-style .swal2-footer {
  border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
  color: #64748b !important;
}

html[data-bs-theme="light"] .swal2-input,
html[data-bs-theme="light"] .swal2-textarea,
html[data-bs-theme="light"] .swal2-select,
html.light-style .swal2-input,
html.light-style .swal2-textarea,
html.light-style .swal2-select {
  background-color: #ffffff !important;
  color: #1e293b !important;
  border: 1px solid #cbd5e1 !important;
}

/* Toast Notification in Light Mode */
html[data-bs-theme="light"] .swal2-popup.swal2-toast,
html.light-style .swal2-popup.swal2-toast {
  background-color: #ffffff !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important;
}

/* --------------------------------------------------------------------------
   SweetAlert2: Action Buttons
   -------------------------------------------------------------------------- */
.swal2-styled.swal2-confirm,
.swal2-styled.swal2-cancel {
  border-radius: 9999px !important;
  font-weight: 600 !important;
  padding: 0.5rem 1.35rem !important;
}

.swal2-styled.cancel {
  border-radius: 9999px !important;
  font-weight: 600 !important;
  padding: 0.5rem 1.35rem !important;
}

/* --------------------------------------------------------------------------
   Service Manage Component Styles (Theme & Navigation Compliance)
   -------------------------------------------------------------------------- */
.service-status-alert {
  border-radius: 10px;
  transition: all 0.2s ease;
}
[data-bs-theme="dark"] .service-status-alert.alert-success {
  background-color: rgba(25, 135, 84, 0.22) !important;
  border: 1px solid rgba(40, 167, 69, 0.5) !important;
  color: #75b798 !important;
}
[data-bs-theme="dark"] .service-status-alert.alert-success .alert-heading,
[data-bs-theme="dark"] .service-status-alert.alert-success strong {
  color: #a3cfbb !important;
}
[data-bs-theme="dark"] .service-status-alert.alert-success p {
  color: #b1dfc8 !important;
}

.service-nav-wrapper {
  background: #ffffff;
  border-radius: 14px;
  padding: 0.6rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  margin-bottom: 1.5rem;
}
[data-bs-theme="dark"] .service-nav-wrapper {
  background: #2b2c40;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}
.service-nav-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.service-nav-item {
  flex: 0 0 auto;
}
.service-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.95rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 10px;
  color: #566a7f;
  background: #f8f9fa;
  border: 1px solid rgba(0, 0, 0, 0.05);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
[data-bs-theme="dark"] .service-nav-btn {
  background: #32344d;
  border-color: rgba(255, 255, 255, 0.06);
  color: #a3a4cc;
}
.service-nav-btn:hover {
  color: #696cff;
  background: rgba(105, 108, 255, 0.1);
  border-color: rgba(105, 108, 255, 0.2);
  transform: translateY(-1px);
}
.service-nav-btn.active {
  color: #ffffff !important;
  background: linear-gradient(135deg, #696cff 0%, #5457e5 100%) !important;
  box-shadow: 0 4px 12px rgba(105, 108, 255, 0.35);
  border-color: transparent !important;
}
.service-nav-btn.active .nav-icon {
  color: #ffffff !important;
}
.service-nav-btn.active .badge {
  background: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
  border: none !important;
}
.service-nav-btn .nav-icon {
  font-size: 0.95rem;
  transition: transform 0.2s ease;
}
.service-nav-btn:hover .nav-icon {
  transform: scale(1.15);
}

.git-commit-box {
  background-color: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  font-family: 'Consolas', 'Courier New', monospace;
  font-size: 13px;
  padding: 12px 16px;
  color: #212529;
}
[data-bs-theme="dark"] .git-commit-box {
  background-color: #1e1e2d;
  border-color: #2b2b40;
  color: #cfd3dc;
}

.dns-guide-content {
  font-size: 1.05rem;
  line-height: 1.75;
}
.dns-guide-content h5 {
  font-size: 1.25rem;
}
[data-bs-theme="dark"] #dnsSetupGuideModal .modal-content {
  background-color: #151c28 !important;
  color: #f1f5f9 !important;
  border: 1px solid #334155 !important;
}
[data-bs-theme="dark"] #dnsSetupGuideModal .modal-header,
[data-bs-theme="dark"] #dnsSetupGuideModal .modal-footer {
  background-color: #0f172a !important;
  border-color: #334155 !important;
  color: #f1f5f9 !important;
}
[data-bs-theme="dark"] #dnsSetupGuideModal .tab-content,
[data-bs-theme="dark"] #dnsSetupGuideModal .bg-white {
  background-color: #1e293b !important;
  color: #f8fafc !important;
  border-color: #334155 !important;
}
[data-bs-theme="dark"] #dnsSetupGuideModal .bg-light {
  background-color: #182234 !important;
  color: #f8fafc !important;
  border-color: #334155 !important;
}
[data-bs-theme="dark"] #dnsSetupGuideModal .text-dark {
  color: #f8fafc !important;
}
[data-bs-theme="dark"] #dnsSetupGuideModal .text-muted {
  color: #94a3b8 !important;
}
[data-bs-theme="dark"] #dnsSetupGuideModal .nav-pills .nav-link {
  color: #cbd5e1;
  background-color: #1e293b;
  border: 1px solid #334155;
}
[data-bs-theme="dark"] #dnsSetupGuideModal .nav-pills .nav-link.active {
  background-color: #2563eb !important;
  color: #ffffff !important;
  border-color: #2563eb !important;
}
[data-bs-theme="light"] #dnsSetupGuideModal .nav-pills .nav-link {
  color: #334155;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
}
[data-bs-theme="light"] #dnsSetupGuideModal .nav-pills .nav-link.active {
  background-color: #0d6efd !important;
  color: #ffffff !important;
  border-color: #0d6efd !important;
}

/* ==========================================================================
   4. Database Manager Studio (phpMyAdmin Full Suite) - Pastel & Theme Engine
   ========================================================================== */

/* Studio Main Card */
.db-studio-card {
  background-color: var(--mc-bg-card, #ffffff);
  border-color: var(--mc-border, rgba(67, 89, 113, 0.15)) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.db-studio-header {
  background-color: rgba(105, 108, 255, 0.04);
  border-color: var(--mc-border, rgba(67, 89, 113, 0.12)) !important;
}

[data-bs-theme="dark"] .db-studio-header {
  background-color: rgba(105, 108, 255, 0.08);
}

.db-studio-toolbar {
  background-color: rgba(67, 89, 113, 0.04);
  border-color: var(--mc-border, rgba(67, 89, 113, 0.12)) !important;
}

[data-bs-theme="dark"] .db-studio-toolbar {
  background-color: rgba(255, 255, 255, 0.03);
}

.db-studio-inner-card {
  background-color: var(--mc-bg-card, #ffffff);
  border-color: var(--mc-border, rgba(67, 89, 113, 0.12)) !important;
}

[data-bs-theme="dark"] .db-studio-inner-card {
  background-color: #161824;
}

/* Pastel Navigation Buttons & High-Contrast Active States */
.db-nav-btn {
  border-radius: 9999px !important;
  font-size: 0.8125rem;
  letter-spacing: 0.2px;
  transition: all 0.2s ease-in-out;
}

/* Disabled state: subtle faded look */
.db-nav-btn:disabled,
.db-nav-btn[disabled] {
  opacity: 0.42 !important;
  cursor: not-allowed !important;
  pointer-events: none;
  filter: grayscale(40%);
}

/* Primary / Blue Group */
.db-btn-pastel-primary {
  background-color: rgba(105, 108, 255, 0.1) !important;
  color: #696cff !important;
  border: 1px solid rgba(105, 108, 255, 0.2) !important;
}
.db-btn-pastel-primary:hover:not(:disabled) {
  background-color: rgba(105, 108, 255, 0.18) !important;
  color: #5f61e6 !important;
}
.db-btn-primary {
  background-color: #696cff !important;
  color: #ffffff !important;
  border: 1px solid #696cff !important;
}

/* Indigo Group */
.db-btn-pastel-indigo {
  background-color: rgba(102, 108, 255, 0.08) !important;
  color: #5a60e0 !important;
  border: 1px solid rgba(102, 108, 255, 0.18) !important;
}
.db-btn-pastel-indigo:hover:not(:disabled) {
  background-color: rgba(102, 108, 255, 0.16) !important;
  color: #4b51cf !important;
}
.db-btn-indigo {
  background-color: #5a60e0 !important;
  color: #ffffff !important;
  border: 1px solid #5a60e0 !important;
}

/* Success / Mint Green Group */
.db-btn-pastel-success {
  background-color: rgba(113, 221, 55, 0.12) !important;
  color: #56a827 !important;
  border: 1px solid rgba(113, 221, 55, 0.25) !important;
}
.db-btn-pastel-success:hover:not(:disabled) {
  background-color: rgba(113, 221, 55, 0.2) !important;
  color: #45881e !important;
}
.db-btn-success {
  background-color: #71dd37 !important;
  color: #ffffff !important;
  border: 1px solid #71dd37 !important;
}

/* Info / Cyan Group */
.db-btn-pastel-info {
  background-color: rgba(3, 195, 236, 0.1) !important;
  color: #03a7cb !important;
  border: 1px solid rgba(3, 195, 236, 0.22) !important;
}
.db-btn-pastel-info:hover:not(:disabled) {
  background-color: rgba(3, 195, 236, 0.18) !important;
  color: #028ba9 !important;
}
.db-btn-info {
  background-color: #03c3ec !important;
  color: #ffffff !important;
  border: 1px solid #03c3ec !important;
}

/* Dark / Slate Group */
.db-btn-pastel-dark {
  background-color: rgba(67, 89, 113, 0.08) !important;
  color: #566a7f !important;
  border: 1px solid rgba(67, 89, 113, 0.2) !important;
}
.db-btn-pastel-dark:hover:not(:disabled) {
  background-color: rgba(67, 89, 113, 0.15) !important;
  color: #435971 !important;
}
.db-btn-dark {
  background-color: #435971 !important;
  color: #ffffff !important;
  border: 1px solid #435971 !important;
}

/* Purple Group */
.db-btn-pastel-purple {
  background-color: rgba(139, 92, 246, 0.1) !important;
  color: #7c3aed !important;
  border: 1px solid rgba(139, 92, 246, 0.22) !important;
}
.db-btn-pastel-purple:hover:not(:disabled) {
  background-color: rgba(139, 92, 246, 0.18) !important;
  color: #6d28d9 !important;
}
.db-btn-purple {
  background-color: #8b5cf6 !important;
  color: #ffffff !important;
  border: 1px solid #8b5cf6 !important;
}

/* Warning / Amber Group */
.db-btn-pastel-warning {
  background-color: rgba(255, 171, 0, 0.12) !important;
  color: #cf8c00 !important;
  border: 1px solid rgba(255, 171, 0, 0.25) !important;
}
.db-btn-pastel-warning:hover:not(:disabled) {
  background-color: rgba(255, 171, 0, 0.2) !important;
  color: #b07700 !important;
}
.db-btn-warning {
  background-color: #ffab00 !important;
  color: #ffffff !important;
  border: 1px solid #ffab00 !important;
}

/* Dark Mode Overrides for Pastel Buttons */
[data-bs-theme="dark"] .db-btn-pastel-primary {
  background-color: rgba(105, 108, 255, 0.18) !important;
  color: #a5b4fc !important;
  border-color: rgba(105, 108, 255, 0.3) !important;
}
[data-bs-theme="dark"] .db-btn-pastel-indigo {
  background-color: rgba(102, 108, 255, 0.16) !important;
  color: #b0b5fc !important;
  border-color: rgba(102, 108, 255, 0.3) !important;
}
[data-bs-theme="dark"] .db-btn-pastel-success {
  background-color: rgba(113, 221, 55, 0.18) !important;
  color: #86efac !important;
  border-color: rgba(113, 221, 55, 0.3) !important;
}
[data-bs-theme="dark"] .db-btn-pastel-info {
  background-color: rgba(3, 195, 236, 0.18) !important;
  color: #7dd3fc !important;
  border-color: rgba(3, 195, 236, 0.3) !important;
}
[data-bs-theme="dark"] .db-btn-pastel-dark {
  background-color: rgba(255, 255, 255, 0.08) !important;
  color: #cbd5e1 !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}
[data-bs-theme="dark"] .db-btn-pastel-purple {
  background-color: rgba(139, 92, 246, 0.18) !important;
  color: #c4b5fd !important;
  border-color: rgba(139, 92, 246, 0.3) !important;
}
[data-bs-theme="dark"] .db-btn-pastel-warning {
  background-color: rgba(255, 171, 0, 0.18) !important;
  color: #fde047 !important;
  border-color: rgba(255, 171, 0, 0.3) !important;
}

/* --------------------------------------------------------------------------
   Global Modal Backdrop & Stacking Context Fix
   Ensure all active modal backdrops cover 100vw x 100vh viewport completely
   and display above Sneat fixed sidebars (z-index: 1080)
   -------------------------------------------------------------------------- */
.modal.fade.show.d-block,
.modal.show.d-block {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background-color: rgba(15, 23, 42, 0.75) !important;
  backdrop-filter: blur(5px) !important;
  -webkit-backdrop-filter: blur(5px) !important;
  z-index: 100050 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

.modal.fade.show.d-block .modal-dialog,
.modal.show.d-block .modal-dialog {
  z-index: 100051 !important;
  margin: 1.75rem auto !important;
}

/* Ensure backdrop covers full viewport even inside nested layout wrappers */
body:has(.modal.show) {
  overflow: hidden !important;
}

/* ==========================================================================
   PHP Extensions Cards, Gmail Pill Toolbar & Subtle Surfaces (Light / Dark)
   ========================================================================== */
.php-ext-card {
  background-color: #ffffff;
  border: 1.5px solid #e0e2e6 !important;
  border-radius: 10px;
}

.php-ext-card.is-enabled {
  background-color: #f5f6ff;
  border-color: #696cff !important;
}

.php-ext-desc {
  font-size: 12.5px;
  line-height: 1.45;
  color: #697a8d;
}

.php-ext-footer {
  border-color: rgba(0, 0, 0, 0.06) !important;
}

html.dark-style .php-ext-card,
[data-bs-theme="dark"] .php-ext-card {
  background-color: #141724 !important;
  border-color: var(--mc-border) !important;
}

html.dark-style .php-ext-card.is-enabled,
[data-bs-theme="dark"] .php-ext-card.is-enabled {
  background-color: rgba(105, 108, 255, 0.12) !important;
  border-color: #696cff !important;
}

html.dark-style .php-ext-desc,
[data-bs-theme="dark"] .php-ext-desc {
  color: var(--mc-text-muted) !important;
}

html.dark-style .php-ext-footer,
[data-bs-theme="dark"] .php-ext-footer {
  border-color: var(--mc-border) !important;
}

.gmail-pill-toolbar {
  background: #f2f6fc;
  border-radius: 24px;
  border: 1px solid #e2e8f0;
  font-size: 13px;
}

html.dark-style .gmail-pill-toolbar,
[data-bs-theme="dark"] .gmail-pill-toolbar {
  background: #1a1e2e !important;
  border-color: var(--mc-border) !important;
  color: var(--mc-text-body) !important;
}

html.dark-style .bg-light-subtle,
[data-bs-theme="dark"] .bg-light-subtle {
  background-color: #141724 !important;
  color: var(--mc-text-body) !important;
}

/* --------------------------------------------------------------------------
   Dark Mode: Sidebar Scroll Shadow, Navbar Scroll & Global Contrast Fixes
   -------------------------------------------------------------------------- */
html.dark-style .menu-inner-shadow,
[data-bs-theme="dark"] .menu-inner-shadow {
  background: linear-gradient(
    var(--mc-bg-sidebar, #131624) 41%,
    rgba(19, 22, 36, 0.25) 95%,
    rgba(19, 22, 36, 0)
  ) !important;
}

html.dark-style .layout-navbar,
html.dark-style #layout-navbar,
html.dark-style .bg-navbar-theme,
html.dark-style .layout-navbar-fixed .layout-navbar,
[data-bs-theme="dark"] .layout-navbar,
[data-bs-theme="dark"] #layout-navbar,
[data-bs-theme="dark"] .bg-navbar-theme,
[data-bs-theme="dark"] .layout-navbar-fixed .layout-navbar {
  background-color: var(--mc-bg-nav, rgba(19, 22, 36, 0.92)) !important;
  color: var(--mc-text-body) !important;
}

html.dark-style .bg-white,
[data-bs-theme="dark"] .bg-white {
  background-color: var(--mc-bg-card, #1a1e2e) !important;
  color: var(--mc-text-body) !important;
}

html.dark-style .bg-light,
[data-bs-theme="dark"] .bg-light {
  background-color: rgba(255, 255, 255, 0.04) !important;
  color: var(--mc-text-body) !important;
}

html.dark-style .text-dark,
html.dark-style .text-black,
[data-bs-theme="dark"] .text-dark,
[data-bs-theme="dark"] .text-black {
  color: var(--mc-text-heading, #f1f5f9) !important;
}

html.dark-style .table-light,
html.dark-style .table-light > th,
html.dark-style .table-light > td,
[data-bs-theme="dark"] .table-light,
[data-bs-theme="dark"] .table-light > th,
[data-bs-theme="dark"] .table-light > td {
  background-color: rgba(255, 255, 255, 0.05) !important;
  color: var(--mc-text-heading, #f1f5f9) !important;
  border-color: var(--mc-border) !important;
}





