/* Nền phủ toàn trang */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(30, 30, 30, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  display: none; /* Ẩn mặc định */
}

/* Vòng xoay trung tâm */
.loading-spinner {
  text-align: center;
  color: white;
}

.spinner-svg {
  animation: rotate 2s linear infinite;
  width: 80px;
  height: 80px;
  margin-bottom: 12px;
}

.path {
  stroke: #00aaff;
  stroke-linecap: round;
  animation: dash 1.5s ease-in-out infinite, colorChange 4s ease-in-out infinite;
}

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

@keyframes dash {
  0% {
    stroke-dasharray: 1, 150;
    stroke-dashoffset: 0;
  }
  50% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -35;
  }
  100% {
    stroke-dasharray: 90, 150;
    stroke-dashoffset: -124;
  }
}

@keyframes colorChange {
  0% {
    stroke: #00aaff;
  }
  33% {
    stroke: #ffaa00;
  }
  66% {
    stroke: #ff4444;
  }
  100% {
    stroke: #00aaff;
  }
}

/* Dòng chữ bên dưới */
.loading-spinner p {
  font-size: 18px;
  font-weight: 500;
}
