/* SVG Icon Editor Styles */
.icon-search-bar {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
}
.icon-search-bar input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}
.icon-search-bar input:focus {
    border-color: #748ffc;
}
.icon-search-bar select {
    padding: 10px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 14px;
    background: white;
}

.icon-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
    padding: 8px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: white;
}

.icon-item {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s;
    border: 1px solid transparent;
    background: white;
}
.icon-item:hover {
    background: #f0f4ff;
    border-color: #748ffc;
}
.icon-item.selected {
    background: #dbe4ff;
    border-color: #4c6ef5;
}

.icon-item svg {
    width: 28px;
    height: 28px;
}

.icon-editor-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 24px;
}
@media (max-width: 768px) {
    .icon-editor-panel {
        grid-template-columns: 1fr;
    }
}

.icon-preview-area {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.icon-preview-area svg {
    max-width: 120px;
    max-height: 120px;
}

.icon-controls {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
}

.icon-controls label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

.icon-controls .control-group {
    margin-bottom: 16px;
}

.icon-controls input[type="range"] {
    width: 100%;
    accent-color: #4c6ef5;
}

.icon-controls input[type="color"] {
    width: 40px;
    height: 40px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    padding: 2px;
}

.icon-code-output {
    background: #1f2937;
    color: #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    font-size: 12px;
    font-family: 'Fira Code', 'Consolas', monospace;
    max-height: 200px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-all;
}
