@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ═══════════════════════════════════════════════════════════════
   GLOBAL LAYOUT FIX - Content spacing below fixed navbar
   ═══════════════════════════════════════════════════════════════ */

/* Ensure all page content starts below the fixed navbar */
body {
  padding-top: 50px;
  background: linear-gradient(135deg, #f5f7fa 0%, #f0f3f8 100%);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16.5px;
}

/* Additional spacing for main container */
.container, .container-fluid {
  margin-top: 20px;
}

/* ═══════════════════════════════════════════════════════════════
   NCS Expo ERP - Global Custom Styles
   Premium Blue Gradient Theme with Glassmorphism
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* Primary Royal Blue Gradient Colors - Bright Royal Blue with Slight Dark Gradient */
  --primary-light: #5B8DEE;      /* Bright Royal Blue (Lighter) */
  --primary: #4169E1;            /* Royal Blue (Bright) */
  --primary-dark: #2952CC;       /* Slightly Darker Royal Blue */
  --primary-darker: #1E3A8A;     /* Deep Royal Blue */
  
  /* Status Colors */
  --success: #10b981;
  --success-light: #d1fae5;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --danger: #ef4444;
  --danger-light: #fee2e2;
  --info: #06b6d4;
  --info-light: #cffafe;
  
  /* Neutral Colors */
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  
  /* Border Radius */
  --radius-sm: 6px;
  --radius: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  
  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══════════════════════════════════════════════════════════════
   NAVBAR - Premium Blue Gradient with Glassmorphism
   ═══════════════════════════════════════════════════════════════ */

.navbar {
  background: linear-gradient(135deg, 
    #6A5ACD 0%, /* Slate Blue, for a deeper royal tone */
    #8A2BE2 25%, /* Blue Violet, for a vibrant purple */
    #4169E1 75%, /* Royal Blue, to keep the blue aspect */
    #1E3A8A 100%) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.4),
              0 2px 8px 0 rgba(0, 0, 0, 0.1),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border: none !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25) !important;
  padding: 0.3rem 1rem;
  min-height: 50px;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  z-index: 1040 !important;
  
  /* Premium shine effect */
  overflow: visible;
}

.navbar::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.1), 
    transparent
  );
  animation: navbarShine 8s infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes navbarShine {
  0%, 100% {
    left: -100%;
  }
  50% {
    left: 200%;
  }
}

.navbar-brand {
  color: var(--white) !important;
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4),
               0 4px 24px rgba(255, 255, 255, 0.1);
  transition: all var(--transition);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
  padding: 0;
  margin: 0;
  line-height: 1;
}

.navbar-brand:hover {
  transform: scale(1.05);
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.5),
               0 8px 32px rgba(255, 255, 255, 0.2);
  filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.5));
}

/* Navbar Links - Glass Effect */
.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.95) !important;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.4rem 0.9rem !important;
  margin: 0 0.4rem;
  border-radius: var(--radius);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  letter-spacing: 0.3px;
  line-height: 1;
  
  /* Always visible glass effect */
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.navbar-nav .nav-link::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  right: 100%;
  bottom: 0;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.3), 
    transparent
  );
  transition: all 0.6s ease;
}

.navbar-nav .nav-link:hover {
  color: #ffffff !important;
  background: linear-gradient(135deg, #4169E1 0%, #1E90FF 100%);
  border: 1px solid rgba(65, 105, 225, 0.6);
  box-shadow: 0 4px 20px rgba(65, 105, 225, 0.4), 
              0 0 30px rgba(65, 105, 225, 0.2);
  transform: translateY(-2px) scale(1.02);
}

.navbar-nav .nav-link:hover::before {
  left: 100%;
  right: -100%;
}

.navbar-nav .nav-link:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15),
              inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Dropdown Menu - Premium Glass Effect */
.dropdown-menu {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  padding: 0.5rem;
  margin-top: 0.5rem;
  animation: dropdownSlideIn 0.2s ease-out;
  z-index: 1050;
  position: absolute;
}

.dropdown-menu.show {
  z-index: 1050;
}

@keyframes dropdownSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-item {
  color: var(--gray-700);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  margin-bottom: 0.25rem;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  letter-spacing: 0.2px;
}

.dropdown-item:last-child {
  margin-bottom: 0;
}

.dropdown-item:hover {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  color: var(--white);
  transform: translateX(5px);
  box-shadow: var(--shadow-md);
}

.dropdown-item:active {
  background: var(--primary-dark);
  color: var(--white);
}

.dropdown-divider {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  margin: 0.5rem 0;
}

/* Settings Icon */
.navbar-nav .nav-link[title="Settings"] {
  font-size: 1.15rem;
  padding: 0.35rem 0.7rem !important;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  box-shadow: none;
  transition: opacity 0.2s ease;
  line-height: 1;
  opacity: 0.9;
}

.navbar-nav .nav-link[title="Settings"]:hover {
  opacity: 1;
  background: transparent;
  transform: none;
}

/* ═══════════════════════════════════════════════════════════════
   CARDS - Premium Modern Style with Depth
   ═══════════════════════════════════════════════════════════════ */

.card {
  border: none;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
}

.card-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #f0f3f8 100%);
  border-bottom: 2px solid #e9ecef;
  font-weight: 800;
  color: #1f2937;
  padding: 1.25rem 1.5rem !important;
  font-size: 0.95rem;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  opacity: 0.95;
}

.card-body {
  padding: 1.5rem !important;
}

/* ═══════════════════════════════════════════════════════════════
   BUTTONS - Premium Gradient Styles
   ═══════════════════════════════════════════════════════════════ */

.btn-primary {
  background: linear-gradient(135deg, #5B8DEE 0%, #4169E1 100%);
  border: none;
  border-radius: 8px;
  font-weight: 700;
  padding: 0.65rem 1.75rem;
  box-shadow: 0 4px 12px rgba(65, 105, 225, 0.3);
  transition: all 0.3s ease;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #4169E1 0%, #2952CC 100%);
  box-shadow: 0 6px 20px rgba(65, 105, 225, 0.4);
  transform: translateY(-2px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(65, 105, 225, 0.3);
}

.btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
  transition: all 0.3s ease;
  font-weight: 700;
}

.btn-success:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4);
  transform: translateY(-2px);
}

.btn-outline-primary {
  border: 2px solid #5B8DEE;
  color: #5B8DEE;
  font-weight: 700;
  transition: all 0.3s ease;
  background: transparent;
}

.btn-outline-primary:hover {
  background: linear-gradient(135deg, #5B8DEE 0%, #4169E1 100%);
  border-color: transparent;
  color: white;
  box-shadow: 0 4px 12px rgba(65, 105, 225, 0.3);
  transform: translateY(-2px);
}

.btn-outline-danger {
  border: 2px solid #ef4444;
  color: #ef4444;
  font-weight: 700;
  transition: all 0.3s ease;
  background: transparent;
}

.btn-outline-danger:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: white;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
  transform: translateY(-2px);
}

.btn-outline-secondary {
  border: 2px solid #6b7280;
  color: #6b7280;
  font-weight: 700;
  transition: all 0.3s ease;
  background: transparent;
}

.btn-outline-secondary:hover {
  background: #6b7280;
  border-color: #6b7280;
  color: white;
  box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
  transform: translateY(-2px);
}

/* Premium Gate Pass Button - Light Mode */
.btn-gatepass-premium {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  font-weight: 700;
  padding: 0.7rem 1.8rem;
  box-shadow: 0 10px 25px -5px rgba(79, 70, 229, 0.3), 0 8px 10px -6px rgba(79, 70, 229, 0.3);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: #ffffff !important;
  text-decoration: none;
}

