/* D.A.D Auto Care – Luxury Automotive Theme (Dual-Mode: Dark Default & Clean Light) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ==========================================================================
   CSS CUSTOM PROPERTIES: DUAL THEME ENGINE
   Default: Dark Mode (Inspired by Smart Auto UAE Dubai Onyx & Gold)
   ========================================================================== */

/* DARK THEME (DEFAULT) */
:root,
html.dark,
[data-theme="dark"] {
  /* Smart Auto UAE Luxury Gold Palette */
  --primary: #C9A84C;
  --primary-hover: #E8C96A;
  --primary-active: #A07830;
  --primary-dark: #B8860B;
  --primary-light: rgba(201, 168, 76, 0.12);
  --primary-border: rgba(201, 168, 76, 0.28);
  --primary-gradient: linear-gradient(135deg, #C9A84C, #E8C96A, #A07830);
  --primary-gradient-hover: linear-gradient(135deg, #E8C96A, #C9A84C, #8C651A);

  /* Deep Luxury Dark Foundation */
  --bg-canvas: #0A0A0A;
  --bg-surface: #141414;
  --bg-surface-elevated: #181818;
  --bg-subtle: #1C1A17;
  --bg-header: #0D0D0D;
  --bg-sidebar: #0D0D0D;
  --border-sidebar: rgba(201, 168, 76, 0.18);
  --sidebar-brand-text: #FFFFFF;

  /* Borders & Dividers */
  --border-default: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(201, 168, 76, 0.22);
  --border-gold: rgba(201, 168, 76, 0.35);

  /* Text Hierarchy */
  --text-main: #FFFFFF;
  --text-body-bold: #F0ECE4;
  --text-body: #E5E0D8;
  --text-body-secondary: #BFBAB0;
  --text-muted: #A39E93;
  --text-subtle: #6E6961;
  --text-gold: #C9A84C;

  /* Form & Interactive Elements */
  --input-bg: #161616;
  --input-border: rgba(255, 255, 255, 0.12);
  --input-text: #FFFFFF;
  --input-placeholder: #6E6961;
  --btn-secondary-bg: #181818;
  --btn-secondary-text: #E5E0D8;
  --btn-secondary-border: rgba(201, 168, 76, 0.22);
  --btn-secondary-hover-bg: #24221C;
  --btn-secondary-hover-text: #FFFFFF;

  /* Tables & Lists */
  --table-th-bg: #171614;
  --table-th-text: #DFC268;
  --table-tr-border: rgba(255, 255, 255, 0.08);
  --table-tr-hover: rgba(201, 168, 76, 0.05);

  /* Dropdown & Modals */
  --dropdown-bg: #141414;
  --dropdown-border: rgba(201, 168, 76, 0.25);
  --dropdown-text: #E5E0D8;
  --dropdown-hover-bg: rgba(201, 168, 76, 0.12);
  --modal-bg: #141414;
  --modal-border: rgba(201, 168, 76, 0.25);
  --modal-overlay: rgba(0, 0, 0, 0.8);

  /* Status Colors */
  --success: #10B981;
  --success-bg: rgba(16, 185, 129, 0.12);
  --success-border: rgba(16, 185, 129, 0.28);
  --success-text: #34D399;

  --warning: #F59E0B;
  --warning-bg: rgba(245, 158, 11, 0.12);
  --warning-border: rgba(245, 158, 11, 0.28);
  --warning-text: #FBBF24;

  --danger: #EF4444;
  --danger-bg: rgba(239, 68, 68, 0.12);
  --danger-border: rgba(239, 68, 68, 0.28);
  --danger-text: #F87171;

  --info: #C9A84C;
  --info-bg: rgba(201, 168, 76, 0.12);
  --info-border: rgba(201, 168, 76, 0.28);
  --info-text: #E8C96A;

  --scrollbar-track: #101010;
  --scrollbar-thumb: #332E24;
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

/* LIGHT THEME */
html.light,
[data-theme="light"] {
  /* Crisp Luxury Gold & Slate Light Palette */
  --primary: #B8860B;
  --primary-hover: #A07830;
  --primary-active: #7E5B1E;
  --primary-dark: #8C651A;
  --primary-light: rgba(184, 134, 11, 0.1);
  --primary-border: rgba(184, 134, 11, 0.25);
  --primary-gradient: linear-gradient(135deg, #C9A84C, #E8C96A, #B8860B);
  --primary-gradient-hover: linear-gradient(135deg, #B8860B, #C9A84C, #8C651A);

  /* Clean Light Foundation */
  --bg-canvas: #F8FAFC;
  --bg-surface: #FFFFFF;
  --bg-surface-elevated: #FFFFFF;
  --bg-subtle: #F1F5F9;
  --bg-header: #FFFFFF;
  --bg-sidebar: #FFFFFF;
  --border-sidebar: #E2E8F0;
  --sidebar-brand-text: #0F172A;

  /* Borders & Dividers */
  --border-default: #E2E8F0;
  --border-strong: #CBD5E1;
  --border-gold: rgba(184, 134, 11, 0.35);

  /* Text Hierarchy */
  --text-main: #0F172A;
  --text-body-bold: #1E293B;
  --text-body: #334155;
  --text-body-secondary: #475569;
  --text-muted: #64748B;
  --text-subtle: #94A3B8;
  --text-gold: #B8860B;

  /* Form & Interactive Elements */
  --input-bg: #FFFFFF;
  --input-border: #CBD5E1;
  --input-text: #0F172A;
  --input-placeholder: #94A3B8;
  --btn-secondary-bg: #FFFFFF;
  --btn-secondary-text: #334155;
  --btn-secondary-border: #CBD5E1;
  --btn-secondary-hover-bg: #F8FAFC;
  --btn-secondary-hover-text: #0F172A;

  /* Tables & Lists */
  --table-th-bg: #F8FAFC;
  --table-th-text: #475569;
  --table-tr-border: #F1F5F9;
  --table-tr-hover: #F8FAFC;

  /* Dropdown & Modals */
  --dropdown-bg: #FFFFFF;
  --dropdown-border: #E2E8F0;
  --dropdown-text: #334155;
  --dropdown-hover-bg: #F1F5F9;
  --modal-bg: #FFFFFF;
  --modal-border: #E2E8F0;
  --modal-overlay: rgba(15, 23, 42, 0.55);

  /* Status Colors */
  --success: #10B981;
  --success-bg: #ECFDF5;
  --success-border: #A7F3D0;
  --success-text: #065F46;

  --warning: #F59E0B;
  --warning-bg: #FFFBEB;
  --warning-border: #FDE68A;
  --warning-text: #92400E;

  --danger: #EF4444;
  --danger-bg: #FEF2F2;
  --danger-border: #FECACA;
  --danger-text: #991B1B;

  --info: #2563EB;
  --info-bg: #EFF6FF;
  --info-border: #BFDBFE;
  --info-text: #1E40AF;

  --scrollbar-track: #F1F5F9;
  --scrollbar-thumb: #CBD5E1;
  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
}

* {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  box-sizing: border-box;
}

body {
  background-color: var(--bg-canvas) !important;
  color: var(--text-body) !important;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Smart Auto UAE Signature Gold Text & Gradients */
.gold-text {
  background: linear-gradient(135deg, #C9A84C, #E8C96A, #A07830);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.gold-gradient {
  background: linear-gradient(135deg, #C9A84C, #E8C96A, #A07830);
}

.gold-glow {
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.25);
}

/* Fixed / Sticky Top Navbar Containers */
#adminNavbarContainer, #staffNavbarContainer {
  position: sticky;
  top: 0;
  z-index: 30;
  background-color: var(--bg-header) !important;
  border-bottom: 1px solid var(--border-default) !important;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

#adminNavbarContainer header, #staffNavbarContainer header {
  background-color: var(--bg-header) !important;
  border-bottom: 1px solid var(--border-default) !important;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

#adminNavbarPageTitle, #staffNavbarPageTitle {
  color: var(--text-main) !important;
}

/* Fixed Sidebar Shell to prevent layout jumping */
@media (min-width: 1024px) {
  #adminSidebarContainer,
  #staffSidebarContainer {
    width: 16rem; /* 256px */
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 40;
    background-color: var(--bg-sidebar);
    border-right: 1px solid var(--border-sidebar);
  }
}

#sidebarDrawer {
  background-color: var(--bg-sidebar) !important;
  border-right: 1px solid var(--border-sidebar) !important;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

#sidebarDrawer .sidebar-brand-header {
  border-bottom: 1px solid var(--border-sidebar) !important;
  transition: border-color 0.2s ease;
}

#sidebarDrawer .sidebar-brand-title {
  color: var(--sidebar-brand-text) !important;
  transition: color 0.2s ease;
}

/* Light Mode Specific Sidebar Overrides */
html.light #adminSidebarContainer,
html.light #staffSidebarContainer,
html.light #sidebarDrawer,
[data-theme="light"] #adminSidebarContainer,
[data-theme="light"] #staffSidebarContainer,
[data-theme="light"] #sidebarDrawer {
  background-color: #FFFFFF !important;
  border-right: 1px solid #E2E8F0 !important;
  box-shadow: 1px 0 4px rgba(0, 0, 0, 0.03) !important;
}

html.light #sidebarDrawer .sidebar-brand-header,
[data-theme="light"] #sidebarDrawer .sidebar-brand-header,
html.light #sidebarDrawer .border-b,
[data-theme="light"] #sidebarDrawer .border-b {
  border-bottom: 1px solid #E2E8F0 !important;
}

html.light #sidebarDrawer .sidebar-brand-title,
[data-theme="light"] #sidebarDrawer .sidebar-brand-title,
html.light #sidebarDrawer .text-white,
[data-theme="light"] #sidebarDrawer .text-white {
  color: #0F172A !important;
}

