.generator-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
}

.sidebar {
    flex: 1;
    min-width: 250px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.type-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 30px;
}

.type-btn {
    padding: 10px;
    border: 1px solid #ddd;
    background: #f9f9f9;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s;
}

.type-btn:hover {
    background: #e0e0e0;
}

.type-btn.active {
    background: #2196f3;
    color: white;
    border-color: #2196f3;
}

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

.control-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    font-size: 14px;
}

.control-group input[type="range"] {
    width: 100%;
}

.preview-area {
    flex: 2;
    min-width: 300px;
}

.preview-box {
    background: #f0f0f0;
    height: 300px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    background-image:
        linear-gradient(45deg, #ddd 25%, transparent 25%, transparent 75%, #ddd 75%, #ddd),
        linear-gradient(45deg, #ddd 25%, transparent 25%, transparent 75%, #ddd 75%, #ddd);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
}

.code-section {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}

.code-tabs {
    display: flex;
    border-bottom: 1px solid #ddd;
    background: #f5f5f5;
}

.tab-btn {
    padding: 10px 20px;
    border: none;
    background: none;
    cursor: pointer;
    font-weight: bold;
    color: #666;
}

.tab-btn.active {
    background: #fff;
    color: #2196f3;
    border-bottom: 2px solid #2196f3;
    margin-bottom: -1px;
}

textarea {
    width: 100%;
    height: 150px;
    padding: 15px;
    border: none;
    resize: none;
    font-family: monospace;
    font-size: 13px;
    background: #282c34;
    color: #abb2bf;
    line-height: 1.5;
}

.btn-copy {
    width: 100%;
    border: none;
    background: #2196f3;
    color: white;
    padding: 12px;
    font-weight: bold;
    cursor: pointer;
}

.btn-copy:hover {
    background: #1976d2;
}