<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>NETWORK MAP COMMAND CENTRE </title>
    <link rel="stylesheet" href="dashboard-styles.css">
    <style>
        body {
            font-family: 'Courier New', Courier, monospace;
            background-color: #121212; /* Keep background dark */
            color: #fff;
        }

        .header {
            background-color: #333;
            padding: 20px;
            text-align: center;
        }

        .logo img {
            width: 50px;
            vertical-align: middle;
        }

        .title h1 {
            font-size: 2em;
            color: #4CAF50; /* Nmap Green */
        }

        .container {
            display: flex;
            padding: 20px;
        }

        /* Sidebar: Set dark background with green border */
        .left-sidebar {
            width: 25%;
            background-color: #2e2e2e;
            padding: 10px;
            margin-right: 20px;
            border: 2px solid #4CAF50; /* Green border */
        }

        .nmap-results h3, .network-info h3, .network-details h3 {
            color: #00BCD4; /* Light Blue */
            font-size: 1.2em;
        }

        /* Nmap sections with black background and green border */
        .nmap-section {
            margin-bottom: 15px;
            background-color: #1e1e1e; /* Dark background for sections */
            border: 2px solid #4CAF50; /* Green border */
            padding: 15px;
            border-radius: 8px;
        }

        .nmap-section h4 {
            color: #FF5722; /* Nmap Red */
            font-size: 1em;
            margin: 5px 0;
        }

        .nmap-section ul {
            list-style-type: none;
            padding-left: 0;
        }

        .nmap-section li {
            color: #B0BEC5; /* Light Grey */
        }

        /* Main section: Keep black background with green border */
        .main-section {
            width: 75%;
            background-color: #1E1E1E;
            padding: 10px;
            border: 2px solid #4CAF50; /* Green border */
        }

        .btn {
            background-color: #FF5722;
            color: white;
            padding: 10px;
            border: none;
            cursor: pointer;
            margin: 10px 0;
            font-size: 1.1em;
        }

        .btn:hover {
            background-color: #E64A19;
        }

        .scan-updates {
            font-size: 1.1em;
            color: #00BCD4;
        }

        .ai-defender-summary {
            font-size: 1.1em;
            color: #76FF03; /* Green for active defense */
        }

        .ai-defender-status button {
            font-size: 1.2em;
            padding: 12px;
            width: 100%;
        }

        .threats {
            font-size: 1.1em;
            color: #FFEB3B; /* Yellow for threats */
        }

        .intelligence-updates {
            font-size: 1.1em;
            color: #8BC34A; /* Green for updates */
        }

        progress {
            width: 100%;
            height: 20px;
            margin-top: 10px;
        }

        #scan-progress-bar {
            background-color: #00BCD4; /* Light Blue */
        }

        .scan-summary p {
            font-size: 1.1em;
            color: #FFFFFF;
        }

        .scan-summary h4 {
            color: #FF5722;
        }

        /* Update the look of input and button */
        #scan-ip-input {
            width: 100%;
            padding: 10px;
            border: 2px solid #4CAF50; /* Green border */
            background-color: #2e2e2e; /* Dark background */
            color: #fff;
            border-radius: 4px;
            font-size: 1em;
        }

        #scan-ip-input::placeholder {
            color: #B0BEC5; /* Placeholder text color */
        }

        #scan-status-btn {
            width: 100%;
            padding: 15px;
            font-size: 1.2em;
            color: #fff;
            background-color: #4CAF50; /* Green button */
            border: none;
            border-radius: 4px;
        }

        #scan-status-btn:hover {
            background-color: #388E3C; /* Darker Green on hover */
        }

        /* Apply styles for the scan results container */
        #scan-controls {
            margin-top: 20px;
            background-color: #1E1E1E;
            padding: 15px;
            border-radius: 8px;
            border: 2px solid #4CAF50; /* Green border */
        }

        #scan-progress-container {
            margin-top: 20px;
        }
    </style>
