/* loading.css - Lightweight Loading Animation */

#loading-screen {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

#loading-screen.hide {
  opacity: 0;
  pointer-events: none;
}

.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.loading-spinner {
  width: 80px;
  height: 80px;
  animation: spin 2s linear infinite;
}

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

.loading-spinner circle:nth-child(2) {
  animation: dashAnimation 1.5s ease-in-out infinite;
}

@keyframes dashAnimation {
  0% {
    stroke-dasharray: 0, 200;
    stroke-dashoffset: 0;
  }
  45% {
    stroke-dasharray: 100, 200;
    stroke-dashoffset: 0;
  }
  60% {
    stroke-dasharray: 100, 200;
    stroke-dashoffset: -150;
  }
  100% {
    stroke-dasharray: 0, 200;
    stroke-dashoffset: -200;
  }
}

.loading-text {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  animation: fadeInOut 1.5s ease-in-out infinite;
}

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