Spaces:
Sleeping
Sleeping
Download frontend/src/components/admin/RAGQuestionsPanel.css from chowdary1/ai-interviewer-version-2: direct link, hf CLI and curl.
- Browser
- Download file 59.1 kB
-
https://huggingface.co/spaces/chowdary1/ai-interviewer-version-2/resolve/main/frontend/src/components/admin/RAGQuestionsPanel.css
- Command line
-
hf download hf://spaces/chowdary1/ai-interviewer-version-2/frontend/src/components/admin/RAGQuestionsPanel.css
-
curl -L -o RAGQuestionsPanel.css https://huggingface.co/spaces/chowdary1/ai-interviewer-version-2/resolve/main/frontend/src/components/admin/RAGQuestionsPanel.css
59.1 kB
| /** | |
| * RAG Questions Panel - FINAL BOSS UI | |
| * Premium Design System with Animations | |
| */ | |
| /* ===== Panel Container - Premium Glass Effect ===== */ | |
| .rag-panel { | |
| padding: 32px; | |
| background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%); | |
| min-height: 100vh; | |
| position: relative; | |
| overflow-x: hidden; | |
| } | |
| /* Animated Background Gradient */ | |
| .rag-panel::before { | |
| content: ''; | |
| position: absolute; | |
| top: -50%; | |
| left: -50%; | |
| width: 200%; | |
| height: 200%; | |
| background: radial-gradient(circle at 20% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 50%), | |
| radial-gradient(circle at 80% 20%, rgba(59, 130, 246, 0.06) 0%, transparent 40%), | |
| radial-gradient(circle at 40% 80%, rgba(236, 72, 153, 0.05) 0%, transparent 40%); | |
| animation: rag-bg-drift 30s ease-in-out infinite; | |
| pointer-events: none; | |
| z-index: 0; | |
| } | |
| @keyframes rag-bg-drift { | |
| 0%, 100% { transform: translate(0, 0) rotate(0deg); } | |
| 33% { transform: translate(2%, -1%) rotate(1deg); } | |
| 66% { transform: translate(-1%, 2%) rotate(-1deg); } | |
| } | |
| .rag-panel > * { | |
| position: relative; | |
| z-index: 1; | |
| } | |
| /* ===== Header Styles - Hero Section ===== */ | |
| .rag-panel .panel-header { | |
| margin-bottom: 32px; | |
| padding: 28px 32px; | |
| background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(99, 102, 241, 0.05) 100%); | |
| border-radius: 24px; | |
| border: 1px solid rgba(139, 92, 246, 0.2); | |
| backdrop-filter: blur(20px); | |
| position: relative; | |
| overflow: hidden; | |
| } | |
| .rag-panel .panel-header::before { | |
| content: ''; | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| right: 0; | |
| height: 3px; | |
| background: linear-gradient(90deg, #8b5cf6, #6366f1, #3b82f6, #8b5cf6); | |
| background-size: 200% 100%; | |
| animation: header-gradient-flow 3s linear infinite; | |
| } | |
| @keyframes header-gradient-flow { | |
| 0% { background-position: 0% 0%; } | |
| 100% { background-position: 200% 0%; } | |
| } | |
| .rag-panel .header-content { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| gap: 24px; | |
| } | |
| .rag-panel .header-title { | |
| display: flex; | |
| align-items: center; | |
| gap: 20px; | |
| } | |
| .rag-panel .header-icon-wrapper { | |
| width: 64px; | |
| height: 64px; | |
| border-radius: 20px; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| color: #fff; | |
| position: relative; | |
| } | |
| .rag-panel .header-icon-wrapper.brain { | |
| background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 50%, #4f46e5 100%); | |
| box-shadow: 0 12px 32px rgba(139, 92, 246, 0.4), | |
| 0 0 0 1px rgba(255, 255, 255, 0.1) inset; | |
| animation: brain-pulse 3s ease-in-out infinite; | |
| } | |
| @keyframes brain-pulse { | |
| 0%, 100% { transform: scale(1); box-shadow: 0 12px 32px rgba(139, 92, 246, 0.4); } | |
| 50% { transform: scale(1.05); box-shadow: 0 16px 40px rgba(139, 92, 246, 0.5); } | |
| } | |
| .rag-panel .header-icon-wrapper.brain svg { | |
| filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2)); | |
| } | |
| .rag-panel .header-title h1 { | |
| font-size: 32px; | |
| font-weight: 800; | |
| color: var(--text-primary); | |
| margin: 0; | |
| background: linear-gradient(135deg, var(--text-primary) 0%, #8b5cf6 100%); | |
| -webkit-background-clip: text; | |
| -webkit-text-fill-color: transparent; | |
| background-clip: text; | |
| letter-spacing: -0.02em; | |
| } | |
| .rag-panel .header-title p { | |
| font-size: 15px; | |
| color: var(--text-secondary); | |
| margin: 6px 0 0; | |
| font-weight: 500; | |
| } | |
| .rag-panel .header-content > .btn { | |
| padding: 12px 20px ; | |
| font-weight: 600; | |
| border-radius: 14px; | |
| background: rgba(255, 255, 255, 0.1); | |
| border: 1px solid rgba(139, 92, 246, 0.3) ; | |
| backdrop-filter: blur(10px); | |
| color: var(--text-primary) ; | |
| transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); | |
| } | |
| .rag-panel .header-content > .btn:hover { | |
| background: rgba(139, 92, 246, 0.15); | |
| border-color: rgba(139, 92, 246, 0.5) ; | |
| transform: translateY(-2px); | |
| box-shadow: 0 8px 24px rgba(139, 92, 246, 0.25); | |
| } | |
| .rag-panel .header-content > .btn svg { | |
| transition: transform 0.5s ease; | |
| } | |
| .rag-panel .header-content > .btn:hover svg { | |
| transform: rotate(180deg); | |
| } | |
| /* ===== Alerts - Premium Notification Style ===== */ | |
| .rag-panel .alert { | |
| display: flex; | |
| align-items: center; | |
| gap: 14px; | |
| padding: 16px 20px; | |
| border-radius: 16px; | |
| margin-bottom: 20px; | |
| font-size: 14px; | |
| font-weight: 500; | |
| backdrop-filter: blur(10px); | |
| animation: alert-slide-in 0.4s cubic-bezier(0.4, 0, 0.2, 1); | |
| } | |
| @keyframes alert-slide-in { | |
| from { opacity: 0; transform: translateY(-10px); } | |
| to { opacity: 1; transform: translateY(0); } | |
| } | |
| .rag-panel .alert-error { | |
| background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.08) 100%); | |
| border: 1px solid rgba(239, 68, 68, 0.3); | |
| color: #ef4444; | |
| box-shadow: 0 4px 16px rgba(239, 68, 68, 0.15); | |
| } | |
| .rag-panel .alert-success { | |
| background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.08) 100%); | |
| border: 1px solid rgba(34, 197, 94, 0.3); | |
| color: #22c55e; | |
| box-shadow: 0 4px 16px rgba(34, 197, 94, 0.15); | |
| } | |
| /* ===== Stats Grid - Premium Cards ===== */ | |
| .rag-panel .stats-grid { | |
| display: grid; | |
| grid-template-columns: repeat(4, 1fr); | |
| gap: 20px; | |
| margin-bottom: 28px; | |
| } | |
| @media (max-width: 1200px) { | |
| .rag-panel .stats-grid { | |
| grid-template-columns: repeat(2, 1fr); | |
| } | |
| } | |
| @media (max-width: 600px) { | |
| .rag-panel .stats-grid { | |
| grid-template-columns: 1fr; | |
| } | |
| } | |
| .rag-panel .stat-card { | |
| background: var(--bg-card); | |
| border: 1px solid var(--border-color); | |
| border-radius: 20px; | |
| padding: 24px; | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| text-align: center; | |
| gap: 16px; | |
| transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); | |
| position: relative; | |
| overflow: hidden; | |
| } | |
| .rag-panel .stat-card::before { | |
| content: ''; | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| right: 0; | |
| bottom: 0; | |
| background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 50%); | |
| pointer-events: none; | |
| } | |
| .rag-panel .stat-card:hover { | |
| transform: translateY(-8px) scale(1.02); | |
| border-color: transparent; | |
| box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12), | |
| 0 0 0 1px rgba(139, 92, 246, 0.3); | |
| } | |
| .rag-panel .stat-icon { | |
| width: 56px; | |
| height: 56px; | |
| border-radius: 16px; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| color: #fff; | |
| position: relative; | |
| transition: transform 0.3s ease; | |
| } | |
| .rag-panel .stat-card:hover .stat-icon { | |
| transform: scale(1.1) rotate(-5deg); | |
| } | |
| .rag-panel .stat-icon.upload { | |
| background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%); | |
| box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35); | |
| } | |
| .rag-panel .stat-icon.trained { | |
| background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%); | |
| box-shadow: 0 8px 24px rgba(34, 197, 94, 0.35); | |
| } | |
| .rag-panel .stat-icon.questions { | |
| background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%); | |
| box-shadow: 0 8px 24px rgba(168, 85, 247, 0.35); | |
| } | |
| .rag-panel .stat-icon.collections { | |
| background: linear-gradient(135deg, #f97316 0%, #ea580c 100%); | |
| box-shadow: 0 8px 24px rgba(249, 115, 22, 0.35); | |
| } | |
| .rag-panel .stat-content { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 4px; | |
| } | |
| .rag-panel .stat-value { | |
| font-size: 36px; | |
| font-weight: 800; | |
| color: var(--text-primary); | |
| letter-spacing: -0.02em; | |
| line-height: 1; | |
| } | |
| .rag-panel .stat-label { | |
| font-size: 13px; | |
| font-weight: 600; | |
| color: var(--text-secondary); | |
| text-transform: uppercase; | |
| letter-spacing: 0.05em; | |
| } | |
| /* ===== Danger Zone - Premium Warning Section ===== */ | |
| .rag-panel .danger-zone { | |
| background: linear-gradient(135deg, rgba(239, 68, 68, 0.08) 0%, rgba(239, 68, 68, 0.03) 100%); | |
| border: 1px solid rgba(239, 68, 68, 0.2); | |
| border-radius: 20px; | |
| padding: 20px 24px; | |
| margin-bottom: 28px; | |
| backdrop-filter: blur(10px); | |
| } | |
| .rag-panel .danger-zone-header { | |
| display: flex; | |
| align-items: center; | |
| gap: 10px; | |
| font-size: 14px; | |
| font-weight: 700; | |
| color: #ef4444; | |
| margin-bottom: 16px; | |
| text-transform: uppercase; | |
| letter-spacing: 0.05em; | |
| } | |
| .rag-panel .danger-zone-actions { | |
| display: flex; | |
| gap: 12px; | |
| flex-wrap: wrap; | |
| } | |
| .rag-panel .danger-zone .btn-warning { | |
| background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) ; | |
| color: #fff ; | |
| border: none ; | |
| box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3); | |
| font-weight: 600; | |
| } | |
| .rag-panel .danger-zone .btn-warning:hover { | |
| transform: translateY(-2px); | |
| box-shadow: 0 6px 20px rgba(245, 158, 11, 0.4); | |
| } | |
| .rag-panel .danger-zone .btn-danger { | |
| background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) ; | |
| color: #fff ; | |
| border: none ; | |
| box-shadow: 0 4px 16px rgba(239, 68, 68, 0.3); | |
| font-weight: 600; | |
| } | |
| .rag-panel .danger-zone .btn-danger:hover { | |
| transform: translateY(-2px); | |
| box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4); | |
| } | |
| /* ===== View Tabs - Pill Navigation ===== */ | |
| .rag-panel .view-tabs { | |
| display: flex; | |
| gap: 8px; | |
| margin-bottom: 28px; | |
| padding: 6px; | |
| background: var(--bg-card); | |
| border: 1px solid var(--border-color); | |
| border-radius: 18px; | |
| width: fit-content; | |
| box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); | |
| } | |
| .rag-panel .tab-btn { | |
| display: flex; | |
| align-items: center; | |
| gap: 10px; | |
| padding: 14px 24px; | |
| border: none; | |
| border-radius: 14px; | |
| background: transparent; | |
| color: var(--text-secondary); | |
| font-size: 14px; | |
| font-weight: 600; | |
| cursor: pointer; | |
| transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); | |
| position: relative; | |
| overflow: hidden; | |
| } | |
| .rag-panel .tab-btn::before { | |
| content: ''; | |
| position: absolute; | |
| inset: 0; | |
| background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(99, 102, 241, 0.05) 100%); | |
| opacity: 0; | |
| transition: opacity 0.3s ease; | |
| } | |
| .rag-panel .tab-btn:hover::before { | |
| opacity: 1; | |
| } | |
| .rag-panel .tab-btn:hover { | |
| color: var(--text-primary); | |
| } | |
| .rag-panel .tab-btn.active { | |
| background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%); | |
| color: #fff; | |
| box-shadow: 0 8px 24px rgba(139, 92, 246, 0.35); | |
| } | |
| .rag-panel .tab-btn.active::before { | |
| display: none; | |
| } | |
| .rag-panel .tab-btn svg { | |
| transition: transform 0.3s ease; | |
| } | |
| .rag-panel .tab-btn:hover svg { | |
| transform: scale(1.1); | |
| } | |
| /* ===== Content Area ===== */ | |
| .rag-panel .rag-content { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 28px; | |
| } | |
| .rag-panel section { | |
| background: var(--bg-card); | |
| border: 1px solid var(--border-color); | |
| border-radius: 24px; | |
| padding: 28px; | |
| transition: all 0.3s ease; | |
| position: relative; | |
| overflow: hidden; | |
| } | |
| .rag-panel section::before { | |
| content: ''; | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| right: 0; | |
| height: 1px; | |
| background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.3), transparent); | |
| } | |
| .rag-panel section h3 { | |
| display: flex; | |
| align-items: center; | |
| gap: 12px; | |
| font-size: 18px; | |
| font-weight: 700; | |
| color: var(--text-primary); | |
| margin: 0 0 24px; | |
| } | |
| .rag-panel section h3 svg { | |
| color: #8b5cf6; | |
| } | |
| /* ===== Upload Zone - Premium Dropzone ===== */ | |
| .rag-panel .upload-zone { | |
| border: 2px dashed rgba(139, 92, 246, 0.4); | |
| border-radius: 20px; | |
| padding: 56px 32px; | |
| text-align: center; | |
| transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1); | |
| cursor: pointer; | |
| position: relative; | |
| background: linear-gradient(135deg, rgba(139, 92, 246, 0.03) 0%, rgba(99, 102, 241, 0.02) 100%); | |
| overflow: hidden; | |
| } | |
| .rag-panel .upload-zone::before { | |
| content: ''; | |
| position: absolute; | |
| inset: 0; | |
| background: radial-gradient(circle at 50% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 70%); | |
| opacity: 0; | |
| transition: opacity 0.4s ease; | |
| } | |
| .rag-panel .upload-zone:hover { | |
| border-color: #8b5cf6; | |
| background: linear-gradient(135deg, rgba(139, 92, 246, 0.08) 0%, rgba(99, 102, 241, 0.04) 100%); | |
| transform: scale(1.01); | |
| box-shadow: 0 12px 40px rgba(139, 92, 246, 0.15); | |
| } | |
| .rag-panel .upload-zone:hover::before { | |
| opacity: 1; | |
| } | |
| .rag-panel .upload-label { | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| gap: 16px; | |
| cursor: pointer; | |
| position: relative; | |
| z-index: 1; | |
| } | |
| .rag-panel .upload-label svg { | |
| color: #8b5cf6; | |
| transition: transform 0.3s ease; | |
| } | |
| .rag-panel .upload-zone:hover .upload-label svg { | |
| transform: scale(1.15) translateY(-4px); | |
| } | |
| .rag-panel .upload-text { | |
| font-size: 18px; | |
| font-weight: 700; | |
| color: var(--text-primary); | |
| } | |
| .rag-panel .upload-hint { | |
| font-size: 14px; | |
| color: var(--text-muted); | |
| font-weight: 500; | |
| } | |
| .rag-panel .upload-progress { | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| gap: 10px; | |
| margin-top: 20px; | |
| padding: 14px 20px; | |
| border-radius: 12px; | |
| font-weight: 600; | |
| animation: progress-fade-in 0.3s ease; | |
| } | |
| @keyframes progress-fade-in { | |
| from { opacity: 0; transform: translateY(10px); } | |
| to { opacity: 1; transform: translateY(0); } | |
| } | |
| .rag-panel .upload-progress.uploading { | |
| background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(59, 130, 246, 0.08) 100%); | |
| color: #3b82f6; | |
| } | |
| .rag-panel .upload-progress.success { | |
| background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.08) 100%); | |
| color: #22c55e; | |
| } | |
| .rag-panel .upload-progress.error { | |
| background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(239, 68, 68, 0.08) 100%); | |
| color: #ef4444; | |
| } | |
| /* ===== Train All Section ===== */ | |
| .rag-panel .train-all-section { | |
| display: flex; | |
| justify-content: center; | |
| } | |
| .rag-panel .train-all-btn { | |
| padding: 16px 32px ; | |
| font-size: 16px ; | |
| font-weight: 700 ; | |
| background: linear-gradient(135deg, #f97316 0%, #ea580c 100%) ; | |
| border: none ; | |
| border-radius: 16px ; | |
| box-shadow: 0 8px 24px rgba(249, 115, 22, 0.35) ; | |
| color: #fff ; | |
| position: relative; | |
| overflow: hidden; | |
| } | |
| .rag-panel .train-all-btn::before { | |
| content: ''; | |
| position: absolute; | |
| inset: 0; | |
| background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 50%); | |
| } | |
| .rag-panel .train-all-btn:hover:not(:disabled) { | |
| transform: translateY(-3px) scale(1.02); | |
| box-shadow: 0 12px 32px rgba(249, 115, 22, 0.45) ; | |
| } | |
| /* ===== PDF Grid - Premium Cards ===== */ | |
| .rag-panel .pdf-grid { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); | |
| gap: 20px; | |
| } | |
| .rag-panel .pdf-card { | |
| background: var(--bg-card); | |
| border: 1px solid var(--border-color); | |
| border-radius: 20px; | |
| padding: 20px; | |
| display: flex; | |
| align-items: center; | |
| gap: 16px; | |
| transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); | |
| position: relative; | |
| overflow: hidden; | |
| } | |
| .rag-panel .pdf-card::before { | |
| content: ''; | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| right: 0; | |
| height: 3px; | |
| background: linear-gradient(90deg, var(--primary), var(--accent)); | |
| opacity: 0; | |
| transition: opacity 0.3s ease; | |
| } | |
| .rag-panel .pdf-card:hover::before { | |
| opacity: 1; | |
| } | |
| .rag-panel .pdf-card:hover { | |
| transform: translateY(-4px); | |
| border-color: rgba(139, 92, 246, 0.3); | |
| box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1), | |
| 0 0 0 1px rgba(139, 92, 246, 0.1); | |
| } | |
| .rag-panel .pdf-card.trained { | |
| border-color: rgba(34, 197, 94, 0.3); | |
| } | |
| .rag-panel .pdf-card.trained::before { | |
| background: linear-gradient(90deg, #22c55e, #10b981); | |
| opacity: 1; | |
| } | |
| .rag-panel .pdf-icon { | |
| position: relative; | |
| width: 56px; | |
| height: 56px; | |
| background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(99, 102, 241, 0.05) 100%); | |
| border-radius: 16px; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| color: #8b5cf6; | |
| flex-shrink: 0; | |
| transition: all 0.3s ease; | |
| } | |
| .rag-panel .pdf-card:hover .pdf-icon { | |
| transform: scale(1.05) rotate(-3deg); | |
| } | |
| .rag-panel .pdf-card.trained .pdf-icon { | |
| background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.05) 100%); | |
| color: #22c55e; | |
| } | |
| .rag-panel .trained-badge { | |
| position: absolute; | |
| bottom: -4px; | |
| right: -4px; | |
| width: 22px; | |
| height: 22px; | |
| background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%); | |
| border-radius: 50%; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| color: #fff; | |
| box-shadow: 0 4px 8px rgba(34, 197, 94, 0.3); | |
| } | |
| .rag-panel .pdf-info { | |
| flex: 1; | |
| min-width: 0; | |
| } | |
| .rag-panel .pdf-info h4 { | |
| font-size: 15px; | |
| font-weight: 700; | |
| color: var(--text-primary); | |
| margin: 0 0 8px; | |
| white-space: nowrap; | |
| overflow: hidden; | |
| text-overflow: ellipsis; | |
| } | |
| .rag-panel .pdf-meta { | |
| display: flex; | |
| flex-wrap: wrap; | |
| gap: 12px; | |
| font-size: 13px; | |
| color: var(--text-muted); | |
| font-weight: 500; | |
| } | |
| .rag-panel .pdf-meta span { | |
| display: flex; | |
| align-items: center; | |
| gap: 5px; | |
| } | |
| .rag-panel .pdf-meta svg { | |
| opacity: 0.7; | |
| } | |
| .rag-panel .pdf-actions { | |
| display: flex; | |
| gap: 8px; | |
| flex-shrink: 0; | |
| } | |
| .rag-panel .status-trained { | |
| display: flex; | |
| align-items: center; | |
| gap: 6px; | |
| font-size: 12px; | |
| font-weight: 600; | |
| color: #22c55e; | |
| padding: 8px 14px; | |
| background: linear-gradient(135deg, rgba(34, 197, 94, 0.15) 0%, rgba(34, 197, 94, 0.08) 100%); | |
| border-radius: 10px; | |
| } | |
| /* ===== Loading & Empty States ===== */ | |
| .rag-panel .loading-state, | |
| .rag-panel .empty-state { | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| justify-content: center; | |
| padding: 48px 24px; | |
| text-align: center; | |
| color: var(--text-secondary); | |
| } | |
| .rag-panel .loading-state svg, | |
| .rag-panel .empty-state svg { | |
| color: #8b5cf6; | |
| opacity: 0.5; | |
| margin-bottom: 16px; | |
| } | |
| .rag-panel .loading-state p, | |
| .rag-panel .empty-state p { | |
| font-size: 16px; | |
| font-weight: 600; | |
| color: var(--text-primary); | |
| margin: 0 0 8px; | |
| } | |
| .rag-panel .empty-state span { | |
| font-size: 14px; | |
| color: var(--text-muted); | |
| } | |
| /* ===== Buttons - Premium Style ===== */ | |
| .rag-panel .btn { | |
| display: inline-flex; | |
| align-items: center; | |
| justify-content: center; | |
| gap: 8px; | |
| padding: 12px 20px; | |
| border: none; | |
| border-radius: 12px; | |
| font-size: 14px; | |
| font-weight: 600; | |
| cursor: pointer; | |
| transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); | |
| white-space: nowrap; | |
| position: relative; | |
| overflow: hidden; | |
| } | |
| .rag-panel .btn:disabled { | |
| opacity: 0.5; | |
| cursor: not-allowed; | |
| transform: none ; | |
| } | |
| .rag-panel .btn-sm { | |
| padding: 10px 14px; | |
| font-size: 13px; | |
| border-radius: 10px; | |
| } | |
| .rag-panel .btn-primary { | |
| background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%); | |
| color: #fff; | |
| box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3); | |
| } | |
| .rag-panel .btn-primary:hover:not(:disabled) { | |
| transform: translateY(-2px); | |
| box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4); | |
| } | |
| .rag-panel .btn-secondary { | |
| background: var(--bg-tertiary); | |
| color: var(--text-primary); | |
| border: 1px solid var(--border-color); | |
| } | |
| .rag-panel .btn-secondary:hover:not(:disabled) { | |
| background: var(--bg-card-hover); | |
| border-color: rgba(139, 92, 246, 0.3); | |
| transform: translateY(-2px); | |
| } | |
| .rag-panel .btn-info { | |
| background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); | |
| color: #fff; | |
| box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3); | |
| } | |
| .rag-panel .btn-info:hover:not(:disabled) { | |
| transform: translateY(-2px); | |
| box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4); | |
| } | |
| .rag-panel .btn-danger { | |
| background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); | |
| color: #fff; | |
| box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3); | |
| } | |
| .rag-panel .btn-danger:hover:not(:disabled) { | |
| transform: translateY(-2px); | |
| box-shadow: 0 8px 20px rgba(239, 68, 68, 0.4); | |
| } | |
| /* Spin Animation */ | |
| .rag-panel .spin { | |
| animation: spin 1s linear infinite; | |
| } | |
| @keyframes spin { | |
| from { transform: rotate(0deg); } | |
| to { transform: rotate(360deg); } | |
| } | |
| /* ===== Search Section - Premium Style ===== */ | |
| .rag-panel .search-form { | |
| display: flex; | |
| flex-wrap: wrap; | |
| gap: 16px; | |
| align-items: center; | |
| margin-bottom: 24px; | |
| } | |
| .rag-panel .search-input-wrap { | |
| flex: 1; | |
| min-width: 280px; | |
| position: relative; | |
| display: flex; | |
| align-items: center; | |
| } | |
| .rag-panel .search-input-wrap svg { | |
| position: absolute; | |
| left: 16px; | |
| color: var(--text-muted); | |
| pointer-events: none; | |
| } | |
| .rag-panel .search-input-wrap input { | |
| width: 100%; | |
| padding: 14px 16px 14px 48px; | |
| background: var(--bg-tertiary); | |
| border: 2px solid var(--border-color); | |
| border-radius: 14px; | |
| font-size: 15px; | |
| color: var(--text-primary); | |
| transition: all 0.3s ease; | |
| } | |
| .rag-panel .search-input-wrap input:focus { | |
| outline: none; | |
| border-color: #8b5cf6; | |
| box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15); | |
| } | |
| .rag-panel .search-filters { | |
| display: flex; | |
| gap: 12px; | |
| } | |
| .rag-panel .search-filters select { | |
| padding: 12px 16px; | |
| background: var(--bg-tertiary); | |
| border: 1px solid var(--border-color); | |
| border-radius: 12px; | |
| font-size: 14px; | |
| font-weight: 500; | |
| color: var(--text-primary); | |
| cursor: pointer; | |
| transition: all 0.3s ease; | |
| } | |
| .rag-panel .search-filters select:focus { | |
| outline: none; | |
| border-color: #8b5cf6; | |
| } | |
| .rag-panel .search-results { | |
| margin-top: 24px; | |
| } | |
| .rag-panel .search-results h4 { | |
| font-size: 16px; | |
| font-weight: 700; | |
| color: var(--text-primary); | |
| margin: 0 0 20px; | |
| padding-bottom: 16px; | |
| border-bottom: 1px solid var(--border-color); | |
| } | |
| .rag-panel .result-card { | |
| background: var(--bg-tertiary); | |
| border: 1px solid var(--border-color); | |
| border-radius: 16px; | |
| padding: 20px; | |
| margin-bottom: 16px; | |
| transition: all 0.3s ease; | |
| } | |
| .rag-panel .result-card:hover { | |
| border-color: rgba(139, 92, 246, 0.3); | |
| box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08); | |
| } | |
| .rag-panel .result-question { | |
| display: flex; | |
| gap: 12px; | |
| margin-bottom: 12px; | |
| } | |
| .rag-panel .result-question svg { | |
| color: #8b5cf6; | |
| flex-shrink: 0; | |
| margin-top: 2px; | |
| } | |
| .rag-panel .result-question span { | |
| font-size: 15px; | |
| font-weight: 500; | |
| color: var(--text-primary); | |
| line-height: 1.5; | |
| } | |
| .rag-panel .result-meta { | |
| display: flex; | |
| gap: 10px; | |
| flex-wrap: wrap; | |
| } | |
| .rag-panel .result-meta .score { | |
| font-size: 13px; | |
| font-weight: 600; | |
| color: #22c55e; | |
| padding: 6px 12px; | |
| background: rgba(34, 197, 94, 0.1); | |
| border-radius: 8px; | |
| } | |
| .rag-panel .result-meta .tag { | |
| font-size: 12px; | |
| font-weight: 600; | |
| padding: 6px 12px; | |
| border-radius: 8px; | |
| text-transform: uppercase; | |
| letter-spacing: 0.03em; | |
| } | |
| .rag-panel .result-meta .tag.type { | |
| background: rgba(139, 92, 246, 0.1); | |
| color: #8b5cf6; | |
| } | |
| .rag-panel .result-meta .tag.difficulty { | |
| background: rgba(249, 115, 22, 0.1); | |
| color: #f97316; | |
| } | |
| /* ===== Stats Details Section ===== */ | |
| .rag-panel .stats-details { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 12px; | |
| } | |
| .rag-panel .stat-row { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| padding: 16px 20px; | |
| background: var(--bg-tertiary); | |
| border-radius: 14px; | |
| border: 1px solid var(--border-color); | |
| } | |
| .rag-panel .stat-row span:first-child { | |
| font-size: 14px; | |
| font-weight: 500; | |
| color: var(--text-secondary); | |
| } | |
| .rag-panel .stat-value-text { | |
| font-size: 14px; | |
| font-weight: 700; | |
| color: var(--text-primary); | |
| font-family: 'SF Mono', 'Fira Code', monospace; | |
| background: rgba(139, 92, 246, 0.1); | |
| padding: 6px 12px; | |
| border-radius: 8px; | |
| } | |
| /* ===== Collections List ===== */ | |
| .rag-panel .collections-list { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 12px; | |
| } | |
| .rag-panel .collection-item { | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| padding: 18px 20px; | |
| background: var(--bg-tertiary); | |
| border: 1px solid var(--border-color); | |
| border-radius: 14px; | |
| transition: all 0.3s ease; | |
| } | |
| .rag-panel .collection-item:hover { | |
| border-color: rgba(139, 92, 246, 0.3); | |
| transform: translateX(4px); | |
| } | |
| .rag-panel .collection-name { | |
| font-size: 15px; | |
| font-weight: 700; | |
| color: var(--text-primary); | |
| } | |
| .rag-panel .collection-count { | |
| font-size: 13px; | |
| font-weight: 600; | |
| color: #8b5cf6; | |
| padding: 6px 14px; | |
| background: rgba(139, 92, 246, 0.1); | |
| border-radius: 10px; | |
| } | |
| /* ===== Modal Styles ===== */ | |
| .rag-panel .modal-overlay { | |
| position: fixed; | |
| inset: 0; | |
| background: rgba(0, 0, 0, 0.7); | |
| backdrop-filter: blur(8px); | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| z-index: 9999; | |
| animation: modal-overlay-in 0.3s ease; | |
| } | |
| @keyframes modal-overlay-in { | |
| from { opacity: 0; } | |
| to { opacity: 1; } | |
| } | |
| .rag-panel .modal, | |
| .rag-panel .train-config-modal, | |
| .rag-panel .training-summary-modal { | |
| background: var(--bg-card); | |
| border: 1px solid var(--border-color); | |
| border-radius: 24px; | |
| padding: 32px; | |
| max-width: 600px; | |
| width: 90%; | |
| max-height: 85vh; | |
| overflow-y: auto; | |
| box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3); | |
| animation: modal-slide-in 0.4s cubic-bezier(0.4, 0, 0.2, 1); | |
| } | |
| @keyframes modal-slide-in { | |
| from { opacity: 0; transform: translateY(20px) scale(0.95); } | |
| to { opacity: 1; transform: translateY(0) scale(1); } | |
| } | |
| .rag-panel .modal-header { | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| margin-bottom: 24px; | |
| padding-bottom: 20px; | |
| border-bottom: 1px solid var(--border-color); | |
| } | |
| .rag-panel .modal-title { | |
| display: flex; | |
| align-items: center; | |
| gap: 14px; | |
| } | |
| .rag-panel .modal-title svg { | |
| color: #8b5cf6; | |
| } | |
| .rag-panel .modal-title h2 { | |
| font-size: 22px; | |
| font-weight: 800; | |
| color: var(--text-primary); | |
| margin: 0; | |
| } | |
| .rag-panel .modal-close { | |
| background: var(--bg-tertiary); | |
| border: none; | |
| border-radius: 12px; | |
| padding: 10px; | |
| cursor: pointer; | |
| color: var(--text-secondary); | |
| transition: all 0.3s ease; | |
| } | |
| .rag-panel .modal-close:hover { | |
| background: rgba(239, 68, 68, 0.1); | |
| color: #ef4444; | |
| } | |
| .rag-panel .modal-actions { | |
| display: flex; | |
| gap: 12px; | |
| justify-content: flex-end; | |
| margin-top: 24px; | |
| padding-top: 20px; | |
| border-top: 1px solid var(--border-color); | |
| } | |
| /* ===== Form Groups ===== */ | |
| .rag-panel .config-form { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 20px; | |
| } | |
| .rag-panel .form-group { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 8px; | |
| } | |
| .rag-panel .form-group label { | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| font-size: 14px; | |
| font-weight: 600; | |
| color: var(--text-secondary); | |
| } | |
| .rag-panel .form-group label svg { | |
| color: #8b5cf6; | |
| } | |
| .rag-panel .form-group select, | |
| .rag-panel .form-group input { | |
| padding: 14px 16px; | |
| background: var(--bg-tertiary); | |
| border: 2px solid var(--border-color); | |
| border-radius: 12px; | |
| font-size: 14px; | |
| color: var(--text-primary); | |
| transition: all 0.3s ease; | |
| } | |
| .rag-panel .form-group select:focus, | |
| .rag-panel .form-group input:focus { | |
| outline: none; | |
| border-color: #8b5cf6; | |
| box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.15); | |
| } | |
| /* ===== Training Summary Modal - Premium Style ===== */ | |
| .rag-panel .training-summary-modal { | |
| max-width: 700px; | |
| } | |
| .rag-panel .summary-stats { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); | |
| gap: 16px; | |
| margin-bottom: 28px; | |
| } | |
| .rag-panel .summary-stat-card { | |
| background: var(--bg-tertiary); | |
| border: 1px solid var(--border-color); | |
| border-radius: 16px; | |
| padding: 20px; | |
| display: flex; | |
| align-items: center; | |
| gap: 16px; | |
| transition: all 0.3s ease; | |
| } | |
| .rag-panel .summary-stat-card.highlight { | |
| background: linear-gradient(135deg, rgba(139, 92, 246, 0.1) 0%, rgba(99, 102, 241, 0.05) 100%); | |
| border-color: rgba(139, 92, 246, 0.3); | |
| } | |
| .rag-panel .summary-stat-icon { | |
| width: 48px; | |
| height: 48px; | |
| background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%); | |
| border-radius: 14px; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| color: #fff; | |
| flex-shrink: 0; | |
| } | |
| .rag-panel .summary-stat-content { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 4px; | |
| } | |
| .rag-panel .summary-stat-value { | |
| font-size: 28px; | |
| font-weight: 800; | |
| color: var(--text-primary); | |
| line-height: 1; | |
| } | |
| .rag-panel .summary-stat-label { | |
| font-size: 13px; | |
| font-weight: 600; | |
| color: var(--text-secondary); | |
| } | |
| .rag-panel .summary-section { | |
| margin-bottom: 24px; | |
| } | |
| .rag-panel .summary-section h3 { | |
| display: flex; | |
| align-items: center; | |
| gap: 10px; | |
| font-size: 16px; | |
| font-weight: 700; | |
| color: var(--text-primary); | |
| margin: 0 0 16px; | |
| } | |
| .rag-panel .domain-breakdown { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 12px; | |
| } | |
| .rag-panel .domain-item { | |
| display: flex; | |
| align-items: center; | |
| gap: 16px; | |
| } | |
| .rag-panel .domain-info { | |
| min-width: 160px; | |
| } | |
| .rag-panel .domain-name { | |
| font-size: 14px; | |
| font-weight: 600; | |
| color: var(--text-primary); | |
| } | |
| .rag-panel .domain-count { | |
| font-size: 12px; | |
| color: var(--text-muted); | |
| } | |
| .rag-panel .domain-bar { | |
| flex: 1; | |
| height: 8px; | |
| background: var(--bg-tertiary); | |
| border-radius: 4px; | |
| overflow: hidden; | |
| } | |
| .rag-panel .domain-bar-fill { | |
| height: 100%; | |
| background: linear-gradient(90deg, #8b5cf6, #6366f1); | |
| border-radius: 4px; | |
| transition: width 0.5s ease; | |
| } | |
| .rag-panel .domain-percentage { | |
| font-size: 13px; | |
| font-weight: 700; | |
| color: #8b5cf6; | |
| min-width: 50px; | |
| text-align: right; | |
| } | |
| .rag-panel .branch-breakdown { | |
| display: flex; | |
| flex-wrap: wrap; | |
| gap: 10px; | |
| } | |
| .rag-panel .branch-badge { | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| padding: 10px 16px; | |
| background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(59, 130, 246, 0.05) 100%); | |
| border: 1px solid rgba(59, 130, 246, 0.2); | |
| border-radius: 12px; | |
| } | |
| .rag-panel .branch-name { | |
| font-size: 14px; | |
| font-weight: 600; | |
| color: var(--text-primary); | |
| } | |
| .rag-panel .branch-count { | |
| font-size: 13px; | |
| font-weight: 700; | |
| color: #3b82f6; | |
| background: rgba(59, 130, 246, 0.15); | |
| padding: 4px 10px; | |
| border-radius: 8px; | |
| } | |
| /* ===== Training Result Section ===== */ | |
| .rag-panel .train-result { | |
| background: linear-gradient(135deg, rgba(34, 197, 94, 0.08) 0%, rgba(34, 197, 94, 0.03) 100%); | |
| border: 1px solid rgba(34, 197, 94, 0.2); | |
| } | |
| .rag-panel .result-grid { | |
| display: flex; | |
| flex-wrap: wrap; | |
| gap: 16px; | |
| } | |
| .rag-panel .result-item { | |
| background: var(--bg-card); | |
| border: 1px solid var(--border-color); | |
| border-radius: 14px; | |
| padding: 16px 20px; | |
| min-width: 140px; | |
| } | |
| .rag-panel .result-label { | |
| font-size: 12px; | |
| font-weight: 600; | |
| color: var(--text-muted); | |
| text-transform: uppercase; | |
| letter-spacing: 0.05em; | |
| display: block; | |
| margin-bottom: 6px; | |
| } | |
| .rag-panel .result-value { | |
| font-size: 24px; | |
| font-weight: 800; | |
| color: #22c55e; | |
| } | |
| .rag-panel .result-breakdown { | |
| flex-basis: 100%; | |
| } | |
| .rag-panel .breakdown-tags { | |
| display: flex; | |
| flex-wrap: wrap; | |
| gap: 8px; | |
| margin-top: 10px; | |
| } | |
| .rag-panel .tag { | |
| font-size: 12px; | |
| font-weight: 600; | |
| padding: 6px 12px; | |
| border-radius: 8px; | |
| background: rgba(139, 92, 246, 0.1); | |
| color: #8b5cf6; | |
| } | |
| .rag-panel .tag-branch { | |
| background: rgba(59, 130, 246, 0.1); | |
| color: #3b82f6; | |
| } | |
| .rag-panel .tag-domain { | |
| background: rgba(236, 72, 153, 0.1); | |
| color: #ec4899; | |
| } | |
| /* ===== Delete Modal Specific ===== */ | |
| .rag-panel .delete-modal { | |
| max-width: 800px; | |
| } | |
| .rag-panel .questions-list { | |
| max-height: 400px; | |
| overflow-y: auto; | |
| border: 1px solid var(--border-color); | |
| border-radius: 14px; | |
| margin: 16px 0; | |
| } | |
| .rag-panel .question-item { | |
| display: flex; | |
| align-items: center; | |
| gap: 12px; | |
| padding: 14px 16px; | |
| border-bottom: 1px solid var(--border-color); | |
| transition: background 0.2s ease; | |
| } | |
| .rag-panel .question-item:last-child { | |
| border-bottom: none; | |
| } | |
| .rag-panel .question-item:hover { | |
| background: var(--bg-tertiary); | |
| } | |
| .rag-panel .question-item input[type="checkbox"] { | |
| width: 20px; | |
| height: 20px; | |
| accent-color: #8b5cf6; | |
| cursor: pointer; | |
| } | |
| .rag-panel .question-text { | |
| flex: 1; | |
| font-size: 14px; | |
| color: var(--text-primary); | |
| line-height: 1.4; | |
| } | |
| /* ===== Clear All Modal - Danger Styling ===== */ | |
| .rag-panel .clear-all-modal { | |
| max-width: 500px; | |
| } | |
| .rag-panel .danger-warning { | |
| background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%); | |
| border: 1px solid rgba(239, 68, 68, 0.3); | |
| border-radius: 14px; | |
| padding: 20px; | |
| margin-bottom: 24px; | |
| text-align: center; | |
| } | |
| .rag-panel .danger-warning svg { | |
| color: #ef4444; | |
| margin-bottom: 12px; | |
| } | |
| .rag-panel .danger-warning p { | |
| font-size: 14px; | |
| color: var(--text-secondary); | |
| margin: 0; | |
| line-height: 1.5; | |
| } | |
| .rag-panel .danger-warning strong { | |
| color: #ef4444; | |
| } | |
| .rag-panel .confirmation-checks { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 12px; | |
| margin-bottom: 24px; | |
| } | |
| .rag-panel .confirmation-checks label { | |
| display: flex; | |
| align-items: center; | |
| gap: 10px; | |
| font-size: 14px; | |
| color: var(--text-primary); | |
| cursor: pointer; | |
| } | |
| .rag-panel .confirmation-checks input[type="checkbox"] { | |
| width: 18px; | |
| height: 18px; | |
| accent-color: #ef4444; | |
| } | |
| .rag-panel .password-input { | |
| width: 100%; | |
| padding: 14px 16px; | |
| background: var(--bg-tertiary); | |
| border: 2px solid var(--border-color); | |
| border-radius: 12px; | |
| font-size: 14px; | |
| color: var(--text-primary); | |
| margin-bottom: 24px; | |
| transition: all 0.3s ease; | |
| } | |
| .rag-panel .password-input:focus { | |
| outline: none; | |
| border-color: #ef4444; | |
| box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.15); | |
| } | |
| /* ===== Responsive Adjustments ===== */ | |
| @media (max-width: 768px) { | |
| .rag-panel { | |
| padding: 16px; | |
| } | |
| .rag-panel .header-content { | |
| flex-direction: column; | |
| align-items: flex-start; | |
| gap: 16px; | |
| } | |
| .rag-panel .view-tabs { | |
| width: 100%; | |
| overflow-x: auto; | |
| } | |
| .rag-panel .pdf-grid { | |
| grid-template-columns: 1fr; | |
| } | |
| .rag-panel .pdf-card { | |
| flex-direction: column; | |
| align-items: flex-start; | |
| text-align: left; | |
| } | |
| .rag-panel .pdf-actions { | |
| width: 100%; | |
| justify-content: flex-end; | |
| margin-top: 12px; | |
| padding-top: 12px; | |
| border-top: 1px solid var(--border-color); | |
| } | |
| .rag-panel .search-form { | |
| flex-direction: column; | |
| } | |
| .rag-panel .search-filters { | |
| width: 100%; | |
| } | |
| .rag-panel .search-filters select { | |
| flex: 1; | |
| } | |
| } | |
| /* ===== Training Result ===== */ | |
| .rag-panel .train-result { | |
| background: var(--success-bg); | |
| border-color: var(--success); | |
| } | |
| .rag-panel .result-grid { | |
| display: flex; | |
| flex-wrap: wrap; | |
| gap: 24px; | |
| } | |
| .rag-panel .result-item { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 4px; | |
| } | |
| .rag-panel .result-label { | |
| font-size: 12px; | |
| color: var(--text-muted); | |
| } | |
| .rag-panel .result-value { | |
| font-size: 28px; | |
| font-weight: 700; | |
| color: var(--success); | |
| } | |
| .rag-panel .result-breakdown { | |
| width: 100%; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 8px; | |
| } | |
| .rag-panel .result-breakdown.classification { | |
| margin-top: 8px; | |
| padding-top: 16px; | |
| border-top: 1px solid var(--border-color); | |
| } | |
| .rag-panel .breakdown-tags { | |
| display: flex; | |
| flex-wrap: wrap; | |
| gap: 8px; | |
| } | |
| .rag-panel .tag { | |
| display: inline-flex; | |
| align-items: center; | |
| padding: 6px 12px; | |
| background: var(--bg-tertiary); | |
| border-radius: 6px; | |
| font-size: 12px; | |
| color: var(--text-secondary); | |
| } | |
| .rag-panel .tag-branch { | |
| background: var(--info-bg); | |
| color: var(--info); | |
| } | |
| .rag-panel .tag-domain { | |
| background: rgba(168, 85, 247, 0.1); | |
| color: var(--accent); | |
| } | |
| .rag-panel .tag-more { | |
| background: var(--bg-tertiary); | |
| color: var(--text-muted); | |
| } | |
| /* ===== Stats Section ===== */ | |
| .rag-panel .stats-details { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 12px; | |
| } | |
| .rag-panel .stat-row { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| padding: 12px 16px; | |
| background: var(--bg-tertiary); | |
| border-radius: 10px; | |
| } | |
| .rag-panel .stat-row span:first-child { | |
| color: var(--text-secondary); | |
| font-size: 14px; | |
| } | |
| .rag-panel .stat-value-text { | |
| font-weight: 600; | |
| color: var(--text-primary); | |
| } | |
| /* ===== Collections ===== */ | |
| .rag-panel .collections-list { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 12px; | |
| } | |
| .rag-panel .collection-item { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| padding: 14px 18px; | |
| background: var(--bg-tertiary); | |
| border: 1px solid var(--border-color); | |
| border-radius: 12px; | |
| } | |
| .rag-panel .collection-name { | |
| font-weight: 600; | |
| color: var(--text-primary); | |
| } | |
| .rag-panel .collection-count { | |
| font-size: 13px; | |
| color: var(--text-muted); | |
| } | |
| /* ===== Search Section ===== */ | |
| .rag-panel .search-form { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 16px; | |
| } | |
| .rag-panel .search-input-wrap { | |
| position: relative; | |
| flex: 1; | |
| } | |
| .rag-panel .search-input-wrap svg { | |
| position: absolute; | |
| left: 14px; | |
| top: 50%; | |
| transform: translateY(-50%); | |
| color: var(--text-muted); | |
| } | |
| .rag-panel .search-input-wrap input { | |
| width: 100%; | |
| padding: 14px 14px 14px 44px; | |
| background: var(--bg-tertiary); | |
| border: 1px solid var(--border-color); | |
| border-radius: 12px; | |
| color: var(--text-primary); | |
| font-size: 15px; | |
| } | |
| .rag-panel .search-input-wrap input:focus { | |
| outline: none; | |
| border-color: var(--primary); | |
| } | |
| .rag-panel .search-input-wrap input::placeholder { | |
| color: var(--text-muted); | |
| } | |
| .rag-panel .search-filters { | |
| display: flex; | |
| gap: 12px; | |
| flex-wrap: wrap; | |
| } | |
| .rag-panel .search-filters select { | |
| padding: 10px 14px; | |
| background: var(--bg-tertiary); | |
| border: 1px solid var(--border-color); | |
| border-radius: 10px; | |
| color: var(--text-primary); | |
| font-size: 14px; | |
| } | |
| /* ===== Search Results ===== */ | |
| .rag-panel .search-results { | |
| margin-top: 24px; | |
| } | |
| .rag-panel .search-results h4 { | |
| font-size: 14px; | |
| font-weight: 500; | |
| color: var(--text-secondary); | |
| margin: 0 0 16px; | |
| } | |
| .rag-panel .result-card { | |
| background: var(--bg-tertiary); | |
| border: 1px solid var(--border-color); | |
| border-radius: 12px; | |
| padding: 16px; | |
| margin-bottom: 12px; | |
| } | |
| .rag-panel .result-question { | |
| display: flex; | |
| gap: 10px; | |
| color: var(--text-primary); | |
| font-size: 14px; | |
| line-height: 1.5; | |
| } | |
| .rag-panel .result-question svg { | |
| flex-shrink: 0; | |
| color: var(--accent); | |
| margin-top: 2px; | |
| } | |
| .rag-panel .result-meta { | |
| display: flex; | |
| flex-wrap: wrap; | |
| gap: 8px; | |
| margin-top: 12px; | |
| } | |
| .rag-panel .score { | |
| font-size: 12px; | |
| color: var(--text-muted); | |
| } | |
| .rag-panel .result-meta .tag.type { | |
| background: var(--info-bg); | |
| color: var(--info); | |
| } | |
| .rag-panel .result-meta .tag.difficulty { | |
| background: var(--warning-bg); | |
| color: var(--warning); | |
| } | |
| /* ===== Loading & Empty States ===== */ | |
| .rag-panel .loading-state, | |
| .rag-panel .empty-state { | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| justify-content: center; | |
| padding: 48px; | |
| color: var(--text-muted); | |
| text-align: center; | |
| } | |
| .rag-panel .loading-state svg, | |
| .rag-panel .empty-state svg { | |
| margin-bottom: 16px; | |
| opacity: 0.4; | |
| } | |
| .rag-panel .empty-state.small { | |
| padding: 32px; | |
| } | |
| /* ===== Animations ===== */ | |
| @keyframes spin { | |
| to { transform: rotate(360deg); } | |
| } | |
| .rag-panel .spin { | |
| animation: spin 1s linear infinite; | |
| } | |
| /* ===== Training Summary Modal ===== */ | |
| .training-summary-modal { | |
| width: 90%; | |
| max-width: 700px; | |
| max-height: 85vh; | |
| overflow-y: auto; | |
| } | |
| .training-summary-modal .modal-header { | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| padding: 20px 24px; | |
| border-bottom: 1px solid var(--border-color); | |
| background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(99, 102, 241, 0.05)); | |
| } | |
| .training-summary-modal .modal-title { | |
| display: flex; | |
| align-items: center; | |
| gap: 12px; | |
| } | |
| .training-summary-modal .modal-title svg { | |
| color: var(--success); | |
| } | |
| .training-summary-modal .modal-title h2 { | |
| margin: 0; | |
| font-size: 20px; | |
| font-weight: 600; | |
| color: var(--text-primary); | |
| } | |
| .training-summary-modal .modal-close { | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| width: 36px; | |
| height: 36px; | |
| border: none; | |
| background: transparent; | |
| border-radius: 8px; | |
| cursor: pointer; | |
| color: var(--text-muted); | |
| transition: all 0.2s ease; | |
| } | |
| .training-summary-modal .modal-close:hover { | |
| background: var(--bg-tertiary); | |
| color: var(--text-primary); | |
| } | |
| .training-summary-modal .modal-body { | |
| padding: 24px; | |
| } | |
| /* Summary Stats */ | |
| .summary-stats { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); | |
| gap: 16px; | |
| margin-bottom: 24px; | |
| } | |
| .summary-stat-card { | |
| display: flex; | |
| align-items: center; | |
| gap: 16px; | |
| padding: 20px; | |
| background: var(--bg-tertiary); | |
| border-radius: 12px; | |
| border: 1px solid var(--border-color); | |
| } | |
| .summary-stat-card.highlight { | |
| background: linear-gradient(135deg, rgba(34, 197, 94, 0.15), rgba(16, 185, 129, 0.1)); | |
| border-color: rgba(34, 197, 94, 0.3); | |
| } | |
| .summary-stat-icon { | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| width: 56px; | |
| height: 56px; | |
| border-radius: 12px; | |
| background: var(--bg-secondary); | |
| color: var(--primary); | |
| } | |
| .summary-stat-card.highlight .summary-stat-icon { | |
| background: rgba(34, 197, 94, 0.15); | |
| color: #22c55e; | |
| } | |
| .summary-stat-content { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 2px; | |
| } | |
| .summary-stat-value { | |
| font-size: 28px; | |
| font-weight: 700; | |
| color: var(--text-primary); | |
| line-height: 1.2; | |
| } | |
| .summary-stat-label { | |
| font-size: 13px; | |
| color: var(--text-muted); | |
| font-weight: 500; | |
| } | |
| /* Summary Sections */ | |
| .summary-section { | |
| margin-bottom: 24px; | |
| } | |
| .summary-section:last-child { | |
| margin-bottom: 0; | |
| } | |
| .summary-section h3 { | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| font-size: 15px; | |
| font-weight: 600; | |
| color: var(--text-primary); | |
| margin: 0 0 16px; | |
| padding-bottom: 8px; | |
| border-bottom: 1px solid var(--border-color); | |
| } | |
| .summary-section h3 svg { | |
| color: var(--primary); | |
| } | |
| /* Domain Breakdown */ | |
| .domain-breakdown { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 12px; | |
| } | |
| .domain-item { | |
| display: grid; | |
| grid-template-columns: 1fr 2fr auto; | |
| align-items: center; | |
| gap: 12px; | |
| } | |
| .domain-info { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 2px; | |
| } | |
| .domain-name { | |
| font-size: 14px; | |
| font-weight: 600; | |
| color: var(--text-primary); | |
| } | |
| .domain-count { | |
| font-size: 12px; | |
| color: var(--text-muted); | |
| } | |
| .domain-bar { | |
| height: 8px; | |
| background: var(--bg-secondary); | |
| border-radius: 4px; | |
| overflow: hidden; | |
| } | |
| .domain-bar-fill { | |
| height: 100%; | |
| background: linear-gradient(90deg, #8b5cf6, #6366f1); | |
| border-radius: 4px; | |
| transition: width 0.5s ease; | |
| } | |
| .domain-percentage { | |
| font-size: 13px; | |
| font-weight: 600; | |
| color: var(--text-secondary); | |
| min-width: 40px; | |
| text-align: right; | |
| } | |
| /* Branch Breakdown */ | |
| .branch-breakdown { | |
| display: flex; | |
| flex-wrap: wrap; | |
| gap: 8px; | |
| } | |
| .branch-badge { | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| padding: 8px 14px; | |
| background: linear-gradient(135deg, rgba(99, 102, 241, 0.15), rgba(139, 92, 246, 0.1)); | |
| border-radius: 20px; | |
| border: 1px solid rgba(99, 102, 241, 0.3); | |
| } | |
| .branch-name { | |
| font-size: 13px; | |
| font-weight: 600; | |
| color: var(--text-primary); | |
| } | |
| .branch-count { | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| min-width: 24px; | |
| height: 24px; | |
| padding: 0 8px; | |
| background: var(--primary); | |
| color: white; | |
| font-size: 12px; | |
| font-weight: 700; | |
| border-radius: 12px; | |
| } | |
| /* Type Breakdown */ | |
| .type-breakdown { | |
| display: flex; | |
| flex-wrap: wrap; | |
| gap: 8px; | |
| } | |
| .type-badge { | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| padding: 8px 14px; | |
| background: var(--bg-tertiary); | |
| border-radius: 8px; | |
| border: 1px solid var(--border-color); | |
| } | |
| .type-name { | |
| font-size: 13px; | |
| font-weight: 500; | |
| color: var(--text-primary); | |
| } | |
| .type-count { | |
| font-size: 12px; | |
| font-weight: 600; | |
| color: var(--primary); | |
| background: rgba(139, 92, 246, 0.1); | |
| padding: 2px 8px; | |
| border-radius: 10px; | |
| } | |
| /* Difficulty Breakdown */ | |
| .difficulty-breakdown { | |
| display: flex; | |
| flex-wrap: wrap; | |
| gap: 8px; | |
| } | |
| .difficulty-badge { | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| padding: 8px 14px; | |
| border-radius: 8px; | |
| } | |
| .difficulty-badge.easy { | |
| background: rgba(34, 197, 94, 0.1); | |
| border: 1px solid rgba(34, 197, 94, 0.3); | |
| } | |
| .difficulty-badge.easy .difficulty-name { | |
| color: #22c55e; | |
| } | |
| .difficulty-badge.medium { | |
| background: rgba(234, 179, 8, 0.1); | |
| border: 1px solid rgba(234, 179, 8, 0.3); | |
| } | |
| .difficulty-badge.medium .difficulty-name { | |
| color: #eab308; | |
| } | |
| .difficulty-badge.hard { | |
| background: rgba(239, 68, 68, 0.1); | |
| border: 1px solid rgba(239, 68, 68, 0.3); | |
| } | |
| .difficulty-badge.hard .difficulty-name { | |
| color: #ef4444; | |
| } | |
| .difficulty-name { | |
| font-size: 13px; | |
| font-weight: 600; | |
| } | |
| .difficulty-count { | |
| font-size: 12px; | |
| font-weight: 600; | |
| color: var(--text-secondary); | |
| background: var(--bg-secondary); | |
| padding: 2px 8px; | |
| border-radius: 10px; | |
| } | |
| /* Modal Footer */ | |
| .training-summary-modal .modal-footer { | |
| display: flex; | |
| justify-content: flex-end; | |
| padding: 16px 24px; | |
| border-top: 1px solid var(--border-color); | |
| background: var(--bg-secondary); | |
| } | |
| .training-summary-modal .modal-footer .btn { | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| } | |
| /* Modal Subtitle Inline */ | |
| .modal-subtitle-inline { | |
| font-size: 14px; | |
| font-weight: 400; | |
| color: var(--text-muted); | |
| margin-left: 8px; | |
| padding-left: 8px; | |
| border-left: 2px solid var(--border-color); | |
| max-width: 250px; | |
| overflow: hidden; | |
| text-overflow: ellipsis; | |
| white-space: nowrap; | |
| } | |
| /* Info Button */ | |
| .rag-panel .btn-info { | |
| background: linear-gradient(135deg, #3b82f6, #2563eb); | |
| color: white; | |
| border: none; | |
| } | |
| .rag-panel .btn-info:hover { | |
| background: linear-gradient(135deg, #2563eb, #1d4ed8); | |
| transform: translateY(-1px); | |
| } | |
| /* ===== Extracted Questions List ===== */ | |
| .questions-list-section { | |
| margin-top: 20px; | |
| } | |
| .questions-list-section h3 { | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| margin-bottom: 16px; | |
| font-size: 15px; | |
| font-weight: 600; | |
| color: var(--text-primary); | |
| } | |
| .questions-list { | |
| max-height: 400px; | |
| overflow-y: auto; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 12px; | |
| padding-right: 8px; | |
| } | |
| .questions-list::-webkit-scrollbar { | |
| width: 6px; | |
| } | |
| .questions-list::-webkit-scrollbar-track { | |
| background: var(--bg-secondary); | |
| border-radius: 3px; | |
| } | |
| .questions-list::-webkit-scrollbar-thumb { | |
| background: var(--border-color); | |
| border-radius: 3px; | |
| } | |
| .questions-list::-webkit-scrollbar-thumb:hover { | |
| background: var(--text-muted); | |
| } | |
| .question-item { | |
| display: flex; | |
| gap: 12px; | |
| padding: 14px; | |
| background: var(--bg-secondary); | |
| border: 1px solid var(--border-color); | |
| border-radius: 10px; | |
| transition: all 0.2s ease; | |
| } | |
| .question-item:hover { | |
| border-color: var(--primary); | |
| box-shadow: 0 2px 8px rgba(99, 102, 241, 0.1); | |
| } | |
| .question-number { | |
| flex-shrink: 0; | |
| width: 28px; | |
| height: 28px; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| background: linear-gradient(135deg, #6366f1, #8b5cf6); | |
| color: white; | |
| font-size: 12px; | |
| font-weight: 700; | |
| border-radius: 8px; | |
| } | |
| .question-content { | |
| flex: 1; | |
| min-width: 0; | |
| } | |
| .question-text { | |
| font-size: 14px; | |
| color: var(--text-primary); | |
| margin: 0 0 10px 0; | |
| line-height: 1.5; | |
| word-break: break-word; | |
| } | |
| /* ============================================ | |
| SOURCE BADGES (R=RAG, D=Database, A=API, F=Fallback) | |
| ============================================ */ | |
| .source-badge { | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| width: 24px; | |
| height: 24px; | |
| min-width: 24px; | |
| border-radius: 6px; | |
| font-size: 12px; | |
| font-weight: 700; | |
| cursor: help; | |
| transition: all 0.2s ease; | |
| flex-shrink: 0; | |
| } | |
| .source-badge.source-database { | |
| background: linear-gradient(135deg, #10b981, #059669); | |
| color: white; | |
| border: 1px solid rgba(16, 185, 129, 0.3); | |
| } | |
| .source-badge.source-api { | |
| background: linear-gradient(135deg, #3b82f6, #2563eb); | |
| color: white; | |
| border: 1px solid rgba(59, 130, 246, 0.3); | |
| } | |
| .source-badge.source-rag { | |
| background: linear-gradient(135deg, #f59e0b, #d97706); | |
| color: white; | |
| border: 1px solid rgba(245, 158, 11, 0.3); | |
| } | |
| .source-badge.source-fallback { | |
| background: linear-gradient(135deg, #6b7280, #4b5563); | |
| color: white; | |
| border: 1px solid rgba(107, 114, 128, 0.3); | |
| } | |
| .source-badge:hover { | |
| transform: scale(1.1); | |
| box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); | |
| } | |
| .question-meta { | |
| display: flex; | |
| flex-wrap: wrap; | |
| gap: 6px; | |
| } | |
| .question-meta .tag { | |
| font-size: 11px; | |
| padding: 3px 8px; | |
| border-radius: 6px; | |
| font-weight: 500; | |
| } | |
| .question-meta .tag-branch { | |
| background: rgba(59, 130, 246, 0.1); | |
| color: #3b82f6; | |
| border: 1px solid rgba(59, 130, 246, 0.2); | |
| } | |
| .question-meta .tag-domain { | |
| background: rgba(139, 92, 246, 0.1); | |
| color: #8b5cf6; | |
| border: 1px solid rgba(139, 92, 246, 0.2); | |
| } | |
| .question-meta .tag-type { | |
| background: rgba(16, 185, 129, 0.1); | |
| color: #10b981; | |
| border: 1px solid rgba(16, 185, 129, 0.2); | |
| } | |
| .question-meta .tag-type.behavioral { | |
| background: rgba(245, 158, 11, 0.1); | |
| color: #f59e0b; | |
| border: 1px solid rgba(245, 158, 11, 0.2); | |
| } | |
| .question-meta .tag-type.technical { | |
| background: rgba(59, 130, 246, 0.1); | |
| color: #3b82f6; | |
| border: 1px solid rgba(59, 130, 246, 0.2); | |
| } | |
| .question-meta .tag-type.dsa { | |
| background: rgba(239, 68, 68, 0.1); | |
| color: #ef4444; | |
| border: 1px solid rgba(239, 68, 68, 0.2); | |
| } | |
| .question-meta .tag-type.system_design { | |
| background: rgba(168, 85, 247, 0.1); | |
| color: #a855f7; | |
| border: 1px solid rgba(168, 85, 247, 0.2); | |
| } | |
| .question-meta .tag-type.hr { | |
| background: rgba(20, 184, 166, 0.1); | |
| color: #14b8a6; | |
| border: 1px solid rgba(20, 184, 166, 0.2); | |
| } | |
| .question-meta .tag-difficulty { | |
| font-weight: 600; | |
| } | |
| .question-meta .tag-difficulty.easy { | |
| background: rgba(34, 197, 94, 0.1); | |
| color: #22c55e; | |
| border: 1px solid rgba(34, 197, 94, 0.2); | |
| } | |
| .question-meta .tag-difficulty.medium { | |
| background: rgba(234, 179, 8, 0.1); | |
| color: #eab308; | |
| border: 1px solid rgba(234, 179, 8, 0.2); | |
| } | |
| .question-meta .tag-difficulty.hard { | |
| background: rgba(239, 68, 68, 0.1); | |
| color: #ef4444; | |
| border: 1px solid rgba(239, 68, 68, 0.2); | |
| } | |
| /* ===== Danger Zone Section ===== */ | |
| .rag-panel .danger-zone-section { | |
| margin-top: 32px; | |
| padding-top: 24px; | |
| border-top: 2px dashed rgba(239, 68, 68, 0.3); | |
| } | |
| .rag-panel .danger-zone-header { | |
| display: flex; | |
| align-items: center; | |
| gap: 12px; | |
| margin-bottom: 16px; | |
| } | |
| .rag-panel .danger-zone-header h2 { | |
| font-size: 18px; | |
| font-weight: 700; | |
| color: #ef4444; | |
| margin: 0; | |
| } | |
| .rag-panel .danger-zone-header svg { | |
| color: #ef4444; | |
| } | |
| .rag-panel .danger-zone-content { | |
| display: flex; | |
| flex-wrap: wrap; | |
| gap: 16px; | |
| } | |
| .rag-panel .danger-action { | |
| background: var(--bg-card); | |
| border: 1px solid rgba(239, 68, 68, 0.3); | |
| border-radius: 12px; | |
| padding: 20px; | |
| flex: 1; | |
| min-width: 280px; | |
| max-width: 400px; | |
| } | |
| .rag-panel .danger-action h3 { | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| font-size: 16px; | |
| font-weight: 600; | |
| color: var(--text-primary); | |
| margin: 0 0 8px; | |
| } | |
| .rag-panel .danger-action p { | |
| font-size: 13px; | |
| color: var(--text-secondary); | |
| margin: 0 0 16px; | |
| line-height: 1.5; | |
| } | |
| /* ===== Delete Modal Styles ===== */ | |
| .rag-panel .delete-modal.large { | |
| max-width: 800px; | |
| max-height: 85vh; | |
| } | |
| .rag-panel .delete-modal-toolbar { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| padding: 12px 16px; | |
| background: var(--bg-tertiary); | |
| border-radius: 8px; | |
| margin-bottom: 16px; | |
| } | |
| .rag-panel .selection-info { | |
| font-size: 14px; | |
| color: var(--text-secondary); | |
| font-weight: 500; | |
| } | |
| .rag-panel .questions-delete-list { | |
| max-height: 400px; | |
| overflow-y: auto; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 8px; | |
| padding-right: 8px; | |
| } | |
| .rag-panel .question-delete-item { | |
| display: flex; | |
| align-items: flex-start; | |
| gap: 12px; | |
| padding: 14px 16px; | |
| background: var(--bg-card); | |
| border: 1px solid var(--border-color); | |
| border-radius: 10px; | |
| cursor: pointer; | |
| transition: all 0.2s ease; | |
| } | |
| .rag-panel .question-delete-item:hover { | |
| border-color: var(--primary); | |
| background: var(--bg-hover); | |
| } | |
| .rag-panel .question-delete-item.selected { | |
| border-color: #ef4444; | |
| background: rgba(239, 68, 68, 0.05); | |
| } | |
| .rag-panel .question-delete-item input[type="checkbox"] { | |
| width: 18px; | |
| height: 18px; | |
| margin-top: 2px; | |
| cursor: pointer; | |
| accent-color: #ef4444; | |
| } | |
| .rag-panel .question-delete-content { | |
| flex: 1; | |
| min-width: 0; | |
| } | |
| .rag-panel .question-delete-content .question-text { | |
| font-size: 14px; | |
| color: var(--text-primary); | |
| margin: 0 0 8px; | |
| line-height: 1.5; | |
| display: -webkit-box; | |
| -webkit-line-clamp: 3; | |
| -webkit-box-orient: vertical; | |
| overflow: hidden; | |
| } | |
| .rag-panel .question-delete-content .question-meta { | |
| display: flex; | |
| flex-wrap: wrap; | |
| gap: 6px; | |
| } | |
| .rag-panel .question-meta .tag-source { | |
| background: rgba(107, 114, 128, 0.1); | |
| color: #6b7280; | |
| border: 1px solid rgba(107, 114, 128, 0.2); | |
| } | |
| /* ===== Clear All Modal Styles ===== */ | |
| .rag-panel .clear-all-modal { | |
| max-width: 550px; | |
| } | |
| .rag-panel .modal-header.danger { | |
| background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(220, 38, 38, 0.1) 100%); | |
| border-bottom: 2px solid rgba(239, 68, 68, 0.3); | |
| } | |
| .rag-panel .modal-header.danger h2 { | |
| color: #ef4444; | |
| } | |
| .rag-panel .modal-header.danger svg { | |
| color: #ef4444; | |
| } | |
| .rag-panel .danger-warning { | |
| text-align: center; | |
| padding: 24px; | |
| background: rgba(239, 68, 68, 0.05); | |
| border: 1px solid rgba(239, 68, 68, 0.2); | |
| border-radius: 12px; | |
| margin-bottom: 20px; | |
| } | |
| .rag-panel .danger-warning .warning-icon { | |
| width: 80px; | |
| height: 80px; | |
| margin: 0 auto 16px; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.2) 100%); | |
| border-radius: 50%; | |
| } | |
| .rag-panel .danger-warning .warning-icon svg { | |
| color: #ef4444; | |
| } | |
| .rag-panel .danger-warning h3 { | |
| font-size: 18px; | |
| font-weight: 700; | |
| color: #ef4444; | |
| margin: 0 0 12px; | |
| } | |
| .rag-panel .danger-warning p { | |
| font-size: 14px; | |
| color: var(--text-secondary); | |
| margin: 0 0 8px; | |
| line-height: 1.6; | |
| } | |
| .rag-panel .danger-warning p strong { | |
| color: var(--text-primary); | |
| } | |
| .rag-panel .confirmation-checkboxes { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 12px; | |
| margin-bottom: 20px; | |
| } | |
| .rag-panel .checkbox-label { | |
| display: flex; | |
| align-items: flex-start; | |
| gap: 12px; | |
| padding: 12px 14px; | |
| background: var(--bg-card); | |
| border: 1px solid var(--border-color); | |
| border-radius: 10px; | |
| cursor: pointer; | |
| transition: all 0.2s ease; | |
| } | |
| .rag-panel .checkbox-label:hover { | |
| background: var(--bg-hover); | |
| } | |
| .rag-panel .checkbox-label.danger { | |
| border-color: rgba(239, 68, 68, 0.3); | |
| } | |
| .rag-panel .checkbox-label.danger:hover { | |
| background: rgba(239, 68, 68, 0.05); | |
| } | |
| .rag-panel .checkbox-label input[type="checkbox"] { | |
| width: 18px; | |
| height: 18px; | |
| margin-top: 2px; | |
| cursor: pointer; | |
| accent-color: #ef4444; | |
| } | |
| .rag-panel .checkbox-label span { | |
| font-size: 13px; | |
| color: var(--text-secondary); | |
| line-height: 1.5; | |
| } | |
| .rag-panel .password-section { | |
| margin-top: 20px; | |
| } | |
| .rag-panel .password-section label { | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| font-size: 14px; | |
| font-weight: 600; | |
| color: var(--text-primary); | |
| margin-bottom: 10px; | |
| } | |
| .rag-panel .password-section svg { | |
| color: var(--text-secondary); | |
| } | |
| .rag-panel .password-input { | |
| width: 100%; | |
| padding: 12px 16px; | |
| font-size: 14px; | |
| background: var(--bg-input); | |
| border: 2px solid var(--border-color); | |
| border-radius: 10px; | |
| color: var(--text-primary); | |
| transition: all 0.2s ease; | |
| } | |
| .rag-panel .password-input:focus { | |
| outline: none; | |
| border-color: #ef4444; | |
| box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15); | |
| } | |
| .rag-panel .password-input::placeholder { | |
| color: var(--text-muted); | |
| } | |
| /* ===== Danger Button Styles ===== */ | |
| .rag-panel .btn-danger { | |
| background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); | |
| color: #fff; | |
| border: none; | |
| box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3); | |
| } | |
| .rag-panel .btn-danger:hover:not(:disabled) { | |
| background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%); | |
| transform: translateY(-1px); | |
| box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4); | |
| } | |
| .rag-panel .btn-danger:disabled { | |
| opacity: 0.5; | |
| cursor: not-allowed; | |
| transform: none; | |
| box-shadow: none; | |
| } | |
| .rag-panel .btn-danger-outline { | |
| background: transparent; | |
| color: #ef4444; | |
| border: 2px solid rgba(239, 68, 68, 0.5); | |
| } | |
| .rag-panel .btn-danger-outline:hover:not(:disabled) { | |
| background: rgba(239, 68, 68, 0.1); | |
| border-color: #ef4444; | |
| } | |
| /* ===== Loading State ===== */ | |
| .rag-panel .loading-state { | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| justify-content: center; | |
| padding: 48px 24px; | |
| color: var(--text-secondary); | |
| } | |
| .rag-panel .loading-state svg { | |
| margin-bottom: 16px; | |
| color: var(--primary); | |
| } | |
| .rag-panel .loading-state p { | |
| margin: 0; | |
| font-size: 14px; | |
| } | |