<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Veza Admin | Control</title>
    <link
        href="https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;700&family=Space+Grotesk:wght@300;400;500;600;700&display=swap"
        rel="stylesheet">
    <link rel="stylesheet" href="../css/style.css">
</head>

<body>
    <div class="page-bg"></div>

    <div class="flex h-screen overflow-hidden">
        <!-- SIDEBAR -->
        <!-- SIDEBAR NAV -->
        <aside class="w-64 bg-void-50/80 backdrop-blur border-r border-void-200 hidden md:flex flex-col p-4 z-50">
            <div class="mb-8 flex items-center gap-3 px-2">
                <div class="w-8 h-8 rounded bg-gradient-to-tr from-cyan-500 to-magenta-500 animate-pulse-slow"></div>
                <div class="flex flex-col">
                    <span class="font-display text-2xl tracking-widest text-white leading-none">VEZA</span>
                    <span class="text-[10px] text-void-500 font-mono tracking-widest uppercase">Design System
                        v5.0</span>
                </div>
            </div>

            <nav class="space-y-1 flex-grow overflow-y-auto no-scrollbar pb-20">
                <div class="px-2 mb-2 text-xs font-mono text-void-500 uppercase tracking-widest">Templates</div>
                <a href="auth.html" class="nav-item">Authentication</a>
                <a href="nexus.html" class="nav-item">Nexus Profile</a>
                <a href="social.html" class="nav-item">Social Feed</a>
                <a href="market.html" class="nav-item">Marketplace</a>
                <a href="studio.html" class="nav-item">Creator Studio</a>
                <a href="productivity.html" class="nav-item">Productivity</a>
                <a href="education.html" class="nav-item">Education</a>
                <a href="admin.html" class="nav-item active">Admin & Moderation</a>
                <a href="hardware.html" class="nav-item">Hardware Gear</a>
                <a href="developers.html" class="nav-item">Developer API</a>
                <a href="gaming.html" class="nav-item">Gaming & XP</a>

                <div class="px-2 mt-6 mb-2 text-xs font-mono text-void-500 uppercase tracking-widest">Atom Library</div>
                <a href="../index.html#intro" class="nav-item">Introduction</a>
                <a href="../index.html#colors" class="nav-item">Color Palette</a>
                <a href="../index.html#typography" class="nav-item">Typography</a>
                <a href="../index.html#buttons" class="nav-item">Buttons & Actions</a>
                <a href="../index.html#badges" class="nav-item">Badges & Status</a>
                <a href="../index.html#inputs" class="nav-item">Forms & Inputs</a>
                <a href="../index.html#cards" class="nav-item">Cards & Containers</a>
                <a href="../index.html#tables" class="nav-item">Tables & Data</a>
                <a href="../index.html#feedback" class="nav-item">Feedback & Modals</a>
            </nav>

            <!-- Theme Toggle Foot -->
            <div class="pt-4 border-t border-void-200">
                <div class="flex items-center justify-between px-2">
                    <div class="flex items-center gap-2">
                        <div class="w-2 h-2 rounded-full bg-lime-500 shadow-glow-green"></div>
                        <span class="text-xs text-void-400 font-mono">SYSTEM: ONLINE</span>
                    </div>
                    <button id="themeToggle"
                        class="w-8 h-8 rounded-full bg-void-200 text-void-600 hover:text-cyan-500 hover:bg-void-100 flex items-center justify-center transition-all">
                        <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none"
                            stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
                            <circle cx="12" cy="12" r="5"></circle>
                            <path
                                d="M12 1v2M12 21v2M4.22 4.22l1.42 1.42M18.36 18.36l1.42 1.42M1 12h2M21 12h2M4.22 19.78l1.42-1.42M18.36 5.64l1.42-1.42">
                            </path>
                        </svg>
                    </button>
                </div>
            </div>
        </aside>

        <main class="flex-grow overflow-y-auto relative scroll-smooth h-full p-4 md:p-8">
            <div class="max-w-7xl mx-auto">
                <h1 class="text-3xl font-display text-white mb-8">System Overview</h1>

                <!-- STATS -->
                <div class="admin-stats">
                    <div class="admin-card">
                        <div class="text-xs uppercase text-void-500 font-bold mb-2">Total Users</div>
                        <div class="text-3xl font-mono text-white">842,501</div>
                        <div class="text-xs text-lime-500 mt-1">↑ 12% this week</div>
                    </div>
                    <div class="admin-card">
                        <div class="text-xs uppercase text-void-500 font-bold mb-2">Active Sessions</div>
                        <div class="text-3xl font-mono text-cyan-400">42,109</div>
                    </div>
                    <div class="admin-card">
                        <div class="text-xs uppercase text-void-500 font-bold mb-2">Server Load</div>
                        <div class="text-3xl font-mono text-warning">78%</div>
                        <div class="w-full bg-void-300 h-1 mt-2 rounded overflow-hidden">
                            <div class="bg-warning h-full w-[78%]"></div>
                        </div>
                    </div>
                    <div class="admin-card">
                        <div class="text-xs uppercase text-void-500 font-bold mb-2">Revenue (MRR)</div>
                        <div class="text-3xl font-mono text-white">$1.2M</div>
                        <div class="text-xs text-lime-500 mt-1">↑ 5% this month</div>
                    </div>
                </div>

                <div class="grid grid-cols-1 lg:grid-cols-2 gap-8 mb-8">
                    <!-- SERVER LOGS -->
                    <div class="space-y-4">
                        <h3 class="text-white font-bold">System Logs</h3>
                        <div class="log-terminal">
                            <div class="log-entry info">[INFO] 12:42:01 - Backup service started</div>
                            <div class="log-entry success">[OK] 12:42:05 - Database snapshot verified (24GB)</div>
                            <div class="log-entry info">[INFO] 12:43:10 - New user registration: @cyber_punk</div>
                            <div class="log-entry warning">[WARN] 12:44:22 - High latency detected in EU-West-1 (140ms)
                            </div>
                            <div class="log-entry error">[ERR] 12:45:00 - Payment gateway timeout (Stripe)</div>
                            <div class="log-entry info">[INFO] 12:45:01 - Retrying transaction #99281...</div>
                            <div class="log-entry success">[OK] 12:45:02 - Transaction approved</div>
                            <div class="log-entry info">[INFO] 12:46:15 - Auto-scaling group triggered (+2 instances)
                            </div>
                        </div>
                    </div>

                    <!-- MODERATION QUEUE -->
                    <div class="space-y-4">
                        <h3 class="text-white font-bold">Pending Reports</h3>
                        <div
                            class="moderation-queue h-full bg-void-100 border border-void-200 rounded-lg p-4 overflow-y-auto max-h-[300px]">
                            <div class="report-item">
                                <div>
                                    <div class="font-bold text-white text-sm">Copyright Infringement</div>
                                    <div class="text-xs text-void-500">Reported by: SonyMusic_Bot</div>
                                </div>
                                <div class="flex gap-2">
                                    <button class="btn btn-sm btn-ghost">View</button>
                                    <button class="btn btn-sm btn-danger">Take Down</button>
                                </div>
                            </div>
                            <div class="report-item" style="border-left-color: var(--color-warning);">
                                <div>
                                    <div class="font-bold text-white text-sm">Abusive Language in Chat</div>
                                    <div class="text-xs text-void-500">Reported by: User #8821</div>
                                </div>
                                <div class="flex gap-2">
                                    <button class="btn btn-sm btn-ghost">Chat Log</button>
                                    <button class="btn btn-sm btn-outline">Warn</button>
                                </div>
                            </div>
                            <div class="report-item" style="border-left-color: var(--color-cyan-500);">
                                <div>
                                    <div class="font-bold text-white text-sm">Suspicious Login Activity</div>
                                    <div class="text-xs text-void-500">System Alert (Geo-IP Mismatch)</div>
                                </div>
                                <div class="flex gap-2">
                                    <button class="btn btn-sm btn-ghost">Details</button>
                                    <button class="btn btn-sm btn-outline">Freeze</button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

                <!-- USER TABLE -->
                <div class="card p-0">
                    <div class="p-4 border-b border-void-200 flex justify-between items-center bg-void-100">
                        <h3 class="font-bold text-white">Recent Users</h3>
                        <div class="flex gap-2">
                            <input type="text" placeholder="Search UUID or Email..."
                                class="bg-void-200 border-none text-xs p-2 rounded w-64 text-white">
                            <button class="btn btn-sm btn-primary">Export CSV</button>
                        </div>
                    </div>
                    <div class="table-responsive">
                        <table class="table">
                            <thead>
                                <tr>
                                    <th>User</th>
                                    <th>Role</th>
                                    <th>Status</th>
                                    <th>Last Active</th>
                                    <th>Actions</th>
                                </tr>
                            </thead>
                            <tbody>
                                <tr>
                                    <td class="flex items-center gap-3">
                                        <div class="w-8 h-8 rounded-full bg-void-200 overflow-hidden"><img
                                                src="https://i.pravatar.cc/150?u=1" class="w-full h-full"></div>
                                        <div>
                                            <div class="text-white font-bold text-xs">@senke_prime</div>
                                            <div class="text-[10px] text-void-500">senke@veza.com</div>
                                        </div>
                                    </td>
                                    <td><span class="badge badge-cyan">ADMIN</span></td>
                                    <td><span class="badge badge-lime">Active</span></td>
                                    <td>2 mins ago</td>
                                    <td><button class="btn btn-sm btn-ghost">Manage</button></td>
                                </tr>
                                <tr>
                                    <td class="flex items-center gap-3">
                                        <div class="w-8 h-8 rounded-full bg-void-200 overflow-hidden"></div>
                                        <div>
                                            <div class="text-white font-bold text-xs">@bad_actor</div>
                                            <div class="text-[10px] text-void-500">hacker@anon.org</div>
                                        </div>
                                    </td>
                                    <td><span class="badge badge-void">USER</span></td>
                                    <td><span class="badge badge-magenta">Suspended</span></td>
                                    <td>4 days ago</td>
                                    <td><button class="btn btn-sm btn-ghost">Unban</button></td>
                                </tr>
                            </tbody>
                        </table>
                    </div>
                </div>

            </div>
        </main>
    </div>

    <script type="module" src="../js/main.js"></script>
</body>

</html>