/* Loading spinner and dots animations */

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(0, 212, 255, 0.2);
  border-top-color: #00d4ff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-dots {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
}

.loading-dots::after {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: currentColor;
  animation: blink 1.4s infinite;
}

.loading-dots::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: currentColor;
  animation: blink 1.4s infinite 0.2s;
}

.loading-dots {
  position: relative;
}

.loading-dots::after {
  position: absolute;
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: currentColor;
  left: 0;
  animation: blink 1.4s infinite;
}

.loading-dots::before {
  position: absolute;
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: currentColor;
  left: 12px;
  animation: blink 1.4s infinite 0.2s;
}

@keyframes blink {
  0%, 60%, 100% {
    opacity: 0.3;
  }
  30% {
    opacity: 1;
  }
}

/* Alternative loading dots using box-shadow */
.loading-dots {
  display: inline-block;
  position: relative;
  width: 80px;
  height: 20px;
}

.loading-dots::after {
  content: '';
  position: absolute;
  left: 8px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 16px 0 0 currentColor, 32px 0 0 currentColor;
  animation: loading-dots 1.4s infinite;
}

@keyframes loading-dots {
  0% {
    box-shadow: 16px 0 0 -8px currentColor, 32px 0 0 -8px currentColor;
    opacity: 0.3;
  }
  50% {
    opacity: 1;
  }
  100% {
    box-shadow: 16px 0 0 -8px currentColor, 32px 0 0 -8px currentColor;
    opacity: 0.3;
  }
}
