/* Document Ingestion Agent - Ultra Modern UI Styles */ @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap'); * { margin: 0; padding: 0; box-sizing: border-box; } :root { --primary-gradient: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%); --secondary-gradient: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%); --success-gradient: linear-gradient(135deg, #10b981 0%, #059669 100%); --warning-gradient: linear-gradient(135deg, #f59e0b 0%, #d97706 100%); --danger-gradient: linear-gradient(135deg, #ef4444 0%, #dc2626 100%); --glass-bg: rgba(255, 255, 255, 0.8); --glass-border: rgba(255, 255, 255, 0.3); --shadow-light: 0 4px 16px 0 rgba(0, 0, 0, 0.1); --shadow-medium: 0 8px 24px rgba(0, 0, 0, 0.12); --shadow-heavy: 0 12px 32px rgba(0, 0, 0, 0.15); --text-primary: #0f172a; --text-secondary: #1e293b; --text-muted: #334155; --border-radius: 12px; --border-radius-small: 8px; --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); } body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; line-height: 1.6; color: var(--text-primary); background: #f8fafc; background-attachment: fixed; min-height: 100vh; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; } /* Removed animated background overlay */ .container { max-width: 1400px; margin: 0 auto; padding: 30px 20px; position: relative; } .header { text-align: center; color: white; position: relative; z-index: 10; } .header-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; } .header-top h1 { margin: 0; } .header h1 { font-size: 3rem; font-weight: 700; margin-bottom: 10px; color: var(--text-primary); text-shadow: none; } /* Removed glow animation */ .header p { font-size: 1.2rem; font-weight: 400; color: var(--text-secondary); opacity: 1; text-shadow: none; max-width: 600px; margin: 0 auto 10px auto; line-height: 1.6; } .header-stats { display: flex; justify-content: center; gap: 40px; margin-bottom: 30px; flex-wrap: wrap; } .stat-item { text-align: center; background: var(--glass-bg); backdrop-filter: blur(15px); border: 1px solid var(--glass-border); border-radius: var(--border-radius-small); padding: 20px 30px; box-shadow: var(--shadow-light); transition: var(--transition); min-width: 120px; } .stat-item:hover { transform: translateY(-5px) scale(1.05); box-shadow: var(--shadow-medium); } .stat-number { display: block; font-size: 2.5rem; font-weight: 800; color: var(--text-primary); text-shadow: none; margin-bottom: 5px; } .stat-label { display: block; font-size: 0.9rem; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 1px; text-shadow: none; } .main-content { display: grid; grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); gap: 40px; margin-bottom: 50px; } /* Special layout for main content - 2x2 grid */ #main-content { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto auto; max-width: 1400px; margin: 0 auto 50px auto; } /* Workflow sections span full width */ #main-content .workflow-section { grid-column: 1 / -1; grid-row: auto; } .card { background: var(--glass-bg); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); border: 1px solid var(--glass-border); border-radius: var(--border-radius); padding: 40px; box-shadow: var(--shadow-light); transition: var(--transition); position: relative; overflow: hidden; margin-bottom: 30px; } .card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); } .card-header-actions { display: flex; align-items: center; gap: 15px; } .card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--success-gradient); border-radius: var(--border-radius) var(--border-radius) 0 0; } .card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%); pointer-events: none; border-radius: var(--border-radius); } .card:hover { transform: translateY(-2px); box-shadow: var(--shadow-medium); border-color: rgba(255, 255, 255, 0.3); } /* Full-width card */ .card.full-width { width: 100% !important; max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; flex: 1 1 100%; grid-column: 1 / -1 !important; } .card h2 { color: var(--text-primary); font-size: 1.6rem; font-weight: 600; margin-bottom: 20px; display: flex; align-items: center; gap: 12px; text-shadow: none; position: relative; z-index: 2; } .card h2 i { font-size: 1.5rem; background: var(--success-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; filter: drop-shadow(0 0 10px rgba(79, 172, 254, 0.5)); } .form-group { margin-bottom: 20px; } .form-row { display: flex; gap: 20px; margin-bottom: 20px; } .form-row .form-group { flex: 1; margin-bottom: 0; } /* Checkbox styling */ .checkbox-label { display: flex; align-items: center; cursor: pointer; font-size: 0.9rem; color: #666; margin-bottom: 0; gap: 8px; } .checkbox-label input[type="checkbox"] { width: 18px; height: 18px; margin: 0; cursor: pointer; accent-color: #3b82f6; } .checkbox-label .checkmark { display: none; } .checkbox-label .checkbox-text { font-weight: 600; color: var(--text-primary); line-height: 1.4; } .form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--text-primary); } .form-group input, .form-group textarea { width: 100%; padding: 12px; border: 2px solid #e2e8f0; border-radius: 8px; font-size: 16px; transition: border-color 0.3s ease; } .form-group input:focus, .form-group textarea:focus { outline: none; border-color: #667eea; box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1); } .btn { background: var(--success-gradient); color: white; border: none; padding: 16px 32px; border-radius: var(--border-radius-small); font-size: 16px; font-weight: 700; cursor: pointer; transition: var(--transition); text-transform: uppercase; letter-spacing: 0.5px; position: relative; overflow: hidden; min-height: 52px; display: inline-flex; align-items: center; gap: 10px; box-shadow: var(--shadow-medium); backdrop-filter: blur(10px); border: 1px solid rgba(255, 255, 255, 0.2); } .btn::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent); transition: left 0.5s; } .btn:hover::before { left: 100%; } .btn:hover { transform: translateY(-3px) scale(1.05); box-shadow: var(--shadow-heavy); filter: brightness(1.1); } .btn:active { transform: translateY(-1px) scale(1.02); } .btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: var(--shadow-light); filter: grayscale(0.3); } .btn i { font-size: 1.1rem; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); } .btn::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent); transition: left 0.5s; } .btn:hover::before { left: 100%; } .btn:hover { transform: translateY(-3px); box-shadow: 0 12px 35px rgba(102, 126, 234, 0.4); } .btn:active { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(102, 126, 234, 0.3); } .btn:disabled { background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%); color: #a0aec0; cursor: not-allowed; transform: none; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); } .btn:disabled::before { display: none; } /* Button variants */ .btn-secondary { background: linear-gradient(135deg, #718096 0%, #4a5568 100%); box-shadow: 0 4px 20px rgba(113, 128, 150, 0.3); } .btn-secondary:hover { box-shadow: 0 12px 35px rgba(113, 128, 150, 0.4); } .btn-warning { background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%); box-shadow: 0 4px 20px rgba(237, 137, 54, 0.3); } .btn-warning:hover { box-shadow: 0 12px 35px rgba(237, 137, 54, 0.4); } .btn-danger { background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%); box-shadow: 0 4px 20px rgba(229, 62, 62, 0.3); } .btn-danger:hover { box-shadow: 0 12px 35px rgba(229, 62, 62, 0.4); } input:disabled, textarea:disabled { opacity: 0.6; cursor: not-allowed; background-color: #f8f9fa; color: #6c757d; } .btn-secondary { background: linear-gradient(135deg, #a8a8a8 0%, #8a8a8a 100%); } .btn-danger { background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%); } .btn-success { background: linear-gradient(135deg, #51cf66 0%, #40c057 100%); } .btn-warning { background: linear-gradient(135deg, #ffd43b 0%, #fab005 100%); color: #333; } .spinner { display: inline-block; width: 20px; height: 20px; border: 3px solid #f3f3f3; border-top: 3px solid #667eea; border-radius: 50%; animation: spin 1s linear infinite; margin-right: 10px; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } .alert { padding: 15px; border-radius: 8px; margin-bottom: 20px; font-weight: 500; } .alert-success { background-color: #d4edda; color: #155724; border: 1px solid #c3e6cb; } .alert-error { background-color: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; } .result-container { background: var(--glass-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--glass-border); border-radius: var(--border-radius); padding: 20px; margin-top: 20px; display: none; box-shadow: var(--shadow-light); position: relative; z-index: 2; max-height: 400px; overflow-y: auto; } .result-container::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--success-gradient); border-radius: var(--border-radius) var(--border-radius) 0 0; } .result-container pre { background: #2d3748; color: #e2e8f0; padding: 15px; border-radius: 5px; overflow-x: auto; font-family: 'Courier New', monospace; font-size: 12px; line-height: 1.3; margin: 0; max-height: 350px; overflow-y: auto; white-space: pre-wrap; word-wrap: break-word; border: 1px solid rgba(255, 255, 255, 0.1); box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1); } /* Progress Bar Styles */ .progress-container { margin-top: 20px; padding: 20px; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: var(--border-radius); box-shadow: var(--shadow-light); backdrop-filter: blur(10px); } .progress-info { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-weight: 500; color: var(--text-primary); } .progress-bar { width: 100%; height: 8px; background: #e2e8f0; border-radius: 4px; overflow: hidden; position: relative; } .progress-fill { height: 100%; background: linear-gradient(90deg, #3b82f6, #1d4ed8); border-radius: 4px; transition: width 0.3s ease; position: relative; overflow: hidden; } .progress-fill::after { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent); animation: progress-shimmer 2s infinite; } @keyframes progress-shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } } .stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 30px; } .stat-card { background: white; border-radius: 10px; padding: 20px; text-align: center; box-shadow: 0 5px 15px rgba(0,0,0,0.1); } .stat-card h3 { color: #667eea; font-size: 2rem; margin-bottom: 5px; } /* Stat line styling */ .stat-line { font-size: 1.4rem; font-weight: 600; margin-bottom: 8px; text-align: center; } /* System Status - make the second line (status value) larger */ .system-status-card .stat-line.stat-processed { font-size: 1.8rem; font-weight: 700; } .stat-total { color: #667eea; /* Blue */ } .stat-processed { color: #10b981; /* Green */ } .stat-pending { color: #ef4444; /* Red */ } .stat-pending.zero-pending { color: #10b981; /* Green when pending is 0 */ } .stat-card p { color: #6c757d; font-weight: 500; } /* Status-specific styling for stat cards */ .stat-card.status-ready { background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%); border-left: 4px solid #10b981; } .stat-card.status-ready .stat-line { color: #059669; } .stat-card.status-processing { background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%); border-left: 4px solid #3b82f6; animation: pulse 2s infinite; } .stat-card.status-processing .stat-line { color: #2563eb; } .stat-card.status-error { background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%); border-left: 4px solid #ef4444; } .stat-card.status-error .stat-line { color: #dc2626; } .stat-card.status-idle { background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%); border-left: 4px solid #64748b; } .stat-card.status-idle .stat-line { color: #475569; } /* Compact stat card - removed as we now use standard stat-line structure */ @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.8; } } .workflow-section { grid-column: 1 / -1; margin-top: 30px; } .workflow-buttons { display: flex; gap: 15px; flex-wrap: wrap; margin-bottom: 20px; } .tabs { display: flex; border-bottom: 2px solid #e2e8f0; margin-bottom: 20px; } .tab { padding: 12px 24px; background: none; border: none; cursor: pointer; font-size: 16px; font-weight: 600; color: #6c757d; border-bottom: 3px solid transparent; transition: all 0.3s ease; } .tab.active { color: #667eea; border-bottom-color: #667eea; } .tab-content { display: none; } .tab-content.active { display: block; } #message { position: fixed; top: 20px; right: 20px; z-index: 10001; max-width: 400px; } /* Medium screens - keep 2x2 but adjust spacing */ @media (max-width: 1024px) and (min-width: 769px) { #main-content { max-width: 1200px; gap: 30px; } } /* Small screens - single column */ @media (max-width: 768px) { .main-content { grid-template-columns: 1fr; gap: 20px; } #main-content { grid-template-columns: 1fr; grid-template-rows: auto; max-width: none; margin: 0 0 50px 0; } .header h1 { font-size: 2rem; } .workflow-buttons { flex-direction: column; } .btn { width: 100%; margin-bottom: 10px; } } /* Loading states */ .loading { opacity: 0.7; pointer-events: none; position: relative; } .loading::after { content: ''; position: absolute; top: 50%; left: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px; border: 2px solid #f3f3f3; border-top: 2px solid #667eea; border-radius: 50%; animation: spin 1s linear infinite; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } /* Pulse animation for buttons */ .btn.loading { position: relative; color: transparent; } .btn.loading::after { content: ''; position: absolute; top: 50%; left: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border: 2px solid rgba(255, 255, 255, 0.3); border-top: 2px solid white; border-radius: 50%; animation: spin 1s linear infinite; } /* Success animations */ @keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } .card { animation: fadeInUp 0.6s ease-out; } /* Authentication Status */ .auth-status { margin-top: 20px; text-align: center; } .auth-indicator { display: inline-block; padding: 8px 16px; border-radius: 20px; font-weight: 600; margin-right: 10px; } .auth-indicator.authenticated { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; } .auth-indicator.not-authenticated { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; } /* Custom scrollbar */ ::-webkit-scrollbar { width: 8px; } ::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 4px; } ::-webkit-scrollbar-thumb { background: #667eea; border-radius: 4px; } ::-webkit-scrollbar-thumb:hover { background: #5a67d8; } /* Result container scrollbar */ .result-container::-webkit-scrollbar { width: 6px; } .result-container::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.1); border-radius: 3px; } .result-container::-webkit-scrollbar-thumb { background: rgba(102, 126, 234, 0.6); border-radius: 3px; } .result-container::-webkit-scrollbar-thumb:hover { background: rgba(102, 126, 234, 0.8); } /* Pre element scrollbar */ .result-container pre::-webkit-scrollbar { width: 6px; } .result-container pre::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.1); border-radius: 3px; } .result-container pre::-webkit-scrollbar-thumb { background: rgba(102, 126, 234, 0.6); border-radius: 3px; } .result-container pre::-webkit-scrollbar-thumb:hover { background: rgba(102, 126, 234, 0.8); } /* Modal styles */ .modal { position: fixed; z-index: 10000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.6); display: flex; align-items: flex-start; justify-content: center; padding-top: 60px; opacity: 0; visibility: hidden; transition: all 0.3s ease; backdrop-filter: blur(4px); } .modal.show { opacity: 1; visibility: visible; } .modal-content { background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%); margin: auto; padding: 0; border-radius: 16px; width: 90%; max-width: 650px; max-height: 85vh; display: flex; flex-direction: column; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 8px 32px rgba(0, 0, 0, 0.1); transform: scale(0.9) translateY(20px); transition: all 0.3s ease; border: 1px solid rgba(0, 0, 0, 0.8); } .modal.show .modal-content { transform: scale(1) translateY(0); } .modal-header { padding: 24px 28px 20px; border-bottom: 1px solid rgba(0, 0, 0, 0.8); display: flex; justify-content: space-between; align-items: center; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border-radius: 16px 16px 0 0; color: white; position: relative; overflow: hidden; flex-shrink: 0; margin: -1px -1px 0 -1px; } .modal-header::before { content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: linear-gradient(45deg, rgba(255,255,255,0.1) 0%, transparent 100%); pointer-events: none; } .modal-header h2 { margin: 0; color: white; font-size: 1.5rem; font-weight: 600; display: flex; align-items: center; gap: 12px; position: relative; z-index: 1; } .close { color: rgba(255, 255, 255, 0.8); font-size: 24px; font-weight: bold; cursor: pointer; line-height: 1; padding: 8px; border-radius: 50%; transition: all 0.2s ease; position: relative; z-index: 1; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; } .close:hover, .close:focus { color: white; background-color: rgba(255, 255, 255, 0.2); transform: scale(1.1); } .modal-body { padding: 28px; background: white; flex: 1; overflow-y: auto; } .modal-footer { padding: 20px 28px 24px; border-top: 1px solid #e9ecef; display: flex; justify-content: flex-end; gap: 12px; background: #f8f9fa; border-radius: 0 0 16px 16px; flex-shrink: 0; } .modal-footer .btn { margin: 0; padding: 12px 24px; font-weight: 500; border-radius: 8px; transition: all 0.2s ease; min-width: 120px; } /* Form styling improvements */ .form-group { margin-bottom: 24px; position: relative; } .form-group label { display: block; margin-bottom: 8px; font-weight: 600; color: var(--text-primary); font-size: 0.95rem; position: relative; } .form-group label::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px; background: linear-gradient(90deg, #667eea, #764ba2); transition: width 0.3s ease; } .form-group:focus-within label::after { width: 30px; } .form-group select, .form-group input { width: 100%; padding: 12px 16px; border: 2px solid #e2e8f0; border-radius: 10px; font-size: 14px; transition: all 0.3s ease; background: white; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); } .form-group select:focus, .form-group input:focus { outline: none; border-color: #667eea; box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1); transform: translateY(-1px); } .form-group small { display: block; margin-top: 6px; color: var(--text-muted); font-size: 12px; font-style: normal; } /* Multi-select styling */ .form-group select[multiple] { min-height: 120px; padding: 12px; border-radius: 10px; border: 2px solid #e2e8f0; background: white; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05); transition: all 0.3s ease; } .form-group select[multiple]:focus { border-color: #667eea; box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1); transform: translateY(-1px); } .form-group select[multiple] option { padding: 8px 12px; margin: 2px 0; border-radius: 6px; transition: all 0.2s ease; } .form-group select[multiple] option:checked { background: linear-gradient(135deg, #667eea, #764ba2); color: white; font-weight: 500; } .form-group select[multiple] option:hover { background-color: #f7fafc; } /* Required field indicator */ .form-group label[for*="Mapping"]:not([for*="optional"])::before { content: '*'; color: #e53e3e; margin-right: 4px; font-weight: bold; } .section-description { color: var(--text-secondary); font-style: normal; margin-bottom: 25px; font-size: 1rem; line-height: 1.6; text-shadow: none; position: relative; z-index: 2; } /* File Validation Styles */ .validation-summary { background: #f7fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 16px; margin: 16px 0; } .validation-summary p { margin: 8px 0; font-size: 14px; } .text-success { color: #38a169; font-weight: 600; } .text-danger { color: #e53e3e; font-weight: 600; } .valid-files, .invalid-files { margin: 16px 0; } .file-item { border: 1px solid #e2e8f0; border-radius: 8px; padding: 16px; margin: 12px 0; transition: all 0.3s ease; } .file-item.valid { border-left: 4px solid #38a169; background: #f0fff4; } .file-item.invalid { border-left: 4px solid #e53e3e; background: #fff5f5; } .file-item:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); } .file-item div { margin: 4px 0; font-size: 14px; } .file-id { font-family: 'Courier New', monospace; background: #f7fafc; padding: 4px 8px; border-radius: 4px; display: inline-block; margin-bottom: 8px; } .file-name { font-weight: 600; color: #2d3748; } .file-type { color: #4a5568; } .file-size { color: #718096; } .file-link a { color: #667eea; text-decoration: none; font-weight: 500; } .file-link a:hover { text-decoration: underline; } .file-error { color: #e53e3e; font-weight: 600; } .file-error-type { color: #c53030; font-size: 12px; text-transform: uppercase; letter-spacing: 0.5px; } .file-suggestion { color: #4a5568; font-style: italic; margin-top: 8px; padding-top: 8px; border-top: 1px solid #e2e8f0; } /* Vector Search Styles */ .search-summary { background: #f7fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 16px; margin: 16px 0; } .search-summary p { margin: 8px 0; font-size: 14px; } .search-results { margin: 16px 0; } .search-result-item { border: 1px solid #e2e8f0; border-radius: 8px; padding: 16px; margin: 12px 0; transition: all 0.3s ease; } .search-result-item.qa-pair { border-left: 4px solid #38a169; background: #f0fff4; } .search-result-item.document { border-left: 4px solid #667eea; background: #f7fafc; } .search-result-item:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); } .result-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid #e2e8f0; } .result-number { font-weight: 600; color: #2d3748; } .similarity-score { background: #667eea; color: white; padding: 4px 8px; border-radius: 12px; font-size: 12px; font-weight: 600; } .result-type { background: #e2e8f0; color: #4a5568; padding: 4px 8px; border-radius: 12px; font-size: 12px; font-weight: 500; } .result-content-text { color: #4a5568; line-height: 1.6; margin-bottom: 12px; } .qa-details { background: white; border: 1px solid #e2e8f0; border-radius: 6px; padding: 12px; margin: 12px 0; } .qa-details .question { color: #2d3748; font-weight: 600; margin-bottom: 8px; } .qa-details .answer { color: #4a5568; line-height: 1.5; } .metadata { display: flex; gap: 12px; margin-top: 12px; padding-top: 8px; border-top: 1px solid #e2e8f0; } .metadata span { background: #f7fafc; color: #4a5568; padding: 4px 8px; border-radius: 4px; font-size: 12px; font-weight: 500; } .no-results { text-align: center; color: #0f172a; font-style: italic; padding: 40px 20px; background: var(--glass-bg); backdrop-filter: blur(10px); border-radius: var(--border-radius); border: 1px dashed rgba(255, 255, 255, 0.3); text-shadow: none; } /* Modern Success and Error Messages */ .success-message { background: var(--success-gradient); color: white; border: 1px solid rgba(255, 255, 255, 0.3); padding: 16px 20px; border-radius: var(--border-radius-small); margin-bottom: 20px; font-weight: 600; text-shadow: 0 1px 3px rgba(0,0,0,0.3); box-shadow: var(--shadow-light); backdrop-filter: blur(10px); } .error-message { background: var(--danger-gradient); color: white; border: 1px solid rgba(255, 255, 255, 0.3); padding: 16px 20px; border-radius: var(--border-radius-small); margin-bottom: 20px; font-weight: 600; text-shadow: 0 1px 3px rgba(0,0,0,0.3); box-shadow: var(--shadow-light); backdrop-filter: blur(10px); } /* Removed floating animations - keeping cards stationary */ /* Removed pulse animation - keeping buttons stable */ /* Q&A Management Styles */ .qa-controls { margin-bottom: 0; padding: 20px; background: rgba(255, 255, 255, 0.05); border-radius: var(--border-radius); border: 1px solid rgba(255, 255, 255, 0.1); } .qa-buttons { display: flex; gap: 15px; flex-wrap: wrap; margin-top: 20px; } .qa-pairs-container { padding: 1px; background: rgba(255, 255, 255, 0.05); border-radius: var(--border-radius); border: 1px solid rgba(255, 255, 255, 0.1); min-height: 200px; } /* Results Summary */ .qa-results-summary { margin: 10px 0 5px 0; padding: 4px 0; background: white; font-size: 14px; } .results-info { color: black; } .results-info i { display: none; } /* Document links in Q&A */ .qa-document a { color: #2563eb; text-decoration: none; font-weight: 500; } .qa-document a:hover { color: #1d4ed8; text-decoration: underline; } /* CRUD Toggle Checkbox */ .crud-toggle { display: flex; align-items: center; gap: 8px; } .crud-checkbox { width: 18px; height: 18px; accent-color: #2563eb; cursor: pointer; } .crud-label { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 500; color: #374151; cursor: pointer; padding: 8px 12px; border-radius: 6px; transition: all 0.2s ease; background: rgba(255, 255, 255, 0.8); border: 1px solid rgba(0, 0, 0, 0.1); } .crud-label:hover { background: rgba(37, 99, 235, 0.1); border-color: #2563eb; } .crud-checkbox:checked + .crud-label { background: rgba(37, 99, 235, 0.15); border-color: #2563eb; color: #1d4ed8; } /* Pagination Controls */ .pagination-container { display: flex; justify-content: center; align-items: center; gap: 10px; margin-top: 20px; padding: 20px; background: rgba(255, 255, 255, 0.05); border-radius: var(--border-radius); border: 1px solid rgba(255, 255, 255, 0.1); } .pagination-info { color: #000000; font-size: 14px; margin: 0 15px; } .pagination-btn { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; border: none; padding: 8px 12px; border-radius: 6px; cursor: pointer; font-size: 14px; font-weight: 500; transition: all 0.2s ease; display: inline-flex; align-items: center; gap: 5px; min-width: 40px; justify-content: center; } .pagination-btn:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4); } .pagination-btn:disabled { background: #4a5568; cursor: not-allowed; opacity: 0.6; } .pagination-btn.active { background: linear-gradient(135deg, #48bb78 0%, #38a169 100%); } .pagination-input { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.2); color: #000000; padding: 6px 10px; border-radius: 4px; width: 60px; text-align: center; font-size: 14px; } .pagination-input:focus { outline: none; border-color: #667eea; box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.2); } .qa-pairs-list { display: flex; flex-direction: column; gap: 20px; } .qa-pair-item { background: var(--glass-bg); backdrop-filter: blur(20px); border: 1px solid var(--glass-border); border-radius: var(--border-radius); padding: 25px; box-shadow: var(--shadow-light); transition: var(--transition); position: relative; overflow: hidden; } .qa-pair-item::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--success-gradient); border-radius: var(--border-radius) var(--border-radius) 0 0; } .qa-pair-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-medium); border-color: rgba(102, 126, 234, 0.3); } .qa-question-line { display: flex; align-items: center; gap: 10px; margin-bottom: 2px; flex-direction: row-reverse; } .qa-id { color: var(--text-primary); line-height: 1.6; padding: 10px; background: rgba(255, 255, 255, 0.1); border-radius: 6px; border: none; font-weight: normal; min-width: 50px; text-align: center; flex-shrink: 0; } .qa-meta { display: flex; gap: 15px; align-items: center; } .qa-meta span { background: rgba(255, 255, 255, 0.1); color: var(--text-secondary); padding: 4px 8px; border-radius: 4px; font-size: 12px; font-weight: 500; } .qa-content { margin-bottom: 0; } .qa-question { color: var(--text-primary); font-weight: 600; line-height: 1.5; padding: 10px; background: rgba(102, 126, 234, 0.05); border-radius: 6px; border-left: 3px solid #667eea; flex: 1; margin: 0; margin-bottom: 0; } .qa-answer { color: var(--text-secondary); line-height: 1.6; padding: 10px; background: rgba(16, 185, 129, 0.05); border-radius: 6px; border-left: 3px solid #10b981; width: 100%; /* Use full width of the container */ margin: 0; } .qa-footer { padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.1); } .qa-dates { display: flex; gap: 15px; font-size: 12px; color: var(--text-muted); } .qa-meta-dates { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; flex-wrap: wrap; gap: 10px; } .qa-actions { display: flex; gap: 10px; justify-content: flex-start; } /* Removed actions dropdown */ .btn-sm { padding: 8px 16px; font-size: 12px; min-height: auto; } /* CRUD Interface Styles */ .crud-section { margin-bottom: 40px; padding: 25px; background: rgba(255, 255, 255, 0.1); border-radius: var(--border-radius); border: 1px solid rgba(255, 255, 255, 0.2); } .crud-section h3 { color: var(--text-primary); font-size: 1.3rem; font-weight: 600; margin-bottom: 20px; display: flex; align-items: center; gap: 10px; border-bottom: 2px solid rgba(102, 126, 234, 0.2); padding-bottom: 10px; } .crud-section h3 i { color: #667eea; font-size: 1.2rem; } /* Removed duplicate form-row definition - using flex layout from above */ .qa-results { max-height: 600px; overflow-y: auto; padding: 20px; background: rgba(255, 255, 255, 0.05); border-radius: var(--border-radius); border: 1px solid rgba(255, 255, 255, 0.1); } .qa-pairs-list { display: flex; flex-direction: column; gap: 20px; } .qa-pair-item { background: var(--glass-bg); backdrop-filter: blur(20px); border: 1px solid var(--glass-border); border-radius: var(--border-radius); padding: 25px; box-shadow: var(--shadow-light); transition: var(--transition); position: relative; overflow: hidden; } .qa-pair-item::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--success-gradient); border-radius: var(--border-radius) var(--border-radius) 0 0; } .qa-pair-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-medium); border-color: rgba(102, 126, 234, 0.3); } .qa-question-line { display: flex; align-items: center; gap: 10px; margin-bottom: 2px; flex-direction: row-reverse; } .qa-id { color: var(--text-primary); line-height: 1.6; padding: 10px; background: rgba(255, 255, 255, 0.1); border-radius: 6px; border: none; font-weight: normal; min-width: 50px; text-align: center; flex-shrink: 0; } .qa-meta { display: flex; gap: 15px; align-items: center; } .qa-meta span { background: rgba(255, 255, 255, 0.1); color: var(--text-secondary); padding: 4px 8px; border-radius: 4px; font-size: 12px; font-weight: 500; } .qa-content { margin-bottom: 0; } .qa-question { color: var(--text-primary); font-weight: 600; line-height: 1.5; padding: 10px; background: rgba(102, 126, 234, 0.05); border-radius: 6px; border-left: 3px solid #667eea; flex: 1; margin: 0; margin-bottom: 0; } .qa-answer { color: var(--text-secondary); line-height: 1.6; padding: 10px; background: rgba(16, 185, 129, 0.05); border-radius: 6px; border-left: 3px solid #10b981; width: 100%; /* Use full width of the container */ margin: 0; } .qa-footer { padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.1); } .qa-dates { display: flex; gap: 15px; font-size: 12px; color: var(--text-muted); } .qa-meta-dates { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; flex-wrap: wrap; gap: 10px; } .qa-actions { display: flex; gap: 10px; justify-content: flex-start; } .btn-sm { padding: 8px 16px; font-size: 12px; min-height: auto; } .stats-display { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-top: 20px; } .stats-display .stat-item { text-align: center; padding: 20px; background: rgba(255, 255, 255, 0.1); border-radius: var(--border-radius); border: 1px solid rgba(255, 255, 255, 0.2); } .stats-display .stat-item h4 { color: var(--text-primary); font-size: 1rem; margin-bottom: 10px; font-weight: 600; } .stats-display .stat-item p { color: #667eea; font-size: 2rem; font-weight: 700; margin: 0; } /* Responsive Design Enhancements */ @media (max-width: 768px) { .header h1 { font-size: 2.5rem; } .main-content { grid-template-columns: 1fr; gap: 30px; } .card { padding: 25px; } .btn { padding: 14px 24px; font-size: 14px; } .form-row { grid-template-columns: 1fr; gap: 15px; } .qa-header { flex-direction: column; align-items: flex-start; gap: 10px; } .qa-meta { flex-wrap: wrap; gap: 8px; } .qa-footer { flex-direction: column; align-items: flex-start; gap: 15px; } .qa-actions { width: 100%; justify-content: flex-start; } } /* Enhanced Prompt Badge */ .enhanced-badge { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; font-size: 10px; font-weight: 600; padding: 2px 6px; border-radius: 4px; text-transform: uppercase; letter-spacing: 0.5px; margin-left: 8px; display: inline-block; vertical-align: middle; } /* Navigation Tabs */ .nav-tabs { display: flex; gap: 8px; margin-bottom: 30px; border-bottom: 2px solid #e2e8f0; padding-bottom: 0; } .nav-tab { background: transparent; border: none; padding: 12px 24px; border-radius: var(--border-radius-small) var(--border-radius-small) 0 0; cursor: pointer; font-weight: 500; color: var(--text-muted); transition: var(--transition); position: relative; display: flex; align-items: center; gap: 8px; font-size: 14px; } .nav-tab:hover { background: rgba(59, 130, 246, 0.05); color: #3b82f6; } .nav-tab.active { background: #3b82f6; color: white; box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3); } .nav-tab.active::after { content: ''; position: absolute; bottom: -2px; left: 0; right: 0; height: 2px; background: #3b82f6; } /* QA Review Interface */ .documents-container { margin-top: 20px; } .document-card { background: white; border: 1px solid #e2e8f0; border-radius: var(--border-radius); padding: 20px; margin-bottom: 16px; box-shadow: var(--shadow-light); transition: var(--transition); } .document-card:hover { box-shadow: var(--shadow-medium); transform: translateY(-2px); } .document-card.processed { background: #f0fdf4; border-color: #10b981; } .document-card.processed .document-title { color: #059669; } .status-badge { display: inline-block; padding: 4px 8px; border-radius: 12px; font-size: 12px; font-weight: 600; margin-left: 8px; } .status-badge.processed { background: #10b981; color: white; } .document-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; } .document-title { font-size: 18px; font-weight: 600; color: var(--text-primary); margin: 0; } .document-title a { color: #2563eb; text-decoration: none; font-weight: 600; } .document-title a:hover { color: #1d4ed8; text-decoration: underline; } .document-meta { display: flex; gap: 16px; margin-top: 8px; font-size: 14px; color: var(--text-muted); } .document-stats { display: flex; gap: 20px; margin-top: 12px; } .stat-item { display: flex; flex-direction: column; align-items: center; padding: 8px 12px; background: #f8fafc; border-radius: var(--border-radius-small); min-width: 80px; } .stat-value { font-size: 18px; font-weight: 700; color: var(--text-primary); } .stat-label { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; } .stat-item.pending .stat-value { color: #f59e0b; } .stat-item.approved .stat-value { color: #10b981; } .stat-item.total .stat-value { color: #3b82f6; } .document-actions { display: flex; gap: 12px; margin-top: 16px; } .btn-review { background: var(--success-gradient); color: white; border: none; padding: 10px 20px; border-radius: var(--border-radius-small); font-weight: 500; cursor: pointer; transition: var(--transition); display: flex; align-items: center; gap: 8px; } .btn-review:hover { transform: translateY(-1px); box-shadow: var(--shadow-medium); } .btn-review:disabled { background: #9ca3af; cursor: not-allowed; transform: none; box-shadow: none; } /* QA Pairs Review Modal */ .qa-review-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 20px; } .qa-review-content { background: white; border-radius: var(--border-radius); max-width: 1000px; width: 100%; max-height: 90vh; display: flex; flex-direction: column; box-shadow: var(--shadow-heavy); } .qa-review-header { padding: 24px; border-bottom: 1px solid #e2e8f0; display: flex; justify-content: space-between; align-items: center; } .qa-review-header-actions { display: flex; align-items: center; gap: 15px; } .qa-review-title { font-size: 20px; font-weight: 600; color: var(--text-primary); margin: 0; } .btn-toggle-pending { background: rgba(59, 130, 246, 0.1); border: 1px solid rgba(59, 130, 246, 0.3); color: #3b82f6; padding: 8px 16px; border-radius: 6px; font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.2s ease; display: flex; align-items: center; gap: 8px; } .btn-toggle-pending:hover { background: rgba(59, 130, 246, 0.2); border-color: rgba(59, 130, 246, 0.5); } .btn-toggle-pending.active { background: #3b82f6; color: white; border-color: #3b82f6; } .btn-toggle-pending.active:hover { background: #2563eb; border-color: #2563eb; } .btn-toggle-completed { background: rgba(16, 185, 129, 0.1); border: 1px solid rgba(16, 185, 129, 0.3); color: #10b981; padding: 8px 16px; border-radius: 6px; font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.2s ease; display: flex; align-items: center; gap: 8px; } .btn-toggle-completed:hover { background: rgba(16, 185, 129, 0.2); border-color: rgba(16, 185, 129, 0.5); } .btn-toggle-completed.active { background: #10b981; color: white; border-color: #10b981; } .btn-toggle-completed.active:hover { background: #059669; border-color: #059669; } /* QA Edit Modal */ .qa-edit-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); display: flex; justify-content: center; align-items: center; z-index: 10000; backdrop-filter: blur(5px); } .qa-edit-content { background: var(--glass-bg); backdrop-filter: blur(25px); -webkit-backdrop-filter: blur(25px); border: 1px solid var(--glass-border); border-radius: var(--border-radius); box-shadow: var(--shadow-heavy); width: 90%; max-width: 600px; max-height: 90vh; overflow-y: auto; display: flex; flex-direction: column; } .qa-edit-header { display: flex; justify-content: space-between; align-items: center; padding: 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); } .qa-edit-header h3 { margin: 0; color: var(--text-primary); font-size: 18px; font-weight: 600; } .qa-edit-close { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--text-muted); padding: 4px; border-radius: 4px; transition: var(--transition); } .qa-edit-close:hover { background: #f3f4f6; color: var(--text-primary); } .qa-edit-body { padding: 20px; flex: 1; } .qa-edit-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.1); } /* Edit button in QA review */ .btn-edit { background: rgba(59, 130, 246, 0.1); border: 1px solid rgba(59, 130, 246, 0.3); color: #3b82f6; padding: 6px 12px; border-radius: 4px; font-size: 12px; font-weight: 500; cursor: pointer; transition: all 0.2s ease; display: flex; align-items: center; gap: 4px; } .btn-edit:hover { background: rgba(59, 130, 246, 0.2); border-color: rgba(59, 130, 246, 0.5); } .qa-review-close { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--text-muted); padding: 4px; border-radius: 4px; transition: var(--transition); } .qa-review-close:hover { background: #f3f4f6; color: var(--text-primary); } .qa-review-body { padding: 24px; flex: 1; overflow-y: auto; max-height: calc(90vh - 140px); /* Subtract header and footer height */ } .qa-pair-review { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: var(--border-radius); padding: 20px; margin-bottom: 16px; transition: var(--transition); } .qa-pair-review.reviewed { background: #f0fdf4; border-color: #10b981; } .qa-pair-review.discarded { background: #fef2f2; border-color: #ef4444; } .qa-pair-review.approved { background: #f0fdf4; border-color: #10b981; } .qa-pair-review.selected-approve { background: #f0fdf4; border-color: #10b981; border-width: 2px; } .qa-pair-review.selected-discard { background: #fef2f2; border-color: #ef4444; border-width: 2px; } .qa-pair-header { margin-bottom: 16px; } .qa-selection { display: flex; gap: 12px; align-items: center; } .qa-radio { display: none; } .radio-label { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 6px; cursor: pointer; font-weight: 500; transition: all 0.2s ease; border: 2px solid transparent; } .approve-label { background: #f0fdf4; color: #065f46; border-color: #10b981; } .approve-label:hover { background: #dcfce7; } .qa-radio:checked + .approve-label { background: #10b981; color: white; } .discard-label { background: #fef2f2; color: #991b1b; border-color: #ef4444; } .discard-label:hover { background: #fee2e2; } .qa-radio:checked + .discard-label { background: #ef4444; color: white; } .qa-radio:disabled + .radio-label { opacity: 0.6; cursor: not-allowed; } .btn-save-qa { background: var(--primary-color); color: white; border: none; padding: 12px 24px; border-radius: var(--border-radius); font-weight: 600; cursor: pointer; transition: var(--transition); display: inline-flex; align-items: center; gap: 8px; } .btn-save-qa:hover:not(:disabled) { background: var(--primary-hover); transform: translateY(-1px); } .btn-save-qa:disabled { background: #9ca3af; cursor: not-allowed; transform: none; } /* Ensure Save button is ALWAYS visible - CRITICAL */ .btn-save-qa { display: inline-flex !important; visibility: visible !important; opacity: 1 !important; position: relative !important; z-index: 9999 !important; pointer-events: auto !important; } /* Override any potential hiding */ .btn-save-qa:disabled { display: inline-flex !important; visibility: visible !important; opacity: 1 !important; } /* Make Save button more prominent when enabled */ .btn-save-qa:not(:disabled) { background: #10b981 !important; box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4) !important; animation: pulse-green 2s infinite !important; } @keyframes pulse-green { 0% { box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4); } 50% { box-shadow: 0 4px 20px rgba(16, 185, 129, 0.6); } 100% { box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4); } } /* QA Review Actions Container */ .qa-review-actions { display: flex; gap: 12px; align-items: center; } /* Add Question Button (in review modal) */ .btn-add-qa { background: #3b82f6; color: white; border: none; padding: 12px 24px; border-radius: var(--border-radius); font-weight: normal; cursor: pointer; transition: var(--transition); display: inline-flex; align-items: center; gap: 8px; } .btn-add-qa:hover { background: #2563eb; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4); } /* Add Question Button (in document list) */ .btn-add-question { background: #10b981; color: white; border: none; padding: 10px 20px; border-radius: var(--border-radius-small); font-weight: 500; cursor: pointer; transition: var(--transition); display: flex; align-items: center; gap: 8px; } .btn-add-question:hover { background: #059669; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4); } /* Read-only QA pair styling */ .qa-pair-review.read-only { background: #f9fafb; border-color: #d1d5db; } .qa-pair-review.read-only .qa-question { color: #6b7280; } .qa-pair-review.read-only .qa-answer { color: #6b7280; } /* Status badges */ .status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 20px; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; } .status-badge.approved { background: #f0fdf4; color: #065f46; border: 1px solid #10b981; } .status-badge.discarded { background: #fef2f2; color: #991b1b; border: 1px solid #ef4444; } .qa-status { display: flex; justify-content: flex-start; } .qa-review-summary { font-size: 14px; color: var(--text-muted); font-weight: 500; } .btn-close-modal { background: var(--primary-color); color: white; border: none; padding: 12px 24px; border-radius: var(--border-radius); font-weight: 600; cursor: pointer; transition: var(--transition); display: inline-flex; align-items: center; gap: 8px; } .btn-close-modal:hover { background: var(--primary-hover); transform: translateY(-1px); } .qa-question { font-size: 16px; font-weight: 600; color: var(--text-primary); margin-bottom: 0; line-height: 1.5; } .qa-answer { font-size: 14px; color: var(--text-secondary); margin-bottom: 0; line-height: 1.6; background: white; padding: 12px; border-radius: var(--border-radius-small); border: 1px solid #e2e8f0; } .qa-pair-actions { display: flex; gap: 12px; justify-content: flex-end; } .btn-approve { background: var(--success-gradient); color: white; border: none; padding: 8px 16px; border-radius: var(--border-radius-small); font-weight: 500; cursor: pointer; transition: var(--transition); display: flex; align-items: center; gap: 6px; } .btn-approve:hover { transform: translateY(-1px); box-shadow: var(--shadow-medium); } .btn-discard { background: var(--danger-gradient); color: white; border: none; padding: 8px 16px; border-radius: var(--border-radius-small); font-weight: 500; cursor: pointer; transition: var(--transition); display: flex; align-items: center; gap: 6px; } .btn-discard:hover { transform: translateY(-1px); box-shadow: var(--shadow-medium); } .btn-approve:disabled, .btn-discard:disabled { background: #9ca3af; cursor: not-allowed; transform: none; box-shadow: none; } .qa-review-footer { padding: 24px; border-top: 1px solid #e2e8f0; display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; background: white; position: relative; z-index: 1000; min-height: 80px; } .qa-review-progress { font-size: 14px; color: var(--text-muted); } .btn-mark-processed { background: var(--success-gradient); color: white; border: none; padding: 12px 24px; border-radius: var(--border-radius-small); font-weight: 500; cursor: pointer; transition: var(--transition); display: flex; align-items: center; gap: 8px; } .btn-mark-processed:hover { transform: translateY(-1px); box-shadow: var(--shadow-medium); } .btn-mark-processed:disabled { background: #9ca3af; cursor: not-allowed; transform: none; box-shadow: none; } /* Responsive Design for QA Review */ @media (max-width: 768px) { .nav-tabs { flex-wrap: wrap; gap: 4px; } .nav-tab { padding: 8px 16px; font-size: 13px; } .document-header { flex-direction: column; align-items: flex-start; gap: 12px; } .document-stats { flex-wrap: wrap; gap: 12px; } .document-actions { flex-direction: column; width: 100%; } .qa-pair-actions { flex-direction: column; width: 100%; } .qa-review-footer { flex-direction: column; gap: 16px; align-items: stretch; } } /* Settings Page Styles */ .settings-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; } .settings-category { background: var(--glass-bg); backdrop-filter: blur(10px); border-radius: var(--border-radius); padding: 24px; margin-bottom: 20px; box-shadow: var(--shadow-light); } .settings-category h3 { margin-bottom: 16px; color: var(--text-primary); display: flex; align-items: center; gap: 10px; } .setting-item { display: grid; grid-template-columns: 1fr 2fr auto; gap: 16px; padding: 16px; border-bottom: 1px solid rgba(0, 0, 0, 0.05); align-items: center; } .setting-item:last-child { border-bottom: none; } .setting-label { font-weight: 500; color: var(--text-secondary); } .setting-description { font-size: 0.875rem; color: var(--text-muted); margin-top: 4px; } .setting-hint.readonly { margin-top: 6px; font-size: 12px; color: #6b7280; } .setting-value { position: relative; } .setting-value .readonly-indicator { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: #6b7280; font-size: 12px; display: inline-flex; align-items: center; gap: 6px; } .setting-value input { width: 100%; padding: 10px; border: 1px solid rgba(0, 0, 0, 0.1); border-radius: var(--border-radius-small); font-family: inherit; } .setting-value input[type="password"] { font-family: monospace; } .setting-actions { display: flex; gap: 8px; } .badge { display: inline-block; padding: 4px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: 500; } .badge-secret { background: #fee2e2; color: #991b1b; } .sheet-id-placeholder { padding: 12px 16px; background-color: #fef3c7; border: 1px solid #f59e0b; border-radius: 6px; color: #92400e; font-size: 14px; display: flex; align-items: center; gap: 8px; } .sheet-id-placeholder a { color: #92400e; text-decoration: underline; font-weight: 500; } .sheet-id-placeholder a:hover { color: #78350f; text-decoration: none; } .badge-readonly { background: #e5e7eb; /* light grey */ color: #374151; /* grey-700 */ } .badge-oauth { background: #dbeafe; color: #1e40af; } .badge-api { background: #fef3c7; color: #92400e; } .badge-integration { background: #d1fae5; color: #065f46; } .badge-general { background: #e5e7eb; color: #374151; } .btn-icon { background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 8px; border-radius: 4px; transition: var(--transition); } .btn-icon:hover { background: rgba(0, 0, 0, 0.05); color: var(--text-primary); } .btn-icon.danger:hover { background: #fee2e2; color: #991b1b; } .alert { padding: 12px 16px; border-radius: var(--border-radius-small); margin-bottom: 16px; display: flex; align-items: center; gap: 10px; } .alert-info { background: #dbeafe; color: #1e40af; } .alert-success { background: #d1fae5; color: #065f46; } .alert-warning { background: #fef3c7; color: #92400e; } .empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); } .empty-state i { font-size: 3rem; margin-bottom: 16px; opacity: 0.5; } /* Prompts Manager Styles */ .prompt-manager { max-width: 1200px; margin: 0 auto; padding: 20px; } .prompt-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 2px solid #e0e0e0; } .prompt-filters { display: flex; gap: 15px; margin-bottom: 20px; flex-wrap: wrap; } .filter-group { display: flex; flex-direction: column; gap: 5px; } .filter-group label { font-weight: 600; color: #333; } .filter-group select, .filter-group input { padding: 8px 12px; border: 1px solid #ddd; border-radius: 4px; font-size: 14px; } .prompt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 20px; margin-bottom: 30px; } .prompt-card { background: white; border: 1px solid #e0e0e0; border-radius: 8px; padding: 20px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); transition: box-shadow 0.3s ease; } .prompt-card:hover { box-shadow: 0 4px 8px rgba(0,0,0,0.15); } .prompt-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 15px; } .prompt-title { font-size: 18px; font-weight: 600; color: #333; margin: 0; } .prompt-category { background: #f0f0f0; color: #666; padding: 4px 8px; border-radius: 12px; font-size: 12px; font-weight: 500; } .prompt-description { color: #666; font-size: 14px; margin-bottom: 15px; line-height: 1.4; } .prompt-preview { background: #f8f9fa; border: 1px solid #e9ecef; border-radius: 4px; padding: 12px; font-family: 'Courier New', monospace; font-size: 12px; color: #495057; max-height: 100px; overflow-y: auto; margin-bottom: 15px; } .prompt-actions { display: flex; gap: 10px; flex-wrap: wrap; } .btn-info { background: #17a2b8; color: white; } .btn-info:hover { background: #138496; } .loading { display: none; text-align: center; padding: 20px; } .error { background: #f8d7da; color: #721c24; padding: 10px; border-radius: 4px; margin-bottom: 20px; display: none; } .success { background: #d4edda; color: #155724; padding: 10px; border-radius: 4px; margin-bottom: 20px; display: none; } .stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 30px; } .stat-number { font-size: 24px; font-weight: bold; color: #007bff; margin-bottom: 5px; } .stat-label { color: #666; font-size: 14px; } .modal.show { display: block !important; } .modal-title { font-size: 20px; font-weight: 600; margin: 0; } .form-group textarea { min-height: 100px; resize: vertical; font-family: 'Courier New', monospace; } .form-group textarea.large { min-height: 200px; } .embedding-type { background: #e0e7ff; color: #4338ca; padding: 4px 8px; border-radius: 12px; font-size: 12px; font-weight: 500; } .qa-metadata { display: flex; gap: 12px; margin-top: 12px; padding-top: 8px; border-top: 1px solid #e2e8f0; } .qa-metadata span { background: #f7fafc; color: #4a5568; padding: 4px 8px; border-radius: 4px; font-size: 12px; font-weight: 500; } .form-text { display: block; margin-top: 6px; color: #6c757d; font-size: 12px; } .form-help { display: block; margin-top: 6px; color: var(--text-muted); font-size: 12px; font-style: normal; } /* Model validation styles */ #model.invalid-model { border-color: #dc3545 !important; background-color: #f8d7da !important; box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25) !important; } #model-warning { color: #dc3545; font-size: 0.875rem; margin-top: 0.25rem; display: flex; align-items: center; gap: 0.25rem; } #model-warning::before { content: "⚠️"; font-size: 1rem; } /* Authentication Steps Styles */ .auth-steps { display: flex; flex-direction: column; gap: 20px; margin-bottom: 30px; } .auth-step { display: flex; align-items: flex-start; gap: 16px; padding: 20px; background: var(--glass-bg); backdrop-filter: blur(10px); border: 1px solid var(--glass-border); border-radius: var(--border-radius); box-shadow: var(--shadow-light); transition: var(--transition); } .auth-step:hover { transform: translateY(-2px); box-shadow: var(--shadow-medium); border-color: rgba(102, 126, 234, 0.3); } .step-number { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; background: var(--success-gradient); color: white; border-radius: 50%; font-size: 18px; font-weight: 700; flex-shrink: 0; box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3); } .step-content { flex: 1; } .step-content strong { display: block; color: var(--text-primary); font-size: 16px; font-weight: 600; margin-bottom: 8px; line-height: 1.4; } .step-content p { color: var(--text-secondary); font-size: 14px; margin: 0; line-height: 1.5; } /* Responsive design for auth steps */ @media (max-width: 768px) { .auth-steps { gap: 16px; } .auth-step { padding: 16px; gap: 12px; } .step-number { width: 32px; height: 32px; font-size: 16px; } .step-content strong { font-size: 15px; } .step-content p { font-size: 13px; } }