/* Global POST request loading overlay (Kaiadmin-aligned) */
.global-post-loader {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: none;
  align-items: center;
  justify-content: center;
  pointer-events: all;
}

.global-post-loader.is-visible {
  display: flex;
}

.global-post-loader__backdrop {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0.35;
}

.global-post-loader__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 28px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(26, 32, 53, 0.18);
}

.global-post-loader__text {
  font-family: 'Public Sans', sans-serif;
  font-size: 14px;
  color: #2a2f5b;
  margin: 0;
}

/* Standalone spinner when Kaiadmin .loader is unavailable (auth pages) */
.global-post-loader .loader {
  display: block;
  width: 2rem;
  height: 2rem;
  background: transparent;
  border: 5px solid #1572E8;
  border-bottom-color: transparent;
  border-radius: 50%;
  animation: global-post-loader-spin 1s linear infinite;
}

body.global-post-loading {
  overflow: hidden;
}

@keyframes global-post-loader-spin {
  to {
    transform: rotate(360deg);
  }
}
