.generator-workspace {
    display: flex;
    flex-direction: column;
    gap: 30px;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

@media (min-width: 800px) {
    .generator-workspace {
        flex-direction: row;
        align-items: flex-start;
    }
}

.preview-section {
    flex: 1;
    min-width: 0;
}

.image-wrapper {
    width: 100%;
    min-height: 300px;
    background: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid #ddd;
}

.image-wrapper img {
    max-width: 100%;
    max-height: 500px;
    object-fit: contain;
    transition: filter 0.1s;
}

.upload-control {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.btn-outline {
    background: white;
    border: 1px solid #bbb;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #555;
    transition: all 0.2s;
}

.btn-outline:hover {
    background: #f5f5f5;
    border-color: #999;
}

.code-output {
    background: #282c34;
    padding: 15px;
    border-radius: 6px;
    color: #abb2bf;
    position: relative;
    font-family: monospace;
}

.code-output label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.8rem;
    color: #5c6370;
}

.code-output textarea {
    width: 100%;
    background: transparent;
    border: none;
    color: #98c379;
    font-family: inherit;
    resize: none;
    height: 60px;
    font-size: 1rem;
    outline: none;
}

.btn-copy {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 10px;
    font-size: 0.8rem;
    background: #4b5363;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-copy:hover {
    background: #5c6370;
}

.controls-section {
    flex: 1;
    min-width: 250px;
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
}

.control-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.control-header h3 {
    margin: 0;
    font-size: 1.1rem;
}

.btn-text {
    background: none;
    border: none;
    color: #2196f3;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 5px;
}

.btn-text:hover {
    text-decoration: underline;
}

.slider-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.slider-item {
    display: flex;
    flex-direction: column;
}

.slider-item label {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    margin-bottom: 5px;
    color: #444;
}

.slider-item input[type="range"] {
    width: 100%;
    cursor: pointer;
}