/* Global Preloader Splash */
#preloader {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 9999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: radial-gradient(ellipse at center, rgba(240,245,255,.95) 0%, rgba(240,245,255,.98) 60%, rgba(240,245,255,1) 100%) !important;
  width: 100vw !important; /* ensure full viewport coverage */
  height: 100vh !important; /* ensure full viewport coverage */
  opacity: 1 !important;
  visibility: visible !important;
  transition: opacity 150ms ease, visibility 150ms ease !important;
  /* Ensure no animation from top to center */
  transform: none !important;
  animation: none !important;
}
#preloader .preloader-content {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important; /* remove white box */
  box-shadow: none !important; /* remove drop shadow */
  /* Ensure content appears directly in center */
  transform: none !important;
  animation: none !important;
}
/* Round loading ring */
.spinner-ring {
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  border: 4px solid rgba(13,90,253,0.15) !important;
  border-top-color: #0d5afd !important;
  animation: spin 900ms linear infinite !important;
  /* Ensure spinner appears directly in center */
  transform: none !important;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
/* Optional brand text */
.preloader-brand { 
  font-weight: 700 !important; 
  color: #0d5afd !important; 
  letter-spacing: .4px !important; 
}

/* Hidden state */
#preloader.is-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Stop spinner animation once hidden for instant smoothness */
#preloader.is-hidden .spinner-ring {
  animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .spinner-ring { 
    animation: none !important; 
  }
}


