/* =========================
   ROOT
========================= */
:root {
    --primary: #0d3b66;
    --primary-dark: #082b4c;
    --primary-light: #eaf2f8;
    --sidebar-width: 260px;
    --border: #e6eaf0;
    --text: #1f2937;
    --muted: #6b7280;
    --bg: #f5f7fb;
}

body.loading-active {
    overflow: hidden;
    height: 100vh;
}

/* ========================================
   LOADING OVERLAY
======================================== */
.loading-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  opacity: 1;
  visibility: visible;
  transition: all 0.3s ease;
}

.loading-overlay.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ========================================
   LOADING BOX
======================================== */
.loading-box {
  min-width: 130px;
  padding: 22px 25px;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* ========================================
   SPINNER
======================================== */
.spinner {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 4px solid rgba(0, 0, 0, 0.08);
  border-top-color: var(--blue);
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-text {
  font-size: 14px;
  font-weight: 600;
  color: #334155;
  letter-spacing: 0.3px;
}
