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

body {
    font-family: 'Arial', sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d1b2e 100%);
    color: #ffffff;
    overflow: hidden;
}

#header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1000;
    border-bottom: 2px solid #ff6b35;
}

#header h1 {
    font-size: 24px;
    font-weight: bold;
    color: #ff6b35;
    text-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

#header-controls {
    display: flex;
    gap: 15px;
    align-items: center;
}

#header-controls button, #header-controls select {
    background: linear-gradient(135deg, #ff6b35, #ff4500);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

#header-controls button:hover, #header-controls select:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4);
}

#main-container {
    display: flex;
    height: 100vh;
    padding-top: 60px;
}

#scene-container {
    flex: 1;
    position: relative;
    background: radial-gradient(circle at center, #2a1f2a 0%, #1a1a1a 70%);
}

#control-panel {
    width: 300px;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border-left: 2px solid #ff6b35;
    padding: 20px;
    overflow-y: auto;
    max-height: calc(100vh - 100px);
}

.panel {
    background: rgba(45, 27, 46, 0.6);
    border: 1px solid #ff6b35;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.1);
}

.panel h3 {
    color: #ff6b35;
    margin-bottom: 15px;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.panel label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    color: #cccccc;
}

.panel input[type="text"] {
    width: 100%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid #ff6b35;
    color: white;
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.panel input[type="range"] {
    width: 100%;
    margin-left: 10px;
    accent-color: #ff6b35;
}

.panel input[type="color"] {
    width: 100%;
    height: 35px;
    background: none;
    border: 1px solid #ff6b35;
    border-radius: 4px;
    cursor: pointer;
}

.panel select {
    width: 100%;
    background: rgba(45, 27, 46, 0.8);
    border: 1px solid #ff6b35;
    color: white;
    padding: 8px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.panel button {
    width: 100%;
    background: linear-gradient(135deg, #4a90e2, #357abd);
    color: white;
    border: none;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.3s ease;
}

.panel button:hover {
    transform: translateY(-1px);
    box-shadow: 0 3px 10px rgba(74, 144, 226, 0.4);
}

#status-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-top: 1px solid #ff6b35;
    font-size: 14px;
}

#fps-counter {
    color: #4a90e2;
    font-weight: bold;
}

#tip {
    color: #ffd700;
    font-style: italic;
}

/* Scrollbar styling */
#control-panel::-webkit-scrollbar {
    width: 8px;
}

#control-panel::-webkit-scrollbar-track {
    background: rgba(26, 26, 26, 0.5);
}

#control-panel::-webkit-scrollbar-thumb {
    background: #ff6b35;
    border-radius: 4px;
}

#control-panel::-webkit-scrollbar-thumb:hover {
    background: #ff8c66;
}

/* Responsive design */
@media (max-width: 768px) {
    #main-container {
        flex-direction: column;
    }
    
    #control-panel {
        width: 100%;
        height: 200px;
        order: 2;
    }
    
    #scene-container {
        order: 1;
        height: calc(100vh - 300px);
    }
    
    #header h1 {
        font-size: 18px;
    }
    
    #header-controls {
        gap: 8px;
    }
    
    #header-controls button, #header-controls select {
        padding: 6px 12px;
        font-size: 12px;
    }
}

/* Glowing effects */
.panel {
    position: relative;
}

.panel::before {
    content: '';
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    background: linear-gradient(45deg, #ff6b35, #4a90e2, #ffd700, #ff6b35);
    border-radius: 8px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.panel:hover::before {
    opacity: 0.3;
}

/* Fire button special effects */
#fire-toggle {
    position: relative;
    overflow: hidden;
}

#fire-toggle::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

#fire-toggle:hover::after {
    left: 100%;
}