* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
}

header {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 1.5rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

header p {
    font-size: 1rem;
    opacity: 0.8;
}

.container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 2rem auto;
    gap: 2rem;
    padding: 0 1rem;
}

.customizer-panel {
    flex: 1;
    min-width: 300px;
    background-color: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    max-height: 80vh;
    overflow-y: auto;
}

.preview-panel {
    flex: 1;
    min-width: 500px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.tree-form h2, .tree-form h3 {
    margin-bottom: 1rem;
    color: #2c3e50;
}

.tree-form h3 {
    margin-top: 1.5rem;
    font-size: 1.2rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
}

.form-group {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #555;
}

.form-group input[type="text"],
.form-group input[type="number"] {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

.form-group input[type="range"] {
    margin-top: 0.3rem;
}

.form-group input[type="color"] {
    width: 100%;
    height: 40px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.value-display {
    margin-left: 0.5rem;
    font-weight: 500;
    color: #2c3e50;
}

/* Month selector styling */
.month-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 5px;
}

.month-box {
    width: calc(100% / 12 - 4px);
    aspect-ratio: 1;
    border: 1px solid #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    background-color: #f8f9fa;
    transition: all 0.2s ease;
    height: 20px;
    margin-bottom: 24px;
}

.month-box span {
    font-size: 0.7rem;
    color: #aaa;
    pointer-events: none;
}

.month-box.active {
    border-color: #3498db;
    box-shadow: 0 0 3px rgba(52, 152, 219, 0.5);
}

.month-box.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    width: 60%;
    height: 2px;
    background-color: #3498db;
    border-radius: 1px;
}

.month-box:hover {
    background-color: #f0f0f0;
    transform: translateY(-1px);
}

.month-color-picker {
    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    width: 16px;
    height: 16px;
    padding: 0;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.month-color-picker:hover {
    transform: translateX(-50%) scale(1.2);
}

.month-color-picker::-webkit-color-swatch {
    border: none;
    border-radius: 50%;
    padding: 0;
}

.month-color-picker::-moz-color-swatch {
    border: none;
    border-radius: 50%;
    padding: 0;
}

/* 잎 색상 설정 설명 스타일 */
.leaf-color-info {
    margin-top: 28px;
    padding: 10px;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
}

.info-text {
    font-size: 0.85rem;
    line-height: 1.5;
    color: #555;
    margin: 0;
}

.info-text strong {
    color: #2c3e50;
}

.info-text small {
    color: #6c757d;
    font-style: italic;
}

.canvas-container {
    background-color: white;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#treeCanvas {
    background-color: #f0f0f0;
    border-radius: 4px;
}

.toolbar {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.season-toolbar, .scale-toolbar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    background-color: white;
    padding: 0.8rem;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.season-btn {
    background-color: #ecf0f1;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.season-btn:hover {
    background-color: #e0e6e9;
}

.season-btn.active {
    background-color: #3498db;
    color: white;
}

#monthSlider {
    flex: 1;
    max-width: 200px;
}

.scale-toolbar button {
    background-color: #ecf0f1;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scale-toolbar button:hover {
    background-color: #e0e6e9;
}

#scaleSlider {
    flex: 1;
    max-width: 150px;
}

.actions {
    display: flex;
    gap: 1rem;
    width: 100%;
    justify-content: center;
}

.actions button {
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
}

.primary-btn {
    background-color: #2ecc71;
    color: white;
}

.primary-btn:hover {
    background-color: #27ae60;
}

#resetCustomizer {
    background-color: #ecf0f1;
    color: #7f8c8d;
}

#resetCustomizer:hover {
    background-color: #bdc3c7;
}

@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .preview-panel, .customizer-panel {
        min-width: 100%;
    }
    
    .canvas-container {
        padding: 0.5rem;
    }
    
    #treeCanvas {
        width: 100%;
        height: auto;
    }
} 