.container {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column-reverse;
  gap: var(--space-2);
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-normal);
  min-width: 240px;
  max-width: 400px;
  pointer-events: auto;
  animation: toastIn var(--transition-base) ease forwards;
}

.toast.exiting {
  animation: toastOut var(--transition-base) ease forwards;
}

.success {
  background-color: var(--color-success-50);
  border: 1px solid var(--color-success-500);
  color: var(--color-success-700);
}

.error {
  background-color: var(--color-danger-50);
  border: 1px solid var(--color-danger-500);
  color: var(--color-danger-700);
}

.info {
  background-color: var(--color-accent-50);
  border: 1px solid var(--color-accent-400);
  color: var(--color-accent-800);
}

.message {
  flex: 1;
}

.dismiss {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: inherit;
  opacity: 0.6;
  cursor: pointer;
  transition: opacity var(--transition-fast);
}

.dismiss:hover {
  opacity: 1;
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateX(16px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes toastOut {
  from {
    opacity: 1;
    transform: translateX(0);
  }
  to {
    opacity: 0;
    transform: translateX(16px);
  }
}
