<!-- Sidebar Navigation -->
<aside class="sidebar">
    <div class="logo">
        <i class="fas fa-utensils"></i>
        <span>Manager</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">Operations</div>
        <ul class="sidebar-nav">
            <li><a href="daily_operations.php" class="<?php echo (basename($_SERVER['PHP_SELF']) == 'daily_operations.php') ? 'active' : ''; ?>"><i class="fas fa-tasks"></i> Daily Operations</a></li>
            <li><a href="servers.php" class="<?php echo (basename($_SERVER['PHP_SELF']) == 'servers.php') ? 'active' : ''; ?>"><i class="fas fa-users"></i> Servers</a></li>
            <li><a href="tables.php" class="<?php echo (basename($_SERVER['PHP_SELF']) == 'tables.php') ? 'active' : ''; ?>"><i class="fas fa-table"></i> Table Management</a></li>
            <li><a href="reservations.php" class="<?php echo (basename($_SERVER['PHP_SELF']) == 'reservations.php') ? 'active' : ''; ?>"><i class="fas fa-calendar-check"></i> Reservations</a></li>
            <li><a href="pos.php" class="<?php echo (basename($_SERVER['PHP_SELF']) == 'pos.php') ? 'active' : ''; ?>"><i class="fas fa-cash-register"></i> POS & Billing</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="settings.php" class="<?php echo (basename($_SERVER['PHP_SELF']) == 'settings.php') ? 'active' : ''; ?>"><i class="fas fa-cog"></i> Settings</a></li>
            <li><a href="javascript:void(0)" onclick="logout()"><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>
