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

body {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    background: linear-gradient(135deg, #000000 0%, #001100 100%);
    color: #00ff88;
    overflow: hidden;
    height: 100vh;
}

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

/* System Status Panel */
.system-panel {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(0, 20, 0, 0.85);
    border: 2px solid #00ff88;
    border-radius: 8px;
    padding: 16px;
    min-width: 220px;
    z-index: 10;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.3);
}

.panel-header {
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
}

.status-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 12px;
}

.status-label {
    color: #88ff88;
}

.status-value {
    color: #ffffff;
    font-weight: 700;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #00ff88;
    animation: pulse 2s infinite;
    box-shadow: 0 0 10px #00ff88;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(0.8); }
}

/* Performance Monitors */
.performance-panel {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.performance-bar {
    background: rgba(0, 20, 0, 0.85);
    border: 2px solid #00ff88;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 8px;
    min-width: 200px;
    backdrop-filter: blur(10px);
}

.bar-label {
    font-size: 12px;
    margin-bottom: 6px;
    color: #88ff88;
}

.bar-container {
    width: 100%;
    height: 8px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.cpu-bar {
    background: linear-gradient(90deg, #00ff88, #44ff99);
    box-shadow: 0 0 10px #00ff88;
}

.gpu-bar {
    background: linear-gradient(90deg, #0088ff, #44aaff);
    box-shadow: 0 0 10px #0088ff;
}

.memory-bar {
    background: linear-gradient(90deg, #8800ff, #aa44ff);
    box-shadow: 0 0 10px #8800ff;
}

/* Control Interface */
.control-panel {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    align-items: center;
    z-index: 10;
}

.toggle-switches {
    display: flex;
    gap: 16px;
    background: rgba(0, 20, 0, 0.85);
    border: 2px solid #00ff88;
    border-radius: 8px;
    padding: 16px;
    backdrop-filter: blur(10px);
}

.toggle-switch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 4px;
}

.toggle-switch:hover {
    background: rgba(0, 255, 136, 0.1);
}

.toggle-label {
    font-size: 10px;
    color: #88ff88;
    text-align: center;
}

.toggle-slider {
    width: 40px;
    height: 20px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    border: 1px solid #444;
    position: relative;
    transition: all 0.3s ease;
}

.toggle-switch.active .toggle-slider {
    background: rgba(0, 255, 136, 0.3);
    border-color: #00ff88;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

.toggle-knob {
    width: 16px;
    height: 16px;
    background: #666;
    border-radius: 50%;
    position: absolute;
    top: 2px;
    left: 2px;
    transition: all 0.3s ease;
    border: 1px solid #888;
}

.toggle-switch.active .toggle-knob {
    left: 22px;
    background: #00ff88;
    border-color: #00ff88;
    box-shadow: 0 0 8px #00ff88;
}

.execute-button {
    background: rgba(0, 20, 0, 0.85);
    border: 2px solid #00ffff;
    border-radius: 8px;
    padding: 16px 24px;
    color: #00ffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.execute-button:hover {
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.5);
    transform: translateY(-2px);
}

.execute-button:active {
    transform: translateY(0);
}

.execute-button.executing {
    animation: execute-pulse 0.2s ease-in-out;
}

@keyframes execute-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(0.95); }
}

.execute-icon {
    font-size: 16px;
    color: #00ffff;
    text-shadow: 0 0 10px #00ffff;
}

/* Responsive Design */
@media (max-width: 768px) {
    .system-panel {
        top: 10px;
        left: 10px;
        min-width: 180px;
        padding: 12px;
    }
    
    .performance-panel {
        top: 10px;
        right: 10px;
    }
    
    .performance-bar {
        min-width: 150px;
        padding: 8px 12px;
    }
    
    .control-panel {
        bottom: 10px;
        flex-direction: column;
        gap: 12px;
    }
    
    .toggle-switches {
        gap: 12px;
        padding: 12px;
    }
    
    .execute-button {
        padding: 12px 20px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .toggle-switches {
        flex-direction: column;
        gap: 8px;
    }
    
    .toggle-switch {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }
    
    .performance-panel,
    .system-panel {
        position: relative;
        margin: 10px;
    }
    
    .control-panel {
        position: relative;
        left: 0;
        transform: none;
        margin: 10px;
    }
}

/* Loading Animation */
.loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    color: #00ff88;
    text-shadow: 0 0 20px #00ff88;
    z-index: 100;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background: #00ff88;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00ffff;
}

/* Text Glow Effects */
.status-value,
.panel-header,
.execute-button {
    text-shadow: 0 0 8px currentColor;
}

/* Glitch Effect for Mode Transitions */
@keyframes glitch {
    0%, 100% { 
        transform: translateX(0);
        filter: hue-rotate(0deg);
    }
    10% { 
        transform: translateX(-2px);
        filter: hue-rotate(90deg);
    }
    20% { 
        transform: translateX(2px);
        filter: hue-rotate(180deg);
    }
    30% { 
        transform: translateX(-2px);
        filter: hue-rotate(270deg);
    }
    40% { 
        transform: translateX(2px);
        filter: hue-rotate(360deg);
    }
    50% { 
        transform: translateX(0);
        filter: hue-rotate(0deg);
    }
}

.executing {
    animation: glitch 0.5s ease-in-out;
}