/* =========================
   FULL SCREEN LOADER OVERLAY
========================= */
.loader-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.9);

  /* IMPORTANT */
  display: none;
  pointer-events: none;

  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* ACTIVE STATE (ONLY WHEN LOADING) */
.loader-overlay.active {
  display: flex;
  pointer-events: all;
}

/* =========================
   LOADER BOX
========================= */
.loader-box {
  text-align: center;
  width: 300px;
}

/* =========================
   SPINNER
========================= */
.spinner {
  width: 70px;
  height: 70px;
  border: 6px solid #e6e6e6;
  border-top: 6px solid #2d7cff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* =========================
   TEXT
========================= */
.loader-text {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #222;
}

/* =========================
   PROGRESS BAR
========================= */
.progress {
  width: 100%;
  height: 8px;
  background: #eee;
  border-radius: 20px;
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: #2d7cff;
  transition: width 0.3s ease;
}
