    </div> <!-- Close content-wrapper -->
</div> <!-- Close content -->

<!-- Footer -->
<div class="main-footer">
    <div class="container-fluid">
        <i class="fas fa-gas-pump"></i> Petrol Pump Management System &copy; <?php echo date('Y'); ?> 
        | Developed with <i class="fas fa-heart" style="color: #A04657;"></i> for Efficient Fuel Management
        | All Rights Reserved
    </div>
</div>

<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/js/bootstrap.bundle.min.js"></script>

<script>
// Mobile sidebar toggle
document.getElementById('mobileToggle')?.addEventListener('click', function() {
    let sidebar = document.getElementById('sidebar');
    if (sidebar) {
        if (sidebar.style.display === 'block' || sidebar.style.display === 'flex') {
            sidebar.style.display = 'none';
        } else {
            sidebar.style.display = 'block';
        }
    }
});

// Close alerts automatically
document.querySelectorAll('.alert-custom, .alert-success, .alert-danger').forEach(alert => {
    setTimeout(() => {
        alert.style.opacity = '0';
        setTimeout(() => {
            if (alert && alert.parentElement) alert.remove();
        }, 300);
    }, 5000);
});
// Sidebar Dropdown Toggle
document.querySelectorAll('.nav-item-dropdown > a').forEach(function(dropdownToggle) {
    dropdownToggle.addEventListener('click', function(e) {
        e.preventDefault();
        
        // Toggle active class on the clicked dropdown
        this.classList.toggle('active');
        
        // Find the dropdown menu list
        var dropdownMenu = this.nextElementSibling;
        
        if (dropdownMenu && dropdownMenu.classList.contains('dropdown-menu-list')) {
            dropdownMenu.classList.toggle('show');
        }
        
        // Optional: Close other dropdowns (uncomment if needed)
        // document.querySelectorAll('.nav-item-dropdown > a').forEach(function(otherToggle) {
        //     if (otherToggle !== dropdownToggle) {
        //         otherToggle.classList.remove('active');
        //         var otherMenu = otherToggle.nextElementSibling;
        //         if (otherMenu && otherMenu.classList.contains('dropdown-menu-list')) {
        //             otherMenu.classList.remove('show');
        //         }
        //     }
        // });
    });
});
</script>

</body>
</html>