/* Loader Overlay */
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: white; /* Transparent overlay */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* Custom X Box Loader */
.loader-box {
  width: 45px;
  height: 45px;
  border: 1px solid #2f40ff;
  border-radius: 8px;
  background-color: #2f40ff;
  display: flex;
  box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.5);
  align-items: center;
  justify-content: center;
  animation: boxColorSwap 0.7s infinite alternate ease-in-out;
}

.loader-x {
  font-size: 34px;
  font-weight: 600;
  text-align: center;
  color: #2f40ff;
  animation: xColorSwap 0.7s infinite alternate ease-in-out;
}
.loader-content {
  display: flex;
  flex-direction: column;
  align-items: center; /* 👈 horizontally centers both box and text */
  justify-content: center;
}

.loader-text {
  margin-top: 10px;
  margin-left: 15px;
  font-size: 16px;
  font-weight: 500;
  color: #333;
  text-align: center;
}

/* Add this at the end of loader.css */
.fade-out {
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Box Background Animation */
@keyframes boxColorSwap {
  0% {
    background-color: #2f40ff;
  }
  100% {
    background-color: #ffffff;
  }
}

/* X Text Color Animation */
@keyframes xColorSwap {
  0% {
    color: #ffffff;
  }
  100% {
    color: #2f40ff;
  }
}
