/* ============================================
   GBE LOGISTICS - THEME SWITCH & DARK MODE
   ============================================ */

/* From Uiverse.io by Galahhad - SMALLER SIZE */ 
.theme-switch {
  --toggle-size: 8px;
  --container-width: 5.625em;
  --container-height: 2.5em;
  --container-radius: 6.25em;
  --container-light-bg: #3D7EAE;
  --container-night-bg: #1D1F2C;
  --circle-container-diameter: 3.375em;
  --sun-moon-diameter: 2.125em;
  --sun-bg: #ECCA2F;
  --moon-bg: #C4C9D1;
  --spot-color: #959DB1;
  --circle-container-offset: calc((var(--circle-container-diameter) - var(--container-height)) / 2 * -1);
  --stars-color: #fff;
  --clouds-color: #F3FDFF;
  --back-clouds-color: #AACADF;
  --transition: .5s cubic-bezier(0, -0.02, 0.4, 1.25);
  --circle-transition: .3s cubic-bezier(0, -0.02, 0.35, 1.17);
}

.theme-switch, .theme-switch *, .theme-switch *::before, .theme-switch *::after {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-size: var(--toggle-size);
}

.theme-switch__container {
  width: var(--container-width);
  height: var(--container-height);
  background-color: var(--container-light-bg);
  border-radius: var(--container-radius);
  overflow: hidden;
  cursor: pointer;
  -webkit-box-shadow: 0em -0.062em 0.062em rgba(0, 0, 0, 0.25), 0em 0.062em 0.125em rgba(255, 255, 255, 0.94);
  box-shadow: 0em -0.062em 0.062em rgba(0, 0, 0, 0.25), 0em 0.062em 0.125em rgba(255, 255, 255, 0.94);
  -webkit-transition: var(--transition);
  -o-transition: var(--transition);
  transition: var(--transition);
  position: relative;
}

.theme-switch__container::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  -webkit-box-shadow: 0em 0.05em 0.187em rgba(0, 0, 0, 0.25) inset, 0em 0.05em 0.187em rgba(0, 0, 0, 0.25) inset;
  box-shadow: 0em 0.05em 0.187em rgba(0, 0, 0, 0.25) inset, 0em 0.05em 0.187em rgba(0, 0, 0, 0.25) inset;
  border-radius: var(--container-radius)
}

.theme-switch__checkbox {
  display: none;
}

.theme-switch__circle-container {
  width: var(--circle-container-diameter);
  height: var(--circle-container-diameter);
  background-color: rgba(255, 255, 255, 0.1);
  position: absolute;
  left: var(--circle-container-offset);
  top: var(--circle-container-offset);
  border-radius: var(--container-radius);
  -webkit-box-shadow: inset 0 0 0 3.375em rgba(255, 255, 255, 0.1), inset 0 0 0 3.375em rgba(255, 255, 255, 0.1), 0 0 0 0.625em rgba(255, 255, 255, 0.1), 0 0 0 1.25em rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 0 0 3.375em rgba(255, 255, 255, 0.1), inset 0 0 0 3.375em rgba(255, 255, 255, 0.1), 0 0 0 0.625em rgba(255, 255, 255, 0.1), 0 0 0 1.25em rgba(255, 255, 255, 0.1);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-transition: var(--circle-transition);
  -o-transition: var(--circle-transition);
  transition: var(--circle-transition);
  pointer-events: none;
}

