<?php
$current_page = basename($_SERVER['PHP_SELF']);
?>
<aside class="admin-sidebar" id="adminSidebar">
  <div class="sidebar-header">
    <h3>Admin Panel</h3>
    <button class="sidebar-close" id="sidebarClose"><i class="fas fa-times"></i></button>
  </div>
  <ul class="sidebar-menu">
    <li><a href="messages.php" class="<?= $current_page === 'messages.php' ? 'active' : '' ?>"><i class="fa-solid fa-message"></i> Inbox</a></li>
    <li><a href="stock.php" class="<?= $current_page === 'stock.php' ? 'active' : '' ?>"><i class="fas fa-chart-pie"></i> Stock Overview</a></li>
    <li><a href="admin-products.php" class="<?= $current_page === 'admin-products.php' ? 'active' : '' ?>"><i class="fas fa-tshirt"></i> Products</a></li>
    <li><a href="user_management.php" class="<?= $current_page === 'user_management.php' ? 'active' : '' ?>"><i class="fas fa-users"></i> User Management</a></li>
    <li><a href="admin-orders.php" class="<?= $current_page === 'admin-orders.php' ? 'active' : '' ?>"><i class="fas fa-box"></i> Orders</a></li>

    <li><a href="logout.php"><i class="fas fa-sign-out-alt"></i> Logout</a></li>
  </ul>
</aside>

<!-- Hamburger (visible on mobile) -->
<button class="sidebar-toggle" id="sidebarToggle"><i class="fas fa-bars"></i></button>

<!-- Overlay -->
<div class="sidebar-overlay" id="sidebarOverlay"></div>
