/* ==========================================================================
   FLEETMOORE REBRAND DESIGN SYSTEM
   Figma Visual Source of Truth Tokens, Components, and Motion
   ========================================================================== */

:root {
  /* Brand Palette */
  --fm-navy-950: #0B1120;
  --fm-navy-900: #0F172A;
  --fm-navy-850: #131B2E;
  --fm-navy-800: #16203D;
  --fm-navy-700: #1E293B;
  --fm-navy-600: #334155;

  --fm-green-800: #004D34;
  --fm-green-700: #006341;
  --fm-green-600: #007A55;
  --fm-green-500: #059669;
  --fm-green-400: #10B981;
  --fm-green-100: #D1FAE5;
  --fm-green-50:  #ECFDF5;

  --fm-amber-500: #F59E0B;
  --fm-amber-100: #FEF3C7;
  --fm-rose-500:  #EF4444;
  --fm-rose-100:  #FEE2E2;
  --fm-sky-500:   #0284C7;
  --fm-sky-100:   #E0F2FE;

  /* Surfaces & Neutrals */
  --fm-bg-main:    #F8FAFC;
  --fm-bg-card:    #FFFFFF;
  --fm-bg-subtle:  #F1F5F9;
  --fm-border:     #E2E8F0;
  --fm-border-subtle: #F1F5F9;

  --fm-text-title: #0F172A;
  --fm-text-body:  #334155;
  --fm-text-muted: #64748B;
  --fm-text-light: #94A3B8;

  /* Shadows */
  --fm-shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --fm-shadow-sm: 0 2px 4px -1px rgba(15, 23, 42, 0.06), 0 1px 2px -1px rgba(15, 23, 42, 0.04);
  --fm-shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --fm-shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --fm-shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
  --fm-shadow-glow: 0 0 25px rgba(0, 122, 85, 0.15);

  /* Radii */
  --fm-radius-sm: 6px;
  --fm-radius-md: 10px;
  --fm-radius-lg: 16px;
  --fm-radius-xl: 24px;
  --fm-radius-pill: 9999px;

  /* Motion */
  --fm-ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --fm-ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --fm-ease-standard: cubic-bezier(0.4, 0, 0.2, 1);
  --fm-duration-fast: 150ms;
  --fm-duration-normal: 280ms;
  --fm-duration-slow: 450ms;
}

/* ==========================================================================
   Typography & Global Overrides
   ========================================================================== */
body {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--fm-text-body);
  background-color: var(--fm-bg-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.fm-highlight-green {
  color: var(--fm-green-600) !important;
  font-style: italic;
  font-weight: 700;
}

.fm-title-hero {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--fm-navy-900);
}

.fm-title-section {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--fm-navy-900);
}

.fm-subtitle {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--fm-text-muted);
}

.fm-eyebrow {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fm-green-600);
  margin-bottom: 0.5rem;
}

/* ==========================================================================
   Buttons
   ========================================================================== */
.fm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--fm-radius-md);
  border: 1px solid transparent;
  transition: all var(--fm-duration-normal) var(--fm-ease-spring);
  cursor: pointer;
  text-decoration: none !important;
  white-space: nowrap;
}

.fm-btn-primary {
  background-color: var(--fm-navy-800);
  color: #FFFFFF !important;
  box-shadow: var(--fm-shadow-sm);
}
.fm-btn-primary:hover {
  background-color: var(--fm-navy-900);
  transform: translateY(-2px);
  box-shadow: var(--fm-shadow-md);
  color: #FFFFFF !important;
}
.fm-btn-primary:active {
  transform: translateY(0);
}

