
.json-highlighted {
    font-family: 'Monaco', 'Menlo', 'Consolas', 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    background: var(--panel-background);
    color: var(--text-code);
    padding: 1rem;
    border-radius: 6px;
    overflow-x: auto;
    white-space: pre;
    border: 1px solid var(--border-light);
}


.json-key {
    color: #0ea5e9;
    font-weight: 500;
}

.json-string {
    color: #10b981;
}

.json-number {
    color: #f59e0b;
    font-weight: 500;
}

.json-boolean {
    color: #8b5cf6;
    font-weight: 600;
}

.json-null {
    color: #ef4444;
    font-weight: 600;
    font-style: italic;
}



.json-highlighted .json-key::after {
    color: var(--text-secondary);
}


.results-preview.json-highlighted {
    background: var(--panel-background);
    border: none;
    margin: 0;
    border-radius: 0;
    padding: 1rem;
}


#quickFilterResults.json-highlighted,
#quickFilterQueryPreview.json-highlighted {
    background: var(--panel-background);
    border: none;
    margin: 0;
    border-radius: 0;
    padding: 1rem;
}


.sample-table-container .json-highlighted {
    font-size: 0.8rem;
    padding: 0.5rem;
    margin: 0;
    border: none;
    background: transparent;
}


.json-cell {
    max-width: 200px;
    max-height: 100px;
    overflow: auto;
    font-family: 'Monaco', 'Menlo', 'Consolas', 'Courier New', monospace;
    font-size: 0.75rem;
    line-height: 1.4;
    background: var(--panel-background);
    border: 1px solid var(--border-light);
    border-radius: 4px;
    padding: 0.5rem;
    white-space: pre;
}

.json-cell::-webkit-scrollbar {
    width: 4px;
    height: 4px;
}

.json-cell::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
    border-radius: 2px;
}

.json-cell::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 2px;
}

.json-cell::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}


@media (max-width: 768px) {
    .json-highlighted {
        font-size: 0.8rem;
        padding: 0.75rem;
    }
}


[data-theme="dark"] .json-highlighted {
    background: var(--panel-background);
    border-color: var(--border-panel);
}


[data-theme="light"] .json-highlighted {
    background: var(--panel-background);
    border-color: var(--border-light);
}


.json-highlighted::-webkit-scrollbar {
    height: 8px;
    width: 8px;
}

.json-highlighted::-webkit-scrollbar-track {
    background: var(--scrollbar-track);
    border-radius: 4px;
}

.json-highlighted::-webkit-scrollbar-thumb {
    background: var(--scrollbar-thumb);
    border-radius: 4px;
}

.json-highlighted::-webkit-scrollbar-thumb:hover {
    background: var(--scrollbar-thumb-hover);
}


.json-container {
    position: relative;
}

.json-container .copy-json-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    background: var(--button-bg);
    border: 1px solid var(--button-border);
    border-radius: 4px;
    color: var(--text-secondary);
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s ease;
    z-index: 10;
}

.json-container:hover .copy-json-btn {
    opacity: 1;
}

.json-container .copy-json-btn:hover {
    background: var(--button-hover-bg);
    color: var(--primary-color);
    border-color: var(--primary-color);
}


.json-highlighted .json-key {
    text-shadow: none;
}

.json-highlighted .json-string {
    text-shadow: none;
}


.json-collapsible {
    cursor: pointer;
    user-select: none;
}

.json-collapsible::before {
    content: '▼ ';
    color: var(--text-secondary);
    font-size: 0.8em;
    margin-right: 0.25rem;
}

.json-collapsible.collapsed::before {
    content: '▶ ';
}

.json-collapsible.collapsed + .json-content {
    display: none;
} 