.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  min-width: 280px;
  max-width: 420px;
}

.toast--success {
  background: #e6f4ea;
  color: #1e7e34;
  border: 1px solid #b7dfbf;
}

.toast--error {
  background: #fdecea;
  color: #cd5252;
  border: 1px solid #f5c6c6;
}

.toast--warning {
  background: #fff8e1;
  color: #b8860b;
  border: 1px solid #ffe082;
}

.toast--info {
  background: #e8f0fe;
  color: #1a56db;
  border: 1px solid #b3cef7;
}

.toast-text {
  flex: 1;
}

.toast-close {
  background: none;
  border: none;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  color: inherit;
  opacity: 0.6;
  padding: 0 2px;
}

.toast-close:hover {
  opacity: 1;
}

/* Alpine.js transitions */
.toast-enter {
  transition: all 0.3s ease-out;
}

.toast-enter-start {
  opacity: 0;
  transform: translateX(20px);
}

.toast-enter-end {
  opacity: 1;
  transform: translateX(0);
}

.toast-leave {
  transition: all 0.2s ease-in;
}

.toast-leave-start {
  opacity: 1;
  transform: translateX(0);
}

.toast-leave-end {
  opacity: 0;
  transform: translateX(20px);
}

@media (max-width: 480px) {
  .toast-container {
    top: 16px;
    right: 16px;
    left: 16px;
  }

  .toast {
    min-width: unset;
    max-width: unset;
  }
}
