/* ✅ Premium White Theme Preloader */
#preloader {
  position: fixed;
  inset: 0;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 9999;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  font-family: "Poppins", sans-serif;
}

.loader {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* ✅ Elegant Spinner */
.spinner {
  width: 55px;
  height: 55px;
  border: 4px solid #e0e0e0;
  border-top-color: #0078ff; /* elegant blue accent */
  border-radius: 50%;
  animation: spin 1.2s linear infinite;
  margin-bottom: 1rem;
}

/* ✅ Text Styling */
.loader p {
  font-size: 1rem;
  font-weight: 500;
  color: #333;
  letter-spacing: 0.3px;
  font-weight: bold;
}

/* ✅ Fade-out animation */
#preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

/* ✅ Keyframes */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loader-logo {
  width: 80px;
  height: 80px;
  margin-bottom: 1rem;
  animation: pulse 1.5s infinite ease-in-out;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}
