/* ==========================================================================
   components/feedback.css — loading spinner, toast notifications
   Keyframes (spin, slideUp) live in base.css.
   ========================================================================== */

/* === Loading state === */

.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  color: var(--text-d);
  flex-direction: column;
  gap: 12px;
}

.spin {
  width: 22px;
  height: 22px;
  border: 2px solid var(--border-m);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* === Toast notification === */

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--surface);
  border: 0.5px solid var(--border-m);
  border-radius: var(--r);
  padding: 12px 18px;
  font-size: 13px;
  z-index: 999;
  animation: slideUp 0.25s ease;
  max-width: 320px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.toast.success {
  border-color: var(--green);
  color: var(--green);
}

.toast.error {
  border-color: var(--red);
  color: var(--red);
}
