Spaces:
Sleeping
Sleeping
Download frontend/src/components/admin/QuestionsPanel.css from chowdary1/ai-interviewer-version-2: direct link, hf CLI and curl.
- Browser
- Download file 28.2 kB
-
https://huggingface.co/spaces/chowdary1/ai-interviewer-version-2/resolve/main/frontend/src/components/admin/QuestionsPanel.css
- Command line
-
hf download hf://spaces/chowdary1/ai-interviewer-version-2/frontend/src/components/admin/QuestionsPanel.css
-
curl -L -o QuestionsPanel.css https://huggingface.co/spaces/chowdary1/ai-interviewer-version-2/resolve/main/frontend/src/components/admin/QuestionsPanel.css
28.2 kB
| /** | |
| * Questions Panel Styles | |
| * | |
| * Theme-aware styling using CSS variables from theme.css | |
| */ | |
| .questions-panel { | |
| padding: 0; | |
| min-height: 100%; | |
| } | |
| /* ============================================ | |
| HEADER | |
| ============================================ */ | |
| .questions-panel .panel-header { | |
| padding: 1.5rem 2rem; | |
| background: var(--bg-secondary); | |
| border-bottom: 1px solid var(--border-color); | |
| margin-bottom: 1.5rem; | |
| } | |
| .questions-panel .header-content { | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| gap: 1rem; | |
| } | |
| .questions-panel .header-title { | |
| display: flex; | |
| align-items: center; | |
| gap: 1rem; | |
| } | |
| .questions-panel .header-icon-wrapper { | |
| width: 48px; | |
| height: 48px; | |
| border-radius: 12px; | |
| background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%); | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| color: #fff; | |
| } | |
| .questions-panel .header-title h1 { | |
| font-size: 1.5rem; | |
| font-weight: 700; | |
| color: var(--text-primary); | |
| margin: 0; | |
| } | |
| .questions-panel .header-title p { | |
| font-size: 0.875rem; | |
| color: var(--text-secondary); | |
| margin: 0.25rem 0 0 0; | |
| } | |
| .questions-panel .btn { | |
| display: flex; | |
| align-items: center; | |
| gap: 0.5rem; | |
| padding: 0.5rem 1rem; | |
| border-radius: 8px; | |
| font-weight: 500; | |
| cursor: pointer; | |
| transition: all 0.2s ease; | |
| } | |
| .questions-panel .btn-secondary { | |
| background: var(--bg-tertiary); | |
| border: 1px solid var(--border-color); | |
| color: var(--text-primary); | |
| } | |
| .questions-panel .btn-secondary:hover { | |
| background: var(--hover-bg); | |
| } | |
| /* ============================================ | |
| PANEL CONTENT | |
| ============================================ */ | |
| .questions-panel .panel-content { | |
| padding: 0 2rem 2rem; | |
| } | |
| /* ============================================ | |
| ERROR BANNER | |
| ============================================ */ | |
| .questions-panel .error-banner { | |
| display: flex; | |
| align-items: center; | |
| gap: 0.75rem; | |
| padding: 0.75rem 1rem; | |
| background: rgba(239, 68, 68, 0.1); | |
| border: 1px solid rgba(239, 68, 68, 0.3); | |
| border-radius: 8px; | |
| color: #ef4444; | |
| margin: 0 2rem 1rem; | |
| } | |
| .questions-panel .error-banner button { | |
| margin-left: auto; | |
| background: none; | |
| border: none; | |
| color: #ef4444; | |
| cursor: pointer; | |
| text-decoration: underline; | |
| } | |
| /* ============================================ | |
| MODE SELECTION | |
| ============================================ */ | |
| .questions-mode-selection { | |
| max-width: 800px; | |
| margin: 0 auto; | |
| } | |
| .questions-mode-selection h3 { | |
| font-size: 1.25rem; | |
| font-weight: 600; | |
| color: var(--text-primary); | |
| margin: 0 0 0.5rem 0; | |
| text-align: center; | |
| } | |
| .questions-mode-selection .mode-hint { | |
| text-align: center; | |
| color: var(--text-secondary); | |
| margin-bottom: 1.5rem; | |
| } | |
| .mode-cards { | |
| display: grid; | |
| grid-template-columns: repeat(2, 1fr); | |
| gap: 1rem; | |
| margin-bottom: 2rem; | |
| } | |
| @media (max-width: 768px) { | |
| .mode-cards { | |
| grid-template-columns: 1fr; | |
| } | |
| } | |
| .mode-card { | |
| display: flex; | |
| align-items: center; | |
| gap: 1rem; | |
| padding: 1.25rem; | |
| background: var(--bg-secondary); | |
| border: 1px solid var(--border-color); | |
| border-radius: 12px; | |
| cursor: pointer; | |
| transition: all 0.2s ease; | |
| text-align: left; | |
| } | |
| .mode-card:hover { | |
| border-color: var(--mode-color, var(--accent-color)); | |
| transform: translateY(-2px); | |
| box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); | |
| } | |
| .mode-card .mode-icon { | |
| width: 56px; | |
| height: 56px; | |
| border-radius: 12px; | |
| background: linear-gradient(135deg, var(--mode-color) 0%, var(--mode-color) 100%); | |
| opacity: 0.15; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| flex-shrink: 0; | |
| position: relative; | |
| } | |
| .mode-card .mode-icon svg { | |
| position: absolute; | |
| color: var(--mode-color); | |
| opacity: 1; | |
| } | |
| .mode-card .mode-info { | |
| flex: 1; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 0.25rem; | |
| } | |
| .mode-card .mode-name { | |
| font-size: 1.125rem; | |
| font-weight: 600; | |
| color: var(--text-primary); | |
| } | |
| .mode-card .mode-description { | |
| font-size: 0.813rem; | |
| color: var(--text-secondary); | |
| } | |
| .mode-card .mode-source { | |
| display: inline-flex; | |
| align-items: center; | |
| gap: 0.25rem; | |
| font-size: 0.75rem; | |
| color: var(--text-muted); | |
| margin-top: 0.25rem; | |
| } | |
| .mode-card .mode-arrow { | |
| color: var(--text-muted); | |
| transition: transform 0.2s ease; | |
| } | |
| .mode-card:hover .mode-arrow { | |
| transform: translateX(4px); | |
| color: var(--mode-color); | |
| } | |
| /* ============================================ | |
| STATS OVERVIEW | |
| ============================================ */ | |
| .stats-overview { | |
| background: var(--bg-secondary); | |
| border: 1px solid var(--border-color); | |
| border-radius: 12px; | |
| padding: 1.25rem; | |
| } | |
| .stats-overview h4 { | |
| display: flex; | |
| align-items: center; | |
| gap: 0.5rem; | |
| font-size: 0.875rem; | |
| font-weight: 600; | |
| color: var(--text-primary); | |
| margin: 0 0 1rem 0; | |
| } | |
| .stats-overview .stats-grid { | |
| display: grid; | |
| grid-template-columns: repeat(4, 1fr); | |
| gap: 1rem; | |
| } | |
| @media (max-width: 640px) { | |
| .stats-overview .stats-grid { | |
| grid-template-columns: repeat(2, 1fr); | |
| } | |
| } | |
| .stats-overview .stat-item { | |
| text-align: center; | |
| padding: 0.75rem; | |
| background: var(--bg-primary); | |
| border-radius: 8px; | |
| } | |
| .stats-overview .stat-value { | |
| display: block; | |
| font-size: 1.5rem; | |
| font-weight: 700; | |
| color: var(--accent-color); | |
| } | |
| .stats-overview .stat-item.highlight { | |
| background: linear-gradient(135deg, var(--accent-color) 0%, var(--accent-hover) 100%); | |
| } | |
| .stats-overview .stat-item.highlight .stat-value { | |
| color: #fff; | |
| font-size: 2rem; | |
| } | |
| .stats-overview .stat-item.highlight .stat-label { | |
| color: rgba(255, 255, 255, 0.9); | |
| } | |
| .stats-overview .stat-label { | |
| font-size: 0.75rem; | |
| color: var(--text-secondary); | |
| } | |
| .stats-overview .stats-domains { | |
| display: flex; | |
| justify-content: center; | |
| align-items: center; | |
| gap: 0.5rem; | |
| margin-top: 1rem; | |
| padding-top: 1rem; | |
| border-top: 1px solid var(--border-color); | |
| font-size: 0.875rem; | |
| color: var(--text-secondary); | |
| } | |
| .stats-overview .domains-count { | |
| font-weight: 600; | |
| color: var(--accent-color); | |
| } | |
| /* ============================================ | |
| QUESTIONS BROWSER | |
| ============================================ */ | |
| .questions-browser { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 1rem; | |
| } | |
| /* Breadcrumb */ | |
| .questions-breadcrumb { | |
| display: flex; | |
| align-items: center; | |
| gap: 0.5rem; | |
| padding: 0.75rem 1rem; | |
| background: var(--bg-secondary); | |
| border: 1px solid var(--border-color); | |
| border-radius: 8px; | |
| } | |
| .breadcrumb-back { | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| width: 32px; | |
| height: 32px; | |
| background: var(--bg-tertiary); | |
| border: 1px solid var(--border-color); | |
| border-radius: 6px; | |
| color: var(--text-primary); | |
| cursor: pointer; | |
| transition: all 0.2s ease; | |
| } | |
| .breadcrumb-back:hover { | |
| background: var(--hover-bg); | |
| border-color: var(--accent-color); | |
| } | |
| .breadcrumb-path { | |
| display: flex; | |
| align-items: center; | |
| gap: 0.5rem; | |
| flex: 1; | |
| } | |
| .breadcrumb-path svg { | |
| color: var(--text-muted); | |
| } | |
| .breadcrumb-item { | |
| font-size: 0.875rem; | |
| font-weight: 500; | |
| color: var(--text-primary); | |
| } | |
| .breadcrumb-item.mode { | |
| color: var(--accent-color); | |
| } | |
| .mode-indicator { | |
| display: inline-flex; | |
| align-items: center; | |
| gap: 0.375rem; | |
| padding: 0.375rem 0.75rem; | |
| background: rgba(var(--accent-color-rgb, 99, 102, 241), 0.1); | |
| border-radius: 20px; | |
| font-size: 0.75rem; | |
| font-weight: 500; | |
| color: var(--mode-color, var(--accent-color)); | |
| } | |
| /* ============================================ | |
| FILTERS | |
| ============================================ */ | |
| .questions-filters { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 0.75rem; | |
| } | |
| .questions-filter-section { | |
| padding: 1rem; | |
| background: var(--bg-secondary); | |
| border: 1px solid var(--border-color); | |
| border-radius: 8px; | |
| } | |
| .questions-filter-section h4 { | |
| display: flex; | |
| align-items: center; | |
| gap: 0.5rem; | |
| font-size: 0.813rem; | |
| font-weight: 600; | |
| color: var(--text-secondary); | |
| margin: 0 0 0.75rem 0; | |
| text-transform: uppercase; | |
| letter-spacing: 0.5px; | |
| } | |
| .branch-chips, | |
| .domain-chips { | |
| display: flex; | |
| flex-wrap: wrap; | |
| gap: 0.5rem; | |
| } | |
| .filter-chip { | |
| padding: 0.5rem 1rem; | |
| background: var(--bg-tertiary); | |
| border: 1px solid var(--border-color); | |
| border-radius: 20px; | |
| font-size: 0.813rem; | |
| font-weight: 500; | |
| color: var(--text-primary); | |
| cursor: pointer; | |
| transition: all 0.2s ease; | |
| } | |
| .filter-chip:hover { | |
| border-color: var(--accent-color); | |
| background: var(--hover-bg); | |
| } | |
| .filter-chip.active { | |
| background: var(--accent-color); | |
| border-color: var(--accent-color); | |
| color: #fff; | |
| } | |
| .loading-inline { | |
| display: flex; | |
| align-items: center; | |
| gap: 0.5rem; | |
| color: var(--text-secondary); | |
| font-size: 0.875rem; | |
| } | |
| /* ============================================ | |
| QUESTIONS LIST SECTION | |
| ============================================ */ | |
| .questions-list-section { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 1rem; | |
| } | |
| .questions-search { | |
| display: flex; | |
| align-items: center; | |
| gap: 0.75rem; | |
| padding: 0.75rem 1rem; | |
| background: var(--bg-secondary); | |
| border: 1px solid var(--border-color); | |
| border-radius: 8px; | |
| } | |
| .questions-search svg { | |
| color: var(--text-muted); | |
| } | |
| .questions-search input { | |
| flex: 1; | |
| background: none; | |
| border: none; | |
| outline: none; | |
| font-size: 0.875rem; | |
| color: var(--text-primary); | |
| } | |
| .questions-search input::placeholder { | |
| color: var(--text-muted); | |
| } | |
| .questions-search .clear-search { | |
| background: none; | |
| border: none; | |
| font-size: 1.25rem; | |
| color: var(--text-muted); | |
| cursor: pointer; | |
| line-height: 1; | |
| } | |
| .questions-search .clear-search:hover { | |
| color: var(--text-primary); | |
| } | |
| .questions-count { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| font-size: 0.875rem; | |
| color: var(--text-secondary); | |
| padding: 0 0.25rem; | |
| } | |
| .questions-count .page-info { | |
| color: var(--text-muted); | |
| } | |
| /* Loading & Empty States */ | |
| .loading-state, | |
| .empty-state { | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| justify-content: center; | |
| padding: 3rem 2rem; | |
| background: var(--bg-secondary); | |
| border: 1px solid var(--border-color); | |
| border-radius: 12px; | |
| text-align: center; | |
| } | |
| .loading-state svg, | |
| .empty-state svg { | |
| color: var(--text-muted); | |
| margin-bottom: 1rem; | |
| } | |
| .loading-state p, | |
| .empty-state p { | |
| font-size: 1rem; | |
| font-weight: 500; | |
| color: var(--text-primary); | |
| margin: 0; | |
| } | |
| .empty-state span { | |
| font-size: 0.875rem; | |
| color: var(--text-secondary); | |
| margin-top: 0.5rem; | |
| } | |
| .spin { | |
| animation: spin 1s linear infinite; | |
| } | |
| @keyframes spin { | |
| from { transform: rotate(0deg); } | |
| to { transform: rotate(360deg); } | |
| } | |
| /* ============================================ | |
| QUESTIONS LIST | |
| ============================================ */ | |
| .questions-list { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 0.5rem; | |
| } | |
| .question-card { | |
| background: var(--bg-secondary); | |
| border: 1px solid var(--border-color); | |
| border-radius: 8px; | |
| overflow: hidden; | |
| transition: all 0.2s ease; | |
| } | |
| .question-card:hover { | |
| border-color: var(--accent-color); | |
| } | |
| .question-card.expanded { | |
| border-color: var(--accent-color); | |
| } | |
| .question-header { | |
| display: flex; | |
| align-items: center; | |
| gap: 0.75rem; | |
| padding: 1rem; | |
| cursor: pointer; | |
| } | |
| .question-number { | |
| font-size: 0.75rem; | |
| font-weight: 600; | |
| color: var(--text-muted); | |
| min-width: 40px; | |
| } | |
| .question-text { | |
| flex: 1; | |
| font-size: 0.875rem; | |
| color: var(--text-primary); | |
| line-height: 1.5; | |
| } | |
| .expand-btn { | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| background: none; | |
| border: none; | |
| color: var(--text-muted); | |
| cursor: pointer; | |
| padding: 0.25rem; | |
| transition: transform 0.2s ease; | |
| } | |
| .question-card.expanded .expand-btn { | |
| color: var(--accent-color); | |
| } | |
| .question-details { | |
| padding: 0 1rem 1rem; | |
| border-top: 1px solid var(--border-color); | |
| margin-top: -0.5rem; | |
| padding-top: 1rem; | |
| } | |
| .detail-row { | |
| margin-bottom: 0.75rem; | |
| } | |
| .detail-label { | |
| display: block; | |
| font-size: 0.75rem; | |
| font-weight: 600; | |
| color: var(--text-secondary); | |
| margin-bottom: 0.25rem; | |
| text-transform: uppercase; | |
| letter-spacing: 0.5px; | |
| } | |
| .detail-value { | |
| font-size: 0.875rem; | |
| color: var(--text-primary); | |
| line-height: 1.5; | |
| } | |
| .question-meta { | |
| display: flex; | |
| flex-wrap: wrap; | |
| gap: 0.5rem; | |
| } | |
| .meta-tag { | |
| display: inline-flex; | |
| align-items: center; | |
| gap: 0.25rem; | |
| padding: 0.25rem 0.5rem; | |
| border-radius: 4px; | |
| font-size: 0.75rem; | |
| font-weight: 500; | |
| } | |
| .meta-tag.difficulty-easy { | |
| background: rgba(16, 185, 129, 0.1); | |
| color: #10b981; | |
| } | |
| .meta-tag.difficulty-medium { | |
| background: rgba(245, 158, 11, 0.1); | |
| color: #f59e0b; | |
| } | |
| .meta-tag.difficulty-hard { | |
| background: rgba(239, 68, 68, 0.1); | |
| color: #ef4444; | |
| } | |
| .meta-tag.type, | |
| .meta-tag.branch, | |
| .meta-tag.domain, | |
| .meta-tag.source { | |
| background: var(--bg-tertiary); | |
| color: var(--text-secondary); | |
| } | |
| /* ============================================ | |
| SOURCE BADGES (R=RAG, D=Database, A=API, F=Fallback) | |
| CRITICAL: These badges show the source of each question | |
| ============================================ */ | |
| .source-badge { | |
| display: inline-flex ; | |
| align-items: center ; | |
| justify-content: center ; | |
| width: 26px ; | |
| height: 26px ; | |
| min-width: 26px ; | |
| border-radius: 6px ; | |
| font-size: 13px ; | |
| font-weight: 800 ; | |
| cursor: help ; | |
| transition: all 0.2s ease ; | |
| flex-shrink: 0 ; | |
| margin-right: 8px ; | |
| text-transform: uppercase ; | |
| letter-spacing: 0 ; | |
| } | |
| .source-badge.source-database { | |
| background: linear-gradient(135deg, #10b981, #059669) ; | |
| color: white ; | |
| border: 2px solid rgba(16, 185, 129, 0.5) ; | |
| box-shadow: 0 2px 4px rgba(16, 185, 129, 0.3) ; | |
| } | |
| .source-badge.source-api { | |
| background: linear-gradient(135deg, #3b82f6, #2563eb) ; | |
| color: white ; | |
| border: 2px solid rgba(59, 130, 246, 0.5) ; | |
| box-shadow: 0 2px 4px rgba(59, 130, 246, 0.3) ; | |
| } | |
| .source-badge.source-rag { | |
| background: linear-gradient(135deg, #f59e0b, #d97706) ; | |
| color: white ; | |
| border: 2px solid rgba(245, 158, 11, 0.5) ; | |
| box-shadow: 0 2px 4px rgba(245, 158, 11, 0.3) ; | |
| } | |
| .source-badge.source-fallback { | |
| background: linear-gradient(135deg, #6b7280, #4b5563) ; | |
| color: white ; | |
| border: 2px solid rgba(107, 114, 128, 0.5) ; | |
| box-shadow: 0 2px 4px rgba(107, 114, 128, 0.3) ; | |
| } | |
| .source-badge:hover { | |
| transform: scale(1.15) ; | |
| box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) ; | |
| } | |
| /* ============================================ | |
| PAGINATION | |
| ============================================ */ | |
| .questions-pagination { | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| gap: 1rem; | |
| padding: 1rem 0; | |
| } | |
| .pagination-btn { | |
| display: flex; | |
| align-items: center; | |
| gap: 0.375rem; | |
| padding: 0.5rem 0.75rem; | |
| background: var(--bg-secondary); | |
| border: 1px solid var(--border-color); | |
| border-radius: 6px; | |
| font-size: 0.813rem; | |
| font-weight: 500; | |
| color: var(--text-primary); | |
| cursor: pointer; | |
| transition: all 0.2s ease; | |
| } | |
| .pagination-btn:hover:not(:disabled) { | |
| border-color: var(--accent-color); | |
| background: var(--hover-bg); | |
| } | |
| .pagination-btn:disabled { | |
| opacity: 0.5; | |
| cursor: not-allowed; | |
| } | |
| .pagination-pages { | |
| display: flex; | |
| gap: 0.375rem; | |
| } | |
| .page-btn { | |
| width: 32px; | |
| height: 32px; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| background: var(--bg-secondary); | |
| border: 1px solid var(--border-color); | |
| border-radius: 6px; | |
| font-size: 0.813rem; | |
| font-weight: 500; | |
| color: var(--text-primary); | |
| cursor: pointer; | |
| transition: all 0.2s ease; | |
| } | |
| .page-btn:hover { | |
| border-color: var(--accent-color); | |
| } | |
| .page-btn.active { | |
| background: var(--accent-color); | |
| border-color: var(--accent-color); | |
| color: #fff; | |
| } | |
| /* ============================================ | |
| SELECTION GRID (BRANCHES/DOMAINS/MODES) | |
| ============================================ */ | |
| .selection-grid { | |
| max-width: 900px; | |
| margin: 0 auto; | |
| } | |
| .selection-title { | |
| display: flex; | |
| align-items: center; | |
| gap: 0.5rem; | |
| font-size: 1.25rem; | |
| font-weight: 600; | |
| color: var(--text-primary); | |
| margin: 0 0 0.5rem 0; | |
| text-align: center; | |
| justify-content: center; | |
| } | |
| .selection-hint { | |
| text-align: center; | |
| color: var(--text-secondary); | |
| margin-bottom: 1.5rem; | |
| } | |
| .cards-grid { | |
| display: grid; | |
| gap: 1rem; | |
| margin-bottom: 2rem; | |
| } | |
| .branches-grid { | |
| grid-template-columns: repeat(3, 1fr); | |
| } | |
| .domains-grid { | |
| grid-template-columns: repeat(3, 1fr); | |
| } | |
| .modes-grid { | |
| grid-template-columns: repeat(2, 1fr); | |
| } | |
| @media (max-width: 768px) { | |
| .branches-grid, | |
| .domains-grid { | |
| grid-template-columns: repeat(2, 1fr); | |
| } | |
| .modes-grid { | |
| grid-template-columns: 1fr; | |
| } | |
| } | |
| @media (max-width: 500px) { | |
| .branches-grid, | |
| .domains-grid, | |
| .modes-grid { | |
| grid-template-columns: 1fr; | |
| } | |
| } | |
| .selection-card { | |
| display: flex; | |
| align-items: center; | |
| gap: 1rem; | |
| padding: 1rem 1.25rem; | |
| background: var(--bg-secondary); | |
| border: 1px solid var(--border-color); | |
| border-radius: 12px; | |
| cursor: pointer; | |
| transition: all 0.2s ease; | |
| text-align: left; | |
| } | |
| .selection-card:hover { | |
| border-color: var(--accent-color); | |
| transform: translateY(-2px); | |
| box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); | |
| } | |
| .selection-card .card-icon { | |
| width: 48px; | |
| height: 48px; | |
| border-radius: 10px; | |
| background: var(--bg-tertiary); | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| color: var(--accent-color); | |
| flex-shrink: 0; | |
| } | |
| .selection-card.mode-card .card-icon.mode-icon { | |
| background: var(--mode-color); | |
| opacity: 0.15; | |
| position: relative; | |
| } | |
| .selection-card.mode-card .card-icon.mode-icon svg { | |
| position: absolute; | |
| color: var(--mode-color); | |
| opacity: 1; | |
| } | |
| .selection-card .card-info { | |
| flex: 1; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 0.125rem; | |
| } | |
| .selection-card .card-name { | |
| font-size: 1rem; | |
| font-weight: 600; | |
| color: var(--text-primary); | |
| } | |
| .selection-card .card-short, | |
| .selection-card .card-id { | |
| font-size: 0.75rem; | |
| color: var(--text-muted); | |
| text-transform: uppercase; | |
| } | |
| .selection-card .card-description { | |
| font-size: 0.813rem; | |
| color: var(--text-secondary); | |
| } | |
| .selection-card .card-arrow { | |
| color: var(--text-muted); | |
| transition: transform 0.2s ease; | |
| } | |
| .selection-card:hover .card-arrow { | |
| transform: translateX(4px); | |
| color: var(--accent-color); | |
| } | |
| /* ============================================ | |
| BREADCRUMB NAVIGATION | |
| ============================================ */ | |
| .breadcrumb-nav { | |
| display: flex; | |
| align-items: center; | |
| gap: 1rem; | |
| margin-top: 1rem; | |
| padding-top: 1rem; | |
| border-top: 1px solid var(--border-color); | |
| } | |
| .back-btn { | |
| display: flex; | |
| align-items: center; | |
| gap: 0.25rem; | |
| padding: 0.5rem 0.75rem; | |
| background: var(--bg-tertiary); | |
| border: 1px solid var(--border-color); | |
| border-radius: 6px; | |
| color: var(--text-primary); | |
| font-size: 0.875rem; | |
| font-weight: 500; | |
| cursor: pointer; | |
| transition: all 0.2s ease; | |
| } | |
| .back-btn:hover { | |
| background: var(--hover-bg); | |
| border-color: var(--accent-color); | |
| } | |
| .breadcrumb-path { | |
| display: flex; | |
| align-items: center; | |
| gap: 0.5rem; | |
| color: var(--text-muted); | |
| font-size: 0.875rem; | |
| } | |
| .breadcrumb-item { | |
| color: var(--text-secondary); | |
| } | |
| .breadcrumb-item.clickable { | |
| cursor: pointer; | |
| color: var(--accent-color); | |
| } | |
| .breadcrumb-item.clickable:hover { | |
| text-decoration: underline; | |
| } | |
| .breadcrumb-item.branch { | |
| color: var(--text-primary); | |
| font-weight: 500; | |
| } | |
| .breadcrumb-item.domain { | |
| color: var(--text-primary); | |
| font-weight: 500; | |
| } | |
| .breadcrumb-item.mode { | |
| color: var(--accent-color); | |
| font-weight: 600; | |
| } | |
| /* ============================================ | |
| QUESTIONS SECTION | |
| ============================================ */ | |
| .questions-section { | |
| max-width: 900px; | |
| margin: 0 auto; | |
| } | |
| .questions-action-bar { | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| gap: 1rem; | |
| margin-bottom: 1rem; | |
| } | |
| .search-box { | |
| display: flex; | |
| align-items: center; | |
| gap: 0.5rem; | |
| flex: 1; | |
| max-width: 400px; | |
| padding: 0.625rem 1rem; | |
| background: var(--bg-secondary); | |
| border: 1px solid var(--border-color); | |
| border-radius: 8px; | |
| } | |
| .search-box input { | |
| flex: 1; | |
| border: none; | |
| background: transparent; | |
| color: var(--text-primary); | |
| font-size: 0.875rem; | |
| outline: none; | |
| } | |
| .search-box input::placeholder { | |
| color: var(--text-muted); | |
| } | |
| .search-box svg { | |
| color: var(--text-muted); | |
| } | |
| .add-question-btn { | |
| white-space: nowrap; | |
| } | |
| .btn-primary { | |
| background: var(--accent-color); | |
| border: 1px solid var(--accent-color); | |
| color: #fff; | |
| } | |
| .btn-primary:hover { | |
| background: var(--accent-hover); | |
| border-color: var(--accent-hover); | |
| } | |
| .btn-primary:disabled { | |
| opacity: 0.6; | |
| cursor: not-allowed; | |
| } | |
| /* ============================================ | |
| QUESTION CARD ACTIONS | |
| ============================================ */ | |
| .question-actions { | |
| display: flex; | |
| align-items: center; | |
| gap: 0.5rem; | |
| margin-left: auto; | |
| } | |
| .action-btn { | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| width: 32px; | |
| height: 32px; | |
| border: none; | |
| border-radius: 6px; | |
| cursor: pointer; | |
| transition: all 0.2s ease; | |
| background: transparent; | |
| } | |
| .action-btn.delete-btn { | |
| color: var(--text-muted); | |
| } | |
| .action-btn.delete-btn:hover { | |
| background: rgba(239, 68, 68, 0.1); | |
| color: #ef4444; | |
| } | |
| /* ============================================ | |
| MODAL STYLES | |
| ============================================ */ | |
| .modal-overlay { | |
| position: fixed; | |
| top: 0; | |
| left: 0; | |
| right: 0; | |
| bottom: 0; | |
| background: rgba(0, 0, 0, 0.5); | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| z-index: 1000; | |
| padding: 2rem; | |
| } | |
| .modal-content { | |
| background: var(--bg-primary); | |
| border-radius: 16px; | |
| width: 100%; | |
| max-width: 560px; | |
| max-height: 90vh; | |
| overflow-y: auto; | |
| box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2); | |
| } | |
| .modal-header { | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| padding: 1.25rem 1.5rem; | |
| border-bottom: 1px solid var(--border-color); | |
| } | |
| .modal-header h3 { | |
| font-size: 1.125rem; | |
| font-weight: 600; | |
| color: var(--text-primary); | |
| margin: 0; | |
| } | |
| .modal-close { | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| width: 32px; | |
| height: 32px; | |
| border: none; | |
| border-radius: 6px; | |
| background: var(--bg-tertiary); | |
| color: var(--text-muted); | |
| cursor: pointer; | |
| transition: all 0.2s ease; | |
| } | |
| .modal-close:hover { | |
| background: var(--hover-bg); | |
| color: var(--text-primary); | |
| } | |
| .modal-body { | |
| padding: 1.5rem; | |
| } | |
| .form-group { | |
| margin-bottom: 1.25rem; | |
| } | |
| .form-group label { | |
| display: block; | |
| font-size: 0.875rem; | |
| font-weight: 500; | |
| color: var(--text-primary); | |
| margin-bottom: 0.5rem; | |
| } | |
| .form-group textarea { | |
| width: 100%; | |
| padding: 0.75rem 1rem; | |
| background: var(--bg-secondary); | |
| border: 1px solid var(--border-color); | |
| border-radius: 8px; | |
| color: var(--text-primary); | |
| font-size: 0.875rem; | |
| font-family: inherit; | |
| resize: vertical; | |
| outline: none; | |
| transition: border-color 0.2s ease; | |
| } | |
| .form-group textarea:focus { | |
| border-color: var(--accent-color); | |
| } | |
| .form-group textarea::placeholder { | |
| color: var(--text-muted); | |
| } | |
| .form-info { | |
| background: var(--bg-tertiary); | |
| border-radius: 8px; | |
| padding: 1rem; | |
| margin-top: 1rem; | |
| } | |
| .form-info p { | |
| margin: 0 0 0.25rem 0; | |
| font-size: 0.813rem; | |
| color: var(--text-secondary); | |
| } | |
| .form-info p:last-child { | |
| margin-bottom: 0; | |
| } | |
| .modal-footer { | |
| display: flex; | |
| align-items: center; | |
| justify-content: flex-end; | |
| gap: 0.75rem; | |
| padding: 1rem 1.5rem; | |
| border-top: 1px solid var(--border-color); | |
| background: var(--bg-secondary); | |
| } | |
| /* ============================================ | |
| LOADING & EMPTY STATES | |
| ============================================ */ | |
| .loading-state { | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| justify-content: center; | |
| padding: 3rem 2rem; | |
| color: var(--text-muted); | |
| } | |
| .loading-state .spin { | |
| animation: spin 1s linear infinite; | |
| } | |
| .empty-state { | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| justify-content: center; | |
| padding: 3rem 2rem; | |
| color: var(--text-muted); | |
| text-align: center; | |
| } | |
| .empty-state p { | |
| margin: 1rem 0 0.5rem 0; | |
| font-weight: 500; | |
| color: var(--text-primary); | |
| } | |
| .empty-state span { | |
| font-size: 0.875rem; | |
| margin-bottom: 1rem; | |
| } | |
| /* ============================================ | |
| SOURCE SELECTION (RAG/Collected) | |
| ============================================ */ | |
| .source-grid { | |
| grid-template-columns: repeat(2, 1fr); | |
| } | |
| @media (max-width: 768px) { | |
| .source-grid { | |
| grid-template-columns: 1fr; | |
| } | |
| } | |
| .selection-card.source-card { | |
| padding: 1.5rem; | |
| flex-direction: column; | |
| align-items: flex-start; | |
| gap: 1rem; | |
| min-height: 160px; | |
| } | |
| .selection-card.source-card .card-icon.source-icon { | |
| width: 56px; | |
| height: 56px; | |
| border-radius: 12px; | |
| background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); | |
| color: #fff; | |
| } | |
| .selection-card.source-card.rag .card-icon.rag-icon { | |
| background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); | |
| } | |
| .selection-card.source-card .card-info { | |
| gap: 0.5rem; | |
| } | |
| .selection-card.source-card .card-name { | |
| font-size: 1.125rem; | |
| } | |
| .selection-card.source-card .card-description { | |
| font-size: 0.813rem; | |
| line-height: 1.5; | |
| } | |
| .selection-card.source-card .card-badge { | |
| display: inline-flex; | |
| align-items: center; | |
| gap: 0.25rem; | |
| padding: 0.25rem 0.5rem; | |
| border-radius: 4px; | |
| font-size: 0.688rem; | |
| font-weight: 600; | |
| text-transform: uppercase; | |
| } | |
| .selection-card.source-card .rag-badge { | |
| background: rgba(139, 92, 246, 0.15); | |
| color: #8b5cf6; | |
| } | |
| .selection-card.source-card .card-arrow { | |
| position: absolute; | |
| right: 1rem; | |
| top: 50%; | |
| transform: translateY(-50%); | |
| } | |
| .selection-card.source-card:hover { | |
| border-color: #3b82f6; | |
| } | |
| .selection-card.source-card.rag:hover { | |
| border-color: #8b5cf6; | |
| } | |
| .source-info { | |
| display: flex; | |
| align-items: flex-start; | |
| gap: 0.75rem; | |
| padding: 1rem; | |
| background: var(--bg-tertiary); | |
| border-radius: 8px; | |
| margin-top: 1.5rem; | |
| font-size: 0.813rem; | |
| color: var(--text-secondary); | |
| line-height: 1.5; | |
| } | |
| .source-info svg { | |
| flex-shrink: 0; | |
| color: var(--accent-color); | |
| margin-top: 2px; | |
| } | |
| /* RAG Questions Indicator */ | |
| .questions-section .rag-indicator { | |
| display: inline-flex; | |
| align-items: center; | |
| gap: 0.375rem; | |
| padding: 0.375rem 0.75rem; | |
| background: rgba(139, 92, 246, 0.1); | |
| border: 1px solid rgba(139, 92, 246, 0.3); | |
| border-radius: 6px; | |
| font-size: 0.75rem; | |
| font-weight: 600; | |
| color: #8b5cf6; | |
| margin-left: auto; | |
| } | |
| /* Breadcrumb source styling */ | |
| .breadcrumb-item.source { | |
| color: #8b5cf6; | |
| font-weight: 600; | |
| } | |