/* Loading Indicator Styles */
#loading-indicator {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.7); /* Light overlay */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000; /* Ensure it appears above all other elements */
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.3s ease,
    visibility 0.3s ease;
}

#loading-indicator.visible {
  opacity: 1;
  visibility: visible;
}

.loading-animation {
  text-align: center;
  font-size: 1.5rem;
  color: #5350c4;
  animation: fadeIn 1s ease-in-out infinite;
}

.loading-animation i {
  font-size: 3rem;
  margin-bottom: 1rem;
  animation: fly 2s linear infinite;
}

.loading-animation p {
  font-size: 1.2rem;
  color: #333;
}

/* Airplane flying animation */
@keyframes fly {
  0% {
    transform: translateX(-50px);
  }
  50% {
    transform: translateX(50px);
  }
  100% {
    transform: translateX(-50px);
  }
}

/* Fade-in animation */
@keyframes fadeIn {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}
