/* toast.css — Notificaciones apiladas arriba a la derecha. Namespaced .toast-*. */
.toast-host {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: min(380px, calc(100vw - 2rem));
  pointer-events: none;
}

.toast-item {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: var(--color-surface, #1b2230);
  color: var(--color-text, #f2f5f9);
  border: 1px solid var(--overlay-soft, rgba(255, 255, 255, 0.12));
  border-left-width: 4px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
  font-size: 0.85rem;
  line-height: 1.4;
  animation: toast-in 180ms ease-out;
}

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

.toast-success {
  border-left-color: #0e9f6e;
}
.toast-success .toast-icon {
  color: #0e9f6e;
}

.toast-icon {
  font-size: 1rem;
  margin-top: 1px;
  flex-shrink: 0;
}

.toast-msg {
  flex: 1;
  word-break: break-word;
}

.toast-close {
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: inherit;
  opacity: 0.6;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.15rem;
}
.toast-close:hover {
  opacity: 1;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
