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

body {
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #0a0a0a, #1a1a2e);
    color: #ffffff;
    overflow: hidden;
}

#scene-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 75%;
    height: 100vh;
    background: radial-gradient(ellipse at center, #1a1a2e 0%, #0a0a0a 100%);
}

.control-panel {
    position: fixed;
    top: 0;
    right: 0;
    width: 25%;
    height: 100vh;
    background: rgba(16, 16, 40, 0.95);
    backdrop-filter: blur(10px);
    border-left: 2px solid #444;
    padding: 20px;
    overflow-y: auto;
    box-shadow: -5px 0 20px rgba(0, 255, 255, 0.1);
}

.panel-section {
    margin-bottom: 25px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid rgba(0, 255, 255, 0.2);
}

.panel-section h3 {
    color: #00ffff;
    margin-bottom: 15px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

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

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

.control-group input[type="range"] {
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, #444, #00ffff);
    border-radius: 3px;
    outline: none;
    opacity: 0.8;
    transition: opacity 0.2s;
}

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

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

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

.control-group input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.2);
    accent-color: #00ffff;
}

.button-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 15px;
}

.button-group button, .panel-section button {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 1px solid #00ffff;
    color: #00ffff;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 11px;
    font-family: inherit;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.button-group button:hover, .panel-section button:hover {
    background: linear-gradient(135deg, #00ffff, #0088ff);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
    transform: translateY(-1px);
}

.object-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px;
    background: rgba(0, 255, 255, 0.1);
    border-radius: 5px;
    margin-bottom: 5px;
    font-size: 11px;
}

.object-item button {
    background: #ff4444;
    border: none;
    color: white;
    padding: 4px 8px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.performance-panel {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(16, 16, 40, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px;
    border-radius: 10px;
    display: flex;
    gap: 20px;
    align-items: center;
    border: 1px solid rgba(0, 255, 255, 0.3);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.perf-item {
    font-size: 12px;
    color: #00ffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.perf-item button {
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    border: 1px solid #00ffff;
    color: #00ffff;
    padding: 6px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 11px;
    font-family: inherit;
    transition: all 0.2s;
}

.perf-item button:hover {
    background: #00ffff;
    color: #000;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.info-panel {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(16, 16, 40, 0.9);
    backdrop-filter: blur(10px);
    padding: 15px;
    border-radius: 10px;
    max-width: 300px;
    border: 1px solid rgba(0, 255, 255, 0.3);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.info-panel h4 {
    color: #00ffff;
    margin-bottom: 8px;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.info-panel p {
    font-size: 11px;
    color: #cccccc;
    line-height: 1.4;
    margin-bottom: 8px;
}

#rayInfo {
    font-size: 11px;
    color: #00ffff;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer {
    position: fixed;
    bottom: 10px;
    right: 20px;
    font-size: 10px;
    opacity: 0.7;
}

.footer a {
    color: #00ffff;
    text-decoration: none;
    transition: all 0.2s;
}

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

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

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

.control-panel::-webkit-scrollbar-thumb {
    background: #00ffff;
    border-radius: 3px;
}

.control-panel::-webkit-scrollbar-thumb:hover {
    background: #0088ff;
}

/* Responsive design */
@media (max-width: 1024px) {
    #scene-container {
        width: 100%;
    }
    
    .control-panel {
        width: 100%;
        height: auto;
        max-height: 40vh;
        top: auto;
        bottom: 0;
        border-left: none;
        border-top: 2px solid #444;
    }
    
    .info-panel, .performance-panel {
        position: relative;
        margin: 10px;
    }
}

/* Animation effects */
@keyframes pulse {
    0%, 100% { opacity: 0.8; }
    50% { opacity: 1; }
}

.panel-section:hover {
    border-color: rgba(0, 255, 255, 0.4);
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.1);
}

/* Glow effects for active elements */
.control-group input[type="range"]:focus,
.control-group input[type="color"]:focus {
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
}