.theme-switch__sun-moon-container {
  pointer-events: auto;
  position: relative;
  z-index: 2;
  width: var(--sun-moon-diameter);
  height: var(--sun-moon-diameter);
  margin: auto;
  border-radius: var(--container-radius);
  background-color: var(--sun-bg);
  -webkit-box-shadow: 0.062em 0.062em 0.062em 0em rgba(254, 255, 239, 0.61) inset, 0em -0.062em 0.062em 0em #a1872a inset;
  box-shadow: 0.062em 0.062em 0.062em 0em rgba(254, 255, 239, 0.61) inset, 0em -0.062em 0.062em 0em #a1872a inset;
  -webkit-filter: drop-shadow(0.062em 0.125em 0.125em rgba(0, 0, 0, 0.25)) drop-shadow(0em 0.062em 0.125em rgba(0, 0, 0, 0.25));
  filter: drop-shadow(0.062em 0.125em 0.125em rgba(0, 0, 0, 0.25)) drop-shadow(0em 0.062em 0.125em rgba(0, 0, 0, 0.25));
  overflow: hidden;
  -webkit-transition: var(--transition);
  -o-transition: var(--transition);
  transition: var(--transition);
}

.theme-switch__moon {
  -webkit-transform: translateX(100%);
  -ms-transform: translateX(100%);
  transform: translateX(100%);
  width: 100%;
  height: 100%;
  background-color: var(--moon-bg);
  border-radius: inherit;
  -webkit-box-shadow: 0.062em 0.062em 0.062em 0em rgba(254, 255, 239, 0.61) inset, 0em -0.062em 0.062em 0em #969696 inset;
  box-shadow: 0.062em 0.062em 0.062em 0em rgba(254, 255, 239, 0.61) inset, 0em -0.062em 0.062em 0em #969696 inset;
  -webkit-transition: var(--transition);
  -o-transition: var(--transition);
  transition: var(--transition);
  position: relative;
}

.theme-switch__spot {
  position: absolute;
  top: 0.75em;
  left: 0.312em;
  width: 0.75em;
  height: 0.75em;
  border-radius: var(--container-radius);
  background-color: var(--spot-color);
  -webkit-box-shadow: 0em 0.0312em 0.062em rgba(0, 0, 0, 0.25) inset;
  box-shadow: 0em 0.0312em 0.062em rgba(0, 0, 0, 0.25) inset;
}

.theme-switch__spot:nth-of-type(2) {
  width: 0.375em;
  height: 0.375em;
  top: 0.937em;
  left: 1.375em;
}

.theme-switch__spot:nth-last-of-type(3) {
  width: 0.25em;
  height: 0.25em;
  top: 0.312em;
  left: 0.812em;
}

.theme-switch__clouds {
  width: 1.25em;
  height: 1.25em;
  background-color: var(--clouds-color);
  border-radius: var(--container-radius);
  position: absolute;
  bottom: -0.625em;
  left: 0.312em;
  -webkit-box-shadow: 0.937em 0.312em var(--clouds-color), -0.312em -0.312em var(--back-clouds-color), 1.437em 0.375em var(--clouds-color), 0.5em -0.125em var(--back-clouds-color), 2.187em 0 var(--clouds-color), 1.25em -0.062em var(--back-clouds-color), 2.937em 0.312em var(--clouds-color), 2em -0.312em var(--back-clouds-color), 3.625em -0.062em var(--clouds-color), 2.625em 0em var(--back-clouds-color), 4.5em -0.312em var(--clouds-color), 3.375em -0.437em var(--back-clouds-color), 4.625em -1.75em 0 0.437em var(--clouds-color), 4em -0.625em var(--back-clouds-color), 4.125em -2.125em 0 0.437em var(--back-clouds-color);
  box-shadow: 0.937em 0.312em var(--clouds-color), -0.312em -0.312em var(--back-clouds-color), 1.437em 0.375em var(--clouds-color), 0.5em -0.125em var(--back-clouds-color), 2.187em 0 var(--clouds-color), 1.25em -0.062em var(--back-clouds-color), 2.937em 0.312em var(--clouds-color), 2em -0.312em var(--back-clouds-color), 3.625em -0.062em var(--clouds-color), 2.625em 0em var(--back-clouds-color), 4.5em -0.312em var(--clouds-color), 3.375em -0.437em var(--back-clouds-color), 4.625em -1.75em 0 0.437em var(--clouds-color), 4em -0.625em var(--back-clouds-color), 4.125em -2.125em 0 0.437em var(--back-clouds-color);
  -webkit-transition: 0.5s cubic-bezier(0, -0.02, 0.4, 1.25);
  -o-transition: 0.5s cubic-bezier(0, -0.02, 0.4, 1.25);
  transition: 0.5s cubic-bezier(0, -0.02, 0.4, 1.25);
}

