smissible fade show';
        alertDiv.innerHTML = `
            ${message}
            <button type="button" class="btn-close" data-bs-dismiss="alert"></button>
        `;
        
        // Add to the top of the modal content
        const modalContent = document.getElementById('caseDevicesContent');
        if (modalContent) {
            modalContent.insertBefore(alertDiv, modalContent.firstChild);
            
            // Auto-remove after 3 seconds
            setTimeout(() => {
                if