<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Lagta Store Anti-DDoS Dashboard</title>
    <style>
        /* General Styles */
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            margin: 0;
            padding: 0;
            background-color: #f3f7f9;
            color: #333;
        }

        header {
            background-color: #34495e;
            color: white;
            padding: 20px 0;
            text-align: center;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }

        header h1 {
            font-size: 2rem;
            margin: 0;
        }

        main {
            padding: 20px;
            max-width: 1200px;
            margin: 0 auto;
        }

        h2 {
            text-align: center;
            margin-bottom: 20px;
            color: #2c3e50;
            font-size: 1.8rem;
        }

        /* Table Styles */
        table {
            width: 100%;
            border-collapse: collapse;
            margin: 20px 0;
            background-color: white;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
            border-radius: 8px;
            overflow: hidden;
        }

        th, td {
            padding: 15px;
            text-align: left;
            border-bottom: 1px solid #e6e9ed;
        }

        th {
            background-color: #2980b9;
            color: white;
            font-size: 1rem;
            text-transform: uppercase;
        }

        tr:hover {
            background-color: #f1faff;
        }

        tr:nth-child(even) {
            background-color: #f9f9f9;
        }

        tbody td {
            font-size: 0.9rem;
        }

        /* Styling for Attack Log Entries */
        .attack-log-entry {
            display: grid;
            grid-template-columns: 1fr 2fr 1fr 3fr;
            gap: 10px;
            padding: 10px;
            background-color: #ecf0f1;
            border-radius: 5px;
            margin: 10px 0;
        }

        .attack-log-entry > div {
            padding: 10px;
            background-color: #ffffff;
            border-radius: 5px;
        }

        .timestamp {
            font-weight: bold;
            color: #2980b9;
        }

        .ip {
            color: #e74c3c;
        }

        .attack-type {
            font-style: italic;
        }

        .message {
            color: #7f8c8d;
        }

        /* Responsive Design */
        @media (max-width: 768px) {
            table, th, td {
                font-size: 0.85rem;
            }

            header h1 {
                font-size: 1.5rem;
            }

            h2 {
                font-size: 1.5rem;
            }

            .attack-log-entry {
                grid-template-columns: 1fr;
            }
        }
    </style>
</head>
<body>
    <header>
        <h1>Lagta Store Anti-DDoS Dashboard</h1>
    </header>
    <main>
        <!-- Attack Logs Section -->
        <h2>Attack Logs</h2>
        <div>
            <!-- Render attack logs here -->
            {{attack_logs}}
        </div>
    </main>
</body>
</html>