.theme-switch__stars-container {
  position: absolute;
  color: var(--stars-color);
  top: -100%;
  left: 0.312em;
  width: 2.75em;
  height: auto;
  -webkit-transition: var(--transition);
  -o-transition: var(--transition);
  transition: var(--transition);
}

/* actions */

.theme-switch__checkbox:checked + .theme-switch__container {
  background-color: var(--container-night-bg);
}

.theme-switch__checkbox:checked + .theme-switch__container .theme-switch__circle-container {
  left: calc(100% - var(--circle-container-offset) - var(--circle-container-diameter));
}

.theme-switch__checkbox:checked + .theme-switch__container .theme-switch__circle-container:hover {
  left: calc(100% - var(--circle-container-offset) - var(--circle-container-diameter) - 0.187em)
}

.theme-switch__circle-container:hover {
  left: calc(var(--circle-container-offset) + 0.187em);
}

.theme-switch__checkbox:checked + .theme-switch__container .theme-switch__moon {
  -webkit-transform: translate(0);
  -ms-transform: translate(0);
  transform: translate(0);
}

.theme-switch__checkbox:checked + .theme-switch__container .theme-switch__clouds {
  bottom: -4.062em;
}

.theme-switch__checkbox:checked + .theme-switch__container .theme-switch__stars-container {
  top: 50%;
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
}

/* ============================================
   LIGHT MODE DEFAULTS - FIX VISIBILITY
   ============================================ */

:root {
  /* Light mode text colors */
  --text-color-light: #1a202c;
  --text-color-secondary-light: #4a5568;
  --text-color-muted-light: #718096;
  --bg-color-light: #ffffff;
  --bg-color-secondary-light: #f7fafc;
  --bg-color-tertiary-light: #edf2f7;
  --border-color-light: #e2e8f0;
}

/* Ensure light mode has proper dark text */
body:not([data-theme="dark"]) .stat-value,
body:not([data-theme="dark"]) .stat-card h2,
body:not([data-theme="dark"]) .stat-card h3,
body:not([data-theme="dark"]) .stat-card .value,
html:not([data-theme="dark"]) .stat-value,
html:not([data-theme="dark"]) .stat-card h2,
html:not([data-theme="dark"]) .stat-card h3 {
  color: #1a202c !important;
}

body:not([data-theme="dark"]) .stat-label,
body:not([data-theme="dark"]) .stat-card p,
html:not([data-theme="dark"]) .stat-label,
html:not([data-theme="dark"]) .stat-card p {
  color: #4a5568 !important;
}

/* ============================================
   DARK MODE STYLES - COMPLETE WEBSITE
   ============================================ */

[data-theme="dark"] {
  /* Background Colors */
  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --bg-card: #1e293b;
  --bg-hover: #334155;
  
  /* Text Colors */
  --text-primary: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-color: #f1f5f9;
  --text-color-secondary: #cbd5e1;
  --text-color-muted: #94a3b8;
  
  /* Border Colors */
  --border-color: #334155;
  --border-light: #475569;
  
  /* Override existing variables */
  --gray-50: #0f172a;
  --gray-100: #1e293b;
  --gray-200: #334155;
  --gray-300: #475569;
  --gray-400: #64748b;
  --gray-500: #94a3b8;
  --gray-600: #cbd5e1;
  --gray-700: #e2e8f0;
  --gray-800: #f1f5f9;
  --gray-900: #f8fafc;
  
  /* Component specific */
  --input-bg: #1e293b;
  --input-border: #334155;
  --dropdown-bg: #1e293b;
  --modal-bg: #1e293b;
  --table-stripe: #1e293b;
  --scrollbar-bg: #334155;
  --scrollbar-thumb: #475569;
  --card-bg: #1e293b;
  --bg-color: #0f172a;
  --bg-color-secondary: #1e293b;
  --bg-color-tertiary: #334155;
}