</head>
<body>
    <div class="header">
        <div class="logo">
            <img src="NMAPEYE.png" alt="Logo">
        </div>
        <div class="title">
            <h1>NETWORK MAP AI COMMAND CENTRE </h1>
        </div>
    </div>

    <div class="container">
        <!-- Left Sidebar: Network Information -->
        <div class="left-sidebar">
            <h2>Network Information</h2>

            <!-- Host Information -->
            <div class="network-info">
                <h3>Host Information</h3>
                <p><strong>Current IP:</strong> <span style="color: #00BCD4;" id="current-ip">192.168.1.10</span></p>
                <p><strong>Hostname:</strong> <span style="color: #00BCD4;" id="hostname">server01.local</span></p>
                <p><strong>MAC Address:</strong> <span style="color: #00BCD4;" id="mac-address">00:1A:2B:3C:4D:5E</span></p>
            </div>

            <!-- NMAP Scan Results (Dynamic Section) -->
            <div class="nmap-results">
                <h3>NMAP Scan Results</h3>
                <p><strong>Target IP:</strong> <span style="color: #00BCD4;" id="nmap-target-ip">192.168.1.10</span></p>

                <!-- Scan Details Section: Placeholder for Dynamic Results -->
                <div class="nmap-section">
                    <h4>Open Ports</h4>
                    <ul id="open-ports">
                        <li style="color: #76FF03;">22/tcp (SSH) - Open</li>
                        <li style="color: #FFEB3B;">80/tcp (HTTP) - Open</li>
                        <li style="color: #FF5722;">443/tcp (HTTPS) - Open</li>
                        <li style="color: #B0BEC5;">3389/tcp (RDP) - Open</li>
                    </ul>
                </div>

                <div class="nmap-section">
                    <h4>OS Detection</h4>
                    <p style="color: #00BCD4;" id="os-detection">Linux 4.15 (Ubuntu 18.04)</p>
                </div>

                <div class="nmap-section">
                    <h4>Service Versions</h4>
                    <ul id="service-versions">
                        <li style="color: #FF5722;">SSH 7.2 (OpenSSH 7.2p2 Ubuntu 4ubuntu2.8)</li>
                        <li style="color: #76FF03;">Apache 2.4.29 (Ubuntu)</li>
                        <li style="color: #FFEB3B;">Nginx 1.14.0</li>
                    </ul>
                </div>

                <div class="nmap-section">
                    <h4>Script Scan Results</h4>
                    <ul id="script-scan-results">
                        <li style="color: #FF5722;">Check for Heartbleed: Vulnerable</li>
                        <li style="color: #76FF03;">SSL/TLS: TLS 1.2 supported</li>
                    </ul>
                </div>

                <div class="nmap-section">
                    <h4>Traceroute</h4>
                    <ul id="traceroute">
                        <li style="color: #76FF03;">1. 192.168.1.1 (gateway) - 1ms</li>
                        <li style="color: #B0BEC5;">2. 10.1.1.1 - 4ms</li>
                        <li style="color: #FFEB3B;">3. 172.16.0.1 - 8ms</li>
                    </ul>
                </div>

                <div class="nmap-section">
                    <h4>Firewall Detection</h4>
                    <ul id="firewall-detection">
                        <li style="color: #FF5722;">Firewall detected on port 443/tcp - Filtering packets</li>
                    </ul>
                </div>
            </div>

            <!-- Vulnerability Scanning -->
            <div class="nmap-section">
                <h4>Vulnerability Scan Results</h4>
                <ul id="vuln-scan-results">
                    <li style="color: #FF5722;">SQL Injection detected in HTTP request headers</li>
                    <li style="color: #FFEB3B;">Cross-Site Scripting (XSS) potential on login page</li>
                </ul>
            </div>

            <!-- SSL/TLS Information -->
            <div class="nmap-section">
                <h4>SSL/TLS Information</h4>
                <ul id="ssl-tls-info">
                    <li style="color: #76FF03;">TLS 1.2 supported on port 443/tcp</li>
                    <li style="color: #FF5722;">SSL certificate expired on 01/01/2023</li>
                </ul>
            </div>
        </div>

        <!-- Main Section: Scan and AI Updates -->
        <div class="main-section">
            <h2 style="color: #FF5722;"> Network Scan - AI Summary</h2>
            <div id="scan-controls">
                <input type="text" id="scan-ip-input" placeholder="Enter IP to Scan" />
                <button id="scan-status-btn" class="btn btn-active">Start Scan</button>
                <div id="scan-progress-container">
                    <progress id="scan-progress-bar" value="50" max="100"></progress>
                    <p id="scan-updates" class="scan-updates">Scan Updates: 50% Complete</p>
                </div>
            </div>

            <div class="scan-summary">
                <h4>Scan Summary</h4>
                <p><strong>Scan Result for IP:</strong> <span style="color: #00BCD4;" id="scan-ip">192.168.1.10</span></p>
                <p><strong>Scan Status:</strong> <span style="color: #76FF03;" id="scan-status">Completed</span></p>
                <p><strong>Scan Duration:</strong> <span style="color: #00BCD4;" id="scan-duration">4 minutes</span></p>
                <p><strong>Open Ports:</strong></p>
                <ul id="scan-ports">
                    <li style="color: #76FF03;">22/tcp - Open (SSH)</li>
                    <li style="color: #FFEB3B;">80/tcp - Open (HTTP)</li>
                </ul>
                <p><strong>OS Detection:</strong> <span style="color: #00BCD4;" id="scan-os-detection">Ubuntu 18.04 (Linux 4.15)</span></p>
                <p><strong>Service Versions:</strong></p>
                <ul id="scan-service-versions">
                    <li style="color: #FF5722;">Apache 2.4.29 (Ubuntu)</li>
                    <li style="color: #76FF03;">Nginx 1.14.0</li>
                </ul>
            </div>

            <div class="ai-defender-status">
                <h4>AI Defender Status</h4>
                <button class="btn" id="ai-defender-btn">Activate AI Defender</button>
                <p id="ai-defender-summary" class="ai-defender-summary">Active Defense: Engaged</p>
            </div>

            <!-- Threats -->
            <div class="threats">
                <h4>Threats Detected</h4>
                <p style="color: #FFEB3B;">Malware detected in port 80. Action required!</p>
                <p style="color: #FF5722;">SQL Injection vulnerability detected in HTTP headers.</p>
            </div>

            <!-- Intelligence Updates -->
            <div class="intelligence-updates">
                <h4>Cyber Intelligence Updates</h4>
                <p style="color: #8BC34A;">New update on ransomware activity. Watch out for IPs 192.168.1.0/24.</p>
            </div>
        </div>
    </div>
</body>
</html>