<?php
declare(strict_types=1);
?>
<div class="admin-shell">
    <aside style="width:280px;background:#0f172a;color:#fff;padding:22px;min-height:100vh;">
        <div style="display:flex;align-items:center;gap:12px;margin-bottom:28px;">
            <div style="width:46px;height:46px;border-radius:14px;background:#2563eb;display:flex;align-items:center;justify-content:center;font-size:20px;">
                <i class="fa-solid fa-shield-halved"></i>
            </div>
            <div>
                <div style="font-size:20px;font-weight:800;">Nay Store</div>
                <div style="font-size:12px;color:#cbd5e1;">Admin V2.0</div>
            </div>
        </div>

        <div style="margin-bottom:18px;padding:14px;border-radius:16px;background:rgba(255,255,255,0.06);border:1px solid rgba(255,255,255,0.08);">
            <div style="font-size:12px;color:#94a3b8;margin-bottom:6px;">مسجل دخول</div>
            <div style="font-size:16px;font-weight:800;"><?= e(current_admin_name()) ?></div>
            <div style="font-size:12px;color:#cbd5e1; margin-top:4px;"><?= e(current_admin_role()) ?></div>
        </div>

        <nav style="display:flex;flex-direction:column;gap:8px;">
            <a href="<?= admin_url('admins/index.php') ?>" style="padding:14px 16px;border-radius:14px;background:rgba(255,255,255,0.08);display:flex;align-items:center;gap:10px;">
                <i class="fa-solid fa-user-shield"></i>
                <span>Admins</span>
            </a>

            <a href="<?= admin_url('admins/create.php') ?>" style="padding:14px 16px;border-radius:14px;background:transparent;border:1px solid rgba(255,255,255,0.08);display:flex;align-items:center;gap:10px;">
                <i class="fa-solid fa-user-plus"></i>
                <span>إضافة أدمن</span>
            </a>

            <a href="<?= admin_url('admins/logout.php') ?>" style="padding:14px 16px;border-radius:14px;background:transparent;border:1px solid rgba(255,255,255,0.08);display:flex;align-items:center;gap:10px;">
                <i class="fa-solid fa-right-from-bracket"></i>
                <span>تسجيل الخروج</span>
            </a>
        </nav>
    </aside>

    <main class="main-content">