html.light #sidebarDrawer .sidebar-section-label,
[data-theme="light"] #sidebarDrawer .sidebar-section-label,
html.light #sidebarDrawer .text-slate-500,
[data-theme="light"] #sidebarDrawer .text-slate-500 {
  color: #94A3B8 !important;
}

html.light #sidebarDrawer a.nav-item-link:not(.nav-item-active),
[data-theme="light"] #sidebarDrawer a.nav-item-link:not(.nav-item-active),
html.light #sidebarDrawer a:not([class*="bg-[rgba(201,168,76"]):not(.nav-item-active),
[data-theme="light"] #sidebarDrawer a:not([class*="bg-[rgba(201,168,76"]):not(.nav-item-active) {
  color: #475569 !important;
}

html.light #sidebarDrawer a.nav-item-link:not(.nav-item-active) i,
[data-theme="light"] #sidebarDrawer a.nav-item-link:not(.nav-item-active) i,
html.light #sidebarDrawer a:not([class*="bg-[rgba(201,168,76"]):not(.nav-item-active) i,
[data-theme="light"] #sidebarDrawer a:not([class*="bg-[rgba(201,168,76"]):not(.nav-item-active) i {
  color: #64748B !important;
}

html.light #sidebarDrawer a.nav-item-link:not(.nav-item-active):hover,
[data-theme="light"] #sidebarDrawer a.nav-item-link:not(.nav-item-active):hover,
html.light #sidebarDrawer a:not([class*="bg-[rgba(201,168,76"]):not(.nav-item-active):hover,
[data-theme="light"] #sidebarDrawer a:not([class*="bg-[rgba(201,168,76"]):not(.nav-item-active):hover {
  background-color: #F8FAFC !important;
  color: #0F172A !important;
}

