/* Global Spinner - Amana Fund Logo Theme */
#global-spinner-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
}

#global-spinner-overlay.active {
  display: flex;
}

.logo-spinner {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-center {
  width: 120px;
  height: 120px;
  animation: logoPulse 2s ease-in-out infinite;
  z-index: 2;
}

.logo-center img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(139, 195, 74, 0.3));
}

@keyframes logoPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

.spinner-arc {
  position: absolute;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #8BC34A;
  animation: arcSpin 1s linear infinite;
}

.spinner-arc:nth-child(2) {
  width: 85px;
  height: 85px;
  border-top-color: #9CCC65;
  animation-duration: 1.5s;
  animation-direction: reverse;
}

.spinner-arc:nth-child(3) {
  width: 70px;
  height: 70px;
  border-top-color: #AED581;
  animation-duration: 2s;
}

@keyframes arcSpin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.spinner-dots {
  position: absolute;
  width: 110px;
  height: 110px;
}

.spinner-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  background: #8BC34A;
  border-radius: 50%;
  animation: dotPulse 1.5s ease-in-out infinite;
}

.spinner-dot:nth-child(1) {
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 0s;
}

.spinner-dot:nth-child(2) {
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  animation-delay: 0.2s;
}

.spinner-dot:nth-child(3) {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  animation-delay: 0.4s;
}

.spinner-dot:nth-child(4) {
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  animation-delay: 0.6s;
}

@keyframes dotPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.5;
  }
  50% {
    transform: scale(1.5);
    opacity: 1;
  }
}

.spinner-dot:nth-child(1) {
  animation-name: dotPulseTop;
}

@keyframes dotPulseTop {
  0%, 100% {
    transform: translateX(-50%) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translateX(-50%) scale(1.5);
    opacity: 1;
  }
}

.spinner-dot:nth-child(3) {
  animation-name: dotPulseBottom;
}

@keyframes dotPulseBottom {
  0%, 100% {
    transform: translateX(-50%) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translateX(-50%) scale(1.5);
    opacity: 1;
  }
}

.spinner-text {
  font-size: 14px;
  color: #689F38;
  font-weight: 500;
  letter-spacing: 0.5px;
  animation: textFade 1.5s ease-in-out infinite;
}

@keyframes textFade {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}
