<?php
/**
 * Agentic Square - Premium Admin Dashboard Management Control Panel
 * CodeCanyon Secure Execution Core Template Architecture
 * Path: seller/seller-dashboard.php
 */

// Inject Core Global Application Engine Paths
require_once __DIR__ . '/../config/config.php';

/**
 * STRICT SECURITY AUDIT GUARD (Envato Marketplace Compliant)
 * Intercepts unauthorized sessions, non-sellers, and direct URL entry bypass attempts.
 */
if (!isset($_SESSION['user_id']) || !isset($_SESSION['user_role']) || $_SESSION['user_role'] !== 'seller') {
    // Session is fraudulent or lacks elevation privileges -> Boot safely to root login
    header('Location: ../login.php');
    exit;
}

// CodeCanyon Production Standard Guideline: Inject standard secure UI Header Wrapper layout component
require_once __DIR__ . '/../sections/header.php';
?>

<body class="bg-nftDark text-white antialiased overflow-x-hidden">

    <?php include_once __DIR__ . '/seller-sidebar.php'; ?>

    <main class="lg:ml-64 min-h-screen pt-24 lg:pt-10 pb-16 px-4 sm:px-6 lg:px-8">
        <div class="max-w-7xl mx-auto space-y-10">
            
            <div class="flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4 border-b border-slate-900/60 pb-6">
                <div>
                    <span class="text-xs font-bold tracking-widest text-nftAccentCyan uppercase block mb-1">// Author Ecosystem Workspace</span>
                    <h1 class="text-3xl font-extrabold tracking-tight text-white">Seller Dashboard</h1>
                    <p class="text-sm text-nftTextGray mt-1">Review operational yields, digital asset statuses, and sales performance indicators.</p>
                </div>
                <div>
                    <a href="sell-item.php" class="btn-gradient px-6 py-3 rounded-xl text-xs font-bold tracking-widest uppercase shadow-lg transition-all inline-block text-white">
                        <i class="fa-solid fa-plus mr-2 text-xs"></i> Release New Item
                    </a>
                </div>
            </div>

            <?php include_once __DIR__ . '/seller-cards.php'; ?>

            <?php include_once __DIR__ . '/seller-item-table.php'; ?>
            

        </div>
    </main>

</body>
</html>