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

body {
    font-family: 'Arial', sans-serif;
    background: #000;
    color: #fff;
    overflow: hidden;
    cursor: crosshair;
}

#scene-container {
    width: 100vw;
    height: 100vh;
    position: relative;
}

.glass-panel {
    position: fixed;
    background: rgba(0, 20, 40, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 255, 255, 0.1);
    z-index: 1000;
}

#control-panel {
    top: 20px;
    right: 20px;
    width: 280px;
    max-height: 80vh;
    overflow-y: auto;
}

#info-panel {
    bottom: 120px;
    right: 20px;
    width: 200px;
    font-size: 14px;
}

#instructions {
    bottom: 20px;
    left: 20px;
    width: 400px;
    font-size: 12px;
    opacity: 0.9;
}

.glass-panel h3, .glass-panel h4 {
    color: #00ffff;
    margin-bottom: 15px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.control-group {
    margin-bottom: 20px;
}

.control-group label {
    display: block;
    margin-bottom: 8px;
    color: #cccccc;
    font-size: 14px;
}

input[type="range"] {
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #333, #00ff00);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

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

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

select {
    width: 100%;
    padding: 8px;
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(0, 255, 255, 0.5);
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
}

.color-buttons {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}

.color-btn {
    width: 40px;
    height: 40px;
    border: 3px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.color-btn.red { background: #ff0000; }
.color-btn.green { background: #00ff00; }
.color-btn.blue { background: #0088ff; }
.color-btn.purple { background: #8800ff; }

.color-btn.active {
    border-color: #00ffff;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.8);
    transform: scale(1.1);
}

.color-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.toggle-btn, .action-btn {
    width: 100%;
    padding: 10px;
    margin: 5px 0;
    background: rgba(0, 40, 80, 0.8);
    border: 1px solid rgba(0, 255, 255, 0.5);
    border-radius: 6px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.toggle-btn.active {
    background: rgba(0, 255, 255, 0.2);
    border-color: #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

.action-btn:hover, .toggle-btn:hover {
    background: rgba(0, 255, 255, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.2);
}

.footer {
    position: fixed;
    bottom: 10px;
    right: 50%;
    transform: translateX(50%);
    text-align: center;
    font-size: 12px;
    opacity: 0.7;
    z-index: 999;
}

.footer a {
    color: #00ffff;
    text-decoration: none;
}

.footer a:hover {
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.8);
}

#info-panel div {
    margin-bottom: 8px;
    padding: 4px 0;
    border-bottom: 1px solid rgba(0, 255, 255, 0.2);
}

#info-panel span {
    color: #00ff00;
    font-weight: bold;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #control-panel {
        width: 250px;
        font-size: 12px;
    }
    
    #instructions {
        width: 300px;
        font-size: 11px;
    }
    
    .glass-panel {
        padding: 15px;
    }
}

/* Custom scrollbar for control panel */
#control-panel::-webkit-scrollbar {
    width: 6px;
}

#control-panel::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 3px;
}

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

#control-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 255, 0.8);
}