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

body {
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    color: #00ffff;
    overflow: hidden;
    user-select: none;
}

#scene-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.controls-panel {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #00ffff;
    border-radius: 10px;
    padding: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    z-index: 1000;
    max-height: 90vh;
    overflow-y: auto;
    min-width: 200px;
}

.control-section {
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.control-section label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 5px currentColor;
}

.power-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(145deg, #ff0040, #cc0030);
    border: 3px solid #00ffff;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(255, 0, 64, 0.5);
    align-self: center;
}

.power-button:hover {
    background: linear-gradient(145deg, #ff2060, #ff0040);
    box-shadow: 0 0 25px rgba(255, 0, 64, 0.8);
    transform: scale(1.05);
}

.power-button:active {
    transform: scale(0.95);
}

.power-label {
    text-align: center;
    font-size: 10px;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

select, input[type="range"] {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid #00ffff;
    border-radius: 5px;
    color: #00ffff;
    padding: 5px;
    font-family: inherit;
}

select {
    cursor: pointer;
}

select:focus, input[type="range"]:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

input[type="range"] {
    -webkit-appearance: none;
    height: 6px;
    background: rgba(0, 255, 255, 0.3);
    border-radius: 3px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #00ffff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.7);
}

input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #00ffff;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.7);
}

.toggle-btn, .action-btn, .view-btn {
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid #00ffff;
    border-radius: 5px;
    color: #00ffff;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    font-size: 11px;
    text-transform: uppercase;
}

.toggle-btn:hover, .action-btn:hover, .view-btn:hover {
    background: rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.view-buttons {
    flex-direction: row;
    gap: 5px;
}

.view-btn {
    flex: 1;
    padding: 6px 8px;
    font-size: 10px;
}

#fps-counter {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #00ffff;
    border-radius: 5px;
    padding: 8px 12px;
    font-size: 12px;
    color: #00ffff;
    text-shadow: 0 0 5px currentColor;
    z-index: 1000;
}

.footer {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid #00ffff;
    border-radius: 15px;
    padding: 8px 16px;
    font-size: 11px;
    color: #00ffff;
    text-align: center;
    z-index: 1000;
    backdrop-filter: blur(5px);
}

.footer a {
    color: #ff00ff;
    text-decoration: none;
    text-shadow: 0 0 5px currentColor;
}

.footer a:hover {
    color: #ffff00;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .controls-panel {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
        padding: 15px;
    }
    
    .control-section {
        margin-bottom: 12px;
    }
    
    .power-button {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .view-buttons {
        flex-direction: column;
    }
    
    .view-btn {
        padding: 8px 12px;
    }
    
    #fps-counter {
        top: 10px;
        left: 10px;
        font-size: 10px;
        padding: 6px 10px;
    }
    
    .footer {
        bottom: 5px;
        font-size: 10px;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .controls-panel {
        position: fixed;
        top: auto;
        bottom: 60px;
        left: 10px;
        right: 10px;
        max-height: 50vh;
        border-radius: 10px 10px 0 0;
    }
}

/* Scrollbar styling */
.controls-panel::-webkit-scrollbar {
    width: 6px;
}

.controls-panel::-webkit-scrollbar-track {
    background: rgba(0, 255, 255, 0.1);
    border-radius: 3px;
}

.controls-panel::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 255, 0.5);
    border-radius: 3px;
}

.controls-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 255, 0.7);
}

/* Animation keyframes */
@keyframes glow {
    0%, 100% { text-shadow: 0 0 5px currentColor, 0 0 10px currentColor; }
    50% { text-shadow: 0 0 10px currentColor, 0 0 20px currentColor; }
}

.power-label {
    animation: glow 2s ease-in-out infinite;
}

/* Focus states for accessibility */
button:focus, select:focus, input:focus {
    outline: 2px solid #ffff00;
    outline-offset: 2px;
}