html.light #sidebarDrawer a.nav-item-link:not(.nav-item-active):hover i,
[data-theme="light"] #sidebarDrawer a.nav-item-link:not(.nav-item-active):hover i,
html.light #sidebarDrawer a:not([class*="bg-[rgba(201,168,76"]):not(.nav-item-active):hover i,
[data-theme="light"] #sidebarDrawer a:not([class*="bg-[rgba(201,168,76"]):not(.nav-item-active):hover i {
  color: #B8860B !important;
}

html.light #sidebarDrawer a.nav-item-active,
[data-theme="light"] #sidebarDrawer a.nav-item-active,
html.light #sidebarDrawer a[class*="bg-[rgba(201,168,76"],
[data-theme="light"] #sidebarDrawer a[class*="bg-[rgba(201,168,76"] {
  background-color: rgba(201, 168, 76, 0.12) !important;
  color: #9A7B2C !important;
  font-weight: 600 !important;
  border-right: 2px solid #C9A84C !important;
}

html.light #sidebarDrawer a.nav-item-active i,
[data-theme="light"] #sidebarDrawer a.nav-item-active i,
html.light #sidebarDrawer a[class*="bg-[rgba(201,168,76"] i,
[data-theme="light"] #sidebarDrawer a[class*="bg-[rgba(201,168,76"] i {
  color: #C9A84C !important;
}

