/* Preloader full screen */
#preloader {
  position: fixed;
  inset: 0;
  background: #d7e1eb;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
}

/* Fade out preloader */
#preloader.hidden {
  animation: fadeOut 0.6s ease forwards;
  pointer-events: none;
}

/* Logo loader */
.loader-logo {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 50%;
}

/* Spinner ring */
.spinner-ring {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: conic-gradient(#4b6fa8, #799bcb, #4b6fa8);
  -webkit-mask: radial-gradient(farthest-side, #0000 calc(100% - 4px), #000 0);
  mask: radial-gradient(farthest-side, #0000 calc(100% - 4px), #000 0);
  animation: spin 1.5s linear infinite, glowOuter 2.5s ease-in-out infinite;
}

.spinner-ring::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.4) 50%, transparent 70%);
  background-size: 200% 200%;
  animation: shimmer 4s linear infinite;
}

/* Animasi */
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes glowOuter {

  0%,
  100% {
    box-shadow: 0 0 10px rgba(75, 111, 168, .3), 0 0 25px rgba(75, 111, 168, .15);
  }

  50% {
    box-shadow: 0 0 25px rgba(75, 111, 168, .6), 0 0 50px rgba(75, 111, 168, .3);
  }
}

@keyframes shimmer {
  from {
    background-position: -200% 0;
  }

  to {
    background-position: 200% 0;
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
  }
}