
/* ===== Page Spinner Overlay ===== */
.spinner-overlay {
  position: fixed;
  inset: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10010;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.22s ease, visibility 0.3s ease;
  pointer-events: none;
}

.spinner-overlay.active {
  visibility: visible;
  opacity: 1;
  background: rgba(0, 0, 0, 0.656);
  pointer-events: all;
  cursor: wait;
}

/* Logo wrapper — floats up and down */
.spinner-logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.25rem;
  border-radius: 1rem;
  background: rgb(253, 254, 255);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  animation: spinner-float 4s ease-in-out infinite;
}

/* Logo image — breathes in and out */
.spinner-logo,
.spinner-image {
  width: 90px;
  height: 90px;
  display: block;
  object-fit: contain;
  content: url("/static/img/favicon/favicon.png");
  animation: spinner-breathe 2.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

.spinner-inline-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: var(--text-muted, #94a3b8);
}

.spinner-inline-state .spinner-image {
  width: 48px;
  height: 48px;
}

.spinner-button-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-right: 0.4rem;
}

.spinner-button-inline .spinner-image {
  width: 18px;
  height: 18px;
}

@keyframes spinner-breathe {
  0%, 100% { transform: scale(0.95); opacity: 0.7; }
  50%       { transform: scale(1.12); opacity: 1;   }
}

@keyframes spinner-float {
  0%, 100% { transform: translateY(0);    }
  50%       { transform: translateY(-8px); }
}