/* Dark Mode Specific Sidebar Enhancements */
html.dark #sidebarDrawer a.nav-item-link:not(.nav-item-active),
[data-theme="dark"] #sidebarDrawer a.nav-item-link:not(.nav-item-active) {
  color: #A39E93 !important;
}

html.dark #sidebarDrawer a.nav-item-link:not(.nav-item-active) i,
[data-theme="dark"] #sidebarDrawer a.nav-item-link:not(.nav-item-active) i {
  color: #807B70 !important;
}

html.dark #sidebarDrawer a.nav-item-link:not(.nav-item-active):hover,
[data-theme="dark"] #sidebarDrawer a.nav-item-link:not(.nav-item-active):hover {
  background-color: rgba(255, 255, 255, 0.05) !important;
  color: #FFFFFF !important;
}

html.dark #sidebarDrawer a.nav-item-link:not(.nav-item-active):hover i,
[data-theme="dark"] #sidebarDrawer a.nav-item-link:not(.nav-item-active):hover i {
  color: #C9A84C !important;
}

html.dark #sidebarDrawer a.nav-item-active,
[data-theme="dark"] #sidebarDrawer a.nav-item-active {
  background-color: rgba(201, 168, 76, 0.14) !important;
  color: #E8C96A !important;
  font-weight: 600 !important;
  border-right: 2px solid #C9A84C !important;
}

html.dark #sidebarDrawer a.nav-item-active i,
[data-theme="dark"] #sidebarDrawer a.nav-item-active i {
  color: #C9A84C !important;
}

/* Smooth Fast Page Transitions */
main,
.smooth-page-enter {
  animation: smoothPageFade 0.12s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes smoothPageFade {
  0% {
    opacity: 0.85;
    transform: translateY(2px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}
::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* Card Styles */
.card-clean {
  border: 1px solid var(--border-default) !important;
  border-radius: 0.75rem; /* 12px */
  box-shadow: var(--card-shadow) !important;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.card-clean:not([class*="from-blue"]):not([class*="to-blue"]) {
  background-color: var(--bg-surface) !important;
}

.card-clean:hover {
  border-color: var(--border-strong) !important;
}

html.dark .card-clean[class*="from-blue"], [data-theme="dark"] .card-clean[class*="from-blue"] {
  background: linear-gradient(135deg, #18181B 0%, #0F0F11 100%) !important;
  border-color: rgba(201, 168, 76, 0.35) !important;
  color: #FFFFFF !important;
}
html.dark .card-clean[class*="from-blue"] .text-blue-100, [data-theme="dark"] .card-clean[class*="from-blue"] .text-blue-100 {
  color: #DFC268 !important;
}
html.dark .card-clean[class*="from-blue"] .text-blue-200, [data-theme="dark"] .card-clean[class*="from-blue"] .text-blue-200 {
  color: #C9A84C !important;
}

html.light .card-clean[class*="from-blue"], [data-theme="light"] .card-clean[class*="from-blue"] {
  background: linear-gradient(135deg, #2563EB 0%, #1D4ED8 100%) !important;
  border-color: #1D4ED8 !important;
  color: #FFFFFF !important;
}
html.light .card-clean[class*="from-blue"] .text-blue-100, [data-theme="light"] .card-clean[class*="from-blue"] .text-blue-100 {
  color: #DBEAFE !important;
}
html.light .card-clean[class*="from-blue"] .text-blue-200, [data-theme="light"] .card-clean[class*="from-blue"] .text-blue-200 {
  color: #BFDBFE !important;
}

/* Button Variants */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--primary-gradient) !important;
  color: #0A0A0A !important;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid rgba(232, 201, 106, 0.35);
  box-shadow: 0 2px 10px rgba(201, 168, 76, 0.25);
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--primary-gradient-hover) !important;
  box-shadow: 0 4px 18px rgba(201, 168, 76, 0.4);
  transform: translateY(-1px);
}
.btn-primary:active {
  transform: translateY(0);
}
.btn-primary:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--btn-secondary-bg) !important;
  color: var(--btn-secondary-text) !important;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--btn-secondary-border) !important;
  transition: all 0.2s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-secondary:hover {
  background-color: var(--btn-secondary-hover-bg) !important;
  color: var(--btn-secondary-hover-text) !important;
  border-color: var(--primary) !important;
}

.btn-danger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--danger-bg) !important;
  color: var(--danger-text) !important;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  border: 1px solid var(--danger-border) !important;
  transition: all 0.15s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-danger:hover {
  background-color: rgba(239, 68, 68, 0.22) !important;
  border-color: var(--danger) !important;
}

