<?php if (basename($_SERVER['PHP_SELF']) == 'radar_monitor.php') { die('Access Denied'); } ?>

<div class="lg:col-span-8 bg-white dark:bg-slate-800 rounded-3xl shadow-sm border border-gray-100 dark:border-slate-700 p-6 md:p-8 flex flex-col h-full">
    <div class="flex justify-between items-center mb-6 border-b border-gray-100 dark:border-slate-700 pb-4">
        <h3 class="text-lg font-black text-gray-800 dark:text-white flex items-center gap-2">
            <span class="relative flex h-3 w-3"><span class="animate-ping absolute inline-flex h-full w-full rounded-full bg-rose-400 opacity-75"></span><span class="relative inline-flex rounded-full h-3 w-3 bg-rose-500"></span></span>
            رادار کاربران پرخطر (لایو)
        </h3>
        <span class="text-[10px] font-mono bg-gray-100 dark:bg-slate-700 text-gray-600 dark:text-gray-300 px-3 py-1.5 rounded-lg border border-gray-200 dark:border-slate-600" id="last_sync_time">در حال اتصال...</span>
    </div>

    <div class="flex-1 overflow-y-auto custom-scrollbar pr-2" style="max-height: 400px;">
        <table class="w-full text-right" dir="rtl">
            <thead>
                <tr class="text-[10px] font-black text-gray-400 dark:text-gray-500 uppercase tracking-wider border-b border-gray-100 dark:border-slate-700">
                    <th class="pb-3 px-2">نام کاربری</th>
                    <th class="pb-3 px-2 text-center">حجم کل</th>
                    <th class="pb-3 px-2 text-center">مصرف در زمان شکار</th>
                    <th class="pb-3 px-2">وضعیت</th>
                    <th class="pb-3 px-2">زمان اجرا</th>
                </tr>
            </thead>
            <tbody id="guardian_logs_table" class="text-sm">
                <tr><td colspan="5" class="text-center py-10 text-gray-400 font-bold text-xs">در حال بارگذاری اطلاعات رادار...</td></tr>
            </tbody>
        </table>
    </div>
</div>