@keyframes scaleCamion {
  0%,
  100% {
    transform: scale(1.1);
  }
  50% {
    transform: scale(1.05);
  }
}

.animate-scaleCamion {
  animation: scaleCamion 4s ease-in-out infinite;
}

@keyframes pulse-slow {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(247, 167, 32, 0.7);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 0 20px rgba(247, 167, 32, 0);
  }
}

.animate-pulse-slow {
  animation: pulse-slow 2s infinite;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeOut {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.fade-in {
  animation: fadeIn 0.3s ease-out forwards;
}

.fade-out {
  animation: fadeOut 0.3s ease-out forwards;
}

/* Preloader */
#preloader {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #fff;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3; /* Light grey */
  border-top: 5px solid #f59e0b; /* amber-500 */
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #0c4a6e; /* sky-900 */
  border-radius: 2px;
}

::-webkit-scrollbar-thumb:hover {
  background: #f59e0b; /* amber-500 */
}

/* Popup Banner */
#popup-banner {
  transition: opacity 0.5s, transform 0.5s;
}

.popup-success {
  background-color: #10b981; /* green-500 */
}

.popup-error {
  background-color: #ef4444; /* red-500 */
}