/* Badges */
.badge-clean {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
}
.badge-success {
  background-color: var(--success-bg) !important;
  color: var(--success-text) !important;
  border-color: var(--success-border) !important;
}
.badge-warning {
  background-color: var(--warning-bg) !important;
  color: var(--warning-text) !important;
  border-color: var(--warning-border) !important;
}
.badge-danger {
  background-color: var(--danger-bg) !important;
  color: var(--danger-text) !important;
  border-color: var(--danger-border) !important;
}
.badge-info,
.badge-gold {
  background-color: var(--info-bg) !important;
  color: var(--info-text) !important;
  border-color: var(--info-border) !important;
}
.badge-neutral {
  background-color: var(--bg-subtle) !important;
  color: var(--text-muted) !important;
  border-color: var(--border-default) !important;
}

/* Form Controls */
.input-clean {
  width: 100%;
  height: 2.5rem; /* 40px */
  padding: 0 0.875rem;
  font-size: 0.875rem;
  background-color: var(--input-bg) !important;
  border: 1px solid var(--input-border) !important;
  border-radius: 0.5rem;
  color: var(--input-text) !important;
  transition: all 0.15s ease;
}
.input-clean:focus {
  outline: none;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.25) !important;
}
.input-clean::placeholder {
  color: var(--input-placeholder) !important;
}

select.input-clean option {
  background-color: var(--bg-surface) !important;
  color: var(--text-main) !important;
}

textarea.input-clean {
  height: auto;
  padding: 0.625rem 0.875rem;
}

/* Modals & Dialogs */
.modal-overlay {
  background-color: var(--modal-overlay) !important;
  backdrop-filter: blur(4px);
}

/* Tables */
table {
  color: var(--text-body);
}
thead tr {
  background-color: var(--table-th-bg) !important;
  border-bottom: 1px solid var(--border-default) !important;
}
thead th {
  color: var(--table-th-text) !important;
  font-weight: 600 !important;
}
tbody tr {
  border-bottom: 1px solid var(--table-tr-border) !important;
  transition: background-color 0.15s ease;
}
tbody tr:hover,
tr[class*="hover:bg-"]:hover {
  background-color: var(--table-tr-hover) !important;
}

/* Theme Toggle Button Icons (Instant Pure CSS Switching) */
html.dark .theme-icon-sun, [data-theme="dark"] .theme-icon-sun {
  display: inline-block !important;
}
html.dark .theme-icon-moon, [data-theme="dark"] .theme-icon-moon {
  display: none !important;
}
html.light .theme-icon-sun, [data-theme="light"] .theme-icon-sun {
  display: none !important;
}
html.light .theme-icon-moon, [data-theme="light"] .theme-icon-moon {
  display: inline-block !important;
}

