/* Loading screen styles */
.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(128, 128, 128, 0.1);
  /* 30% transparency grey backdrop */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  font-family: 'Inter', sans-serif;
  color: #070644;
}

.loading-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 400px;
  padding: 2rem;
}

.loading-logo {
  margin-bottom: 1.5rem;
}

.loading-logo img {
  width: 350px;
}

.loading-message {
  font-size: 1.1rem;
  font-weight: 400;
  margin-bottom: 2rem;
  opacity: 0.9;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 3px solid rgba(7, 6, 68, 0.3);
  border-top: 3px solid #070644;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1.5rem;
}

.loading-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

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

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

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

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

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

@keyframes pulse {

  0%,
  100% {
    opacity: 0.4;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

.loading-screen.fade-out {
  opacity: 0;
  transition: opacity 0.5s ease-out;
}

.loading-screen.hidden {
  display: none;
}

/* Hide loading screen when Angular app is ready */
app-root:not(:empty)+.loading-screen {
  opacity: 0;
  pointer-events: none;
}
