/* global-loader.css */
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  transition: opacity 0.3s ease;
}

.loader-box {
  background: #fff;
  padding: 32px 48px;
  border-radius: 14px;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  animation: popIn 0.25s ease;
}

.loader-spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #e2e8f0;
  border-top-color: #2563EB;
  border-radius: 50%;
  margin: 0 auto 14px;
  animation: spin 0.9s linear infinite;
}

.loader-message {
  font-size: 1rem;
  color: #1e293b;
  margin: 0;
}

.fade-out {
  opacity: 0;
}

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

@keyframes popIn {
  from {
    transform: scale(0.9);
    opacity: 0.5;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
