/* Spinner Overlay (preloaded, hidden by default) */
.spinner-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.25);
  display: flex; /* changed from none */
  align-items: center;
  justify-content: center;
  z-index: 9999;
    pointer-events: auto;
}

/* Spinner Container */
.spinner-container {
  position: absolute;
  width: 120px;
  height: 144px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 16px;
  background-color: rgba(255, 255, 255, 0); /* #FFFFFF00 */
  opacity: 1;
}

/* Spinner Circle */
.spinner-circle {
  position: relative;
  width: 64px;
  height: 64px;
  border: 4px solid rgba(255, 255, 255, 0); /* transparent base */
  border-top: 4px solid var(--Blue-500, #006AFB); /* visible top edge */
  border-radius: 50%;
  background-color: transparent;
  transform: rotate(-120deg);
  animation: spin 1s linear infinite;
  opacity: 1;
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .spinner-circle {
    animation: none;
  }
}

/* Spinner Text */
.spinner-text {
  width: 650px;
  height: 64px;
  color: #53576A;
  font-family: "Segoe UI", sans-serif;
  font-weight: 600;
  font-size: 24px;
  line-height: 32px;
  text-align: center;
  letter-spacing: 0px;
  padding: 8px 0;
  box-sizing: border-box;
  border-radius: 4px;
  opacity: 1;
}


/* Spinner Animation */
@keyframes spin {
  0% { transform: rotate(-120deg); }
  100% { transform: rotate(240deg); } /* 360 from -120 */
}