.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9998;
  backdrop-filter: blur(3px);
  margin: auto;
  height: 100%;
}

/* Đổi tên từ loading-container thành loading-spinner */
.loading-spinner {
  border-radius: 12px;
  /* padding: 24px; */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  gap: 12px;
}

.loading-spinner::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 1rem;
}

/* Đổi tên từ arc-spinner thành spinner */
.spinner {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(139, 92, 246, 0.2) 60deg,
    rgba(139, 92, 246, 0.6) 120deg,
    #8b5cf6 180deg,
    rgba(139, 92, 246, 0.6) 240deg,
    rgba(139, 92, 246, 0.2) 300deg,
    transparent 360deg
  );
  animation: gradient-spin 1.5s linear infinite;
  position: relative;
}

.spinner::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  right: 2px;
  bottom: 2px;
  background: white;
  border-radius: 50%;
  z-index: 1;
}

.loading-text {
  font-size: 12px;
  color: #666;
  margin: 0;
}

@keyframes gradient-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loading-overlay {
  display: none;
}

.loading-overlay.active {
  display: flex;
}
