.toast-container {
  position: fixed;
  top: 12px;
  right: 12px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(420px, calc(100vw - 24px));
}

.toast {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 10px;

  border: 1px solid rgba(31, 41, 55, 0.14);
  border-left-width: 6px;
  background: rgba(255, 255, 255, 0.84);
  color: #111827;

  border-radius: 14px;
  padding: 12px 12px;

  box-shadow:
    0 18px 40px rgba(17, 24, 39, 0.16),
    0 4px 10px rgba(17, 24, 39, 0.1);

  backdrop-filter: blur(10px);

  animation: toast-enter 160ms ease-out;
}

.toast-content {
  font-size: 0.95rem;
  line-height: 1.3;
  white-space: pre-wrap;
}

.toast-close {
  appearance: none;
  border: none;
  background: transparent;
  color: inherit;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0 6px;
  cursor: pointer;
}

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

.toast-info {
  border-left-color: #d97706;
}

.toast-success {
  border-left-color: #16a34a;
}

.toast-warning {
  border-left-color: #d97706;
}

.toast-error {
  border-left-color: #b00020;
}

.toast-leave {
  animation: toast-leave 180ms ease-in forwards;
}

@keyframes toast-enter {
  from {
    transform: translateY(-6px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes toast-leave {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(-6px);
    opacity: 0;
  }
}
