/* CSV to JSON Specific Styles */

/* Options Section */
.options-section {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    margin-bottom: var(--space-5);
}

.options-section h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-3);
}

.option-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    cursor: pointer;
    font-size: 0.9375rem;
    color: var(--text-primary);
}

.option-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.delimiter-option {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.delimiter-option label {
    font-size: 0.9375rem;
    color: var(--text-primary);
}

.delimiter-option select {
    padding: var(--space-2) var(--space-3);
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 0.875rem;
    cursor: pointer;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
    flex-wrap: wrap;
}

/* Editor Section */
.editor-section {
    margin-bottom: var(--space-6);
}

.editor-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-3);
    flex-wrap: wrap;
    gap: var(--space-3);
}

.editor-header h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.output-actions {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-wrap: wrap;
}

.stat-badge {
    padding: var(--space-2) var(--space-3);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.8125rem;
    font-family: var(--font-mono);
    color: var(--text-secondary);
}

.csv-editor,
.json-editor {
    width: 100%;
    min-height: 300px;
    padding: var(--space-4);
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-primary);
    resize: vertical;
    transition: all 0.2s ease;
}

.csv-editor:focus,
.json-editor:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px var(--primary-color-alpha);
}

/* Responsive Design */
@media (max-width: 768px) {
    .options-grid {
        grid-template-columns: 1fr;
    }

    .action-buttons {
        flex-direction: column;
    }

    .action-buttons .btn {
        width: 100%;
    }

    .editor-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .output-actions {
        width: 100%;
    }
}

/* Dark mode */
[data-theme="dark"] .options-section {
    background: var(--bg-tertiary);
}

[data-theme="dark"] .csv-editor,
[data-theme="dark"] .json-editor {
    background: var(--bg-tertiary);
}

[data-theme="dark"] .stat-badge {
    background: var(--bg-tertiary);
}

[data-theme="dark"] .delimiter-option select {
    background: var(--bg-secondary);
}

