    </div> <script src="https://code.jquery.com/jquery-3.5.1.min.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/bootstrap@4.5.2/dist/js/bootstrap.bundle.min.js"></script>

    <script>
        $(document).ready(function() {
            // Sidebar Toggle for Mobile
            $('#sidebarToggle').on('click', function() {
                $('#sidebar').toggleClass('active');
            });

            // Smooth Hover effects for cards
            $('.card').hover(
                function() { $(this).addClass('shadow').css('transition', '0.3s'); },
                function() { $(this).removeClass('shadow'); }
            );

            // Auto-close alert notifications
            setTimeout(function() {
                $('.alert').fadeOut('slow');
            }, 5000);
        });
    </script>
    
<?php 
    if(!empty($settings['lcha'])) {
        // We use echo without htmlspecialchars because we want the script to RUN, not be shown as text
        echo $settings['lcha']; 
    }
?>

</body>
</html>
