/* Shared full-page fleet loader */
.loader-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 11000;
  animation: fleetLoaderFadeIn 0.2s ease-in-out;
}

.loader-overlay.active {
  display: flex;
}

.loader-content {
  text-align: center;
  background: #fff;
  padding: 36px 52px;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.truck-animation {
  font-size: 60px;
  margin-bottom: 16px;
  display: inline-block;
  animation: fleetTruckRightToLeft 1.9s infinite ease-in-out;
}

.truck-icon {
  display: inline-block;
  transform: scaleX(-1);
}

/* Move truck from right to left and flip it so it faces left. */
@keyframes fleetTruckRightToLeft {
  0% {
    transform: translateX(-140px);
    opacity: 0;
  }

  10% {
    opacity: 1;
  }

  50% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(140px);
    opacity: 0;
  }
}
.loader-text {
  font-size: 18px;
  color: #333;
  font-weight: 500;
  letter-spacing: 0.4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

/* Horizontal dots */
.loader-dots {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 28px;
}

.loader-dots > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #990000;
  opacity: 0.3;
  animation: fleetDotsPulse 1.2s infinite ease-in-out;
}

.loader-dots > span:nth-child(2) {
  animation-delay: 0.15s;
}

.loader-dots > span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes fleetDotsPulse {
  0%, 80%, 100% {
    opacity: 0.25;
    transform: translateY(0);
  }

  40% {
    opacity: 1;
    transform: translateY(-1px);
  }
}

@keyframes fleetLoaderFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}
