@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono:wght@400&display=swap');

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

body {
    font-family: 'Share Tech Mono', monospace;
    background: #000;
    color: #00ff41;
    overflow: hidden;
    user-select: none;
}

#scene-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #001100 0%, #000000 70%);
}

.control-panel {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 320px;
    background: rgba(42, 42, 42, 0.95);
    border: 2px solid #00ff41;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.control-panel.collapsed {
    transform: translateX(280px);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #00ff41;
    padding-bottom: 10px;
}

.panel-header h2 {
    font-size: 14px;
    color: #00ff41;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.toggle-btn {
    background: #00ff41;
    color: #000;
    border: none;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-weight: bold;
}

.toggle-btn:hover {
    background: #00cc33;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.control-section {
    margin-bottom: 15px;
}

.control-section label {
    display: block;
    font-size: 11px;
    color: #ff6600;
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.slider {
    width: 180px;
    margin-right: 10px;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: #333;
    border-radius: 3px;
    outline: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #00ff41;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #00ff41;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.selector {
    width: 100%;
    padding: 8px;
    background: #333;
    color: #00ff41;
    border: 1px solid #00ff41;
    border-radius: 4px;
    font-family: inherit;
    font-size: 11px;
}

.selector:focus {
    outline: none;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

.preset-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 15px 0;
}

.preset-btn {
    padding: 8px;
    background: #333;
    color: #00ff41;
    border: 1px solid #00ff41;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-size: 10px;
    transition: all 0.2s ease;
}

.preset-btn:hover {
    background: #00ff41;
    color: #000;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.status-panel {
    border-top: 1px solid #00ff41;
    padding-top: 10px;
    margin-top: 15px;
}

.status-line {
    font-size: 10px;
    margin-bottom: 3px;
    display: flex;
    justify-content: space-between;
}

.status-line span {
    color: #ff6600;
}

.info-panel {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 350px;
    background: rgba(0, 0, 0, 0.9);
    border: 1px solid #00ff41;
    border-radius: 4px;
    overflow: hidden;
    z-index: 1000;
}

.terminal-header {
    background: #00ff41;
    color: #000;
    padding: 8px 12px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
}

.terminal-output {
    padding: 12px;
    height: 120px;
    overflow-y: auto;
    font-size: 10px;
    line-height: 1.4;
    color: #00ff41;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.3);
}

.terminal-output::-webkit-scrollbar {
    width: 6px;
}

.terminal-output::-webkit-scrollbar-track {
    background: #111;
}

.terminal-output::-webkit-scrollbar-thumb {
    background: #00ff41;
    border-radius: 3px;
}

.footer {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1001;
}

.footer a {
    color: #00ff41;
    text-decoration: none;
    font-size: 11px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    text-shadow: 0 0 5px rgba(0, 255, 65, 0.3);
}

.footer a:hover {
    opacity: 1;
    text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .control-panel {
        width: 280px;
        right: 10px;
        top: 10px;
        padding: 15px;
    }
    
    .control-panel.collapsed {
        transform: translateX(240px);
    }
    
    .info-panel {
        width: 300px;
        left: 10px;
        bottom: 10px;
    }
    
    .terminal-output {
        height: 80px;
        font-size: 9px;
    }
    
    .slider {
        width: 150px;
    }
    
    .preset-buttons {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

@media (max-width: 480px) {
    .control-panel {
        width: 250px;
        font-size: 10px;
    }
    
    .panel-header h2 {
        font-size: 12px;
    }
    
    .info-panel {
        width: 250px;
    }
    
    .footer {
        bottom: 10px;
        right: 10px;
    }
}

/* Glowing effects */
.control-panel {
    animation: panelGlow 3s ease-in-out infinite alternate;
}

@keyframes panelGlow {
    from {
        box-shadow: 0 0 20px rgba(0, 255, 65, 0.3);
    }
    to {
        box-shadow: 0 0 30px rgba(0, 255, 65, 0.5);
    }
}

/* Loading animation */
.terminal-output::after {
    content: "█";
    animation: blink 1s infinite;
    color: #00ff41;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}