:root {
  --notify-bg: #1f2937;
  --notify-color: #fff;
  --notify-success-bg: #16a34a;
  --notify-error-bg: #dc2626;
  --notify-info-bg: #0ea5e9;
  --notify-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

/* ===== Page Spinner Overlay ===== */
.spinner-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.679);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10010;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.6s ease, visibility 0.6s ease;
  pointer-events: none;
}

.spinner-overlay.active {
  visibility: visible;
  opacity: 1;
  pointer-events: all;
}

/* 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 {
  width: 90px;
  display: block;
  animation: spinner-breathe 2.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@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); }
}

.toast-container {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  right: auto;
  z-index: 10011;
  min-width: 280px;
  max-width: 420px;
  width: min(90vw, 420px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
}

.toast-container:empty {
  display: none;
}

.toast {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--notify-bg);
  color: var(--notify-color);
  border-radius: 0.75rem;
  padding: 0.85rem 1rem;
  box-shadow: var(--notify-shadow);
  border: 1px solid rgba(255,255,255,0.17);
  letter-spacing: 0.01em;
  font-size: 0.95rem;
  pointer-events: auto;
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(0);
}

.toast-success { background: var(--notify-success-bg); }
.toast-error { background: var(--notify-error-bg); }
.toast-info { background: var(--notify-info-bg); }
.toast-warning { background: var(--notify-info-bg); }

.toast-close {
  border: none;
  background: transparent;
  color: inherit;
  font-size: 1rem;
  cursor: pointer;
  margin-left: 0.75rem;
}