<?php
$admin = obtenerAdminActual();
?>
<header class="admin-header">
    <div class="header-left">
        <button class="menu-toggle" onclick="toggleSidebar()">☰</button>
        <div class="logo-section">
            <img src="../assets/images/logo.png" alt="Logo" class="logo-small" onerror="this.style.display='none'">
            <span class="brand-name">Tiendas V3.0</span>
        </div>
    </div>
    
    <div class="header-right">
        <div class="user-info">
            <span class="user-name"><?php echo htmlspecialchars($admin['nombre']); ?></span>
            <span class="user-role"><?php echo ucfirst($admin['rol']); ?></span>
        </div>
        <a href="logout.php" class="btn btn-sm btn-outline logout-btn">Cerrar Sesión</a>
    </div>
</header>
