/**
 * AI Search Admin Settings Styles
 * Version: 1.11.0
 */

/* Similarity Threshold Section */







.ai-search-threshold-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border: 3px solid #2271b1;
}

.ai-search-threshold-slider::-moz-range-thumb {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    border: 3px solid #2271b1;
}

/* Interactive Demo Section */











/* Badge Setting */
.ai-search-badge-setting {
    margin: 20px 0;
}

.ai-search-badge-setting label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.ai-search-badge-setting input[type="checkbox"] {
    margin-right: 8px;
}

/* --- Native panel + slider styles (1.29.0 admin refresh) --- */
.ai-search-panel {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 16px 20px 20px;
    margin: 16px 0;
    max-width: 720px;
}
.ai-search-panel h2 {
    margin: 0 0 4px;
    padding: 0;
    font-size: 15px;
}
.ai-search-panel > .description {
    margin: 0 0 16px;
}
.ai-search-slider-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 8px 0 4px;
}
.ai-search-range {
    flex: 1;
    max-width: 480px;
}
.ai-search-range-value {
    font-size: 15px;
    font-weight: 600;
    color: #1d2327;
    min-width: 48px;
    text-align: right;
}
.ai-search-range-ends {
    display: flex;
    justify-content: space-between;
    max-width: 480px;
    font-size: 11px;
    color: #646970;
}
.ai-search-range-hint {
    margin-top: 10px;
}

/* --- Shared utility classes (1.29.0) --- */
.ai-search-note {
    background: #f0f6fc;
    border-left: 4px solid #2271b1;
    padding: 12px 16px;
    margin: 16px 0;
    max-width: 720px;
    border-radius: 0 4px 4px 0;
}
.ai-search-note p:first-child { margin-top: 0; }
.ai-search-note p:last-child { margin-bottom: 0; }
.ai-search-note--warning {
    background: #fcf9e8;
    border-left-color: #dba617;
}
.ai-search-list {
    list-style: disc;
    margin: 8px 0 8px 20px;
}
.ai-search-maxw { max-width: 720px; }
.ai-search-cols-3 { column-count: 3; column-gap: 20px; }
.ai-search-check-label { display: block; margin: 5px 0; break-inside: avoid; }
.ai-search-muted { color: #646970; font-size: 0.9em; }

/* Quota usage bars (moved from inline styles, 1.29.0) */
.quota-progress-bar {
    background: #dcdcde;
    border-radius: 3px;
    height: 22px;
    max-width: 480px;
    overflow: hidden;
    margin: 6px 0 2px;
}
.quota-progress-fill {
    background: #2271b1;
    height: 100%;
    border-radius: 3px;
    display: flex;
    align-items: center;
    transition: width 0.3s;
}
.quota-progress-fill span {
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding-left: 8px;
    white-space: nowrap;
}
.quota-exceeded .quota-progress-fill { background: #d63638; }
.ai-search-tool-row { margin: 20px 0; }
.ai-search-tool-row--sep { border-top: 1px solid #dcdcde; padding-top: 20px; }

/* --- Checkbox grid for field pickers (v1.32.0) ---
   Replaces CSS columns, which flowed items vertically and made the list
   hard to scan. Auto-fill grid keeps reading order left-to-right and
   adapts from one column on narrow screens to four on wide ones. */
.ai-search-checkgrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 8px;
    margin: 12px 0 4px;
}
.ai-search-panel .ai-search-checkcard,
.ai-search-checkgrid .ai-search-checkcard,
.ai-search-checkcard {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.ai-search-checkcard:hover {
    border-color: #2271b1;
    background: #f6f7f7;
}
.ai-search-checkcard input[type="checkbox"] {
    margin: 2px 0 0;
    flex-shrink: 0;
}
.ai-search-checkcard-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.ai-search-checkcard-title {
    font-weight: 600;
    color: #1d2327;
    line-height: 1.3;
    word-break: break-word;
}
.ai-search-checkcard-meta {
    font-size: 11px;
    color: #646970;
    font-family: Consolas, Monaco, monospace;
    word-break: break-all;
    margin-top: 2px;
}
.ai-search-checkcard--simple {
    align-items: center;
}
