/* Loading Screen Styles */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0f172a 0%, #581c87 50%, #0f172a 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  /* Reduced z-index to 50 to stay below navbar */
  z-index: 50;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
  /* Added pointer-events none when hidden to prevent interaction blocking */
  pointer-events: none;
}

.anime-loader {
  position: relative;
  animation: float 3s ease-in-out infinite;
}

.anime-head {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #a855f7, #7c3aed);
  border-radius: 50%;
  position: relative;
  border: 4px solid #ffffff;
  margin: 0 auto 15px;
  box-shadow: 0 0 30px rgba(168, 85, 247, 0.5);
}

.anime-eyes {
  position: absolute;
  top: 25px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
}

.eye {
  width: 10px;
  height: 15px;
  background: #ffffff;
  border-radius: 50%;
  animation: blink 2s infinite;
}

.anime-mouth {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 8px;
  border: 3px solid #ffffff;
  border-top: none;
  border-radius: 0 0 16px 16px;
}

.loading-dots {
  display: flex;
  gap: 8px;
  margin-top: 20px;
}

.dot {
  width: 12px;
  height: 12px;
  background: #a855f7;
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}

.dot:nth-child(2) {
  animation-delay: 0.2s;
}
.dot:nth-child(3) {
  animation-delay: 0.4s;
}

.loading-text {
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
  margin-top: 25px;
  animation: fadeInOut 2s ease-in-out infinite;
}

/* Loading animations */
@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes blink {
  0%,
  90%,
  100% {
    height: 15px;
  }
  95% {
    height: 3px;
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.5);
    opacity: 0.7;
  }
}

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