/* Universal Tailwind Semantic Color Overrides for Dynamic Dark & Light Consistency */
.bg-slate-50 {
  background-color: var(--bg-canvas) !important;
}
.bg-slate-100 {
  background-color: var(--bg-subtle) !important;
}
.bg-white {
  background-color: var(--bg-surface) !important;
}
.text-slate-900 {
  color: var(--text-main) !important;
}
.text-slate-800 {
  color: var(--text-body-bold) !important;
}
.text-slate-700 {
  color: var(--text-body) !important;
}
.text-slate-600 {
  color: var(--text-body-secondary) !important;
}
.text-slate-500 {
  color: var(--text-muted) !important;
}
.text-slate-400 {
  color: var(--text-subtle) !important;
}
html.light .text-slate-300, [data-theme="light"] .text-slate-300 {
  color: #64748B !important;
}
html.light .text-slate-200, [data-theme="light"] .text-slate-200 {
  color: #94A3B8 !important;
}
html.light .text-slate-100, [data-theme="light"] .text-slate-100 {
  color: #CBD5E1 !important;
}
.border-slate-200 {
  border-color: var(--border-default) !important;
}
.border-slate-100 {
  border-color: var(--border-default) !important;
}
.border-slate-300 {
  border-color: var(--border-strong) !important;
}
.divide-slate-100 > :not([hidden]) ~ :not([hidden]) {
  border-color: var(--border-default) !important;
}
.divide-slate-200 > :not([hidden]) ~ :not([hidden]) {
  border-color: var(--border-default) !important;
}

/* Blue to UAE Gold Remapping in Dark Mode / Native Clean Blue in Light Mode */
html.dark .text-blue-600, [data-theme="dark"] .text-blue-600 {
  color: var(--primary) !important;
}
html.dark .text-blue-700, [data-theme="dark"] .text-blue-700,
html.dark .text-blue-800, [data-theme="dark"] .text-blue-800,
html.dark .text-blue-900, [data-theme="dark"] .text-blue-900 {
  color: #DFC268 !important;
}
html.dark .text-blue-500, [data-theme="dark"] .text-blue-500 {
  color: var(--primary-hover) !important;
}
html.dark .bg-blue-50, [data-theme="dark"] .bg-blue-50 {
  background-color: var(--primary-light) !important;
}
html.dark .bg-blue-100, [data-theme="dark"] .bg-blue-100 {
  background-color: rgba(201, 168, 76, 0.2) !important;
}
html.dark .bg-blue-600, [data-theme="dark"] .bg-blue-600 {
  background-color: var(--primary) !important;
}
html.dark .hover\:bg-blue-50:hover, [data-theme="dark"] .hover\:bg-blue-50:hover {
  background-color: rgba(201, 168, 76, 0.18) !important;
}
html.dark .hover\:bg-blue-700:hover, [data-theme="dark"] .hover\:bg-blue-700:hover {
  background-color: var(--primary-dark) !important;
}
html.dark .border-blue-200, [data-theme="dark"] .border-blue-200 {
  border-color: var(--primary-border) !important;
}
html.dark .border-blue-600, [data-theme="dark"] .border-blue-600 {
  border-color: var(--primary) !important;
}

/* Dark Mode Status Accent Backgrounds & Glows */
html.dark .bg-emerald-50, [data-theme="dark"] .bg-emerald-50 {
  background-color: rgba(16, 185, 129, 0.15) !important;
  color: #34D399 !important;
}
html.dark .text-emerald-600, [data-theme="dark"] .text-emerald-600,
html.dark .text-emerald-700, [data-theme="dark"] .text-emerald-700,
html.dark .text-emerald-800, [data-theme="dark"] .text-emerald-800,
html.dark .text-emerald-900, [data-theme="dark"] .text-emerald-900 {
  color: #34D399 !important;
}
html.dark .border-emerald-200, [data-theme="dark"] .border-emerald-200 {
  border-color: rgba(16, 185, 129, 0.3) !important;
}

