#css-gradient-container {
    margin-bottom: 15px;
}

.angle-control {
    display: flex;
    gap: 15px;
    align-items: center;
}

.angle-slider {
    flex: 1;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
}

.angle-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    background: #8b5cf6;
    border-radius: 50%;
    cursor: pointer;
}

.angle-input {
    width: 70px;
    padding: 8px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    text-align: center;
    outline: none;
}

.angle-input:focus {
    border-color: #8b5cf6;
}

.setting-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.color-list {
    max-height: 200px;
    overflow-y: auto;
}

.color-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.color-preview {
    width: 40px;
    height: 36px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.color-input {
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    position: absolute;
    top: 0;
    left: 0;
}

.color-text-input {
    width: 110px;
    padding: 8px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    font-family: 'Consolas', monospace;
    outline: none;
}

.color-text-input:focus {
    border-color: #8b5cf6;
}

.stop-control {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.stop-slider {
    flex: 1;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    accent-color: #7c3aed;
}

.stop-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: #8b5cf6;
    border-radius: 50%;
    cursor: pointer;
}

.stop-value {
    min-width: 40px;
    text-align: center;
    font-size: 13px;
    color: #6b7280;
    font-family: 'Consolas', monospace;
}

.preset-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.preset-item {
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    position: relative;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.preset-item:hover {
    transform: scale(1.05);
}

.preset-active {
    border-color: #7c3aed !important;
    transform: scale(1.05);
}

.preview-section {
    margin-bottom: 16px;
}

.gradient-preview {
    height: 200px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    margin-top: 8px;
}

.code-section {
    margin-bottom: 16px;
}

.code-editor {
    display: flex;
    background: #1e1e1e;
    border-radius: 8px;
    overflow: hidden;
    max-height: 300px;
    overflow-y: auto;
}

.line-numbers {
    background: #252526;
    padding: 12px 8px;
    text-align: right;
    user-select: none;
    min-width: 50px;
    border-right: 1px solid #3c3c3c;
    flex-shrink: 0;
}

.line-number {
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    color: #858585;
    line-height: 1.6;
}

.code-content {
    flex: 1;
    padding: 12px 15px;
    font-family: 'Consolas', 'Monaco', monospace;
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-wrap !important;
    word-break: break-all !important;
    overflow-x: auto;
    color: #d4d4d4;
}

.hl-gradient { color: #3b82f6; }
.hl-prop { color: #7c3aed; }
.hl-deg { color: #f59e0b; }
.hl-color { color: #22c55e; }

@media (max-width: 768px) {
    #css-gradient-container {
        grid-template-columns: 1fr !important;
    }
    
    .preset-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}