/* Global request/navigation loading state.
 * Kept separate from the design-system build so the interaction layer can be
 * reviewed and changed without regenerating Tailwind output.
 */

.global-loading-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(243, 246, 245, .52);
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 110ms ease, visibility 110ms ease;
}

body.cirs-is-loading {
  cursor: progress;
}

body.cirs-is-loading .global-loading-overlay {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
  cursor: progress;
}

.global-loading-card {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 9px 14px;
  border: 1px solid #D8E2DE;
  border-radius: 9px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 14px 34px -22px rgba(18, 46, 39, .45);
  color: #29443D;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .01em;
}

.global-loading-spinner {
  width: 18px;
  height: 18px;
  flex: none;
  border: 2px solid #C7D6D2;
  border-top-color: #4D7C73;
  border-radius: 50%;
  animation: cirs-global-spin .7s linear infinite;
}

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

@media (prefers-reduced-motion: reduce) {
  .global-loading-overlay {
    transition: none;
  }

  .global-loading-spinner {
    animation-duration: 1.4s;
  }
}