.btn-outline-dark,
.fm-btn-outline {
  --bs-btn-color: var(--fm-navy-800, #16203D);
  --bs-btn-border-color: var(--fm-navy-800, #16203D);
  --bs-btn-hover-color: var(--fm-navy-800, #16203D);
  --bs-btn-hover-bg: #F8FAFC;
  --bs-btn-hover-border-color: var(--fm-navy-800, #16203D);
  --bs-btn-focus-shadow-rgb: 22, 32, 61;
  --bs-btn-active-color: var(--fm-navy-800, #16203D);
  --bs-btn-active-bg: #F1F5F9;
  --bs-btn-active-border-color: var(--fm-navy-800, #16203D);
  background-color: #FFFFFF !important;
  color: var(--fm-navy-800, #16203D) !important;
  border: 1.5px solid var(--fm-navy-800, #16203D) !important;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.15s ease-in-out;
}

.btn-outline-dark:hover,
.btn-outline-dark:focus,
.btn-outline-dark:active,
.btn-outline-dark.active,
.btn-outline-dark.show,
.btn-outline-dark:first-child:active,
:not(.btn-check) + .btn-outline-dark:active,
.btn-outline-dark[aria-expanded="true"],
.fm-btn-outline:hover,
.fm-btn-outline:focus,
.fm-btn-outline:active,
.fm-btn-outline.active,
.fm-btn-outline.show,
.fm-btn-outline:first-child:active,
.fm-btn-outline[aria-expanded="true"] {
  background-color: #F8FAFC !important;
  color: var(--fm-navy-800, #16203D) !important;
  border-color: var(--fm-navy-800, #16203D) !important;
  box-shadow: 0 2px 6px rgba(22, 32, 61, 0.08) !important;
  transform: translateY(-1px);
}

.fm-btn-outline-green {
  background-color: #FFFFFF;
  color: #007A55 !important;
  border: 1.5px solid #007A55;
  border-radius: var(--fm-radius-md);
  font-weight: 600;
  transition: all var(--fm-duration-fast) var(--fm-ease-standard);
}
.fm-btn-outline-green:hover {
  background-color: #ECFDF5;
  border-color: #006341;
  color: #006341 !important;
  transform: translateY(-1px);
}

.fm-btn-green {
  background-color: var(--fm-green-600);
  color: #FFFFFF !important;
}
.fm-btn-green:hover {
  background-color: var(--fm-green-700);
  box-shadow: var(--fm-shadow-glow);
  transform: translateY(-2px);
}

.fm-btn-white {
  background-color: #FFFFFF;
  color: var(--fm-navy-900) !important;
  font-weight: 700;
}
.fm-btn-white:hover {
  background-color: #F8FAFC;
  transform: translateY(-2px);
  box-shadow: var(--fm-shadow-md);
}

.fm-btn-sm {
  padding: 0.45rem 0.95rem;
  font-size: 0.8125rem;
  border-radius: var(--fm-radius-sm);
}

/* ==========================================================================
   Cards & Elevational Containers
   ========================================================================== */
.fm-card {
  background: var(--fm-bg-card);
  border: 1px solid var(--fm-border);
  border-radius: var(--fm-radius-lg);
  padding: 1.5rem;
  box-shadow: var(--fm-shadow-xs);
  transition: transform var(--fm-duration-normal) var(--fm-ease-spring),
              box-shadow var(--fm-duration-normal) var(--fm-ease-spring),
              border-color var(--fm-duration-normal) var(--fm-ease-spring);
}
.fm-card:hover {
  border-color: #CBD5E1;
  box-shadow: var(--fm-shadow-md);
}

.fm-card-interactive:hover {
  transform: translateY(-3px);
  box-shadow: var(--fm-shadow-lg);
}

/* Priority Card (clean rounded card without side stripe) */
.fm-priority-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFFFFF;
  border: 1px solid var(--fm-border);
  border-radius: var(--fm-radius-md);
  padding: 1.125rem 1.25rem;
  position: relative;
  overflow: hidden;
  transition: all var(--fm-duration-normal) var(--fm-ease-spring);
}
.fm-priority-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--fm-shadow-sm);
}

/* Pill Tabs (Figma: TAB.png) */
.fm-tab-group {
  display: inline-flex;
  gap: 0.5rem;
  padding: 0.25rem;
  background-color: #FFFFFF;
  border: 1px solid var(--fm-border);
  border-radius: var(--fm-radius-md);
}
.fm-tab-pill {
  padding: 0.5rem 1.125rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fm-text-muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--fm-radius-sm);
  cursor: pointer;
  transition: all var(--fm-duration-fast) var(--fm-ease-smooth);
  text-decoration: none;
}
.fm-tab-pill:hover {
  color: var(--fm-navy-900);
  background: var(--fm-bg-subtle);
}
.fm-tab-pill.active {
  background-color: var(--fm-navy-800);
  color: #FFFFFF !important;
  box-shadow: var(--fm-shadow-xs);
}

/* Status Badges */
.fm-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--fm-radius-pill);
  line-height: 1.2;
}
.fm-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.fm-badge-active, .fm-badge-completed, .fm-badge-approved {
  background-color: var(--fm-green-50);
  color: var(--fm-green-600);
  border: 1px solid #A7F3D0;
}
.fm-badge-active .fm-badge-dot { background-color: var(--fm-green-600); }

.fm-badge-scheduled, .fm-badge-progress {
  background-color: var(--fm-sky-100);
  color: var(--fm-sky-500);
  border: 1px solid #BAE6FD;
}
.fm-badge-scheduled .fm-badge-dot { background-color: var(--fm-sky-500); }

.fm-badge-pending, .fm-badge-due {
  background-color: var(--fm-amber-100);
  color: var(--fm-amber-500);
  border: 1px solid #FDE68A;
}
.fm-badge-pending .fm-badge-dot { background-color: var(--fm-amber-500); }

.fm-badge-danger, .fm-badge-delayed, .fm-badge-inactive {
  background-color: var(--fm-rose-100);
  color: var(--fm-rose-500);
  border: 1px solid #FECDD3;
}
.fm-badge-danger .fm-badge-dot { background-color: var(--fm-rose-500); }

/* ==========================================================================
   Public Hero & 3D Interactive Spatial Canvas
   ========================================================================== */
.fm-hero-container {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0 4.5rem 0;
  background: radial-gradient(circle at 80% 20%, rgba(0, 122, 85, 0.05) 0%, transparent 60%);
}

.fm-hero-truck-stage {
  position: relative;
  perspective: 1200px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 380px;
}

.fm-hero-truck-wrap {
  position: relative;
  transition: transform 120ms ease-out;
  transform-style: preserve-3d;
  will-change: transform;
}

.fm-hero-truck-img {
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 25px 25px rgba(15, 23, 42, 0.18));
  display: block;
  position: relative;
  z-index: 2;
}

/* Floating Telematics Destination Cards (HUD) */
.fm-hud-card {
  position: absolute;
  border-radius: 16px;
  box-shadow: var(--fm-shadow-xl);
  font-size: 0.75rem;
  transition: transform var(--fm-duration-normal) var(--fm-ease-spring);
  backdrop-filter: blur(8px);
}

.fm-hud-top {
  top: -95px;
  right: 10%;
  background: #0B1B3D;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 1.15rem 1.35rem;
  width: 340px;
  box-shadow: 0 20px 30px -5px rgba(11, 27, 61, 0.5), 0 8px 10px -6px rgba(11, 27, 61, 0.3);
  z-index: 1;
}
.fm-hud-top .hud-origin-dest {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.fm-hud-top .hud-label {
  font-size: 0.65rem;
  color: #94A3B8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.fm-hud-top .hud-val {
  font-weight: 600;
  color: #FFFFFF;
  white-space: nowrap;
}

.fm-hud-bottom {
  bottom: -35px;
  left: 31%;
  right: auto;
  background-color: #27624C;
  background-image: radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.08) 32%, transparent 33%), radial-gradient(circle at 85% 20%, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.04) 58%, transparent 59%);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 1.25rem 1.4rem;
  width: 320px;
  box-shadow: 0 20px 35px -5px rgba(0, 0, 0, 0.2), 0 8px 15px -3px rgba(39, 98, 76, 0.3);
  z-index: 3;
}
.fm-hud-bottom .hud-status-badge {
  background: rgba(255, 255, 255, 0.14);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: #FFFFFF;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--fm-radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.fm-hud-bottom .hud-title {
  color: #FFFFFF;
  font-weight: 700;
  font-size: 1.15rem;
  margin-top: 0.65rem;
  margin-bottom: 0.35rem;
  letter-spacing: -0.01em;
}
.fm-hud-bottom .hud-subtitle {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.fm-hud-bottom .fm-btn-track {
  background: #FFFFFF;
  color: #00664C !important;
  font-weight: 700;
  font-size: 0.9375rem;
  border: none;
  border-radius: 10px;
  padding: 0.75rem 1.25rem;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  transition: all var(--fm-duration-fast);
}
.fm-hud-bottom .fm-btn-track:hover {
  background: #F8FAFC;
  transform: translateY(-1px);
  box-shadow: 0 6px 10px -1px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   Section 4: Why Fleetmoore Showcase Cards (Figma: HOME PAGE.png)
   ========================================================================== */
.fm-showcase-card {
  background: #FAFCFB;
  border: 1px solid #EAECF0;
  border-radius: 24px;
  padding: 2.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 440px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: transform var(--fm-duration-fast), box-shadow var(--fm-duration-fast);
}

.fm-showcase-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.fm-showcase-content {
  margin-bottom: 2rem;
}

.fm-showcase-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fm-navy-900);
  margin-bottom: 0.65rem;
  letter-spacing: -0.01em;
}

.fm-showcase-desc {
  font-size: 0.95rem;
  color: #64748B;
  line-height: 1.55;
  margin-bottom: 0;
}

.fm-showcase-widget {
  background: #FFFFFF;
  border: 1px solid #EAECF0;
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

/* Hero Social Proof Avatar Pill */
.fm-hero-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 1rem;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  border-radius: var(--fm-radius-pill);
  box-shadow: var(--fm-shadow-xs);
  margin-top: 1.5rem;
  color: #006341;
  font-weight: 600;
}
.fm-hero-badge-pill .avatars {
  display: flex;
  margin-left: -4px;
}
.fm-hero-badge-pill .avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid #FFFFFF;
  margin-left: -6px;
  object-fit: cover;
}
.fm-hero-badge-pill span {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #006341;
}

