* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0a0a0a;
    color: #00ff41;
    font-family: 'Share Tech Mono', monospace;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Cyber Grid Background */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 65, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 65, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: -1;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Alert Overlay */
.alert-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 0, 0, 0.9);
    z-index: 1000;
    animation: pulseRed 0.5s infinite alternate;
}

@keyframes pulseRed {
    from { background-color: rgba(255, 0, 0, 0.9); }
    to { background-color: rgba(139, 0, 0, 0.9); }
}

.alert-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    padding: 40px;
    background: rgba(0, 0, 0, 0.95);
    border: 3px solid #ff0000;
    border-radius: 10px;
    box-shadow: 0 0 100px #ff0000;
}

.red-light {
    width: 100px;
    height: 100px;
    background: #ff0000;
    border-radius: 50%;
    margin: 0 auto 30px;
    animation: blink 0.3s infinite;
    box-shadow: 0 0 50px #ff0000;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.alert-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3em;
    color: #ffffff;
    text-shadow: 0 0 20px #ff0000;
    margin-bottom: 30px;
}

.timer-display {
    font-family: 'Orbitron', sans-serif;
    font-size: 5em;
    color: #ffffff;
    text-shadow: 0 0 20px #00ffff;
    margin: 30px 0;
    animation: pulseTimer 1s infinite;
}

