/* Recipe UI ownership: Feedback. Responsive rules stay with this owner. */

.alert {
  position: sticky;
  top: 0.5rem;
  z-index: 50;
  margin-bottom: 1rem;
  border-radius: var(--recipe-radius-large);
  padding: 0.85rem 1.1rem;
  box-shadow: var(--recipe-shadow-overlay);
  backdrop-filter: blur(8px);
}

.alert-danger {
  border: 2px solid var(--recipe-danger);
  background: var(--recipe-danger-wash);
  color: var(--recipe-danger);
}

.alert-info {
  border: 2px solid var(--recipe-information);
  background: var(--recipe-information-wash);
  color: var(--recipe-information);
  border-radius: var(--recipe-radius-medium);
}

.alert strong {
  font-size: var(--recipe-font-body);
}

.alert ul {
  margin: 0.35rem 0 0 1rem;
  padding: 0;
}

.inline-pair.date-row .validation-msg { margin-top: 0.25rem; }

.htmx-indicator {
  display: none;
}

.htmx-request .htmx-indicator,
.htmx-request.htmx-indicator {
  display: block;
}

.toast-stack {
  position: fixed;
  top: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  z-index: 300;
  pointer-events: none;
}

.toast {
  min-width: 240px;
  max-width: 420px;
  padding: 0.6rem 0.8rem;
  border-radius: var(--recipe-radius-large);
  border: 1.5px solid var(--line);
  background: var(--recipe-surface);
  box-shadow: var(--recipe-shadow-overlay);
  color: var(--charcoal);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 200ms ease, transform 200ms ease;
  pointer-events: auto;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.toast.success { border-color: var(--recipe-success-wash); background: var(--recipe-success-wash); color: var(--recipe-success); }

.toast.error { border-color: var(--recipe-danger-wash); background: var(--recipe-danger-wash); color: var(--recipe-danger); }

.toast.info { border-color: var(--recipe-information-wash); background: var(--recipe-information-wash); color: var(--recipe-information); }

.alert-hint-compact {
  padding: 0.5rem 0.75rem;
  font-size: var(--recipe-font-control);
}

.loading-container-centered {
  height: 300px;
  gap: 1rem;
}

.loading-spinner-lg {
  width: 40px;
  height: 40px;
  border-width: 3px;
  display: block;
  opacity: 1;
}
