<div class="top-bar">
    <div class="page-title">
        <h2><?php 
            $page_titles = [
                'dashboard.php' => 'Dashboard',
                'products.php' => 'Products Management',
                'add_product.php' => 'Add New Product',
                'edit_product.php' => 'Edit Product',
                'categories.php' => 'Categories Management',
                'orders.php' => 'Orders Management',
                'customers.php' => 'Customers Management'
            ];
            $current_page = basename($_SERVER['PHP_SELF']);
            echo $page_titles[$current_page] ?? 'Admin Panel';
        ?></h2>
        <p>Welcome back, Admin</p>
    </div>
    <div class="admin-info">
        <div class="admin-avatar">
            <i class="fas fa-user-shield"></i>
        </div>
        <a href="logout.php" class="logout-btn">
            <i class="fas fa-sign-out-alt"></i> Logout
        </a>
    </div>
</div>