/* ============================================================
   TOAST.CSS: NOTIFICACIONES FLOTANTES (ESTILO SONNER / RADIX UI)
   Minimalista, alta legibilidad, fijado en esquina inferior derecha
   ============================================================ */

.toast-container {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  max-width: 420px;
  width: calc(100% - 40px);
}

.toast {
  pointer-events: auto;
  background: #18181b;
  color: #f4f4f5;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.4;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  gap: 10px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: toastSlideIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transition: all 0.2s ease;
  word-break: break-word;
}

.toast:hover {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 12px 30px -5px rgba(0, 0, 0, 0.7);
}

.toast span:first-child {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Variantes según tipo */
.toast.toast-success {
  border-color: rgba(16, 185, 129, 0.25);
}
.toast.toast-success span:first-child {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
}

.toast.toast-info {
  border-color: rgba(59, 130, 246, 0.25);
}
.toast.toast-info span:first-child {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.toast.toast-danger {
  border-color: rgba(239, 68, 68, 0.25);
}
.toast.toast-danger span:first-child {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

@keyframes toastSlideIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