html.dark .bg-amber-50, [data-theme="dark"] .bg-amber-50 {
  background-color: rgba(245, 158, 11, 0.15) !important;
  color: #FBBF24 !important;
}
html.dark .text-amber-600, [data-theme="dark"] .text-amber-600,
html.dark .text-amber-700, [data-theme="dark"] .text-amber-700,
html.dark .text-amber-800, [data-theme="dark"] .text-amber-800,
html.dark .text-amber-900, [data-theme="dark"] .text-amber-900 {
  color: #FBBF24 !important;
}
html.dark .border-amber-200, [data-theme="dark"] .border-amber-200 {
  border-color: rgba(245, 158, 11, 0.3) !important;
}

html.dark .bg-red-50, [data-theme="dark"] .bg-red-50 {
  background-color: rgba(239, 68, 68, 0.15) !important;
  color: #F87171 !important;
}
html.dark .text-red-600, [data-theme="dark"] .text-red-600,
html.dark .text-red-700, [data-theme="dark"] .text-red-700,
html.dark .text-red-800, [data-theme="dark"] .text-red-800,
html.dark .text-red-900, [data-theme="dark"] .text-red-900 {
  color: #F87171 !important;
}
html.dark .border-red-200, [data-theme="dark"] .border-red-200 {
  border-color: rgba(239, 68, 68, 0.3) !important;
}

html.dark .bg-sky-50, [data-theme="dark"] .bg-sky-50,
html.dark .bg-indigo-50, [data-theme="dark"] .bg-indigo-50 {
  background-color: rgba(201, 168, 76, 0.15) !important;
  color: #DFC268 !important;
}
html.dark .text-sky-600, [data-theme="dark"] .text-sky-600,
html.dark .text-indigo-600, [data-theme="dark"] .text-indigo-600 {
  color: #DFC268 !important;
}

/* Dark Mode Overrides for Modals & Profile Dropdown */
html.dark #userProfileDropdown,
html.dark #staffProfileDropdown,
[data-theme="dark"] #userProfileDropdown,
[data-theme="dark"] #staffProfileDropdown {
  background-color: #141414 !important;
  border-color: rgba(201, 168, 76, 0.25) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.8) !important;
}
html.dark #userProfileDropdown .text-white,
html.dark #staffProfileDropdown .text-white,
[data-theme="dark"] #userProfileDropdown .text-white,
[data-theme="dark"] #staffProfileDropdown .text-white {
  color: #FFFFFF !important;
}
html.dark #userProfileDropdown a,
html.dark #staffProfileDropdown a,
html.dark #userProfileDropdown button:not([class*="text-red"]),
html.dark #staffProfileDropdown button:not([class*="text-red"]),
[data-theme="dark"] #userProfileDropdown a,
[data-theme="dark"] #staffProfileDropdown a,
[data-theme="dark"] #userProfileDropdown button:not([class*="text-red"]),
[data-theme="dark"] #staffProfileDropdown button:not([class*="text-red"]) {
  color: #E5E0D8 !important;
}
html.dark #userProfileDropdown a:hover,
html.dark #staffProfileDropdown a:hover,
html.dark #userProfileDropdown button:not([class*="text-red"]):hover,
html.dark #staffProfileDropdown button:not([class*="text-red"]):hover,
[data-theme="dark"] #userProfileDropdown a:hover,
[data-theme="dark"] #staffProfileDropdown a:hover,
[data-theme="dark"] #userProfileDropdown button:not([class*="text-red"]):hover,
[data-theme="dark"] #staffProfileDropdown button:not([class*="text-red"]):hover {
  background-color: rgba(201, 168, 76, 0.12) !important;
  color: #E8C96A !important;
}

