.loading-overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  width: 100%;
  height: 100%;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Top progress bar (YouTube/GitHub style) ── */
#page-loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}

#page-loading.active {
  opacity: 1;
}

#page-loading .progress-bar {
  height: 100%;
  width: 0;
  background: var(--primary, var(--bs-primary));
  box-shadow: 0 0 8px rgba(var(--bs-primary-rgb), 0.4);
  transition: width 0.3s ease;
}

.mini-spinner {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.5rem;
}

.mini-spinner .sk-wave{
  width: 24px;
  height: 24px;
}