/* Loading Spinner CSS */
#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgb(0, 0, 0);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  transition: opacity 0.3s ease-out;
}

#loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-spinner-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.loading-logo {
  width: 120px;
  margin-bottom: 30px;
  animation: pulse 2s infinite ease-in-out;
}

.loading-text {
  font-family: 'Inter', sans-serif;
  font-size: 18px;
  color: #333;
  margin-top: 20px;
  letter-spacing: 1px;
}

.loading-spinner {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 80px;
}

.loading-spinner div {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #3B82F6;
  animation: loading-spinner 1.2s linear infinite;
}

.loading-spinner div:nth-child(1) {
  top: 8px;
  left: 8px;
  animation-delay: 0s;
}

.loading-spinner div:nth-child(2) {
  top: 8px;
  left: 32px;
  animation-delay: -0.4s;
}

.loading-spinner div:nth-child(3) {
  top: 8px;
  left: 56px;
  animation-delay: -0.8s;
}

.loading-spinner div:nth-child(4) {
  top: 32px;
  left: 8px;
  animation-delay: -0.4s;
}

.loading-spinner div:nth-child(5) {
  top: 32px;
  left: 32px;
  animation-delay: -0.8s;
}

.loading-spinner div:nth-child(6) {
  top: 32px;
  left: 56px;
  animation-delay: -1.2s;
}

.loading-spinner div:nth-child(7) {
  top: 56px;
  left: 8px;
  animation-delay: -0.8s;
}

.loading-spinner div:nth-child(8) {
  top: 56px;
  left: 32px;
  animation-delay: -1.2s;
}

.loading-spinner div:nth-child(9) {
  top: 56px;
  left: 56px;
  animation-delay: -1.6s;
}

@keyframes loading-spinner {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Progress bar for additional visual feedback */
.loading-progress {
  width: 200px;
  height: 4px;
  background-color: #e0e0e0;
  border-radius: 2px;
  margin-top: 20px;
  overflow: hidden;
  position: relative;
}

.loading-progress-bar {
  height: 100%;
  width: 0%;
  background-color: #3B82F6;
  position: absolute;
  top: 0;
  left: 0;
  transition: width 0.3s ease-out;
  animation: loading-progress-animation 2.5s infinite ease-in-out;
}

@keyframes loading-progress-animation {
  0% {
    width: 0%;
  }

  50% {
    width: 70%;
  }

  100% {
    width: 100%;
  }
}