/*  for loader image  based on project */

.maindiv {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  position: fixed;
  width: 100%;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.8);
  /* Changed to light overlay or keep dark depending on preference, sticking to dark for contrast with potentially white logo/dark theme */
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  top: 0;
  left: 0;
  z-index: 9999999999999;
}

.maindiv .loadericon {
  position: relative;
  height: 120px;
  width: 120px;
  margin: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.maindiv .loadericon .icon {
  position: absolute;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.maindiv .loadericon .icon img {
  width: 60px;
  /* Adjust based on logo aspect ratio */
  height: auto;
  animation: logoPulse 2s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.2));
}

.maindiv .loadericon .outerCircle {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: #6727B8;
  /* Primary Brand Color */
  border-right-color: #9c5bd6;
  /* Secondary/Lighter Brand Color */
  animation: spin 1.5s linear infinite;
  box-shadow: 0 0 15px rgba(103, 39, 184, 0.3);
}

/* Adding a second inner ring for cooler effect */
.maindiv .loadericon .outerCircle::after {
  content: "";
  position: absolute;
  top: 5px;
  left: 5px;
  right: 5px;
  bottom: 5px;
  border-radius: 50%;
  border: 3px solid transparent;
  border-bottom-color: #ffffff;
  /* Contrast color */
  animation: spinReverse 2s linear infinite;
}

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

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

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

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

@keyframes logoPulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.1);
    opacity: 0.9;
  }

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