/* VARIABLES & COLORES DE ACENTO PARA TOASTS */
:root {
  --toast-success-color: #10b981; /* Verde esmeralda */
  --toast-error-color: #d45b2e;    /* Terracota */
  --toast-bg-color: rgba(10, 25, 47, 0.95); /* Azul oscuro translúcido */
}

/* ANIMACIÓN DEL LOADER (SPINNER) */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

/* CONTENEDOR DE NOTIFICACIONES TOAST */
.toast-container {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 380px;
  width: calc(100% - 48px);
}

.toast {
  background: var(--toast-bg-color);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 16px 20px;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateX(120%);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

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

.toast-error {
  border-left: 4px solid var(--toast-error-color);
}

.toast-success {
  border-left: 4px solid var(--toast-success-color);
}

.toast-message {
  font-size: 0.9rem;
  line-height: 1.4;
  font-weight: 400;
}
