<!DOCTYPE html>
<html lang="tr">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title><?php echo isset($title) ? $title : 'Süper Yönetici Paneli'; ?></title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
    <link rel="stylesheet" href="<?php echo $baseUrl; ?>/assets/css/style.css">
</head>
<body style="padding-bottom: 0;" class="superadmin-theme">

    <div class="admin-layout">
        <!-- Left Admin Navigation -->
        <aside class="admin-sidebar">
            <div class="admin-sidebar-header">
                <i class="fa fa-shield"></i> Süper Yönetim
            </div>
            
            <nav class="admin-nav">
                <a href="<?php echo $baseUrl; ?>/superadmin/dashboard" class="admin-nav-item <?php echo strpos(isset($_GET['route']) ? $_GET['route'] : '', 'dashboard') !== false ? 'active' : ''; ?>">
                    <i class="fa fa-building"></i> Bayiler / Mağazalar
                </a>
                <a href="<?php echo $baseUrl; ?>/superadmin/tenants/create" class="admin-nav-item <?php echo strpos(isset($_GET['route']) ? $_GET['route'] : '', 'create') !== false ? 'active' : ''; ?>">
                    <i class="fa fa-plus-circle"></i> Yeni Bayi Ekle
                </a>
            </nav>
            
            <div class="admin-sidebar-footer">
                <a href="<?php echo $baseUrl; ?>/superadmin/logout" class="admin-nav-item danger">
                    <i class="fa fa-sign-out"></i> Çıkış Yap
                </a>
            </div>
        </aside>

        <!-- Right Content Area -->
        <main class="admin-main">
            <!-- Header bar inside panel -->
            <header class="admin-header">
                <h1><?php echo isset($title) ? $title : 'Süper Yönetici Paneli'; ?></h1>
                <div class="admin-profile">
                    <span>Süper Yönetici</span>
                    <div class="admin-profile-avatar">
                        <i class="fa fa-star"></i>
                    </div>
                </div>
            </header>
            
            <div class="admin-content">
