.quick-filter-panel {
    margin-bottom: 0;
    background: var(--panel-background) !important;
    border: 1px solid var(--border-panel) !important;
    border-radius: 8px;
    overflow: hidden;
}

.panel-header {
    padding: 1.25rem;
    border-bottom: 1px solid var(--border-panel) !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--panel-header-background) !important;
}

.panel-header h2 {
    font-size: 1.125rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0;
}

.panel-header h2 i {
    color: var(--primary-color);
}

.quick-filter-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quick-filter-content {
    background: var(--panel-background) !important;
    padding: 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.filters-container {
    display: flex;
    flex-direction: column;
    background: var(--panel-background) !important;
}

.quick-filters {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.filter-item {
    display: grid;
    grid-template-columns: 1.5fr 1fr auto;
    gap: 0.75rem;
    align-items: center;
    background: var(--panel-background) !important;
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid var(--border-panel) !important;
    transition: all 0.2s;
}

.filter-item:hover {
    border-color: var(--primary-color);
}

.filter-item select,
.filter-item input,
.field-select {
    padding: 0.75rem;
    border: 1px solid var(--input-border) !important;
    border-radius: 6px;
    font-size: 0.875rem;
    color: var(--input-text) !important;
    transition: all 0.2s;
    background: var(--input-background) !important;
}

.filter-item select:hover,
.filter-item input:hover {
    border-color: var(--button-hover-border);
}

.filter-item select:focus,
.filter-item input:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px var(--input-focus-ring);
    background: var(--input-background);
}

.filter-item .remove-filter {
    color: var(--error-color);
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 6px;
    transition: all 0.2s;
}

.filter-item .remove-filter:hover {
    background: var(--error-bg);
}

.query-preview-box,
.results-container {
    background: var(--panel-background) !important;
    border-radius: 8px;
    border: 1px solid var(--border-panel);
    overflow: hidden;
}

.query-header,
.results-header {
    padding: 1rem;
    background: var(--panel-header-background);
    border-bottom: 1px solid var(--border-panel);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.query-preview,
.results-preview {
    margin: 0;
    padding: 1rem;
    font-family: 'Monaco', 'Menlo', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--text-code) !important;
    overflow-x: auto;
    max-height: 400px;
    background: var(--panel-background) !important;
}


.query-preview.json-highlighted,
.results-preview.json-highlighted {
    padding: 1rem;
    border: none;
    background: var(--panel-background) !important;
}

#quickFilterIndexSelector {
    min-width: 250px;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    font-size: 0.875rem;
    color: var(--input-text) !important;
    background: var(--input-background) !important;
    border: 1px solid var(--input-border) !important;
    border-radius: 6px;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

#quickFilterIndexSelector:hover {
    border-color: var(--button-hover-border);
}

#quickFilterIndexSelector:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px var(--input-focus-ring);
}

#addQuickFilterBtn {
    padding: 0.75rem 1.25rem;
    background: var(--button-bg);
    border: 1px solid var(--button-border);
    border-radius: 6px;
    color: var(--button-text);
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

#addQuickFilterBtn:not(:disabled):hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: var(--button-hover-bg);
}

#addQuickFilterBtn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.filter-item select option,
.field-select option {
    background: var(--input-background) !important;
    color: var(--input-text) !important;
    padding: 0.5rem;
}

.filter-item select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236B7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
    appearance: none;
}

.query-preview::-webkit-scrollbar,
.results-preview::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.query-preview::-webkit-scrollbar-track,
.results-preview::-webkit-scrollbar-track {
    background: var(--background-color);
    border-radius: 4px;
}

.query-preview::-webkit-scrollbar-thumb,
.results-preview::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.query-preview::-webkit-scrollbar-thumb:hover,
.results-preview::-webkit-scrollbar-thumb:hover {
    background: var(--text-secondary);
}

.quick-filter-content button[title]::after,
.quick-filter-content button[title]::before,
.copy-query-btn[title]::after,
.copy-query-btn[title]::before {
    display: none !important;
}

.quick-filter-content button[title],
.copy-query-btn[title] {
    cursor: pointer !important;
} 