(function () {
    "use strict";
    
    // Only initialize SimpleBar if the sidebar element exists
    // (for compatibility with old layout that has sidebar)
    var myElement = document.getElementById('sidebar-scroll');
    if (myElement && typeof SimpleBar !== 'undefined') {
        try {
            new SimpleBar(myElement, { autoHide: true });
        } catch (e) {
            console.warn('SimpleBar initialization failed:', e);
        }
    }
    
})();