/* Contenedor de mensajes */
.message-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
    width: 100%;
}

/* Estilos de las alertas */
.message-container .alert-flash {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    animation: slideIn 0.3s ease-out;
    width: 100%;
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    font-weight: 500;
    font-size: 0.95rem;
    line-height: 1.4;
}

.alert-flash i {
    margin-right: 0.75rem;
    font-size: 1.1rem;
}

/* Animación de entrada */
@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Animación de salida */
.alert-flash.fade-out {
    animation: slideOut 0.3s ease-out forwards;
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

/* Colores personalizados para diferentes tipos de mensajes */
.alert-flash-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-flash-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-flash-warning {
    background-color: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.alert-flash-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

/* Responsive */
@media (max-width: 768px) {
    .message-container {
        left: 20px;
        right: 20px;
        max-width: none;
    }
}