@keyframes pulseTimer {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.siren-animation {
    font-size: 4em;
    color: #ff9900;
    margin: 30px 0;
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.defend-btn {
    background: linear-gradient(45deg, #00ff41, #00ffff);
    border: none;
    padding: 20px 40px;
    font-size: 1.5em;
    font-family: 'Orbitron', sans-serif;
    color: #000;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 30px;
}

.defend-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 50px #00ff41;
}

/* Main Container */
.cyber-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

/* Header */
.cyber-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid #00ff41;
    margin-bottom: 40px;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { box-shadow: 0 0 20px #00ff41; }
    to { box-shadow: 0 0 40px #00ff41; }
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo i {
    font-size: 3em;
    color: #00ff41;
}

.logo h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5em;
}

.logo span {
    color: #00ffff;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 10px;
}

.status-dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #00ff41;
    animation: pulse 2s infinite;
}

.status-dot.active {
    background: #00ff41;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Network Visualization */
.network-visual {
    position: relative;
    height: 300px;
    margin: 40px 0;
    border: 1px solid rgba(0, 255, 65, 0.3);
    border-radius: 10px;
    overflow: hidden;
}

.node {
    position: absolute;
    width: 80px;
    height: 80px;
    background: rgba(0, 20, 10, 0.9);
    border: 2px solid #00ff41;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    color: #00ff41;
    animation: float 6s ease-in-out infinite;
}

.node:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.node:nth-child(2) {
    top: 60%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 1s;
}

.node:nth-child(3) {
    top: 20%;
    right: 10%;
    animation-delay: 2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

.connecting-lines {
    position: absolute;
    width: 100%;
    height: 100%;
}

.connecting-lines::before,
.connecting-lines::after {
    content: '';
    position: absolute;
    width: 40%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #00ff41, transparent);
    top: 50%;
    left: 10%;
    animation: flow 3s linear infinite;
}

.connecting-lines::after {
    left: 50%;
    width: 40%;
    animation-delay: 1.5s;
}

@keyframes flow {
    0% { background-position: -100% 0; }
    100% { background-position: 200% 0; }
}

.data-packets {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #00ffff;
    border-radius: 50%;
    animation: movePacket 4s linear infinite;
}

@keyframes movePacket {
    0% { left: 10%; top: 20%; }
    25% { left: 30%; top: 40%; }
    50% { left: 50%; top: 60%; }
    75% { left: 70%; top: 40%; }
    100% { left: 90%; top: 20%; }
}

/* Dashboard Widgets */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.widget {
    background: rgba(0, 20, 10, 0.8);
    border: 1px solid #00ff41;
    border-radius: 10px;
    padding: 25px;
    transition: all 0.3s;
}

.widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 255, 65, 0.3);
}

.widget h3 {
    color: #00ffff;
    margin-bottom: 20px;
    font-family: 'Orbitron', sans-serif;
}

.traffic-meter {
    width: 100%;
    height: 20px;
    background: rgba(0, 255, 65, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin: 20px 0;
}

.meter-fill {
    height: 100%;
    background: linear-gradient(90deg, #00ff41, #00ffff);
    width: 65%;
    animation: trafficFlow 2s infinite;
}

@keyframes trafficFlow {
    0%, 100% { width: 65%; }
    50% { width: 70%; }
}

.stats {
    font-size: 2em;
    font-family: 'Orbitron', sans-serif;
    text-align: center;
    color: #00ff41;
}

.threat-level {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
}

.level-bar {
    flex-grow: 1;
    height: 20px;
    background: linear-gradient(90deg, #00ff41, #ff9900, #ff0000);
    border-radius: 10px;
    animation: threatPulse 3s infinite;
}

@keyframes threatPulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.uptime-display {
    font-size: 3em;
    font-family: 'Orbitron', sans-serif;
    color: #00ff41;
    text-align: center;
    margin: 20px 0;
}

.uptime-graph {
    height: 100px;
    position: relative;
}

.graph-bar {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 80%;
    background: linear-gradient(to top, #00ff41, transparent);
    animation: graphWave 4s infinite;
}

@keyframes graphWave {
    0%, 100% { height: 80%; }
    50% { height: 95%; }
}

.load-indicator {
    display: flex;
    gap: 10px;
    height: 100px;
    align-items: flex-end;
}

.load-segment {
    flex: 1;
    background: #00ff41;
    border-radius: 5px 5px 0 0;
    animation: loadBounce 2s infinite;
}

.load-segment:nth-child(1) { height: 60%; animation-delay: 0s; }
.load-segment:nth-child(2) { height: 80%; animation-delay: 0.2s; }
.load-segment:nth-child(3) { height: 40%; animation-delay: 0.4s; }
.load-segment:nth-child(4) { height: 90%; animation-delay: 0.6s; }

@keyframes loadBounce {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.8); }
}

/* Control Panel */
.control-panel {
    background: rgba(0, 10, 20, 0.9);
    border: 2px solid #00ffff;
    border-radius: 10px;
    padding: 30px;
    margin: 40px 0;
}

.controls {
    display: flex;
    gap: 20px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.cyber-btn {
    flex: 1;
    min-width: 200px;
    padding: 20px;
    background: linear-gradient(45deg, #001a0a, #003320);
    border: 1px solid #00ff41;
    color: #00ff41;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.2em;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.cyber-btn:hover {
    background: linear-gradient(45deg, #00ff41, #00ffff);
    color: #000;
    transform: scale(1.05);
    box-shadow: 0 0 30px #00ff41;
}

.attack-instructions {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid #ff0000;
    border-radius: 5px;
    padding: 20px;
    margin-top: 30px;
}

.attack-instructions h3 {
    color: #ff9900;
    margin-bottom: 15px;
}

.attack-instructions code {
    background: rgba(0, 0, 0, 0.5);
    padding: 5px 10px;
    border-radius: 3px;
    color: #00ffff;
    display: inline-block;
    margin: 5px 0;
}

/* Log Container */
.log-container {
    background: rgba(0, 0, 0, 0.8);
    border: 1px solid #00ffff;
    border-radius: 10px;
    padding: 25px;
    margin-top: 40px;
}

.logs {
    height: 200px;
    overflow-y: auto;
    background: #000;
    padding: 15px;
    border-radius: 5px;
    font-family: 'Courier New', monospace;
}

.log-entry {
    padding: 5px 0;
    border-bottom: 1px solid rgba(0, 255, 65, 0.1);
    color: #00ff41;
}

.time {
    color: #00ffff;
}

/* Responsive */
@media (max-width: 768px) {
    .cyber-header {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .alert-title {
        font-size: 2em;
    }
    
    .timer-display {
        font-size: 3em;
    }
    
    .controls {
        flex-direction: column;
    }
    
    .cyber-btn {
        min-width: 100%;
    }
}
.real-time-stats {
    background: rgba(0, 20, 10, 0.8);
    border: 1px solid #00ffff;
    border-radius: 10px;
    padding: 20px;
    margin: 20px 0;
}

.stat-number {
    font-size: 3em;
    font-family: 'Orbitron', sans-serif;
    color: #00ff41;
    text-align: center;
    margin: 10px 0;
}

.attacker-list {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid #ff0000;
    border-radius: 5px;
    padding: 10px;
    min-height: 50px;
}

.attacker-item {
    color: #ff9900;
    padding: 5px;
    border-bottom: 1px solid rgba(255, 153, 0, 0.3);
}