/* ============================================
   DARK MODE - GLOBAL STYLES
   ============================================ */

[data-theme="dark"],
[data-theme="dark"] body {
  background-color: #0f172a !important;
  color: #f1f5f9 !important;
}

/* Dark Mode - All Text Elements */
[data-theme="dark"] h1,
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] h5,
[data-theme="dark"] h6 {
  color: #f1f5f9 !important;
}

[data-theme="dark"] p,
[data-theme="dark"] span:not(.theme-switch span),
[data-theme="dark"] div:not(.theme-switch div),
[data-theme="dark"] label {
  color: #f1f5f9;
}

/* Dark Mode - Secondary Text */
[data-theme="dark"] .text-secondary,
[data-theme="dark"] .text-muted,
[data-theme="dark"] small,
[data-theme="dark"] .subtitle,
[data-theme="dark"] .description {
  color: #94a3b8 !important;
}

/* ============================================
   DARK MODE - PORTAL SPECIFIC
   ============================================ */

[data-theme="dark"] .main-content {
  background: #0f172a !important;
}

[data-theme="dark"] .topbar {
  background: #1e293b !important;
  border-bottom-color: #334155 !important;
}

[data-theme="dark"] .search-box {
  background: #334155 !important;
  border: 1px solid #475569 !important;
}

[data-theme="dark"] .search-box input {
  color: #f1f5f9 !important;
  background: transparent !important;
}

[data-theme="dark"] .search-box input::placeholder {
  color: #64748b !important;
}

[data-theme="dark"] .search-box svg {
  color: #64748b !important;
}

[data-theme="dark"] .lang-switch {
  background: #334155 !important;
  color: #f1f5f9 !important;
  border: 1px solid #475569 !important;
}

[data-theme="dark"] .lang-switch:hover {
  background: #475569 !important;
}

[data-theme="dark"] .notification-btn svg {
  color: #94a3b8 !important;
}

[data-theme="dark"] .notification-btn:hover {
  background: #334155 !important;
  border-radius: 8px;
}

[data-theme="dark"] .user-dropdown:hover {
  background: #334155 !important;
}

[data-theme="dark"] .user-name {
  color: #f1f5f9 !important;
}

[data-theme="dark"] .user-role {
  color: #94a3b8 !important;
}

[data-theme="dark"] .page-title {
  color: #f1f5f9 !important;
}

[data-theme="dark"] .page-subtitle {
  color: #94a3b8 !important;
}

/* Dark Mode - Cards & Stat Cards */
[data-theme="dark"] .stat-card,
[data-theme="dark"] .dashboard-card,
[data-theme="dark"] .card {
  background: #1e293b !important;
  border-color: #334155 !important;
}

[data-theme="dark"] .card-header {
  border-bottom-color: #334155 !important;
  background: transparent !important;
}

[data-theme="dark"] .card-title {
  color: #f1f5f9 !important;
}

[data-theme="dark"] .card-body {
  background: transparent !important;
}

/* Dark Mode - Stat Values */
[data-theme="dark"] .stat-value,
[data-theme="dark"] .stat-card h2,
[data-theme="dark"] .stat-card h3,
[data-theme="dark"] .stat-card .value {
  color: #f1f5f9 !important;
}

[data-theme="dark"] .stat-label,
[data-theme="dark"] .stat-card p {
  color: #94a3b8 !important;
}

/* Dark Mode - Stat Icons */
[data-theme="dark"] .stat-icon.blue {
  background: rgba(59, 130, 246, 0.2) !important;
  color: #60a5fa !important;
}

[data-theme="dark"] .stat-icon.yellow {
  background: rgba(251, 191, 36, 0.2) !important;
  color: #fbbf24 !important;
}