/* Light Mode Overrides for Modals, Dropdowns & Popups */
html.light #userProfileDropdown,
html.light #staffProfileDropdown,
[data-theme="light"] #userProfileDropdown,
[data-theme="light"] #staffProfileDropdown {
  background-color: #FFFFFF !important;
  border-color: #E2E8F0 !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04) !important;
}
html.light #userProfileDropdown .text-white,
html.light #staffProfileDropdown .text-white,
[data-theme="light"] #userProfileDropdown .text-white,
[data-theme="light"] #staffProfileDropdown .text-white {
  color: #0F172A !important;
}
html.light #userProfileDropdown a,
html.light #staffProfileDropdown a,
html.light #userProfileDropdown button:not([class*="text-red"]),
html.light #staffProfileDropdown button:not([class*="text-red"]),
[data-theme="light"] #userProfileDropdown a,
[data-theme="light"] #staffProfileDropdown a,
[data-theme="light"] #userProfileDropdown button:not([class*="text-red"]),
[data-theme="light"] #staffProfileDropdown button:not([class*="text-red"]) {
  color: #334155 !important;
}
html.light #userProfileDropdown a:hover,
html.light #staffProfileDropdown a:hover,
html.light #userProfileDropdown button:not([class*="text-red"]):hover,
html.light #staffProfileDropdown button:not([class*="text-red"]):hover,
[data-theme="light"] #userProfileDropdown a:hover,
[data-theme="light"] #staffProfileDropdown a:hover,
[data-theme="light"] #userProfileDropdown button:not([class*="text-red"]):hover,
[data-theme="light"] #staffProfileDropdown button:not([class*="text-red"]):hover {
  background-color: #F8FAFC !important;
  color: #B8860B !important;
}

/* Login Page Dual Mode */
html.light body.login-body,
[data-theme="light"] body.login-body {
  background-color: #F8FAFC !important;
}
html.light .login-card,
[data-theme="light"] .login-card {
  background-color: #FFFFFF !important;
  border-color: #E2E8F0 !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04) !important;
}
html.light .login-title,
[data-theme="light"] .login-title {
  color: #0F172A !important;
}

/* SweetAlert2 Dynamic Theme Overrides */
html.dark .swal2-popup, [data-theme="dark"] .swal2-popup {
  background: #141414 !important;
  border: 1px solid var(--border-strong) !important;
  color: #FFFFFF !important;
  border-radius: 1rem !important;
}
html.dark .swal2-title, [data-theme="dark"] .swal2-title {
  color: #FFFFFF !important;
}
html.dark .swal2-html-container, [data-theme="dark"] .swal2-html-container {
  color: #E5E0D8 !important;
}
html.dark .swal2-cancel, [data-theme="dark"] .swal2-cancel {
  background: #24221C !important;
  color: #E5E0D8 !important;
  border: 1px solid var(--border-strong) !important;
  border-radius: 0.5rem !important;
}

html.light .swal2-popup, [data-theme="light"] .swal2-popup {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  color: #0F172A !important;
  border-radius: 1rem !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15) !important;
}
html.light .swal2-title, [data-theme="light"] .swal2-title {
  color: #0F172A !important;
}
html.light .swal2-html-container, [data-theme="light"] .swal2-html-container {
  color: #334155 !important;
}
html.light .swal2-cancel, [data-theme="light"] .swal2-cancel {
  background: #F1F5F9 !important;
  color: #334155 !important;
  border: 1px solid #CBD5E1 !important;
  border-radius: 0.5rem !important;
}
.swal2-confirm {
  background: var(--primary-gradient) !important;
  color: #0A0A0A !important;
  font-weight: 700 !important;
  border-radius: 0.5rem !important;
}

/* Print Styles for Invoices */
@media print {
  body {
    background-color: #FFFFFF !important;
    color: #000000 !important;
  }
  .bg-white {
    background-color: #FFFFFF !important;
  }
  .text-slate-900, .text-slate-800, .text-slate-700 {
    color: #000000 !important;
  }
  .border-slate-200 {
    border-color: #E2E8F0 !important;
  }
  .no-print {
    display: none !important;
  }
  .print-only {
    display: block !important;
  }
  .card-clean {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    background-color: transparent !important;
  }
}
