<!-- Sidebar Navigation -->

<aside class="sidebar">
    <div class="logo">
        <i class="fas fa-warehouse"></i>
        <span>Store Keeper</span>
    </div>

    <ul class="sidebar-nav">
        <li><a href="dashboard.php" class="<?php echo (basename($_SERVER['PHP_SELF']) == 'dashboard.php') ? 'active' : ''; ?>"><i class="fas fa-home"></i> Dashboard</a></li>
    </ul>

    <div class="sidebar-section">
        <div class="sidebar-section-title">Inventory Management</div>
        <ul class="sidebar-nav">
            <li><a href="stock_receiving.php" class="<?php echo (basename($_SERVER['PHP_SELF']) == 'stock_receiving.php') ? 'active' : ''; ?>"><i class="fas fa-dolly"></i> Stock Receiving</a></li>
            <li><a href="inventory.php" class="<?php echo (basename($_SERVER['PHP_SELF']) == 'inventory.php') ? 'active' : ''; ?>"><i class="fas fa-boxes"></i> Inventory</a></li>
            <li><a href="expiry_wastage.php" class="<?php echo (basename($_SERVER['PHP_SELF']) == 'expiry_wastage.php') ? 'active' : ''; ?>"><i class="fas fa-calendar-times"></i> Expiry & Wastage</a></li>
        </ul>
    </div>

    <div class="sidebar-section">
        <div class="sidebar-section-title">Business</div>
        <ul class="sidebar-nav">
            <li><a href="reports.php" class="<?php echo (basename($_SERVER['PHP_SELF']) == 'reports.php') ? 'active' : ''; ?>"><i class="fas fa-chart-bar"></i> Reports & Analytics</a></li>
        </ul>
    </div>

    <div class="sidebar-section">
        <div class="sidebar-section-title">Account</div>
        <ul class="sidebar-nav">
            <li><a href="javascript:void(0)" onclick="handleLogout()"><i class="fas fa-sign-out-alt"></i> Logout</a></li>
        </ul>
    </div>
</aside>

<!-- Hamburger Button for Mobile -->
<button class="hamburger" id="sidebarToggle" aria-label="Toggle sidebar">
    <span></span>
    <span></span>
    <span></span>
</button>