[data-theme="dark"] .stat-icon.green {
  background: rgba(34, 197, 94, 0.2) !important;
  color: #22c55e !important;
}

[data-theme="dark"] .stat-icon.red {
  background: rgba(239, 68, 68, 0.2) !important;
  color: #ef4444 !important;
}

/* Dark Mode - Quick Actions */
[data-theme="dark"] .quick-action {
  background: #334155 !important;
  border: 2px solid transparent !important;
}

[data-theme="dark"] .quick-action:hover {
  background: #1e293b !important;
  border-color: #0047BA !important;
}

[data-theme="dark"] .quick-action-icon {
  background: rgba(59, 130, 246, 0.2) !important;
  color: #60a5fa !important;
}

[data-theme="dark"] .quick-action-label {
  color: #f1f5f9 !important;
}

/* Dark Mode - Sidebar */
[data-theme="dark"] .sidebar {
  background: linear-gradient(180deg, #0c1929 0%, #000a1a 100%) !important;
}

/* Dark Mode - Buttons */
[data-theme="dark"] .btn-ghost {
  color: #94a3b8 !important;
}

[data-theme="dark"] .btn-ghost:hover {
  background: #334155 !important;
  color: #f1f5f9 !important;
}

[data-theme="dark"] .btn-secondary {
  background: #334155 !important;
  color: #f1f5f9 !important;
  border-color: #475569 !important;
}

[data-theme="dark"] .btn-secondary:hover {
  background: #475569 !important;
}

/* Dark Mode - Forms */
[data-theme="dark"] input:not(.theme-switch__checkbox),
[data-theme="dark"] select,
[data-theme="dark"] textarea {
  background: #1e293b !important;
  border-color: #334155 !important;
  color: #f1f5f9 !important;
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
  color: #64748b !important;
}

[data-theme="dark"] input:focus,
[data-theme="dark"] select:focus,
[data-theme="dark"] textarea:focus {
  border-color: #0047BA !important;
  box-shadow: 0 0 0 3px rgba(0, 71, 186, 0.2) !important;
}

/* Dark Mode - Tables */
[data-theme="dark"] table {
  background: #1e293b !important;
}

[data-theme="dark"] th {
  background: #334155 !important;
  color: #f1f5f9 !important;
  border-color: #475569 !important;
}

[data-theme="dark"] td {
  color: #f1f5f9 !important;
  border-color: #334155 !important;
}

[data-theme="dark"] tr:nth-child(even) {
  background: rgba(51, 65, 85, 0.5) !important;
}

[data-theme="dark"] tr:hover {
  background: #334155 !important;
}

/* Dark Mode - Modals */
[data-theme="dark"] .modal-content,
[data-theme="dark"] .modal {
  background: #1e293b !important;
  border-color: #334155 !important;
}

[data-theme="dark"] .modal-header,
[data-theme="dark"] .modal-footer {
  border-color: #334155 !important;
}

[data-theme="dark"] .modal-title {
  color: #f1f5f9 !important;
}

/* Dark Mode - Dropdowns */
[data-theme="dark"] .dropdown-menu {
  background: #1e293b !important;
  border-color: #334155 !important;
}

[data-theme="dark"] .dropdown-item {
  color: #f1f5f9 !important;
}

[data-theme="dark"] .dropdown-item:hover {
  background: #334155 !important;
}

/* Dark Mode - Scrollbar */
[data-theme="dark"] ::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

[data-theme="dark"] ::-webkit-scrollbar-track {
  background: #334155;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: #475569;
  border-radius: 4px;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* Dark Mode - Links */
[data-theme="dark"] a:not(.btn):not(.nav-item):not(.quick-action):not(.nav-link):not(.service-link) {
  color: #60a5fa;
}

[data-theme="dark"] a:not(.btn):not(.nav-item):not(.quick-action):not(.nav-link):not(.service-link):hover {
  color: #93c5fd;
}

/* Dark Mode - Code blocks */
[data-theme="dark"] code,
[data-theme="dark"] pre {
  background: #334155 !important;
  color: #e2e8f0 !important;
}

/* Dark Mode - Horizontal Rules */
[data-theme="dark"] hr {
  border-color: #334155 !important;
}

/* Dark Mode - Alerts */
[data-theme="dark"] .alert {
  border-color: #334155 !important;
}

[data-theme="dark"] .alert-info {
  background: rgba(59, 130, 246, 0.1) !important;
  color: #60a5fa !important;
}

[data-theme="dark"] .alert-success {
  background: rgba(34, 197, 94, 0.1) !important;
  color: #22c55e !important;
}

[data-theme="dark"] .alert-warning {
  background: rgba(251, 191, 36, 0.1) !important;
  color: #fbbf24 !important;
}

[data-theme="dark"] .alert-error,
[data-theme="dark"] .alert-danger {
  background: rgba(239, 68, 68, 0.1) !important;
  color: #ef4444 !important;
}

/* ============================================
   DARK MODE - PUBLIC WEBSITE SPECIFIC
   ============================================ */

/* Dark Mode - Public Header/Navigation */
[data-theme="dark"] header,
[data-theme="dark"] .header,
[data-theme="dark"] .navbar {
  background: #1e293b !important;
  border-color: #334155 !important;
}

[data-theme="dark"] .header.scrolled {
  background: rgba(30, 41, 59, 0.95) !important;
  backdrop-filter: blur(10px);
}

[data-theme="dark"] .nav-link {
  color: #f1f5f9 !important;
}

[data-theme="dark"] .nav-link:hover,
[data-theme="dark"] .nav-link.active {
  color: #FFD200 !important;
}

/* Dark Mode - Public Footer */
[data-theme="dark"] footer,
[data-theme="dark"] .footer {
  background: #0a0f1a !important;
  color: #f1f5f9 !important;
  border-color: #334155 !important;
}

[data-theme="dark"] .footer-title {
  color: #f1f5f9 !important;
}

[data-theme="dark"] .footer-links a {
  color: #94a3b8 !important;
}

[data-theme="dark"] .footer-links a:hover {
  color: #FFD200 !important;
}

[data-theme="dark"] .footer-bottom {
  border-color: #334155 !important;
  color: #94a3b8 !important;
}

/* Dark Mode - Public Hero Section */
[data-theme="dark"] .hero {
  background: linear-gradient(135deg, #0047BA 0%, #002a6e 100%) !important;
}

/* Dark Mode - Public Sections */
[data-theme="dark"] section {
  background: #0f172a !important;
}

[data-theme="dark"] section.bg-gray,
[data-theme="dark"] .bg-gray {
  background: #1e293b !important;
}

[data-theme="dark"] section.bg-white,
[data-theme="dark"] .bg-white:not(.btn):not(.badge) {
  background: #0f172a !important;
}

/* Dark Mode - Section Headers */
[data-theme="dark"] .section-tag {
  color: #60a5fa !important;
}

[data-theme="dark"] .section-subtitle {
  color: #94a3b8 !important;
}

/* Dark Mode - Public Cards */
[data-theme="dark"] .service-card,
[data-theme="dark"] .service-card-animated,
[data-theme="dark"] .service-card-inner,
[data-theme="dark"] .feature-card,
[data-theme="dark"] .testimonial-card,
[data-theme="dark"] .fleet-card,
[data-theme="dark"] .fleet-card-inner {
  background: #1e293b !important;
  border-color: #334155 !important;
}

[data-theme="dark"] .service-card h4,
[data-theme="dark"] .service-card-inner h4,
[data-theme="dark"] .fleet-card h5,
[data-theme="dark"] .fleet-card-inner h5 {
  color: #f1f5f9 !important;
}

[data-theme="dark"] .service-card p,
[data-theme="dark"] .service-card-inner p,
[data-theme="dark"] .fleet-card p,
[data-theme="dark"] .fleet-card-inner p {
  color: #94a3b8 !important;
}

[data-theme="dark"] .service-link {
  color: #60a5fa !important;
}

[data-theme="dark"] .service-link:hover {
  color: #FFD200 !important;
}

/* Dark Mode - Feature Items */
[data-theme="dark"] .feature-item {
  background: #1e293b !important;
  border-color: #334155 !important;
}

[data-theme="dark"] .feature-content h5 {
  color: #f1f5f9 !important;
}

[data-theme="dark"] .feature-content p {
  color: #94a3b8 !important;
}

[data-theme="dark"] .feature-number {
  color: rgba(255, 255, 255, 0.1) !important;
}

/* Dark Mode - CTA Card */
[data-theme="dark"] .cta-card {
  background: linear-gradient(135deg, #0047BA 0%, #002a6e 100%) !important;
}

/* Dark Mode - Public Track Form */
[data-theme="dark"] .track-form,
[data-theme="dark"] .tracking-form {
  background: #1e293b !important;
  border-color: #334155 !important;
}

/* Dark Mode - Public Stats */
[data-theme="dark"] .stats-section {
  background: #1e293b !important;
}

[data-theme="dark"] .stat-item {
  background: transparent !important;
}

[data-theme="dark"] .stat-number,
[data-theme="dark"] .stat-item .counter {
  color: #f1f5f9 !important;
}

[data-theme="dark"] .stat-label,
[data-theme="dark"] .stat-item .stat-label {
  color: #94a3b8 !important;
}

[data-theme="dark"] .stat-icon {
  color: #0047BA !important;
}

/* Dark Mode - Fleet Section */
[data-theme="dark"] .fleet-count {
  color: #0047BA !important;
}

/* Dark Mode - CTA Section */
[data-theme="dark"] .cta-section {
  background: linear-gradient(135deg, #0047BA 0%, #002a6e 100%) !important;
}

/* Dark Mode - Trust Badges */
[data-theme="dark"] .trust-badge {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* Dark Mode - Page Hero (inner pages) */
[data-theme="dark"] .page-hero {
  background: linear-gradient(135deg, #0047BA 0%, #002a6e 100%) !important;
}

/* Dark Mode - Contact Info */
[data-theme="dark"] .contact-info-card {
  background: #1e293b !important;
  border-color: #334155 !important;
}

/* Dark Mode - Preloader */
[data-theme="dark"] .preloader {
  background: #0f172a !important;
}

/* ============================================
   SMOOTH TRANSITIONS
   ============================================ */

body,
.main-content,
.topbar,
.search-box,
.lang-switch,
.user-dropdown,
.stat-card,
.dashboard-card,
.card,
.card-header,
.card-body,
.quick-action,
input,
select,
textarea,
table,
th,
td,
.modal-content,
.dropdown-menu,
header,
footer,
section,
nav,
.sidebar,
.service-card,
.service-card-animated,
.fleet-card,
.feature-item,
h1, h2, h3, h4, h5, h6, p, span, div {
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* ============================================
   PORTAL-SPECIFIC INLINE STYLE OVERRIDES
   ============================================ */

[data-theme="dark"] [style*="background: var(--gray-50)"] {
  background: #334155 !important;
}

[data-theme="dark"] [style*="color: var(--gray-500)"] {
  color: #94a3b8 !important;
}

[data-theme="dark"] [style*="color: var(--gray-700)"] {
  color: #e2e8f0 !important;
}

/* Fix for stat card mini */
[data-theme="dark"] .stat-card-mini {
  background: #1e293b !important;
  border-color: #334155 !important;
}

[data-theme="dark"] .stat-card-mini-value {
  color: #f1f5f9 !important;
}

[data-theme="dark"] .stat-card-mini-label {
  color: #94a3b8 !important;
}

/* Fix for page content area */
[data-theme="dark"] .page-content,
[data-theme="dark"] .content-area {
  background: transparent !important;
}

/* Theme toggle wrapper for public site header */
.theme-toggle-wrapper {
  display: flex;
  align-items: center;
  margin-right: 12px;
}
