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

.canvas-container {
    flex: 2;
    min-width: 300px;
    background: #f0f0f0;
    padding: 20px;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 400px;
    position: relative;
    user-select: none;
}

.workspace {
    width: 300px;
    height: 300px;
    position: relative;
    background: white;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.preview-box {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.clipped-background {
    width: 100%;
    height: 100%;
    background-color: #ff9800;
    background-size: cover;
    background-position: center;
    transition: background-color 0.2s;
}

.handle {
    width: 16px;
    height: 16px;
    background: #2196f3;
    border: 2px solid white;
    border-radius: 50%;
    position: absolute;
    transform: translate(-50%, -50%);
    cursor: move;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.handle:hover {
    transform: translate(-50%, -50%) scale(1.2);
    background: #1976d2;
}

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

.preset-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.preset-btn {
    padding: 8px 12px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s;
}

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

.input-url {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.option-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.code-box {
    background: #282c34;
    color: #abb2bf;
    padding: 15px;
    border-radius: 6px;
    font-family: monospace;
    font-size: 13px;
    margin-bottom: 10px;
    word-break: break-all;
    min-height: 60px;
    display: flex;
    align-items: center;
}

.btn-copy {
    width: 100%;
    background: #4caf50;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
}

.btn-copy:hover {
    background: #43a047;
}

.usage-guide {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}