/**
 * Shared toast notifications for ATAD flows.
 */

.atad-flow-toast-root {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 10001;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: min(26rem, calc(100vw - 2rem));
  pointer-events: none;
}

.atad-flow-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0.875rem;
  border-radius: 0.625rem;
  border: 1px solid var(--atad-border);
  background: var(--atad-bg-elevated);
  color: var(--atad-text);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.16);
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.atad-flow-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.atad-flow-toast.is-exit {
  opacity: 0;
  transform: translateY(-6px);
}

.atad-flow-toast-success {
  border-left: 4px solid #16a34a;
}

.atad-flow-toast-info {
  border-left: 4px solid var(--atad-primary);
}

.atad-flow-toast-error {
  border-left: 4px solid var(--atad-destructive);
}

.atad-flow-toast-content {
  min-width: 0;
}

.atad-flow-toast-message {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
}

.atad-flow-toast-description {
  margin: 0.25rem 0 0;
  font-size: 0.86rem;
  line-height: 1.35;
  color: var(--atad-text-muted);
}

.atad-flow-toast-close {
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--atad-text-muted);
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  flex-shrink: 0;
}

.atad-flow-toast-close:hover {
  color: var(--atad-text);
}

@media (max-width: 640px) {
  .atad-flow-toast-root {
    right: 0.75rem;
    left: 0.75rem;
    width: auto;
  }
}
