#loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9); /* Darker background for better contrast */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #f1eceb; /* Themed text color */
  font-size: 20px;
  font-weight: bold;
  z-index: 9999;
}

/* Loading Spinner Animation (Matching Theme) */
.loading-spinner {
  width: 50px;
  height: 50px;
  border: 6px solid rgba(241, 236, 235, 0.3); /* Lightened border color to match text */
  border-top-color: #f1eceb; /* Matches text color */
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

#loading-overlay.hidden {
  display: none;
  opacity: 0;
  pointer-events: none;
}

#loading-overlay {
  pointer-events: auto;
}
