/* RAG 관련 스타일 */

/* RAG 카드 스타일 */
.rag-collections-count {
    font-weight: bold;
    color: #007bff;
}

/* 컬렉션 카드 스타일 */
.stat-item {
    text-align: center;
    padding: 0.5rem;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 600;
    display: block;
    line-height: 1;
}

.stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #6c757d;
    margin-top: 0.25rem;
    letter-spacing: 0.5px;
}

/* RAG 설정 스타일 — 2026-06-11: 추가 padding 제거(0). sidebar-section-content 의 padding 만
   사용해 용어집/TM 섹션과 좌측 정렬 일치 (이전 0.5rem 이 이중 들여쓰기 유발). */
.rag-settings {
    padding: 0;
}

.collection-checkboxes {
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #e9ecef;
    border-radius: 0.25rem;
    padding: 0.5rem;
}

.collection-checkboxes::-webkit-scrollbar {
    width: 4px;
}

.collection-checkboxes::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.collection-checkboxes::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

.collection-checkbox {
    margin-bottom: 0.5rem;
}

.collection-checkbox label {
    font-size: 0.875rem;
    cursor: pointer;
}

.collection-checkbox .collection-stats {
    font-size: 0.75rem;
    color: #6c757d;
    margin-left: 1.5rem;
}

/* 업로드 진행률 스타일 */
.upload-progress-item {
    margin-bottom: 0.5rem;
    padding: 0.5rem;
    border: 1px solid #e9ecef;
    border-radius: 0.25rem;
}

.upload-progress-item .progress {
    height: 0.5rem;
    margin-top: 0.25rem;
}

/* RAG 검색 결과 스타일 */
.rag-search-result {
    margin-bottom: 1rem;
    padding: 0.75rem;
    border: 1px solid #e9ecef;
    border-radius: 0.375rem;
    transition: all 0.2s;
}

.rag-search-result:hover {
    border-color: #007bff;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.1);
}

.rag-result-score {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.rag-result-highlight {
    background-color: #fff3cd;
    padding: 0.1rem 0.2rem;
    border-radius: 0.2rem;
}

/* 컨텍스트 패널의 RAG 섹션 */
.context-rag-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 0.375rem;
}

.context-rag-section h6 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #495057;
}

.context-rag-empty {
    text-align: center;
    color: #6c757d;
    padding: 2rem;
}

/* 액션 카드 아이콘 애니메이션 */
.action-card:hover .action-icon {
    transform: scale(1.1);
    transition: transform 0.2s;
}

/* 파일 업로드 영역 스타일 강화 */
.file-upload-area.rag-upload {
    min-height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.file-upload-area.rag-upload i {
    color: #007bff;
    opacity: 0.7;
    transition: all 0.3s;
}

.file-upload-area.rag-upload:hover i {
    opacity: 1;
    transform: translateY(-5px);
}

/* 모달 크기 조정 */
@media (min-width: 1200px) {
    .modal-xl {
        max-width: 1140px;
    }
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .collection-checkboxes {
        max-height: 150px;
    }
    
    .stat-number {
        font-size: 1.25rem;
    }
    
    .modal-xl {
        max-width: 100%;
        margin: 0.5rem;
    }
} 