/* =========================================================
   SISTEMA DE NOTIFICACIONES VISUALES Y RED (toast.css)
   ========================================================= */

#toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 92%;
  max-width: 420px;
}

.toast-message {
  width: 100%;
  padding: 13px 16px;
  border-radius: var(--radius-md, 12px);
  color: #FFFFFF;
  background-color: var(--color-navy, #0F1E36);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.25);
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast-message.toast-hiding {
  opacity: 0;
  transform: translateY(-8px);
}

/* Variantes de color */
.toast-error {
  background-color: #d32f2f;
  border-left: 4px solid #ffcdd2;
}

.toast-warning {
  background-color: #ed6c02;
  border-left: 4px solid #ffe0b2;
}

.toast-success {
  background-color: #2e7d32;
  border-left: 4px solid #c8e6c9;
}

.toast-info {
  background-color: #0F1E36;
  border-left: 4px solid #93c5fd;
}

/* Banner persistente para estado sin conexión */
.network-offline-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background-color: #b71c1c;
  color: #FFFFFF;
  text-align: center;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.3px;
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.2);
}

/* Caja de error en el formulario de autenticación */
.auth-error-box {
  background-color: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
  border-radius: var(--radius-md, 12px);
  padding: 11px 14px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
}