/* ==========================================================================
   Solutions Forest Green Section (Figma: HOME PAGE.png)
   ========================================================================== */
.fm-forest-section {
  background-color: #00664C;
  color: #FFFFFF;
  padding: 5rem 0;
  position: relative;
}
.fm-forest-section .fm-title-section {
  color: #FFFFFF;
}
.fm-forest-section .fm-eyebrow {
  color: #A7F3D0;
}
.fm-persona-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
}
.fm-persona-col h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #FFFFFF;
}
.fm-persona-col p {
  font-size: 0.9375rem;
  color: #E2E8F0;
  line-height: 1.5;
  margin-bottom: 1.75rem;
}
.fm-btn-persona {
  background-color: #FFFFFF;
  color: #00664C !important;
  font-weight: 700;
  font-size: 0.875rem;
  padding: 0.65rem 1.25rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  text-decoration: none;
  transition: transform var(--fm-duration-fast), box-shadow var(--fm-duration-fast);
}
.fm-btn-persona:hover {
  background-color: #F8FAFC;
  transform: translateY(-2px);
  box-shadow: var(--fm-shadow-md);
}
.fm-persona-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--fm-radius-lg);
  padding: 2rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  backdrop-filter: blur(4px);
  transition: all var(--fm-duration-normal) var(--fm-ease-spring);
}
.fm-persona-card:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-4px);
}
.fm-persona-card h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: #FFFFFF;
}
.fm-persona-card p {
  font-size: 0.9375rem;
  color: #E2E8F0;
  line-height: 1.5;
  margin-bottom: 1.75rem;
}

/* ==========================================================================
   Dark Navy Section: How It Works & Footer (Figma: HOME PAGE.png)
   ========================================================================== */
