/* Notificaciones toast — ver shared/components/toast.js */

.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.9rem;
  line-height: 1.4;
  padding: 0.85rem 1.15rem;
  border-radius: 8px;
  max-width: 22rem;
  backdrop-filter: blur(6px);
  background: rgba(13, 15, 17, 0.92);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);

  /* Estado inicial: fuera de pantalla, a la derecha */
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.toast.visible {
  transform: translateX(0);
  opacity: 1;
}

.toast-success {
  background: rgba(0, 225, 255, 0.1);
  border: 1px solid rgba(0, 225, 255, 0.4);
  color: #00e1ff;
}

.toast-error {
  background: rgba(255, 80, 80, 0.12);
  border: 1px solid rgba(255, 80, 80, 0.4);
  color: #ff8a8a;
}

/* En móvil ocupa el ancho disponible, siempre abajo */
@media (max-width: 768px) {
  .toast-container {
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
    align-items: stretch;
  }

  .toast {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .toast {
    transform: none;
    transition: opacity 0.2s ease;
  }

  .toast.visible {
    transform: none;
  }
}
