/* resources/css/loader.css */

/* Full-screen background with color rotation */
#page-loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background-color: #000;
  animation: colorRot 8s linear infinite;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease;
}

/* The spinning loader element */
.loader-inner {
  position: relative;
  width: 100px;
  height: 100px;
  animation: rotAnim 750ms ease-in-out infinite;
}

.loader-inner::before,
.loader-inner::after {
  content: "";
  position: absolute;
  width: 25%;
  height: 25%;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 40px #7aa8ff, 0 0 10px #7aa8ff;
}

.loader-inner::before {
  top: 0;
  left: 0;
}

.loader-inner::after {
  bottom: 0;
  right: 0;
}

/* Animations */
@keyframes rotAnim {
  0%   { transform: rotate(0deg);   }
  100% { transform: rotate(360deg);  }
}

@keyframes colorRot {
  0%   { filter: hue-rotate(0deg);   }
  100% { filter: hue-rotate(360deg); }
}