.fm-navy-section {
  background-color: #1B2856;
  color: #FFFFFF;
  padding: 5rem 0;
}
.fm-navy-section .fm-title-section {
  color: #FFFFFF;
}
.fm-navy-section .fm-eyebrow {
  color: #94A3B8;
}
.fm-step-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 3rem 2.25rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  transition: transform var(--fm-duration-fast) var(--fm-ease-standard), background var(--fm-duration-fast);
}
.fm-step-card:hover {
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-2px);
}
.fm-step-num {
  font-size: 3.75rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 1.5rem;
  background: linear-gradient(180deg, #FFFFFF 15%, rgba(255, 255, 255, 0.28) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
.fm-step-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.85rem;
  line-height: 1.3;
}
.fm-step-desc {
  font-size: 0.9375rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.6;
}

/* Brand Footer */
.fm-footer {
  background-color: #1B2856;
  color: #94A3B8;
  padding: 4rem 0 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.fm-footer-nav {
  display: flex;
  gap: 2rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
.fm-footer-nav a {
  color: #E2E8F0;
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color var(--fm-duration-fast);
}
.fm-footer-nav a:hover {
  color: var(--fm-green-400);
}
.fm-footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8125rem;
}

/* ==========================================================================
   Radial SVG Gauge (Fleet Health Donut: 94% & 96%)
   ========================================================================== */
.fm-health-gauge {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fm-health-gauge svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}
.fm-health-gauge .circle-bg {
  fill: none;
  stroke: #E2E8F0;
  stroke-width: 8;
}
.fm-health-gauge .circle-progress {
  fill: none;
  stroke: var(--fm-navy-800);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 283;
  stroke-dashoffset: 283;
  transition: stroke-dashoffset 1.2s var(--fm-ease-spring);
}
.fm-health-gauge .gauge-value {
  position: absolute;
  text-align: center;
}
.fm-health-gauge .gauge-number {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--fm-navy-900);
  line-height: 1;
}

/* ==========================================================================
   Interactive Live Map Canvas
   ========================================================================== */
.fm-map-container {
  height: 340px;
  width: 100%;
  border-radius: var(--fm-radius-md);
  overflow: hidden;
  border: 1px solid var(--fm-border);
  position: relative;
  z-index: 1;
}
.fm-radar-pin {
  width: 16px;
  height: 16px;
  background-color: var(--fm-green-600);
  border: 2px solid #FFFFFF;
  border-radius: 50%;
  position: relative;
  box-shadow: 0 0 10px rgba(0, 122, 85, 0.5);
}
.fm-radar-pin::after {
  content: '';
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border-radius: 50%;
  border: 2px solid var(--fm-green-600);
  animation: fmRadarPulse 2s infinite ease-out;
}

@keyframes fmRadarPulse {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}

/* ==========================================================================
   Sidebar & Application Shell Styling
   ========================================================================== */
.fm-sidebar {
  background-color: var(--fm-navy-800) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}
.fm-sidebar .sidebar-menu > ul > li > a {
  color: #94A3B8;
  font-weight: 500;
  border-radius: var(--fm-radius-sm);
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all var(--fm-duration-fast);
}
.fm-sidebar .sidebar-menu > ul > li > a:hover {
  color: #FFFFFF;
  background-color: rgba(255, 255, 255, 0.06);
}
.fm-sidebar .sidebar-menu > ul > li.active > a {
  color: #FFFFFF !important;
  background-color: rgba(255, 255, 255, 0.12) !important;
  font-weight: 600;
}
.fm-sidebar .sidebar-menu > ul > li.active > a i,
.fm-sidebar .sidebar-menu > ul > li.active > a img {
  filter: brightness(0) invert(1);
}

/* Topbar Header */
.fm-header {
  background-color: #FFFFFF;
  border-bottom: 1px solid var(--fm-border);
  height: 64px;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
}

/* Accessibility: Respect Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .fm-hero-truck-wrap {
    transform: none !important;
  }
}

/* ==========================================================================
   Universal Sidebar Collapse (Mini-Sidebar) & Responsive Off-Canvas Drawer
   ========================================================================== */

/* ── Desktop Mini-Sidebar (>= 1025px) ── */
@media (min-width: 1025px) {
  body.mini-sidebar .header .header-left {
    width: 72px !important;
    padding: 0 !important;
    justify-content: center !important;
    transition: width var(--fm-duration-normal) var(--fm-ease-smooth), padding var(--fm-duration-normal) var(--fm-ease-smooth);
  }

  body.mini-sidebar .header .header-left .logo {
    justify-content: center !important;
    width: 100% !important;
  }

  body.mini-sidebar .header .header-left .brand-lockup {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    overflow: visible !important;
  }

  body.mini-sidebar .header .header-left .brand-lockup-full {
    display: none !important;
  }

  body.mini-sidebar .header .header-left .brand-lockup-mini {
    display: block !important;
    max-width: 38px !important;
    height: 32px !important;
    width: auto !important;
    object-fit: contain !important;
    margin: 0 auto !important;
  }

  body.mini-sidebar .header .header-left .logo span:not(.brand-lockup) {
    display: none !important;
  }

  /* Expand on Hover when in Mini-Sidebar Mode */
  body.mini-sidebar.expand-menu .header .header-left {
    width: 256px !important;
    padding: 0 20px !important;
    justify-content: flex-start !important;
    transition: width var(--fm-duration-normal) var(--fm-ease-smooth), padding var(--fm-duration-normal) var(--fm-ease-smooth);
  }

  body.mini-sidebar.expand-menu .header .header-left .logo {
    justify-content: flex-start !important;
    width: auto !important;
  }

  body.mini-sidebar.expand-menu .header .header-left .brand-lockup-full,
  body.mini-sidebar.expand-menu .header .header-left .fm-nav-logo {
    display: block !important;
    width: auto !important;
    max-width: 175px !important;
    height: 34px !important;
    object-fit: contain !important;
  }

  body.mini-sidebar.expand-menu .header .header-left .brand-lockup-mini,
  body.mini-sidebar.expand-menu .header .header-left .fm-nav-mark {
    display: none !important;
  }

  body.mini-sidebar.expand-menu .header .header-left .logo span,
  body.mini-sidebar.expand-menu .header .header-left .logo .fm-logo-text {
    display: none !important;
  }

  body.mini-sidebar .sidebar {
    width: 72px !important;
    transition: width var(--fm-duration-normal) var(--fm-ease-smooth), box-shadow var(--fm-duration-normal) var(--fm-ease-smooth) !important;
    z-index: 1040;
  }

  body.mini-sidebar .page-wrapper {
    margin-left: 72px !important;
    transition: margin-left var(--fm-duration-normal) var(--fm-ease-smooth) !important;
  }

  body.mini-sidebar .sidebar .menu-title {
    display: none !important;
    opacity: 0 !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
  }

  body.mini-sidebar .sidebar .sidebar-menu > ul > li {
    margin: 4px 6px !important;
  }

  body.mini-sidebar .sidebar .sidebar-menu > ul > li > a {
    padding: 11px 0 !important;
    margin: 2px 4px !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 0 !important;
    border-radius: var(--fm-radius-sm) !important;
  }

  body.mini-sidebar .sidebar .sidebar-menu > ul > li > a > span:not(.menu-side) {
    display: none !important;
  }

  body.mini-sidebar .sidebar .sidebar-menu > ul > li > a .menu-arrow {
    display: none !important;
  }

  body.mini-sidebar .sidebar .sidebar-menu > ul > li > a .menu-side {
    margin: 0 auto !important;
    width: 24px !important;
    height: 24px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  body.mini-sidebar .sidebar .sidebar-menu > ul > li > a .menu-side i {
    font-size: 17px !important;
  }

  /* Mini-Sidebar Submenu: Pure Mini Flyout and Hover-Expanded Support */
  body.mini-sidebar.expand-menu .sidebar .submenu > a.subdrop + ul,
  body.mini-sidebar.expand-menu .sidebar .submenu.open > ul,
  body.mini-sidebar.expand-menu .sidebar .submenu.active > ul {
    display: block !important;
  }

  body.mini-sidebar:not(.expand-menu) .sidebar,
  body.mini-sidebar:not(.expand-menu) .sidebar .slimScrollDiv,
  body.mini-sidebar:not(.expand-menu) .sidebar .sidebar-inner {
    overflow: visible !important;
  }
  body.mini-sidebar:not(.expand-menu) .sidebar .sidebar-menu > ul > li.submenu {
    position: relative !important;
  }
  body.mini-sidebar:not(.expand-menu) .sidebar .submenu > ul {
    display: none !important;
    position: absolute !important;
    left: 100% !important;
    top: 0 !important;
    width: 220px !important;
    background: #1B2856 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.5) !important;
    padding: 6px 0 !important;
    margin: 0 !important;
    list-style: none !important;
    z-index: 1080 !important;
  }
  body.mini-sidebar:not(.expand-menu) .sidebar .submenu:hover > ul,
  body.mini-sidebar:not(.expand-menu) .sidebar .submenu.flyout-open > ul {
    display: block !important;
  }
  body.mini-sidebar:not(.expand-menu) .sidebar .submenu > ul > li > a {
    display: block !important;
    padding: 9px 16px !important;
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 13px !important;
    white-space: nowrap !important;
    text-align: left !important;
  }
  body.mini-sidebar:not(.expand-menu) .sidebar .submenu > ul > li > a:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    color: #10B981 !important;
  }

  body.mini-sidebar .logout-btn {
    margin: 8px 4px 0 !important;
    padding-top: 8px !important;
  }

  body.mini-sidebar .logout-btn > a {
    padding: 11px 0 !important;
    justify-content: center !important;
    margin: 0 !important;
    gap: 0 !important;
  }

  body.mini-sidebar .logout-btn > a > span:not(.menu-side) {
    display: none !important;
  }

  /* Expand on Hover when in Mini-Sidebar Mode */
  body.mini-sidebar.expand-menu .sidebar {
    width: var(--sidebar-w, 256px) !important;
    box-shadow: 6px 0 28px rgba(11, 17, 32, 0.45) !important;
    z-index: 1060 !important;
  }

  body.mini-sidebar.expand-menu .sidebar .menu-title {
    display: block !important;
    opacity: 1 !important;
    height: auto !important;
    padding: 20px 22px 8px !important;
    margin: 0 !important;
    overflow: visible !important;
  }

  body.mini-sidebar.expand-menu .sidebar .sidebar-menu > ul > li {
    margin: 1px 10px !important;
  }

  body.mini-sidebar.expand-menu .sidebar .sidebar-menu > ul > li > a {
    padding: 10px 12px !important;
    margin: 2px 10px !important;
    justify-content: flex-start !important;
    text-align: left !important;
    gap: 11px !important;
  }

  body.mini-sidebar.expand-menu .sidebar .sidebar-menu > ul > li > a > span:not(.menu-side) {
    display: inline-block !important;
  }

  body.mini-sidebar.expand-menu .sidebar .sidebar-menu > ul > li > a .menu-arrow {
    display: flex !important;
  }

  body.mini-sidebar.expand-menu .sidebar .sidebar-menu > ul > li > a .menu-side {
    margin: 0 !important;
  }

  body.mini-sidebar.expand-menu .logout-btn > a {
    padding: 10px 12px !important;
    justify-content: flex-start !important;
    gap: 11px !important;
  }

  body.mini-sidebar.expand-menu .logout-btn > a > span:not(.menu-side) {
    display: inline-block !important;
  }
}

/* ── Mobile & Tablet Drawer (<= 1024px) ── */
@media (max-width: 1024px) {
  .sidebar {
    position: fixed !important;
    top: var(--header-h, 64px) !important;
    left: 0 !important;
    bottom: 0 !important;
    width: 260px !important;
    max-width: 85vw !important;
    transform: translateX(-100%) !important;
    transition: transform var(--fm-duration-normal) var(--fm-ease-smooth) !important;
    z-index: 1050 !important;
    box-shadow: none !important;
  }

  .sidebar.opened {
    transform: translateX(0) !important;
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.4) !important;
  }

  .sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(2px);
    z-index: 1045;
    display: none;
    opacity: 0;
    transition: opacity var(--fm-duration-normal) ease;
  }

  .sidebar-overlay.opened {
    display: block !important;
    opacity: 1 !important;
  }

  .page-wrapper {
    margin-left: 0 !important;
  }

  #toggle_btn {
    display: none !important;
  }

  #mobile_btn {
    display: flex !important;
  }
}