.btn-gatepass-premium:hover {
  background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 20px 25px -5px rgba(79, 70, 229, 0.4), 0 10px 10px -5px rgba(79, 70, 229, 0.3);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-gatepass-premium:active {
  transform: translateY(-1px) scale(0.98);
  box-shadow: 0 5px 10px rgba(79, 70, 229, 0.2);
}

.btn-gatepass-premium:disabled {
  background: #9ca3af;
  border-color: transparent;
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
  opacity: 0.7;
}

/* ═══════════════════════════════════════════════════════════════
   TABLES - Modern Clean Style
   ═══════════════════════════════════════════════════════════════ */

.table {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: white;
}

.table thead th {
  background: linear-gradient(135deg, #f8f9fa 0%, #f0f3f8 100%);
  color: #2c3e50;
  font-weight: 700;
  border-bottom: 2px solid #e9ecef;
  padding: 1rem 1.25rem;
  font-size: 0.9rem;
  letter-spacing: 0.3px;
}

.table tbody td {
  padding: 1rem 1.25rem;
  vertical-align: middle;
  font-weight: 500;
  font-size: 0.95rem;
}

.table tbody tr {
  transition: all 0.2s ease;
  border-bottom: 1px solid #f0f3f8;
}

.table tbody tr:hover {
  background: #f8f9fa;
  box-shadow: inset 0 0 0 1px #e9ecef;
}

.table tbody td {
  padding: 1rem 1.25rem;
  vertical-align: middle;
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════════════
   FORMS - Premium Modern Inputs with Royal Blue Border (Compact)
   ═══════════════════════════════════════════════════════════════ */

.form-control, .form-select {
  border: 2px solid #5B8DEE;
  border-radius: 12px;
  padding: 0.7rem 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 0.95rem;
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  font-weight: 600;
  color: #1f2937;
  box-shadow: 0 2px 8px rgba(91, 141, 238, 0.06);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  letter-spacing: 0.2px;
}

.form-control:hover, .form-select:hover {
  border-color: #4169E1;
  box-shadow: 0 4px 12px rgba(91, 141, 238, 0.12);
}

.form-control:focus, .form-select:focus {
  border-color: #2952CC;
  box-shadow: 0 0 0 3px rgba(91, 141, 238, 0.12), 0 4px 12px rgba(91, 141, 238, 0.15);
  outline: none;
  background: linear-gradient(135deg, #ffffff 0%, #f0f4ff 100%);
}

.form-control::placeholder {
  color: #9ca3af;
  font-weight: 600;
}

.form-label {
  font-weight: 700;
  color: #1f2937;
  font-size: 0.85rem;
  letter-spacing: 0.2px;
  margin-bottom: 0.5rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.form-text {
  font-size: 0.8rem;
  color: #6b7280;
  font-weight: 600;
  margin-top: 0.3rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Input group styling */
.input-group {
  gap: 0.4rem;
}

.input-group-text {
  background: linear-gradient(135deg, #5B8DEE 0%, #4169E1 100%);
  border: 2px solid #5B8DEE;
  border-radius: 12px;
  font-weight: 700;
  color: white;
  padding: 0.7rem 1rem;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  box-shadow: 0 2px 8px rgba(91, 141, 238, 0.15);
  font-size: 0.9rem;
}

/* ═══════════════════════════════════════════════════════════════
   BADGES - Premium Status Colors
   ═══════════════════════════════════════════════════════════════ */

.badge {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.badge-primary {
  background: linear-gradient(135deg, #5B8DEE 0%, #4169E1 100%);
  color: white;
}

.badge-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.badge-warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
}

.badge-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: white;
}

/* ═══════════════════════════════════════════════════════════════
   ALERTS - Modern Toast Style
   ═══════════════════════════════════════════════════════════════ */

.alert {
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-left: 5px solid;
  padding: 1rem 1.25rem;
  font-weight: 500;
}

.alert-success {
  background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
  border-left-color: #10b981;
  color: #065f46;
}

.alert-warning {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-left-color: #f59e0b;
  color: #92400e;
}

.alert-danger {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border-left-color: #ef4444;
  color: #991b1b;
}

.alert-info {
  background: linear-gradient(135deg, #cffafe 0%, #a5f3fc 100%);
  border-left-color: #06b6d4;
  color: #164e63;
}

/* ═══════════════════════════════════════════════════════════════
   SCROLLBAR - Custom Styling
   ═══════════════════════════════════════════════════════════════ */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
  background: var(--gray-400);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gray-500);
}

/* ═══════════════════════════════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════════════════════════════ */

.text-gradient {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Hide footer */
footer.footer {
  display: none !important;
}

/* ═══════════════════════════════════════════════════════════════
   GENERAL PAGE STYLING - Premium Layout
   ═══════════════════════════════════════════════════════════════ */

h1, h2, h3, h4, h5, h6 {
  font-weight: 900;
  color: #1f2937;
  letter-spacing: -0.5px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

p {
  color: #4b5563;
  line-height: 1.6;
  font-weight: 600;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Divider styling */
hr {
  border: none;
  height: 2px;
  background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
  margin: 1.5rem 0;
}

/* Link styling */
a {
  color: #5B8DEE;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
}

a:hover {
  color: #4169E1;
}


/* ═══════════════════════════════════════════════════════════════
   CHECKBOXES & RADIO BUTTONS - Compact Premium Minimal Style
   ═══════════════════════════════════════════════════════════════ */

.form-check-input {
  width: 0.95rem;
  height: 0.95rem;
  border: 1.5px solid #10b981;
  border-radius: 4px;
  background: white;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: none;
  margin-top: 0.15rem;
}

.form-check-input:hover {
  border-color: #059669;
  box-shadow: 0 1px 4px rgba(16, 185, 129, 0.1);
}

.form-check-input:checked {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-color: #059669;
  box-shadow: 0 1px 4px rgba(16, 185, 129, 0.15);
}

.form-check-input:focus {
  border-color: #059669;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.08);
  outline: none;
}

.form-check-label {
  font-weight: 600;
  color: #1f2937;
  cursor: pointer;
  user-select: none;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  margin-left: 0.35rem;
  font-size: 0.9rem;
}

/* Radio buttons */
.form-check-input[type="radio"] {
  border-radius: 50%;
}

.form-check-input[type="radio"]:checked {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-color: #059669;
}

/* ═══════════════════════════════════════════════════════════════
   DROPDOWN Z-INDEX FIX - Ensure dropdowns appear above content
   ═══════════════════════════════════════════════════════════════ */

.nav-item.dropdown {
  position: relative;
  z-index: 1050;
}

.dropdown {
  position: relative;
  z-index: 1050;
}

/* Ensure navbar items are properly layered */
.navbar-nav {
  position: relative;
  z-index: 1040;
}

.navbar-collapse {
  position: relative;
  z-index: 1040;
}

/* ═══════════════════════════════════════════════════════════════
   DARK MODE - Complete Theme Override
   ═══════════════════════════════════════════════════════════════ */

[data-theme="dark"] {
  /* Body & Background */
  & body {
    background: linear-gradient(135deg, #0f0f1a 0%, #16162e 100%);
  }

  /* Change theme-color meta tag dynamically */
  background: #0f0f1a;

  /* ── Navbar ── */
  .navbar {
    background: linear-gradient(135deg,
      #282346 0%,  /* Darker Slate Blue */
      #3C1F5C 25%,  /* Darker Blue Violet */
      #1F3A8A 75%,  /* Darker Royal Blue */
      #0E1C38 100%) !important;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.6),
                0 2px 8px 0 rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.08);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  .navbar::before {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
  }

  .navbar-brand {
    color: #e4e4e7 !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
    filter: drop-shadow(0 0 10px rgba(91, 141, 238, 0.2));
  }

  .navbar-nav .nav-link {
    color: rgba(228, 228, 231, 0.9) !important;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }

  .navbar-nav .nav-link:hover {
    color: #ffffff !important;
    background: linear-gradient(135deg, #4169E1 0%, #1E90FF 100%);
    border: 1px solid rgba(65, 105, 225, 0.6);
    box-shadow: 0 4px 20px rgba(65, 105, 225, 0.5), 0 0 30px rgba(65, 105, 225, 0.3);
    transform: translateY(-2px) scale(1.02);
  }

  .navbar-nav .nav-link[title="Settings"] {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: rgba(228, 228, 231, 0.8) !important;
  }

  .navbar-nav .nav-link[title="Settings"]:hover {
    color: #ffffff !important;
    background: transparent !important;
  }

  /* ── Dropdown Menu ── */
  .dropdown-menu {
    background: rgba(20, 20, 40, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  }

  .dropdown-item {
    color: #d4d4d8;
  }

  .dropdown-item:hover {
    background: linear-gradient(135deg, rgba(91, 141, 238, 0.3) 0%, rgba(65, 105, 225, 0.3) 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }

  .dropdown-item:active {
    background: rgba(65, 105, 225, 0.4);
    color: #ffffff;
  }

  .dropdown-divider {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  /* ── Cards ── */
  .card {
    background: linear-gradient(135deg, #1a1a30 0%, #16162a 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  }

  .card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  }

  .card-header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-bottom: 2px solid rgba(255, 255, 255, 0.06);
    color: #e4e4e7;
  }

  /* ── Buttons ── */
  .btn-primary {
    background: linear-gradient(135deg, #4a7de0 0%, #3a5cc9 100%);
    box-shadow: 0 4px 12px rgba(65, 105, 225, 0.25);
  }

  .btn-primary:hover {
    background: linear-gradient(135deg, #5B8DEE 0%, #4169E1 100%);
    box-shadow: 0 6px 20px rgba(65, 105, 225, 0.35);
    color: #ffffff;
  }

  .btn-primary:active {
    box-shadow: 0 2px 8px rgba(65, 105, 225, 0.2);
  }

  .btn-success {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
  }

  .btn-success:hover {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
    color: #ffffff;
  }

  .btn-outline-primary {
    border: 2px solid #4a7de0;
    color: #8ab4ff;
  }

  .btn-outline-primary:hover {
    background: linear-gradient(135deg, #4a7de0 0%, #3a5cc9 100%);
    border-color: transparent;
    color: #ffffff;
  }

  .btn-outline-danger {
    border: 2px solid #f87171;
    color: #fca5a5;
  }

  .btn-outline-danger:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: #ffffff;
  }

  .btn-outline-secondary {
    border: 2px solid #52525b;
    color: #a1a1aa;
  }

  .btn-outline-secondary:hover {
    background: #52525b;
    border-color: #52525b;
    color: #ffffff;
  }

  /* ── Tables ── */
  .table {
    background: #1a1a2e;
    color: #e4e4e7;
  }

  .table thead th {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
    color: #e4e4e7;
    border-bottom: 2px solid rgba(255, 255, 255, 0.08);
  }

  .table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    background: transparent;
  }

  .table tbody tr:hover {
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  }

  .table tbody td {
    color: #d4d4d8;
  }

  /* ── Forms ── */
  .form-control, .form-select {
    border: 2px solid rgba(91, 141, 238, 0.25);
    background: linear-gradient(135deg, rgba(30, 30, 54, 0.9) 0%, rgba(22, 22, 46, 0.9) 100%);
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  }

  .form-control:hover, .form-select:hover {
    border-color: rgba(65, 105, 225, 0.4);
    box-shadow: 0 4px 12px rgba(91, 141, 238, 0.1);
  }

  .form-control:focus, .form-select:focus {
    border-color: #4169E1;
    box-shadow: 0 0 0 3px rgba(91, 141, 238, 0.15), 0 4px 12px rgba(91, 141, 238, 0.1);
    background: linear-gradient(135deg, rgba(26, 26, 48, 0.95) 0%, rgba(20, 20, 40, 0.95) 100%);
    color: #ffffff;
  }

  .form-control::placeholder {
    color: #71717a;
  }

  .form-label {
    color: #d4d4d8;
  }

  .form-text {
    color: #71717a;
  }

  .input-group-text {
    background: linear-gradient(135deg, rgba(74, 125, 224, 0.8) 0%, rgba(58, 92, 201, 0.8) 100%);
    border: 2px solid rgba(91, 141, 238, 0.3);
    color: #e4e4e7;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }

  /* ── Badges ── */
  .badge {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }

  .badge-primary {
    background: linear-gradient(135deg, #4a7de0 0%, #3a5cc9 100%);
  }

  .badge-success {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
  }

  .badge-warning {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
  }

  .badge-danger {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  }

  /* ── Alerts ── */
  .alert-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.1) 100%);
    border-left-color: #10b981;
    color: #6ee7b7;
  }

  .alert-warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.1) 100%);
    border-left-color: #f59e0b;
    color: #fcd34d;
  }

  .alert-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.1) 100%);
    border-left-color: #ef4444;
    color: #fca5a5;
  }

  .alert-info {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.15) 0%, rgba(8, 145, 178, 0.1) 100%);
    border-left-color: #06b6d4;
    color: #67e8f9;
  }

  /* ── Headings & Text ── */
  & h1, & h2, & h3, & h4, & h5, & h6 {
    color: #e4e4e7;
  }

  & p {
    color: #a1a1aa;
  }

  & a {
    color: #8ab4ff;
  }

  & a:hover {
    color: #5B8DEE;
  }

  & hr {
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  }

  /* ── Checkboxes & Radio Buttons ── */
  .form-check-input {
    border: 1.5px solid rgba(16, 185, 129, 0.4);
    background: rgba(30, 30, 54, 0.8);
  }

  .form-check-input:hover {
    border-color: rgba(16, 185, 129, 0.6);
    box-shadow: 0 1px 4px rgba(16, 185, 129, 0.15);
  }

  .form-check-input:checked {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    border-color: #059669;
  }

  .form-check-input:focus {
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.12);
  }

  .form-check-label {
    color: #d4d4d8;
  }

  /* ── Scrollbar ── */
  ::-webkit-scrollbar-track {
    background: #16162e;
  }

  ::-webkit-scrollbar-thumb {
    background: #3a3a5c;
  }

  ::-webkit-scrollbar-thumb:hover {
    background: #52527a;
  }

  /* ── Utility / Misc ── */
  .text-gradient {
    background: linear-gradient(135deg, #8ab4ff 0%, #5B8DEE 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

  .glass-effect {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
  }

  /* ── Utility: Force override common inline light backgrounds ── */
  [style*="background: white"],
  [style*="background: #fff"],
  [style*="background: #ffffff"],
  [style*="background: #f8f9fa"],
  [style*="background: #f5f7fa"],
  [style*="background: #f0f2f5"] {
    background: #1a1a2e !important;
  }

  [style*="background: #f8fafc"],
  [style*="background: #f0f4ff"],
  [style*="background: #f5f6fa"],
  [style*="background: #f1f5f9"] {
    background: #16162a !important;
  }

  [style*="background: #fef3c7"],
  [style*="background: #fee2e2"],
  [style*="background: #d1fae5"],
  [style*="background: #dbeafe"],
  [style*="background: #eef2ff"],
  [style*="background: #fff3cd"],
  [style*="background: #d4edda"],
  [style*="background: #f8d7da"],
  [style*="background: #f0fdf4"],
  [style*="background: #e8f4fc"],
  [style*="background: #fef2f2"] {
    background: rgba(255, 255, 255, 0.04) !important;
  }

  [style*="color: #1f2937"],
  [style*="color: #1e293b"],
  [style*="color: #2c3e50"],
  [style*="color: #374151"],
  [style*="color: #333"] {
    color: #e4e4e7 !important;
  }

  [style*="color: #6c757d"],
  [style*="color: #495057"],
  [style*="color: #475569"],
  [style*="color: #1a1a2e"],
  [style*="color: #4a5568"],
  [style*="color: #334155"],
  [style*="color: #64748b"],
  [style*="color: #6b7280"],
  [style*="color: #7f8c8d"],
  [style*="color: #666"],
  [style*="color: #888"],
  [style*="color: #94a3b8"] {
    color: #a1a1aa !important;
  }

  [style*="border-color: #e0e0e0"],
  [style*="border: 1px solid #e0e0e0"],
  [style*="border: 1px solid #dee2e6"],
  [style*="border: 1px solid #e2e8f0"],
  [style*="border: 1px solid #e5e7eb"],
  [style*="border: 1px solid #d1d5db"],
  [style*="border: 1px solid #dde2e8"] {
    border-color: rgba(255, 255, 255, 0.1) !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   DARK MODE - Page-Specific Component Overrides
   ═══════════════════════════════════════════════════════════════ */

[data-theme="dark"] {
  /* ── Payment.cshtml ── */
  .pay-page { background: #0f0f1a; }
  .pay-panel { background: #1a1a2e; border-color: rgba(255,255,255,0.06); }
  .pay-panel .panel-head { background: #16162a; border-bottom-color: rgba(255,255,255,0.06); }
  .pay-panel .panel-head .step-label { color: #a1a1aa; }
  .pay-scroll::-webkit-scrollbar-thumb { background: #3a3a5c; }
  .inv-table td { color: #d4d4d8; }
  .inv-table td.subtotal-label { color: #a1a1aa; }
  .method-item { background: #1a1a2e; border-color: rgba(255,255,255,0.08); }
  .method-item:hover { background: #22223a; border-color: rgba(91,141,238,0.3); }
  .method-item.selected { border-color: #6366f1; background: rgba(99,102,241,0.12); }
  .method-item.selected .method-name { color: #a5b4fc; }
  .pay-divider { border-color: rgba(255,255,255,0.06); }

  /* ── StallBooking.cshtml ── */
  .exh-card-header { background: linear-gradient(135deg, #1a1a30 0%, #16162a 100%); }
  .exh-input-group-text { background: #1a1a2e; color: #d4d4d8; }
  .exh-btn-outline:hover { background: #22223a; }
  .exh-btn-outline-primary:hover { background: rgba(91,141,238,0.2); }
  .exh-btn-outline-danger:hover { background: rgba(239,68,68,0.15); border-color: #ef4444; color: #fca5a5; }
  .btn-add { background: linear-gradient(135deg, #059669 0%, #047857 100%); }
  .btn-add:hover { background: linear-gradient(135deg, #10b981 0%, #059669 100%); }
  .btn-delete { background: #1a1a2e; border-color: #dc2626; color: #fca5a5; }
  .btn-delete:hover { background: #dc2626; color: #fff; }
  .category-btn-delete { background: #1a1a2e; border-color: #dc2626; color: #fca5a5; }
  .category-btn-delete:hover { background: #dc2626; color: #fff; }
  .erp-form-text { color: #71717a; }
  .alert-primary { background: rgba(91,141,238,0.12); border-color: rgba(91,141,238,0.2); color: #8ab4ff; }
  .card.bg-light { background: #1a1a2e !important; }
  .badge-section { background: rgba(91,141,238,0.08); border-color: rgba(91,141,238,0.15); }
  .total-card { background: linear-gradient(135deg, #1a1a30 0%, #16162a 100%); }
  .btn-download-template:hover { background: linear-gradient(135deg, #4a5cc9 0%, #5a3080 100%); }
  .exh-search-item:hover { background: #22223a; }
  .erp-scrollbar::-webkit-scrollbar-track { background: #16162e; }
  .erp-scrollbar::-webkit-scrollbar-thumb { background: #3a3a5c; }
  .erp-scrollbar::-webkit-scrollbar-thumb:hover { background: #52527a; }

  /* ── Create.cshtml (Exhibitor) ── */
  .exh-body { background: #0f0f1a; }
  .exh-container { background: #0f0f1a; }
  .exh-form-wrapper { background: #1a1a2e; }
  .exh-form-header { background: linear-gradient(90deg, #1a1a3e 0%, #1a2a5e 100%); }
  .exh-form-body { background: #1a1a2e; }
  .exh-form-scroll::-webkit-scrollbar-track { background: #16162e; }
  .exh-form-scroll::-webkit-scrollbar-thumb { background: #3a3a5c; }
  .exh-form-scroll::-webkit-scrollbar-thumb:hover { background: #52527a; }
  .exh-form-section { background: #16162a; border-color: rgba(255,255,255,0.06); }
  .exh-section-title { color: #8ab4ff; }
  .exh-section-title::after { background: #4169E1; }
  .exh-form-label { color: #d4d4d8; }
  .exh-form-input { border-color: rgba(91,141,238,0.25); background: rgba(30,30,54,0.9); color: #ffffff; font-weight: 600; }
  .exh-form-input:focus { background: rgba(26,26,48,0.95); border-color: #4169E1; color: #ffffff; }
  .exh-form-footer { background: #16162a; }
  .add-exhibitor-form { background: #1a1a2e; }
  .btn-exh-primary { background: linear-gradient(90deg, #1a3a8a 0%, #1a56eb 100%); }
  .btn-exh-primary:hover { background: linear-gradient(90deg, #1a4a9a 0%, #2563eb 100%); }
  .btn-exh-secondary { background: #52525b; }
  .btn-exh-secondary:hover { background: #3f3f46; }
  .btn-exh-outline { background: #1a1a2e; border-color: rgba(255,255,255,0.2); color: #d4d4d8; }
  .btn-exh-outline:hover { background: #22223a; border-color: rgba(255,255,255,0.3); }
  .required-asterisk { color: #fca5a5; }
  .exh-card { border-color: rgba(255,255,255,0.06); background: #1a1a2e; }
  .exh-card-header { background: #16162a; }
  .exh-card-header h5 { color: #e4e4e7; }
  .exh-success-message { background: rgba(16,185,129,0.12); border-color: rgba(16,185,129,0.2); color: #6ee7b7; }

  /* ── ExhibitorList.cshtml ── */
  .el-page { background: #0f0f1a; }
  .el-title { color: #e4e4e7; }
  .el-print-btn { background: linear-gradient(135deg, #5a6ad0 0%, #6640a2 100%); }
  .el-pdf-btn { background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%); }
  .el-refresh-btn { background: linear-gradient(135deg, #059669 0%, #047857 100%); }
  .el-search-input { border-color: rgba(255,255,255,0.15); background: #1a1a2e; color: #ffffff; font-weight: 600; }
  .el-search-input:focus { border-color: #667eea; }
  .el-stat-card { background: #1a1a2e; border-color: rgba(255,255,255,0.06); }
  .el-stat-value { color: #8ab4ff; }
  .el-stat-label { color: #a1a1aa; }
  .el-table-card { background: #1a1a2e; border-color: rgba(255,255,255,0.06); }
  .el-table-card-header { background: linear-gradient(135deg, #5a6ad0 0%, #6640a2 100%); }
  .el-table-scroll::-webkit-scrollbar-track { background: #16162e; }
  .el-table-scroll::-webkit-scrollbar-thumb { background: #3a3a5c; }
  .el-table thead { background: #20203e; }
  .el-table th { color: #a5b4fc; border-bottom-color: rgba(255,255,255,0.1); }
  .el-table td { color: #d4d4d8; border-bottom-color: rgba(255,255,255,0.04); }
  .el-table tbody tr:hover { background: #22223a; }

  /* ── GatePassManagement.cshtml ── */
  .gpm-page { background: #0f0f1a; }
  .gpm-title { color: #e4e4e7; }
  .gpm-stat-card { background: #1a1a2e; border-color: rgba(255,255,255,0.06); }
  .gpm-stat-value { color: #6ee7b7; }
  .gpm-stat-label { color: #a1a1aa; }
  .gpm-card { background: #1a1a2e; border-color: rgba(255,255,255,0.06); }
  .gpm-card-header { background: linear-gradient(135deg, #1a1a3e 0%, #2a2a4e 100%); }
  .gpm-search-input { border-color: rgba(255,255,255,0.15); background: #1a1a2e; color: #ffffff; font-weight: 600; }
  .gpm-filter-select { border-color: rgba(255,255,255,0.15); background: #1a1a2e; color: #ffffff; font-weight: 600; }
  .gpm-table thead { background: #20203e; }
  .gpm-table th { color: #a1a1aa; border-bottom-color: rgba(255,255,255,0.08); }
  .gpm-table td { color: #d4d4d8; border-bottom-color: rgba(255,255,255,0.04); }
  .gpm-table tbody tr:hover { background: #22223a; }
  .gpm-exh-avatar { background: linear-gradient(135deg, #5a6ad0 0%, #6640a2 100%); }
  .gpm-exh-name { color: #e4e4e7; }
  .gpm-exh-mobile { color: #a1a1aa; }
  .badge-issued { background: rgba(16,185,129,0.15); color: #6ee7b7; }
  .badge-pending { background: rgba(245,158,11,0.15); color: #fcd34d; }
  .btn-print { background: linear-gradient(135deg, #e05a30 0%, #c930a6 100%); }
.btn-print:disabled { background: #3a3a5c; }
  }

  /* ── GatePassList.cshtml ── */
  .gp-page { background: #0f0f1a; }
  .gp-card { background: #1a1a2e; border-color: rgba(255,255,255,0.06); }
  .gp-card-header { background: linear-gradient(135deg, #1a1a3e 0%, #2a2a4e 100%); }
  .gp-action-bar { background: #1a1a2e; border-bottom-color: rgba(255,255,255,0.06); }
  .gp-table thead { background: #20203e; }
  .gp-table th { color: #a1a1aa; border-bottom-color: rgba(255,255,255,0.08); }
  .gp-table td { color: #d4d4d8; border-bottom-color: rgba(255,255,255,0.04); }
  .gp-table tbody tr:hover { background: #22223a; }
  .gp-exh-avatar { background: linear-gradient(135deg, #5a6ad0 0%, #6640a2 100%); }
  .gp-exh-name { color: #e4e4e7; }
  .gp-exh-mobile { color: #a1a1aa; }
  .gp-no-data { color: #71717a; }

  /* ── CollectionManagement.cshtml ── */
  .cm-page { background: #0f0f1a; }
  .cm-title { color: #e4e4e7; }
  .cm-stat-card { background: #1a1a2e; border-color: rgba(255,255,255,0.06); }
  .cm-stat-label { color: #a1a1aa; }
  .cm-card { background: #1a1a2e; border-color: rgba(255,255,255,0.06); }
  .cm-scroll::-webkit-scrollbar-track { background: #16162e; }
  .cm-scroll::-webkit-scrollbar-thumb { background: #3a3a5c; }
  .cm-scroll::-webkit-scrollbar-thumb:hover { background: #52527a; }
  .collection-card-header { background: linear-gradient(135deg, #059669 0%, #047857 100%); }
  .cm-search-input { border-color: rgba(255,255,255,0.15); background: rgba(255,255,255,0.06); color: #ffffff; font-weight: 600; }
  .cm-filter-select { border-color: rgba(255,255,255,0.15); background: rgba(255,255,255,0.06); color: #ffffff; font-weight: 600; }
  .cm-table thead { background: rgba(16,185,129,0.12); border-bottom-color: rgba(16,185,129,0.3); }
  .cm-table th { color: #6ee7b7; }
  .cm-table td { color: #d4d4d8; border-bottom-color: rgba(255,255,255,0.04); }
  .cm-table tbody tr:hover { background: rgba(16,185,129,0.04); }
  .cm-exh-avatar { background: linear-gradient(135deg, #059669 0%, #047857 100%); }
  .cm-exh-name { color: #e4e4e7; }
  .cm-exh-mobile { color: #a1a1aa; }
  .badge-partial { background: rgba(59,130,246,0.15); color: #93c5fd; }
  .badge-paid { background: rgba(16,185,129,0.15); color: #6ee7b7; }
  .cm-pay-input { border-color: rgba(255,255,255,0.15); background: #1a1a2e; color: #ffffff; font-weight: 600; }
  .cm-collect-btn { background: rgba(16,185,129,0.2); color: #6ee7b7; border-color: rgba(16,185,129,0.3); }
  .cm-collect-btn:hover { background: #059669; color: #fff; }
  .cm-btn-disabled { background: #3a3a5c; }
  .cm-no-data { color: #71717a; }
  .cm-error-state { color: #fca5a5; border-color: #fca5a5; background: rgba(239,68,68,0.08); }
  .btn-gate-pass { background: rgba(59,130,246,0.2); color: #93c5fd; }
  .btn-gate-pass:hover { background: #2563eb; color: #fff; }
  .cm-gp-number { color: #a1a1aa; }
  .btn-generate-pass { background: rgba(16,185,129,0.2); color: #6ee7b7; }
  .btn-generate-pass:hover { background: #059669; color: #fff; }
  .cm-premium-select { background: linear-gradient(135deg, rgba(102,126,234,0.9) 0%, rgba(118,75,162,0.9) 100%); color: #fff; }
  .cm-premium-select option { background: #1a1a2e; color: #e4e4e7; }
  .cm-filter-premium-select { background: linear-gradient(135deg, rgba(102,126,234,0.9) 0%, rgba(118,75,162,0.9) 100%); color: #fff; }
  .cm-filter-premium-select option { background: #1a1a2e; color: #e4e4e7; }

[data-theme="dark"] {
  /* ── InvoiceTracking.cshtml ── */
  .inv-page { background: #0f0f1a; }
  .inv-filter-input { border-color: rgba(255,255,255,0.15); background: #1a1a2e; color: #ffffff; font-weight: 600; }
  .inv-stat-card { background: #1a1a2e; border-color: rgba(255,255,255,0.06); }
  .inv-stat-value { color: #e4e4e7; }
  .inv-stat-label { color: #a1a1aa; }
  .inv-list-panel { background: #1a1a2e; border-color: rgba(255,255,255,0.06); }
  .inv-panel-header { background: #16162a; border-bottom-color: rgba(255,255,255,0.06); }
  .inv-table thead { background: #20203e; }
  .inv-table th { border-bottom-color: rgba(255,255,255,0.08); color: #a1a1aa; }
  .inv-table td { border-bottom-color: rgba(255,255,255,0.04); color: #d4d4d8; }
  .inv-table tbody tr:hover { background: #22223a; }
  .inv-table .selected { background: rgba(59,130,246,0.12) !important; }
  .badge-paid { background: rgba(16,185,129,0.15); color: #6ee7b7; }
  .badge-unpaid { background: rgba(239,68,68,0.15); color: #fca5a5; }
  .badge-partial { background: rgba(245,158,11,0.15); color: #fcd34d; }
  .inv-detail-row { color: #a1a1aa; }
  .inv-detail-section { color: #a1a1aa; background: #16162a; border-bottom-color: rgba(255,255,255,0.06); }
  .inv-empty { color: #71717a; }
  .inv-refresh-dot { background: #059669; }
  .btn-delete-all { background: rgba(239,68,68,0.2); color: #fca5a5; }
  .inv-modal-overlay { background: rgba(0,0,0,0.7); }
  .inv-modal-box { background: #1a1a2e; box-shadow: 0 8px 32px rgba(0,0,0,0.4); }
  .inv-modal-header { border-bottom-color: rgba(255,255,255,0.06); }
  .inv-modal-footer { border-top-color: rgba(255,255,255,0.06); }
  .inv-form-group label { color: #d4d4d8; }
  .inv-form-input { border-color: rgba(255,255,255,0.15); background: #1a1a2e; color: #ffffff; font-weight: 600; }
}

[data-theme="dark"] {
  /* ── ElectricityBilling.cshtml ── */
  .eb-page { background: #0f0f1a; }
  .eb-title { color: #e4e4e7; }
  .eb-card { background: #1a1a2e; border-color: rgba(255,255,255,0.06); }
  .eb-card-title { color: #e4e4e7; }
  .eb-search-input { border-color: rgba(255,255,255,0.15); background: #1a1a2e; color: #ffffff; font-weight: 600; }
  .eb-form-input { border-color: rgba(255,255,255,0.15); background: #1a1a2e; color: #ffffff; font-weight: 600; }
  .ep-form-input { border-color: rgba(255,255,255,0.15); background: #1a1a2e; color: #ffffff; font-weight: 600; }
  .ci-form-input { border-color: rgba(255,255,255,0.15); background: #1a1a2e; color: #ffffff; font-weight: 600; }
  .ci-form-input:focus { border-color: #0d6efd; }
  .ci-file-input-label { background: #16162a; border-color: rgba(255,255,255,0.15); }
  .ci-file-input-text { color: #a1a1aa; }
  .ci-file-input-label:hover { border-color: #0d6efd; background: rgba(13,110,253,0.1); color: #8ab4ff; }
  .ci-save-btn { background: linear-gradient(135deg, #0d6efd 0%, #0b5ed7 100%); }
  .ci-btn-container { background: #1a1a2e; }
  .ci-toast { background: #1a1a2e; }

  /* ── StallLedger.cshtml ── */
  .sl-toast-msg { background: #1a1a2e; border-left-color: #0d6efd; }
  .sl-autocomplete-list { background: #1a1a2e; border-color: rgba(255,255,255,0.1); }
  .sl-autocomplete-item:hover { background: #22223a; }

  /* ── Print Pages (non-print overrides) ── */
  .pi-body { background: #0f0f1a; }
  .pi-invoice-container { background: #1a1a2e; border-color: rgba(255,255,255,0.08); }
  .pi-company-name { color: #e4e4e7; }
  .pi-tagline { color: #a1a1aa; }
  .pi-main-title { color: #e4e4e7; }
  .pi-blue-accent { color: #8ab4ff; }
  .pi-subtitle { color: #e4e4e7; }
  .pi-invoice-info { color: #a1a1aa; }
  .pi-info-box { background: #16162a; border-color: rgba(255,255,255,0.06); }
  .pi-section-header { background: linear-gradient(90deg, #1a1a3e 0%, #1a1a3e 70%, transparent 100%); }
  .pi-section-header.blue { background: linear-gradient(90deg, #0d6efd 0%, #0d6efd 70%, transparent 100%); }
  .pi-table thead th { background: #20203e; color: #a1a1aa; }
  .pi-table td { color: #d4d4d8; border-bottom-color: rgba(255,255,255,0.04); }
  .pi-total-row { background: #16162a; color: #8ab4ff; border-top-color: #0d6efd; }
  .pi-payment-section { background: #16162a; }
  .pi-payment-box { background: #1a1a2e; border-color: rgba(255,255,255,0.06); }
  .pi-payment-box.highlight { border-color: #10b981; background: rgba(16,185,129,0.08); }
  .pi-payment-value { color: #e4e4e7; }
  .pi-footer { background: linear-gradient(90deg, #0f0f2e 0%, #2a0a3e 100%); }

  .gp-body { background: #0f0f1a; }
  .gp-container { background: #1a1a2e; border-color: rgba(255,255,255,0.08); }
  .gp-company-name { color: #e4e4e7; }
  .gp-tagline { color: #a1a1aa; }
  .gp-main-title { color: #e4e4e7; }
  .gp-title-accent { color: #fca5a5; }
  .gp-subtitle { color: #e4e4e7; }
  .gp-pass-info { color: #a1a1aa; }
  .gp-info-box { background: #16162a; border-color: rgba(255,255,255,0.06); }
  .gp-section-header { background: linear-gradient(90deg, #0f0f2e 0%, #0f0f2e 70%, transparent 100%); }
  .gp-orange-section { background: linear-gradient(90deg, #e05a30 0%, #e05a30 70%, transparent 100%); }
  .gp-purpose-section { background: #16162a; }
  .gp-stamp-placeholder { border-color: rgba(255,255,255,0.15); color: #52525b; }
  .gp-verification-box { background: #16162a; border-color: rgba(255,255,255,0.06); }
  .gp-footer { background: linear-gradient(90deg, #0f0f2e 0%, #2a0a3e 100%); }
  .gp-verify-icon { background: #10b981; }

  .pei-body { background: #0f0f1a; }
  .pei-invoice-container { background: #1a1a2e; border-color: rgba(255,255,255,0.08); }
  .pei-company-name { color: #e4e4e7; }
  .pei-tagline { color: #a1a1aa; }
  .pei-main-title { color: #e4e4e7; }
  .pei-title-accent { color: #fca5a5; }
  .pei-subtitle { color: #e4e4e7; }
  .pei-invoice-info { color: #a1a1aa; }
  .pei-info-box { background: #16162a; border-color: rgba(255,255,255,0.06); }
  .pei-section-header { background: linear-gradient(90deg, #0f0f2e 0%, #0f0f2e 70%, transparent 100%); }
  .pei-orange-section { background: linear-gradient(90deg, #e05a30 0%, #e05a30 70%, transparent 100%); }
  .pei-table thead th { background: #0f0f2e; color: #e4e4e7; }
  .pei-table td { color: #d4d4d8; border-bottom-color: rgba(255,255,255,0.04); }
  .pei-total-section { background: #16162a; }
  .pei-grand-total-row { background: #0f0f2e; color: #e4e4e7; }
  .pei-payment-section { background: #1a1a2e; }
  .pei-footer { background: linear-gradient(90deg, #0f0f2e 0%, #2a0a3e 100%); }
  .pei-print-btn { background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); }
}

  /* ── mobile-responsive.css overrides ── */
  @media (max-width: 991.98px) {
    .dropdown-menu {
      background: rgba(15, 15, 26, 0.98) !important;
    }
  }
}

/* ═══════════════════════════════════════════════════════════════
   DARK MODE - CORRECTED Page-Specific Overrides
   (Matched to actual view class names)
   ═══════════════════════════════════════════════════════════════ */

[data-theme="dark"] {
  /* ── CollectionManagement.cshtml ── */
  .collection-wrap { background: #0f0f1a; }
  .collection-title { color: #e4e4e7; }
  .stat-card { background: #1a1a2e; border-color: rgba(255,255,255,0.06); }
  .stat-label { color: #a1a1aa; }
  .collection-card { background: #1a1a2e; border-color: rgba(255,255,255,0.06); }
  .table-container::-webkit-scrollbar-track { background: #16162e; }
  .table-container::-webkit-scrollbar-thumb { background: #3a3a5c; }
  .table-container::-webkit-scrollbar-thumb:hover { background: #52527a; }
  .collection-table thead { background: rgba(16,185,129,0.12); border-bottom-color: rgba(16,185,129,0.3); }
  .collection-table th { color: #6ee7b7; }
  .collection-table td { color: #d4d4d8; border-bottom-color: rgba(255,255,255,0.04); }
  .collection-table tbody tr:hover { background: rgba(16,185,129,0.04); }
  .exhibitor-name { color: #e4e4e7; }
  .exhibitor-mobile { color: #a1a1aa; }
  .badge-pending { background: rgba(245,158,11,0.15); color: #fcd34d; }
  .badge-partial { background: rgba(59,130,246,0.15); color: #93c5fd; }
  .badge-paid { background: rgba(16,185,129,0.15); color: #6ee7b7; }
  .payment-input input,
  .payment-input select { border-color: rgba(255,255,255,0.1); }
  .btn-collect:disabled { background: #3a3a5c; }
  .no-data { color: #71717a; }
}

[data-theme="dark"] {
  /* ── GatePassManagement.cshtml ── */
  .gp-wrap { background: #0f0f1a; }
  .gp-title { color: #e4e4e7; }
  .gp-card { background: #1a1a2e; border-color: rgba(255,255,255,0.06); }
  .search-box input { border-color: rgba(255,255,255,0.15); background: #1a1a2e; color: #ffffff; font-weight: 600; }
  .filter-select { border-color: rgba(255,255,255,0.15); background: #1a1a2e; color: #e4e4e7; }
  .gp-table thead { background: #20203e; border-bottom-color: rgba(255,255,255,0.08); }
  .gp-table th { color: #a1a1aa; }
  .gp-table td { color: #d4d4d8; border-bottom-color: rgba(255,255,255,0.04); }
  .gp-table tbody tr:hover { background: #22223a; }
  .exhibitor-name { color: #e4e4e7; }
  .exhibitor-mobile { color: #a1a1aa; }
  .badge-issued { background: rgba(16,185,129,0.15); color: #6ee7b7; }
  .badge-pending { background: rgba(245,158,11,0.15); color: #fcd34d; }
  .btn-print:disabled { background: #3a3a5c; }

  /* Premium Gate Pass Button - Dark Mode */
  .btn-gatepass-premium {
    background: linear-gradient(135deg, #312e81 0%, #581c87 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.3);
    color: #ffffff !important;
  }

  .btn-gatepass-premium:hover {
    background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.5);
    border-color: rgba(255, 255, 255, 0.2);
  }

  .btn-gatepass-premium:active {
    box-shadow: 0 0 10px rgba(124, 58, 237, 0.4);
  }

  .btn-gatepass-premium:disabled {
    background: #374151;
    border-color: transparent;
    box-shadow: none;
    color: #9ca3af !important;
  }
  .no-data { color: #71717a; }
}

[data-theme="dark"] {
  /* ── GatePassList.cshtml ── */
  .gp-list-wrap { background: #0f0f1a; }
  .action-bar { background: #1a1a2e; border-bottom-color: rgba(255,255,255,0.06); }
  .badge-issued { background: rgba(16,185,129,0.15); color: #6ee7b7; }
}

[data-theme="dark"] {
  /* ── CompanyInfo.cshtml (Settings) ── */
  .settings-card { background: #1a1a2e; }
  .logo-preview { background: #16162a; border-color: rgba(255,255,255,0.15); }
  .section-title { color: #e4e4e7; }
  .form-group label { color: #d4d4d8; }
  .form-group input, .form-group textarea { border-color: rgba(255,255,255,0.15); background: #1a1a2e; color: #ffffff; font-weight: 600; }
  .file-input-label { border-color: rgba(255,255,255,0.15); background: #16162a; color: #a1a1aa; }
  .file-input-label:hover { border-color: #0d6efd; background: rgba(13,110,253,0.1); color: #8ab4ff; }
  .sticky-button-container { background: #1a1a2e; }
  .toast { background: #1a1a2e; }
}

[data-theme="dark"] {
  /* ── StallLedger.cshtml ── */
  .toast-msg { background: #1a1a2e; }
  .autocomplete-dropdown { background: #1a1a2e; border-color: rgba(255,255,255,0.1); }
  .autocomplete-item { border-bottom-color: rgba(255,255,255,0.04); }
  .autocomplete-item:hover { background: #22223a; }
  .autocomplete-item.selected { background: rgba(13,110,253,0.12); }
  .autocomplete-item-name { color: #e4e4e7; }
  .autocomplete-item-meta { color: #71717a; }
}

[data-theme="dark"] {
  /* ── ElectricityPayment.cshtml ── */
  .ep-wrap { background: #0f0f1a; }
  .ep-title { color: #e4e4e7; }
  .ep-card { background: #1a1a2e; border-color: rgba(255,255,255,0.06); }
  .invoice-details { background: rgba(245,158,11,0.08); border-color: rgba(245,158,11,0.2); }
  .payment-box { background: rgba(59,130,246,0.08); border-color: rgba(59,130,246,0.2); }
  .detail-row { border-bottom-color: rgba(245,158,11,0.15); }
  .detail-label { color: #fcd34d; }
  .detail-value { color: #e4e4e7; }
  .form-label { color: #a1a1aa; }
  .form-input { border-color: rgba(255,255,255,0.15); background: #1a1a2e; color: #ffffff; font-weight: 600; }
}

[data-theme="dark"] {
  /* ── ElectricityBilling.cshtml ── */
  .eb-wrap { background: #0f0f1a; }
  .eb-title { color: #e4e4e7; }
  .eb-card { background: #1a1a2e; border-color: rgba(255,255,255,0.06); }
  .card-title { color: #e4e4e7; }
  .search-input { border-color: rgba(255,255,255,0.15); background: #1a1a2e; color: #ffffff; font-weight: 600; }
  .search-results { background: #1a1a2e; border-color: rgba(255,255,255,0.1); }
  .search-result-item { border-bottom-color: rgba(255,255,255,0.04); }
  .search-result-item:hover { background: rgba(245,158,11,0.1); }
  .result-name { color: #e4e4e7; }
  .result-mobile { color: #a1a1aa; }
  .selected-exhibitor { background: rgba(245,158,11,0.12); border-color: rgba(245,158,11,0.3); }
  .exhibitor-badge { background: #1a1a2e; color: #e4e4e7; }
  .exhibitor-detail { color: #a1a1aa; }
  .no-results { color: #71717a; }
  .form-label { color: #a1a1aa; }
  .form-input { border-color: rgba(255,255,255,0.15); background: #1a1a2e; color: #ffffff; font-weight: 600; }
  .item-row { background: #16162a; }
  .rate-chart-item { background: #16162a; }
  .rate-points { color: #e4e4e7; }
  .rate-price { color: #a1a1aa; }
  .invoice-table th { background: #20203e; color: #a1a1aa; border-bottom-color: rgba(255,255,255,0.08); }
  .invoice-table td { color: #d4d4d8; border-bottom-color: rgba(255,255,255,0.04); }
  .invoice-table tbody tr:hover { background: rgba(245,158,11,0.04); }
}

[data-theme="dark"] {
  /* ── StallBooking.cshtml ── */
  .sb-wrap { background: #0f0f1a; }
  .sb-card { background: #1a1a2e; border-color: rgba(255,255,255,0.06); }
  .sb-card .card-header { background: linear-gradient(135deg, #1a1a30 0%, #16162a 100%); color: #ffffff; }
  .sb-card .card-body::-webkit-scrollbar-track { background: #16162e; }
  .sb-card .card-body::-webkit-scrollbar-thumb { background: #3a3a5c; }
  .sb-card .card-body::-webkit-scrollbar-thumb:hover { background: #52527a; }
  #searchResults { background: #1a1a2e; border-color: rgba(255,255,255,0.1); }
  #searchResults .result-item { border-bottom-color: rgba(255,255,255,0.04); }
  #searchResults .result-item:hover { background: #22223a; }
  .input-group-text { background: #1a1a2e; color: #d4d4d8; }
  .btn-outline-secondary:hover { background: #22223a; }
  .btn-outline-danger:hover { background: rgba(239,68,68,0.15); }
  .btn-outline-primary:hover { background: rgba(91,141,238,0.2); }
  .form-label { color: #d4d4d8; }
  .alert-primary { background: rgba(91,141,238,0.12); border-color: rgba(91,141,238,0.2); color: #8ab4ff; }
  .card.bg-light { background: #1a1a2e !important; border-color: rgba(255,255,255,0.06); }
  .badge-section { background: rgba(91,141,238,0.08); border-color: rgba(91,141,238,0.15); }
  .total-card { background: linear-gradient(135deg, #1a1a30 0%, #16162a 100%); border-color: rgba(255,255,255,0.06); }
  #afMobile { background: rgba(30,30,54,0.9) !important; color: #ffffff !important; }
  input.bg-light { background: rgba(30,30,54,0.9) !important; color: #ffffff; }
  .sb-card hr { border-color: rgba(255,255,255,0.06); }
}

[data-theme="dark"] {
  /* ── Payment.cshtml ── */
  .panel { background: #1a1a2e; border-color: rgba(255,255,255,0.06); }
  .panel-head { background: #16162a; border-bottom-color: rgba(255,255,255,0.06); color: #a1a1aa; }
  .panel-body::-webkit-scrollbar-thumb { background: #3a3a5c; }
  .inv-table tr { border-bottom-color: rgba(255,255,255,0.04); }
  .inv-table td { color: #d4d4d8; }
  .inv-table td:last-child { color: #e4e4e7; }
  .inv-table .total-row td { border-top-color: rgba(255,255,255,0.08); color: #d4d4d8; }
  .addons-sub { color: #71717a; }
  .method-item { border-color: rgba(255,255,255,0.08); background: #1a1a2e; }
  .method-item:hover { border-color: rgba(91,141,238,0.3); }
  .method-item .method-label { color: #d4d4d8; }
  .method-item.selected { border-color: #6366f1; background: rgba(99,102,241,0.12); }
  .method-item.selected .method-label { color: #a5b4fc; }
}

[data-theme="dark"] {
  /* ── InvoiceTracking.cshtml ── */
  .inv-wrap { background: #0f0f1a; }
  .inv-toolbar input, .inv-toolbar select { border-color: rgba(255,255,255,0.15); background: #1a1a2e; color: #ffffff; font-weight: 600; }
  .inv-stat { background: #1a1a2e; border-color: rgba(255,255,255,0.06); }
  .inv-stat .val { color: #e4e4e7; }
  .inv-stat .lbl { color: #a1a1aa; }
  .inv-list-panel { background: #1a1a2e; border-color: rgba(255,255,255,0.06); }
  .panel-header { background: #16162a; border-bottom-color: rgba(255,255,255,0.06); color: #e4e4e7; }
  .inv-table th { background: #20203e; border-bottom-color: rgba(255,255,255,0.08); }
  .inv-table td { color: #d4d4d8; border-bottom-color: rgba(255,255,255,0.04); }
  .inv-table tr:hover { background: #22223a; }
  .inv-table tr.selected { background: rgba(59,130,246,0.12) !important; }
  .badge-paid { background: rgba(16,185,129,0.15); color: #6ee7b7; }
  .badge-partial { background: rgba(245,158,11,0.15); color: #fcd34d; }
  .badge-pending { background: rgba(239,68,68,0.15); color: #fca5a5; }
  .detail-row .lbl { color: #a1a1aa; }
  .detail-row .val { color: #e4e4e7; }
  .detail-section { color: #a1a1aa; background: #16162a; border-bottom-color: rgba(255,255,255,0.06); }
  .detail-empty { color: #71717a; }
  .btn-delete-selected:disabled { background-color: #3a3a5c; }
  .modal-overlay { background: rgba(0,0,0,0.7); }
  .modal-box { background: #1a1a2e; }
  .modal-header { border-bottom-color: rgba(255,255,255,0.06); color: #e4e4e7; }
  .modal-footer { border-top-color: rgba(255,255,255,0.06); }
  .form-group label { color: #d4d4d8; }
  .form-group input, .form-group select, .form-group textarea { border-color: rgba(255,255,255,0.15); background: #1a1a2e; color: #ffffff; font-weight: 600; }
}

[data-theme="dark"] {
  /* ── ExhibitorList.cshtml ── */
  .exhibitor-list-page { background: #0f0f1a; }
  .list-title { color: #e4e4e7; }
  .search-input { border-color: rgba(255,255,255,0.15); background: #1a1a2e; color: #ffffff; font-weight: 600; }
  .stat-card { background: #1a1a2e; border-color: rgba(255,255,255,0.06); }
  .stat-label { color: #a1a1aa; }
  .table-card { background: #1a1a2e; border-color: rgba(255,255,255,0.06); }
  .table-container::-webkit-scrollbar-track { background: #16162e; }
  .table-container::-webkit-scrollbar-thumb { background: #3a3a5c; }
  .table-container::-webkit-scrollbar-thumb:hover { background: #52527a; }
  .exhibitor-table thead { background: rgba(99,102,241,0.1); }
  .exhibitor-table th { color: #a5b4fc; border-bottom-color: rgba(255,255,255,0.08); }
  .exhibitor-table td { color: #d4d4d8; border-bottom-color: rgba(255,255,255,0.04); }
  .exhibitor-table tbody tr:hover { background: rgba(99,102,241,0.04); }
  .no-data { color: #71717a; }
}

[data-theme="dark"] {
  /* ── Create.cshtml (Exhibitor) ── */
  .create-exhibitor-container { background: #0f0f1a; }
  .add-exhibitor-form { background: #1a1a2e; }
  .form-body { background: #1a1a2e; }
  .form-body::-webkit-scrollbar-track { background: #16162e; }
  .form-body::-webkit-scrollbar-thumb { background: #3a3a5c; }
  .form-body::-webkit-scrollbar-thumb:hover { background: #52527a; }
  .form-section { background: #16162a; border-color: rgba(255,255,255,0.06); }
  .form-section-title { color: #8ab4ff; }
  .form-label { color: #d4d4d8; }
  .form-control, .form-select { border-color: rgba(91,141,238,0.25); background: rgba(30,30,54,0.9); color: #ffffff; font-weight: 600; }
  .form-control:focus, .form-select:focus { border-color: #4169E1; background: rgba(26,26,48,0.95); color: #ffffff; font-weight: 600; }
  .form-footer { background: #16162a; border-top-color: rgba(255,255,255,0.06); }
  .btn-outline-secondary { background: #1a1a2e; color: #a1a1aa; border-color: rgba(255,255,255,0.2); }
  .btn-outline-secondary:hover { background: #22223a; }
  .card { background: #1a1a2e; border-color: rgba(255,255,255,0.06); }
  .card-header { background: #16162a; color: #e4e4e7; }
  .alert-info { background: rgba(91,141,238,0.12); border-color: rgba(91,141,238,0.2); color: #8ab4ff; }
  .alert-info strong { color: #8ab4ff; }
  #exhibitorsList::-webkit-scrollbar-track { background: #16162e; }
  #exhibitorsList::-webkit-scrollbar-thumb { background: #3a3a5c; }
  #exhibitorsList::-webkit-scrollbar-thumb:hover { background: #52527a; }
}

/* ═══════════════════════════════════════════════════════════════
   DARK MODE - Global Text: White & Bold
   ═══════════════════════════════════════════════════════════════ */
[data-theme="dark"] {
  & body { color: #ffffff !important; font-weight: 700 !important; }
  & p, & li, & td, & th, & label, & small, & strong,
  & h1, & h2, & h3, & h4, & h5, & h6,
  .form-label, .form-text, .card-title, .card-header,
  .text-muted, .text-secondary {
    color: #ffffff !important;
    font-weight: 700 !important;
  }
}

[data-theme="dark"] {
  /* ── Dashboard (Home/Index.cshtml) ── */
  .dash-wrap { background: linear-gradient(135deg, #0f0f1a 0%, #16162e 100%) !important; }
  .dash-header h4 { background: linear-gradient(135deg, #e4e4e7, #a1a1aa) !important; -webkit-background-clip: text !important; -webkit-text-fill-color: transparent !important; }
  .stat-card { background: linear-gradient(135deg, #1a1a30, #16162a) !important; box-shadow: 0 2px 12px rgba(0,0,0,0.2) !important; }
  .stat-card:hover { box-shadow: 0 8px 25px rgba(0,0,0,0.4) !important; }
  .stat-num { color: #ffffff !important; }
  .stat-label { color: #a1a1aa !important; }
  .dash-card { background: linear-gradient(135deg, #1a1a30, #16162a) !important; box-shadow: 0 2px 12px rgba(0,0,0,0.2) !important; }
  .card-title { color: #d4d4d8 !important; }
  .quick-link { color: #d4d4d8 !important; }
  .quick-link:hover { background: linear-gradient(135deg, #667eea, #764ba2) !important; color: #fff !important; }
  .ql-sub { color: #71717a !important; }
  .quick-link:hover .ql-sub { color: rgba(255,255,255,0.8) !important; }
  .sum-label { color: #a1a1aa !important; }
  .sum-value { font-weight: 700 !important; }
  .dash-wrap small { color: #71717a !important; font-weight: 400 !important; }
  .dash-card hr { border-color: rgba(255,255,255,0.08) !important; }
  .sum-bar { opacity: 0.8 !important; }
  .ql-icon { filter: brightness(1.2) !important; }
  canvas { filter: brightness(0.9) !important; }
}

[data-theme="dark"] {
  /* ── DailyCollection.cshtml ── */
  .dc-wrap { background: #0f0f1a; }
  .dc-title { color: #e4e4e7; }
  .dc-date { background: #1a1a2e; border-color: rgba(255,255,255,0.1); color: #a1a1aa; }
  .dc-date input[type="date"] { color: #a1a1aa; }
  .dc-stat-card { background: #1a1a2e; border-color: rgba(255,255,255,0.06); }
  .dc-stat-value { color: #e4e4e7; }
  .dc-stat-label { color: #a1a1aa; }
  .dc-card { background: #1a1a2e; border-color: rgba(255,255,255,0.06); }
  .dc-table thead { background: #20203e; }
  .dc-table th { color: #a1a1aa; }
  .dc-table td { color: #d4d4d8; border-bottom-color: rgba(255,255,255,0.04); }
  .dc-table tbody tr:hover { background: #22223a; }
  .dc-exh-name { color: #e4e4e7; }
  .dc-exh-mobile { color: #a1a1aa; }
  .dc-input { border-color: rgba(255,255,255,0.15); background: rgba(30,30,54,0.9); color: #ffffff; font-weight: 600; }
  .dc-no-data { color: #71717a; }
}

[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea,
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select {
  color: #ffffff !important;
}
