.loadingOverlay {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  //background: rgba(30, 41, 59, 0.95);
  backdrop-filter: blur(4px);
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.spinner {
  position: relative;
  width: 20px;
  height: 20px;
}

.spinnerCore {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  background: linear-gradient(45deg, #a855f7, #c084fc);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: corePulse 1.5s ease-in-out infinite;
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.6);
}

.spinnerRing {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2px solid transparent;
  border-top: 2px solid #a855f7;
  border-right: 2px solid rgba(168, 85, 247, 0.3);
  border-radius: 50%;
  animation: ringRotate 1s linear infinite;
}

@keyframes corePulse {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0.7;
  }
}

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

.loadingText {
  font-size: 13px;
  color: #c084fc;
  font-weight: 500;
  animation: textPulse 2s ease-in-out infinite;
}

@keyframes textPulse {
  0%,
  100% {
    opacity: 0.8;
  }
  50% {
    opacity: 1;
  }
}

// Responsive adjustments
@media (max-width: 768px) {
  .button {
    padding: 10px 20px;
    font-size: 13px;
    min-height: 40px;
  }

  .spinner {
    width: 16px;
    height: 16px;
  }

  .spinnerCore {
    width: 6px;
    height: 6px;
  }

  .loadingText {
    font-size: 12px;
  }
}
