/* Alertas y notificaciones personalizadas */

:root {
    --alert-z-index: 10000;
    --alert-border-radius: 4px;
    --alert-box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    --alert-font-family: 'Roboto', 'Segoe UI', system-ui, sans-serif;
    --alert-transition: all 0.3s ease;
}

/* Mensajes de notificación temporales */
.auth-message {
  padding: 15px;
  margin-bottom: 20px;
  border: 1px solid transparent;
  border-radius: var(--alert-border-radius);
  text-align: center;
  font-family: var(--alert-font-family);
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  z-index: var(--alert-z-index);
  min-width: 300px;
  box-shadow: var(--alert-box-shadow);
  transition: var(--alert-transition);
}

.auth-message.success {
  color: #155724;
  background-color: #d4edda;
  border-color: #c3e6cb;
}

.auth-message.error {
  color: #721c24;
  background-color: #f8d7da;
  border-color: #f5c6cb;
}

.auth-message.info {
  color: #0c5460;
  background-color: #d1ecf1;
  border-color: #bee5eb;
}

/* Modales de alertas personalizadas */
.custom-alert-content {
  min-width: 400px;
  max-width: 600px;
  text-align: center;
}

#custom-alert-message {
  color: var(--color-white);
  font-family: var(--alert-font-family);
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 20px;
  padding: 20px 0;
}

.custom-alert-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 20px;
}

.custom-alert-buttons button {
  min-width: 100px;
  margin: 0;
  transition: var(--alert-transition);
}

/* Utilidades */
.alert-hidden {
  display: none !important;
}

.alert-fade-in {
  animation: alertFadeIn 0.3s ease-in;
}

.alert-fade-out {
  animation: alertFadeOut 0.3s ease-out;
}

/* Animaciones */
@keyframes alertFadeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

@keyframes alertFadeOut {
  from {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  to {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
}

/* Responsive */
@media (max-width: 480px) {
  .auth-message {
    min-width: calc(100% - 40px);
    left: 20px;
    right: 20px;
    transform: none;
  }
  
  .custom-alert-content {
    min-width: calc(100% - 40px);
    margin: 0 20px;
  }
  
  .custom-alert-buttons {
    flex-direction: column;
    gap: 10px;
  }
}

/* Modal de confirmación personalizada */
#custom-alert-modal {
  z-index: var(--alert-z-index) !important;
} 