/* ==========================================================================
   LLM & OCR SEGMENTED CONTROL for kb_document.html
   ========================================================================== */

.llm-selector-container, .ocr-selector-container {
    margin-bottom: 16px;
    display: flex;
    justify-content: flex-start;
}

.segmented-control {
    display: inline-flex;
    background: #e8e8e8;
    border-radius: 8px;
    padding: 3px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
}

.segment {
    padding: 6px 18px;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    border-radius: 6px;
    border: none;
    background: transparent;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.segment:hover {
    color: #333;
}

.segment.active {
    background: white;
    color: #333;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

/* Tooltip Enhanced */
.tooltip-enhanced {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 0;
    transform: translateY(5px);
    background: linear-gradient(135deg, #2d3748, #1a202c);
    color: white;
    padding: 10px;
    border-radius: 10px;
    min-width: 190px;
    max-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 12px 40px rgba(0,0,0,0.35);
    z-index: 1000;
}

.segment:hover .tooltip-enhanced {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.tooltip-enhanced::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 20px;
    border: 6px solid transparent;
    border-top-color: #1a202c;
}

.tooltip-models {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tooltip-model {
    padding: 8px 12px;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
}

.tooltip-model:hover {
    background: rgba(255,255,255,0.1);
}

.tooltip-model.selected {
    background: linear-gradient(135deg, #1A73E8, #1557b0);
    font-weight: 600;
}

.check-icon {
    font-size: 14px;
}

