<?php
$page_title = 'Security Operations Center';
require_once __DIR__ . '/../config.php';
if (session_status() === PHP_SESSION_NONE) { session_start(); }
if (!isset($_SESSION['admin_id'])) { redirect(SITE_URL . '/admin/login.php'); }
require_once __DIR__ . '/header.php';
?>
<div style="background:#0f172a; color:#10b981; padding:30px; font-family:'Courier New', monospace; border-radius:12px; margin-bottom:24px; border:1px solid #1e293b;">
    <h2 style="color:#10b981; margin:0 0 20px; font-size:1.8rem;"><i class="fas fa-shield-alt"></i> SOC - CYBER THREAT MONITORING</h2>
    
    <div style="display:flex; justify-content:space-between; margin-bottom:25px; gap:20px;">
        <div style="border:1px solid #10b981; background:rgba(16,185,129,0.05); padding:20px; flex:1; border-radius:8px;">
            <h4 style="margin:0 0 10px; font-size:1rem;">Network Status</h4>
            <div style="font-size:2rem; font-weight:bold;">SECURE</div>
            <div style="font-size:0.85rem; margin-top:5px; color:#cbd5e1;">0 Active Intrusions</div>
        </div>
        <div style="border:1px solid #10b981; background:rgba(16,185,129,0.05); padding:20px; flex:1; border-radius:8px;">
            <h4 style="margin:0 0 10px; font-size:1rem;">DDoS Mitigation</h4>
            <div style="font-size:2rem; font-weight:bold;">ACTIVE</div>
            <div style="font-size:0.85rem; margin-top:5px; color:#cbd5e1;">Traffic scrubbing nominal</div>
        </div>
        <div style="border:1px solid #ef4444; background:rgba(239,68,68,0.1); padding:20px; flex:1; border-radius:8px;">
            <h4 style="margin:0 0 10px; color:#ef4444; font-size:1rem;">AI CCTV Analytics</h4>
            <div style="font-size:2rem; font-weight:bold; color:#ef4444; animation: pulse 2s infinite;">ALERT</div>
            <div style="font-size:0.85rem; margin-top:5px; color:#fca5a5;">Unauthorized access near Server Room B</div>
        </div>
    </div>
    
    <div style="border:1px solid #334155; background:#000; padding:20px; height:250px; overflow-y:auto; font-size:0.9rem; border-radius:8px;">
        <div style="margin-bottom:8px; color:#94a3b8;">[10:42:01] <span style="color:#10b981;">LOGIN SUCCESS</span> - Admin ID 42 (IP: 192.168.1.10)</div>
        <div style="margin-bottom:8px; color:#94a3b8;">[10:41:15] <span style="color:#3b82f6;">FIREWALL RULE UPDATED</span> - Blocked subnet 45.33.x.x</div>
        <div style="margin-bottom:8px; color:#ef4444; font-weight:bold;">[10:39:02] GEO-FENCE BREACH - Asset Tracking Tag #882 moved outside facility parameters</div>
        <div style="margin-bottom:8px; color:#94a3b8;">[10:35:44] <span style="color:#10b981;">SYSTEM BACKUP COMPLETED</span> - 1.2TB Synced to Cloud Storage Vault</div>
        <div style="margin-bottom:8px; color:#94a3b8;">[10:31:12] <span style="color:#f59e0b;">VISITOR MANAGEMENT</span> - 4 new contractor passes issued at Gate 2</div>
    </div>
</div>

<style>
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}
</style>

<?php require_once __DIR__ . '/footer.php'; ?>
