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

body {
    font-family: 'Courier New', monospace;
    background: #0a0a1a;
    color: #ffffff;
    overflow: hidden;
}

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

#controls-panel {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #00ffaa;
    border-radius: 8px;
    padding: 20px;
    max-width: 280px;
    backdrop-filter: blur(10px);
    z-index: 100;
}

#info-panel {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid #00aaff;
    border-radius: 8px;
    padding: 20px;
    max-width: 280px;
    backdrop-filter: blur(10px);
    z-index: 100;
}

.control-section, .info-section {
    margin-bottom: 20px;
}

.control-section:last-child, .info-section:last-child {
    margin-bottom: 0;
}

h3 {
    color: #00ffaa;
    margin-bottom: 15px;
    text-align: center;
    font-size: 16px;
}

h4 {
    color: #00aaff;
    margin-bottom: 10px;
    font-size: 14px;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

button {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-family: inherit;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    font-weight: bold;
}

.primary-btn {
    background: #00ffaa;
    color: #000;
}

.primary-btn:hover {
    background: #00dd88;
    transform: translateY(-1px);
}

.secondary-btn {
    background: #444;
    color: #fff;
    border: 1px solid #666;
}

.secondary-btn:hover {
    background: #555;
    border-color: #00aaff;
}

.danger-btn {
    background: #ff4444;
    color: #fff;
}

.danger-btn:hover {
    background: #dd2222;
}

.view-btn {
    background: #333;
    color: #00aaff;
    border: 1px solid #00aaff;
    padding: 6px 12px;
    font-size: 11px;
}

.view-btn:hover {
    background: #00aaff;
    color: #000;
}

#speedSlider {
    width: 100%;
    margin: 10px 0;
    accent-color: #00ffaa;
}

#speedValue {
    color: #00ffaa;
    font-weight: bold;
    float: right;
}

label {
    display: block;
    margin: 8px 0;
    font-size: 12px;
    color: #ccc;
    cursor: pointer;
}

input[type="checkbox"] {
    margin-right: 8px;
    accent-color: #00ffaa;
}

.specs {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 12px;
}

.specs div {
    padding: 4px 8px;
    background: rgba(0, 170, 255, 0.1);
    border-radius: 3px;
    border-left: 3px solid #00aaff;
}

.highlight {
    color: #00ffaa;
    font-weight: bold;
}

#assemblyStatus {
    padding: 8px;
    background: rgba(0, 255, 170, 0.1);
    border-radius: 4px;
    border-left: 3px solid #00ffaa;
    font-size: 12px;
    font-weight: bold;
}

#tipText {
    font-size: 11px;
    color: #aaa;
    line-height: 1.4;
    font-style: italic;
}

footer {
    position: fixed;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    color: #666;
    z-index: 200;
}

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

footer a:hover {
    color: #00ffaa;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    #controls-panel, #info-panel {
        position: fixed;
        top: auto;
        left: 10px;
        right: 10px;
        max-width: none;
        padding: 15px;
        backdrop-filter: blur(5px);
    }
    
    #controls-panel {
        bottom: 120px;
    }
    
    #info-panel {
        bottom: 10px;
        border-color: #00ffaa;
    }
    
    .button-group {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    button {
        flex: 1;
        min-width: 80px;
        font-size: 10px;
        padding: 6px 8px;
    }
    
    footer {
        display: none;
    }
}

@media (max-width: 480px) {
    #controls-panel {
        padding: 10px;
    }
    
    #info-panel {
        padding: 10px;
    }
    
    h3 {
        font-size: 14px;
        margin-bottom: 10px;
    }
    
    h4 {
        font-size: 12px;
        margin-bottom: 8px;
    }
    
    .specs div {
        font-size: 10px;
        padding: 3px 6px;
    }
}

/* Smooth animations */
button, input[type="range"], label {
    transition: all 0.2s ease;
}

/* Custom scrollbar for panels */
#controls-panel::-webkit-scrollbar,
#info-panel::-webkit-scrollbar {
    width: 4px;
}

#controls-panel::-webkit-scrollbar-track,
#info-panel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
}

#controls-panel::-webkit-scrollbar-thumb,
#info-panel::-webkit-scrollbar-thumb {
    background: #00ffaa;
    border-radius: 2px;
}