/* ==========================================================================
   Export Feedback Modals & Toasts
   ========================================================================== */
.export-loading {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(22, 32, 61, 0.95);
  color: #ffffff;
  padding: 18px 28px;
  border-radius: var(--fm-radius-md, 10px);
  z-index: 10050;
  font-size: 14px;
  font-weight: 500;
  backdrop-filter: blur(8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.export-success {
  display: none;
  position: fixed;
  top: 24px;
  right: 24px;
  background: var(--fm-green-600, #007A55);
  color: #ffffff;
  padding: 14px 22px;
  border-radius: var(--fm-radius-md, 10px);
  z-index: 10050;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 20px rgba(0, 122, 85, 0.3);
}

/* ==========================================================================
   FLEETMOORE UNIFIED STATUS BADGES & PILLS
   ========================================================================== */
.fm-pill,
.badge,
.fm-badge {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  padding: 5px 12px !important;
  border-radius: 9999px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  line-height: 1.3 !important;
  text-decoration: none !important;
  box-shadow: none !important;
}

/* 1. Active / Approved / Completed / Success / Verified (Emerald Green) */
.fm-status-active,
.fm-badge-active,
.badge.bg-success,
.badge.bg-success-subtle,
.badge-success,
.status-completed {
  background-color: #D1FAE5 !important;
  color: #065F46 !important;
  border: 1px solid rgba(5, 150, 105, 0.25) !important;
}

/* 2. Inactive / Deactivated / Closed / Draft (Slate Gray) */
.fm-status-inactive,
.fm-badge-inactive,
.badge.bg-secondary,
.badge.bg-secondary-subtle,
.badge-secondary,
.status-closed {
  background-color: #F1F5F9 !important;
  color: #475569 !important;
  border: 1px solid #CBD5E1 !important;
}

/* 3. Pending / In Progress / Under Review / Warning / Awaiting (Amber Orange) */
.fm-status-pending,
.fm-badge-pending,
.badge.bg-warning,
.badge.bg-warning-subtle,
.badge-warning,
.status-in-progress {
  background-color: #FEF3C7 !important;
  color: #92400E !important;
  border: 1px solid rgba(217, 119, 6, 0.3) !important;
}

/* 4. On Duty / Assigned / Active Trip / In Transit / Info (Royal Sky Blue) */
.fm-status-duty,
.fm-status-info,
.fm-badge-duty,
.badge.bg-info,
.badge.bg-info-subtle,
.badge.bg-primary,
.badge.bg-primary-subtle,
.badge-info,
.badge-primary {
  background-color: #DBEAFE !important;
  color: #1E40AF !important;
  border: 1px solid rgba(30, 64, 175, 0.25) !important;
}

/* 5. Danger / Suspended / Terminated / Overdue / Rejected / Open Ticket (Rose Red) */
.fm-status-danger,
.fm-badge-danger,
.badge.bg-danger,
.badge.bg-danger-subtle,
.badge-danger,
.status-open {
  background-color: #FEE2E2 !important;
  color: #991B1B !important;
  border: 1px solid rgba(220, 38, 38, 0.25) !important;
}

/* ==========================================================================
   FLEETMOORE UNIFIED FORM SELECT & DROPDOWN SYSTEM
   ========================================================================== */

/* A. Unified Select Boxes */
select.form-select,
select.form-control,
.form-select,
.custom-select-arrow {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif !important;
  height: 42px !important;
  min-height: 42px !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: #1E293B !important;
  background-color: #FFFFFF !important;
  border: 1px solid #CBD5E1 !important;
  border-radius: 8px !important;
  padding: 8px 36px 8px 14px !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23334155' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 14px 10px !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
  cursor: pointer !important;
  outline: none !important;
}

select.form-select:hover,
select.form-control:hover,
.form-select:hover {
  border-color: #94A3B8 !important;
}

select.form-select:focus,
select.form-control:focus,
.form-select:focus {
  border-color: #16203D !important;
  box-shadow: 0 0 0 3px rgba(22, 32, 61, 0.12) !important;
  background-color: #FFFFFF !important;
  outline: none !important;
}

select.form-select:disabled,
select.form-control:disabled {
  background-color: #F8FAFC !important;
  color: #94A3B8 !important;
  cursor: not-allowed !important;
  border-color: #E2E8F0 !important;
}

/* B. Unified Dropdown Action Menus */
.dropdown-menu {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 10px !important;
  padding: 6px !important;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.06) !important;
  z-index: 1060 !important;
  animation: fmDropdownFade 0.15s ease-out;
}

@keyframes fmDropdownFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* B.1 Table Dropdown Floating Overlay & Zero-Layout-Shift Protections */
.table-responsive {
  overflow-y: visible !important;
}

.fm-table-card,
.table-card {
  position: relative;
  overflow: visible !important;
}

.fm-table-card .table-responsive,
.table-card .table-responsive {
  overflow-y: visible !important;
}

.table-responsive .dropdown-menu,
.fm-table .dropdown-menu {
  z-index: 1070 !important;
}

.dropdown-item {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: #1E293B !important;
  padding: 8px 14px !important;
  border-radius: 6px !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  transition: background-color 0.12s ease, color 0.12s ease !important;
}

.dropdown-item i {
  font-size: 13.5px !important;
  width: 16px !important;
  text-align: center !important;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: #F8FAFC !important;
  color: #0F172A !important;
}

.dropdown-item.active,
.dropdown-item:active {
  background-color: #F1F5F9 !important;
  color: #0F172A !important;
}

.dropdown-item.text-danger:hover {
  background-color: #FEE2E2 !important;
  color: #DC2626 !important;
}

.dropdown-divider {
  border-top: 1px solid #F1F5F9 !important;
  margin: 4px 0 !important;
  opacity: 1 !important;
}

/* ==========================================================================
   FLEETMOORE STANDARDIZED SEARCH BOX (matching Branch Directory)
   ========================================================================== */
.fm-search-wrap,
.bm-search-wrap {
  position: relative !important;
  display: inline-block !important;
  width: 100% !important;
  max-width: 380px !important;
}

.fm-search,
.bm-search {
  width: 100% !important;
  height: 42px !important;
  padding: 0 42px 0 16px !important;
  border: 1.5px solid #CBD5E1 !important;
  border-radius: 10px !important;
  font-family: inherit !important;
  font-size: 13.5px !important;
  color: #1E293B !important;
  background-color: #FFFFFF !important;
  outline: none !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.fm-search-sm {
  height: 38px !important;
  padding: 0 38px 0 14px !important;
  font-size: 13px !important;
  border-radius: 8px !important;
}

.fm-search::placeholder,
.bm-search::placeholder {
  color: #94A3B8 !important;
}

.fm-search:focus,
.bm-search:focus {
  border-color: #00664C !important;
  box-shadow: 0 0 0 3px rgba(0, 102, 76, 0.12) !important;
}

.fm-search-icon,
.bm-search-icon {
  position: absolute !important;
  right: 14px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: #94A3B8 !important;
  font-size: 15px !important;
  pointer-events: none !important;
}

/* ==========================================================================
   CLEAN MODERN BREADCRUMBS
   ========================================================================== */
.breadcrumb {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  padding: 0 !important;
  margin: 0 0 16px 0 !important;
  list-style: none !important;
  gap: 4px !important;
}

.breadcrumb-item {
  display: inline-flex !important;
  align-items: center !important;
  font-size: 13.5px !important;
  color: #64748B !important;
}

.breadcrumb-item a {
  color: #64748B !important;
  text-decoration: none !important;
  transition: color 0.15s ease !important;
}

.breadcrumb-item a:hover {
  color: #00664C !important;
}

.breadcrumb-item.active {
  color: #0F172A !important;
  font-weight: 600 !important;
}

/* Eliminate empty or icon-only breadcrumb items that create double-slashes */
.breadcrumb-item:has(> .feather-chevron-right),
.breadcrumb-item:has(> i.feather-chevron-right),
.breadcrumb-item > .feather-chevron-right {
  display: none !important;
}

/* ==========================================================================
   HIGH-CONTRAST ACCESSIBILITY & TEXT READABILITY ENFORCEMENT
   Guarantees WCAG 2.1 AAA contrast on all dark backgrounds, banners,
   card headers, vehicle cards, and hubs across the platform.
   ========================================================================== */

/* 1. Universal Dark & Colored Containers */
.text-white,
.text-white-all,
.text-white-all *,
.bg-dark,
.bg-navy,
.bg-primary,
.bg-success,
.bg-danger,
.bg-info,
.bg-purple,
.dashboard-header,
.hub-header,
.vehicle-header,
.modal-header.bg-primary,
.modal-header.bg-dark,
.modal-header.bg-navy,
.card-header.bg-primary,
.card-header.bg-dark,
.card-header.bg-navy,
.card-header[class*="bg-gradient"],
[class*="bg-gradient-primary"],
[class*="bg-gradient-dark"],
.stat-card.active,
.stat-card.total {
  color: #FFFFFF !important;
}

/* 2. Headings inside any dark or colored container MUST be crisp white */
.text-white h1, .text-white h2, .text-white h3, .text-white h4, .text-white h5, .text-white h6,
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4, .bg-dark h5, .bg-dark h6,
.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4, .bg-navy h5, .bg-navy h6,
.bg-primary h1, .bg-primary h2, .bg-primary h3, .bg-primary h4, .bg-primary h5, .bg-primary h6,
.dashboard-header h1, .dashboard-header h2, .dashboard-header h3, .dashboard-header h4, .dashboard-header h5, .dashboard-header h6,
.hub-header h1, .hub-header h2, .hub-header h3, .hub-header h4, .hub-header h5, .hub-header h6,
.vehicle-header h1, .vehicle-header h2, .vehicle-header h3, .vehicle-header h4, .vehicle-header h5, .vehicle-header h6,
.modal-header.bg-primary h1, .modal-header.bg-primary h2, .modal-header.bg-primary h3, .modal-header.bg-primary h4, .modal-header.bg-primary h5, .modal-header.bg-primary h6,
.modal-header.bg-dark h1, .modal-header.bg-dark h2, .modal-header.bg-dark h3, .modal-header.bg-dark h4, .modal-header.bg-dark h5, .modal-header.bg-dark h6,
.card-header.bg-primary h1, .card-header.bg-primary h2, .card-header.bg-primary h3, .card-header.bg-primary h4, .card-header.bg-primary h5, .card-header.bg-primary h6,
.card-header.bg-dark h1, .card-header.bg-dark h2, .card-header.bg-dark h3, .card-header.bg-dark h4, .card-header.bg-dark h5, .card-header.bg-dark h6,
.card-header[class*="bg-gradient"] h1, .card-header[class*="bg-gradient"] h2, .card-header[class*="bg-gradient"] h3, .card-header[class*="bg-gradient"] h4, .card-header[class*="bg-gradient"] h5, .card-header[class*="bg-gradient"] h6,
.vehicle-title,
.vehicle-header .vehicle-title,
.vehicle-header .card-title,
.dashboard-header .welcome-title,
.dashboard-header .display-1,
.dashboard-header .display-2,
.dashboard-header .display-3,
.dashboard-header .display-4,
.dashboard-header .display-5,
.dashboard-header .display-6,
.hub-header .display-1,
.hub-header .display-2,
.hub-header .display-3,
.hub-header .display-4,
.hub-header .display-5,
.hub-header .display-6 {
  color: #FFFFFF !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* 3. Subtitles, paragraphs, and leads inside dark containers */
.dashboard-header p,
.dashboard-header .subtitle,
.dashboard-header .lead,
.hub-header p,
.hub-header .lead,
.hub-header .subtitle,
.vehicle-header p,
.vehicle-header small,
.vehicle-header .vehicle-plate {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* 4. Fix .text-muted inside dark containers */
.text-white .text-muted,
.bg-dark .text-muted,
.bg-navy .text-muted,
.bg-primary .text-muted,
.dashboard-header .text-muted,
.hub-header .text-muted,
.vehicle-header .text-muted,
.modal-header.bg-primary .text-muted,
.modal-header.bg-dark .text-muted,
.card-header.bg-primary .text-muted,
.card-header.bg-dark .text-muted {
  color: rgba(255, 255, 255, 0.75) !important;
}

/* 5. Icons inside dark vehicle & dashboard headers */
.vehicle-title i,
.vehicle-header i {
  color: #A7F3D0 !important; /* Crisp light emerald for vehicle icons */
}

.dashboard-header i:not(.stat-card i):not(.dropdown-menu i),
.hub-header i:not(.stats-card i):not(.dropdown-menu i) {
  color: rgba(255, 255, 255, 0.9) !important;
}

/* 6. Explicit Dark Text for White Containers & White Cards */
.bg-white,
.card-header.bg-white,
.card.bg-white,
.report-card,
.stat-card.bg-white {
  color: #334155 !important;
}

.bg-white h1, .bg-white h2, .bg-white h3, .bg-white h4, .bg-white h5, .bg-white h6,
.card-header.bg-white h1, .card-header.bg-white h2, .card-header.bg-white h3, .card-header.bg-white h4, .card-header.bg-white h5, .card-header.bg-white h6,
.card-header.bg-white .card-title,
.report-card .report-title,
.report-card .card-title,
.stat-card.bg-white .stat-value,
.stat-card.bg-white .stat-label {
  color: #0F172A !important;
  text-shadow: none !important;
}



/* ==========================================================================
   Sidebar Icon Cleanup - Strictly single icon per menu item
   ========================================================================== */
.sidebar-menu ul li a .menu-side::before,
.sidebar-menu li a .menu-side::before,
.logout-btn a .menu-side::before {
  display: none !important;
  content: none !important;
}

/* ==========================================================================
   SELECT2 & FORM DROPDOWN DESIGN SYSTEM HARMONIZATION
   Guarantees 46px height, 10px radius, #E2E8F0 border, and vertical baseline alignment
   ========================================================================== */
.select2-container {
  width: 100% !important;
}

.select2-container--default .select2-selection--single {
  height: 46px !important;
  min-height: 46px !important;
  border: 1px solid var(--fm-border, #E2E8F0) !important;
  border-radius: var(--fm-radius-md, 10px) !important;
  background-color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  padding: 0 14px !important;
  box-shadow: none !important;
  outline: none !important;
  transition: border-color var(--fm-duration-fast, 150ms) ease, box-shadow var(--fm-duration-fast, 150ms) ease !important;
}

.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--single,
.select2-container--default .select2-selection--single:focus {
  border-color: var(--fm-green-600, #007A55) !important;
  box-shadow: 0 0 0 3px rgba(0, 122, 85, 0.15) !important;
  outline: none !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
  height: 44px !important;
  line-height: 44px !important;
  font-size: 0.925rem !important;
  color: var(--fm-navy-900, #0F172A) !important;
  padding-left: 0 !important;
  padding-right: 28px !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  flex-grow: 1 !important;
  width: 100% !important;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: var(--fm-text-light, #94A3B8) !important;
  font-size: 0.925rem !important;
  line-height: 44px !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 44px !important;
  right: 12px !important;
  top: 0 !important;
  width: 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: absolute !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: var(--fm-text-muted, #64748B) transparent transparent transparent !important;
  border-style: solid !important;
  border-width: 5px 4px 0 4px !important;
  height: 0 !important;
  width: 0 !important;
  margin-top: 0 !important;
  margin-left: 0 !important;
  position: static !important;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
  border-color: transparent transparent var(--fm-text-muted, #64748B) transparent !important;
  border-width: 0 4px 5px 4px !important;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
  color: var(--fm-text-light, #94A3B8) !important;
  font-size: 1.1rem !important;
  line-height: 44px !important;
  margin-right: 18px !important;
  float: none !important;
  display: inline-block !important;
}

.select2-container--default .select2-selection--single .select2-selection__clear:hover {
  color: var(--fm-rose-500, #EF4444) !important;
}

.select2-dropdown {
  border: 1px solid var(--fm-border, #E2E8F0) !important;
  border-radius: var(--fm-radius-md, 10px) !important;
  box-shadow: var(--fm-shadow-xl, 0 20px 25px -5px rgba(15, 23, 42, 0.1)) !important;
  overflow: hidden !important;
  z-index: 9999 !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  border: 1px solid var(--fm-border, #E2E8F0) !important;
  border-radius: var(--fm-radius-sm, 6px) !important;
  padding: 8px 12px !important;
  font-size: 0.9rem !important;
  outline: none !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field:focus {
  border-color: var(--fm-green-600, #007A55) !important;
  box-shadow: 0 0 0 3px rgba(0, 122, 85, 0.15) !important;
}

.select2-container--default .select2-results__option {
  padding: 8px 14px !important;
  font-size: 0.9rem !important;
  color: var(--fm-navy-900, #0F172A) !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: var(--fm-green-600, #007A55) !important;
  color: #ffffff !important;
}

.select2-container--default .select2-results__option[aria-selected=true] {
  background-color: var(--fm-green-50, #ECFDF5) !important;
  color: var(--fm-green-600, #007A55) !important;
  font-weight: 600 !important;
}

.select2-container--default.select2-container--disabled .select2-selection--single {
  background-color: var(--fm-bg-main, #F8FAFC) !important;
  border-color: var(--fm-border, #E2E8F0) !important;
  color: var(--fm-text-light, #94A3B8) !important;
  cursor: not-allowed !important;
}

/* ==========================================================================
   Fleetmoore Unified Pagination Foundation
   ========================================================================== */

.fm-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #E2E8F0;
  flex-wrap: wrap;
  gap: 12px;
}

.fm-pagination-info {
  font-size: 13.5px;
  font-weight: 500;
  color: #64748B;
}

.fm-pagination {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.fm-page-link,
.fm-page-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border-radius: 8px;
  border: 1px solid #E2E8F0;
  background: #FFFFFF;
  color: #64748B;
  font-size: 13.5px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
}

.fm-page-link:hover,
.fm-page-btn:hover {
  background: #F8FAFC;
  color: #16203D;
  border-color: #CBD5E1;
}

.fm-page-item.active .fm-page-link,
.fm-page-link.active,
.fm-page-btn.active {
  background: #16203D !important;
  border-color: #16203D !important;
  color: #FFFFFF !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 4px rgba(22, 32, 61, 0.15) !important;
}

.fm-page-item.disabled .fm-page-link,
.fm-page-link:disabled,
.fm-page-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  background: #F8FAFC;
  color: #94A3B8;
  border-color: #E2E8F0;
}

/* Eliminate Blue Outline Collision */
.fm-page-link:focus,
.fm-page-btn:focus,
.pagination .page-link:focus {
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(22, 32, 61, 0.12) !important;
  border-color: #16203D !important;
}
