:root {
    --bg-color: #050505;
    --text-color: #e0e0e0;
    --accent-color: #ff00ff;
    /* Neon Magenta */
    --accent-secondary: #00ffff;
    /* Cyan */
    --grid-line: rgba(255, 255, 255, 0.05);
    --panel-bg: rgba(20, 20, 20, 0.8);
    --font-mono: 'Roboto Mono', monospace;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-mono);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    background-image:
        linear-gradient(var(--grid-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
    background-size: 30px 30px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
    width: 100%;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--accent-color);
    margin-bottom: 30px;
    text-shadow: 0 0 10px var(--accent-color);
}

h1 {
    font-size: 2.5rem;
    color: var(--accent-color);
    letter-spacing: 2px;
}

.status-indicator {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-dot {
    width: 12px;
    height: 12px;
    background-color: #00ff00;
    border-radius: 50%;
    box-shadow: 0 0 10px #00ff00;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--panel-bg);
    border: 1px solid var(--accent-color);
    padding: 20px;
    text-align: center;
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.2);
    backdrop-filter: blur(5px);
}

.stat-card h3 {
    font-size: 1rem;
    color: var(--accent-secondary);
    margin-bottom: 10px;
}

.stat-card p {
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 0 0 5px currentColor;
}

/* --- New Client Info Panel --- */
.client-info-panel {
    background: var(--panel-bg);
    border: 1px solid var(--accent-color);
    /* Green border for "friendly" info? Or keep theme */
    border-left: 5px solid var(--accent-secondary);
    padding: 20px;
    margin-bottom: 30px;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.1);
}

.client-info-panel h2 {
    font-size: 1.2rem;
    color: var(--accent-secondary);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.client-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.detail-item {
    display: flex;
    flex-direction: column;
}

.detail-item .label {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 5px;
}

.detail-item .value {
    font-size: 1.2rem;
    color: #fff;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

/* --- End New Client Info Panel --- */

.main-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

@media (max-width: 1024px) {
    .main-content {
        grid-template-columns: 1fr;
    }
}

.chart-container {
    background: var(--panel-bg);
    border: 1px solid var(--grid-line);
    padding: 20px;
    height: 400px;
    position: relative;
    box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.5);
}

.log-container {
    background: var(--panel-bg);
    border: 1px solid var(--grid-line);
    padding: 20px;
    height: 400px;
    display: flex;
    flex-direction: column;
}

.log-container h3 {
    margin-bottom: 15px;
    color: var(--accent-secondary);
    border-bottom: 1px solid var(--grid-line);
    padding-bottom: 5px;
}

.log-window {
    flex-grow: 1;
    overflow-y: hidden;
    /* Auto scroll */
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.log-entry {
    padding: 4px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-family: 'Courier New', Courier, monospace;
}

.log-time {
    color: #888;
    margin-right: 10px;
}

.log-ip {
    color: var(--accent-secondary);
    margin-right: 10px;
}

.log-method {
    color: #ffff00;
    margin-right: 10px;
    font-weight: bold;
}

.log-target {
    color: var(--accent-color);
}

.map-container {
    background: var(--panel-bg);
    border: 1px solid var(--grid-line);
    padding: 20px;
    margin-bottom: 30px;
    height: 200px;
    position: relative;
    overflow: hidden;
}

.mock-map {
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 50% 50%, rgba(0, 255, 255, 0.1) 0%, transparent 60%),
        linear-gradient(0deg, transparent 24%, rgba(0, 255, 255, .1) 25%, rgba(0, 255, 255, .1) 26%, transparent 27%, transparent 74%, rgba(0, 255, 255, .1) 75%, rgba(0, 255, 255, .1) 76%, transparent 77%, transparent);
    background-size: 50px 50px;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 20px;
    background: linear-gradient(to bottom, transparent, var(--accent-secondary), transparent);
    opacity: 0.3;
    animation: scan 4s linear infinite;
}

@keyframes scan {
    0% {
        top: -20px;
    }

    100% {
        top: 100%;
    }
}

footer {
    text-align: center;
    color: #666;
    margin-top: auto;
    font-size: 0.8rem;
}

footer a {
    color: var(--accent-secondary);
    text-decoration: none;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #111;
}

::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 4px;
}