/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    background: #ffffff;
    min-height: 100vh;
    overflow: hidden;
    color: #000000;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9) 0%, transparent 100%);
}

.title {
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 8px;
    color: #000000;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Main Container */
.main-container {
    display: flex;
    height: 100vh;
    padding-top: 70px;
}

/* Control Panel */
.control-panel {
    position: fixed;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    width: 180px;
    z-index: 50;
}

.panel-content {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 25px 20px;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Control Section */
.control-section {
    margin-bottom: 25px;
}

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

.section-title {
    font-size: 14px;
    font-weight: 400;
    color: rgba(0, 0, 0, 0.8);
    margin-bottom: 12px;
    letter-spacing: 2px;
}

/* Color Buttons */
.color-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.color-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.color-btn:hover {
    transform: scale(1.15);
    border-color: rgba(0, 0, 0, 0.5);
}

.color-btn.active {
    border-color: #000000;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.color-btn.active::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: #000000;
    border-radius: 50%;
}

/* Canvas Container */
.canvas-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 220px;
}

#stove-canvas {
    display: block;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .control-panel {
        left: 10px;
        width: 150px;
    }
    
    .canvas-container {
        margin-left: 170px;
    }
    
    .title {
        font-size: 20px;
        letter-spacing: 4px;
    }
}

/* Subtle Grid Background */
.main-container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(0, 0, 0, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: -1;
}

/* Ambient Glow Effect */
.canvas-container::before {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(200, 200, 200, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: -1;
}
