* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', monospace;
    background: radial-gradient(ellipse at bottom, #0d1b2a 0%, #000000 100%);
    overflow: hidden;
    color: #00fff2;
}

#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.glass-panel {
    position: absolute;
    background: rgba(13, 27, 42, 0.3);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(0, 255, 242, 0.2);
    padding: 20px;
    box-shadow: 0 8px 32px 0 rgba(0, 255, 242, 0.1);
    z-index: 10;
}

#data-panel {
    top: 30px;
    left: 30px;
    min-width: 350px;
}

.panel-title {
    font-size: 18px;
    color: #00fff2;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(0, 255, 242, 0.5);
    border-bottom: 2px dotted rgba(0, 255, 242, 0.3);
    padding-bottom: 10px;
}

.data-row {
    display: flex;
    justify-content: space-between;
    margin: 12px 0;
    font-size: 14px;
}

.data-label {
    color: #7dd3c0;
}

.data-value {
    color: #ffffff;
    font-weight: bold;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.critical {
    color: #ff4444;
    animation: pulse 1s infinite;
}

.warning {
    color: #ff9500;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

#warning-panel {
    top: 30px;
    right: 30px;
    background: rgba(255, 68, 68, 0.2);
    border-color: rgba(255, 68, 68, 0.5);
    min-width: 320px;
}

.warning-title {
    color: #ff4444;
    font-size: 16px;
    font-weight: bold;
    text-transform: uppercase;
    animation: pulse 1s infinite;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 5px;
    overflow: hidden;
    margin-top: 8px;
    border: 1px solid rgba(0, 255, 242, 0.3);
}

.progress-fill {
    height: 100%;
    transition: width 0.3s ease;
    border-radius: 5px;
}

#health-bar {
    width: 100%;
}

.health-bar {
    background: linear-gradient(90deg, #ff4444 0%, #ff9500 50%, #00ff00 100%);
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.5);
}

#control-panel {
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
}

.btn {
    background: rgba(0, 255, 242, 0.2);
    border: 2px solid #00fff2;
    color: #00fff2;
    padding: 12px 25px;
    border-radius: 10px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.btn:hover {
    background: rgba(0, 255, 242, 0.4);
    box-shadow: 0 0 20px rgba(0, 255, 242, 0.6);
    transform: translateY(-2px);
}

.btn:active {
    transform: translateY(0);
}

#stats-panel {
    bottom: 30px;
    right: 30px;
    min-width: 250px;
}

.stat-item {
    margin: 10px 0;
    font-size: 13px;
}

.infection-stage {
    background: rgba(255, 68, 68, 0.3);
    padding: 8px;
    border-radius: 8px;
    margin-top: 10px;
    text-align: center;
    font-weight: bold;
    border: 1px solid rgba(255, 68, 68, 0.5);
}

.scanline {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(0, 255, 242, 0.03) 50%,
        transparent 100%
    );
    animation: scan 4s linear infinite;
    pointer-events: none;
    z-index: 100;
}

@keyframes scan {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 242, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 242, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 2;
}