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

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

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

/* Control Panel */
.control-panel {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 300px;
    background: rgba(26, 26, 26, 0.85);
    border: 1px solid #00ffff;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    z-index: 1000;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: rgba(0, 255, 255, 0.1);
    border-radius: 10px 10px 0 0;
    border-bottom: 1px solid #00ffff;
}

.panel-header h2 {
    font-family: 'Orbitron', monospace;
    font-size: 1.2em;
    color: #00ffff;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.toggle-btn {
    background: none;
    border: 1px solid #00ffff;
    color: #00ffff;
    width: 30px;
    height: 30px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.2em;
    transition: all 0.3s ease;
}

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

.panel-content {
    padding: 20px;
    max-height: 70vh;
    overflow-y: auto;
}

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

.control-section h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1em;
    color: #00ffff;
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.control-item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    gap: 10px;
}

.control-item label {
    min-width: 60px;
    font-size: 0.9em;
    color: #ccc;
}

.control-item input[type="range"] {
    flex: 1;
    height: 4px;
    background: linear-gradient(to right, #00ffff, #ff6600);
    border-radius: 2px;
    outline: none;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    -webkit-appearance: none;
}

.control-item input[type="range"]:hover {
    opacity: 1;
}

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

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

.control-item input[type="color"] {
    width: 40px;
    height: 30px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background: none;
}

.control-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #00ffff;
}

.control-item .value {
    min-width: 40px;
    text-align: right;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8em;
    color: #00ffff;
}

/* Action Bar */
.action-bar {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    background: rgba(26, 26, 26, 0.85);
    padding: 15px 25px;
    border-radius: 50px;
    border: 1px solid #00ffff;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.action-btn {
    padding: 10px 20px;
    background: transparent;
    border: 1px solid #00ffff;
    color: #00ffff;
    border-radius: 25px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.9em;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

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

.preset-select {
    padding: 10px 15px;
    background: rgba(26, 26, 26, 0.9);
    border: 1px solid #00ffff;
    color: #00ffff;
    border-radius: 25px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.9em;
    outline: none;
}

.preset-select option {
    background: #1a1a1a;
    color: #00ffff;
}

/* Export Panel */
.export-panel {
    position: fixed;
    bottom: 30px;
    left: 30px;
    background: rgba(26, 26, 26, 0.85);
    border: 1px solid #00ffff;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.export-panel .panel-header {
    padding: 10px 15px;
    background: rgba(0, 255, 255, 0.1);
    border-radius: 10px 10px 0 0;
}

.export-panel .panel-header h3 {
    font-family: 'Orbitron', monospace;
    font-size: 1em;
    color: #00ffff;
}

.export-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.export-btn {
    padding: 8px 15px;
    background: transparent;
    border: 1px solid #00ffff;
    color: #00ffff;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.9em;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.export-btn:hover {
    background: rgba(0, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* Custom scrollbar */
.panel-content::-webkit-scrollbar {
    width: 8px;
}

.panel-content::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 4px;
}

.panel-content::-webkit-scrollbar-thumb {
    background: #00ffff;
    border-radius: 4px;
    opacity: 0.7;
}

.panel-content::-webkit-scrollbar-thumb:hover {
    opacity: 1;
}

/* Responsive design */
@media (max-width: 768px) {
    .control-panel {
        width: calc(100vw - 40px);
        right: 20px;
        left: 20px;
        top: 10px;
    }
    
    .action-bar {
        bottom: 20px;
        flex-wrap: wrap;
        justify-content: center;
        padding: 10px 15px;
    }
    
    .export-panel {
        left: 20px;
        bottom: 120px;
    }
    
    .control-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .control-item label {
        min-width: auto;
    }
    
    .control-item input[type="range"] {
        width: 100%;
    }
    
    .action-btn {
        padding: 8px 15px;
        font-size: 0.8em;
    }
    
    .preset-select {
        padding: 8px 12px;
        font-size: 0.8em;
    }
}

/* Animation for glow effects */
@keyframes glow {
    0% { box-shadow: 0 0 5px rgba(0, 255, 255, 0.3); }
    50% { box-shadow: 0 0 20px rgba(0, 255, 255, 0.6); }
    100% { box-shadow: 0 0 5px rgba(0, 255, 255, 0.3); }
}

.control-panel:hover,
.action-bar:hover,
.export-panel:hover {
    animation: glow 2s ease-in-out infinite;
}

/* Loading state */
@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.loading {
    animation: pulse 1.5s ease-in-out infinite;
}

/* Error state */
.error {
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid #ff0000;
    color: #ff6666;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    margin: 20px;
}