Spaces:
Running
Running
| /* Enhanced Chat Input Styles */ | |
| .enhanced-chat-input-container { | |
| position: relative; | |
| width: 100%; | |
| max-width: 800px; | |
| margin: 0 auto; | |
| padding: 0 16px; | |
| } | |
| /* Reply Banner */ | |
| .reply-banner { | |
| background: var(--bg-secondary); | |
| border: 1px solid var(--border-primary); | |
| border-radius: 12px 12px 0 0; | |
| padding: 12px 16px; | |
| margin: 0 16px; | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| font-size: 14px; | |
| color: var(--text-secondary); | |
| } | |
| .reply-content { | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| } | |
| .cancel-reply { | |
| background: none; | |
| border: none; | |
| color: var(--text-tertiary); | |
| cursor: pointer; | |
| padding: 4px; | |
| border-radius: 6px; | |
| transition: all 0.2s ease; | |
| } | |
| .cancel-reply:hover { | |
| background: var(--bg-secondary); | |
| color: var(--text-secondary); | |
| } | |
| /* Floating Upload Section */ | |
| .floating-upload-section { | |
| background: var(--bg-primary); | |
| border: 1px solid var(--border-primary); | |
| border-radius: 16px; | |
| margin-bottom: 12px; | |
| padding: 20px; | |
| box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); | |
| animation: slideUpFade 0.2s ease-out; | |
| } | |
| [data-theme="dark"] .floating-upload-section { | |
| box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); | |
| } | |
| /* Floating Documents Section */ | |
| .floating-documents-section { | |
| background: var(--bg-primary); | |
| border: 1px solid var(--border-primary); | |
| border-radius: 16px; | |
| margin-bottom: 12px; | |
| max-height: 400px; | |
| overflow: hidden; | |
| box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1); | |
| animation: slideUpFade 0.2s ease-out; | |
| } | |
| [data-theme="dark"] .floating-documents-section { | |
| box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); | |
| } | |
| .documents-header { | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| padding: 16px 20px; | |
| border-bottom: 1px solid var(--border-primary); | |
| background: var(--bg-secondary); | |
| } | |
| .documents-title { | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| font-weight: 500; | |
| color: var(--text-primary); | |
| font-size: 14px; | |
| } | |
| .close-documents-btn { | |
| background: none; | |
| border: none; | |
| color: var(--text-tertiary); | |
| cursor: pointer; | |
| padding: 6px; | |
| border-radius: 6px; | |
| transition: all 0.2s ease; | |
| } | |
| .close-documents-btn:hover { | |
| background: var(--bg-tertiary); | |
| color: var(--text-secondary); | |
| } | |
| .documents-list { | |
| max-height: 300px; | |
| overflow-y: auto; | |
| padding: 8px; | |
| } | |
| .no-documents { | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| justify-content: center; | |
| padding: 40px 20px; | |
| text-align: center; | |
| color: var(--text-tertiary); | |
| } | |
| .no-documents svg { | |
| margin-bottom: 12px; | |
| opacity: 0.5; | |
| } | |
| .no-documents p { | |
| margin: 8px 0; | |
| font-weight: 500; | |
| color: var(--text-primary); | |
| } | |
| .no-documents span { | |
| font-size: 13px; | |
| color: var(--text-tertiary); | |
| } | |
| .document-item { | |
| display: flex; | |
| align-items: center; | |
| gap: 12px; | |
| padding: 12px; | |
| border-radius: 8px; | |
| transition: background-color 0.2s ease; | |
| } | |
| .document-item:hover { | |
| background: var(--bg-secondary); | |
| } | |
| .document-icon { | |
| font-size: 20px; | |
| flex-shrink: 0; | |
| } | |
| .document-info { | |
| flex: 1; | |
| min-width: 0; | |
| } | |
| .document-name { | |
| font-weight: 500; | |
| color: var(--text-primary); | |
| font-size: 14px; | |
| white-space: nowrap; | |
| overflow: hidden; | |
| text-overflow: ellipsis; | |
| } | |
| .document-details { | |
| font-size: 12px; | |
| color: var(--text-secondary); | |
| margin-top: 2px; | |
| } | |
| .document-actions { | |
| display: flex; | |
| gap: 4px; | |
| } | |
| .document-action-btn { | |
| background: none; | |
| border: none; | |
| color: var(--text-tertiary); | |
| cursor: pointer; | |
| padding: 6px; | |
| border-radius: 4px; | |
| transition: all 0.2s ease; | |
| } | |
| .document-action-btn:hover { | |
| background: var(--bg-tertiary); | |
| color: var(--text-secondary); | |
| } | |
| .document-action-btn:hover:has(svg[data-icon="trash-2"]) { | |
| background: #FEF2F2; | |
| color: #DC2626; | |
| } | |
| [data-theme="dark"] .document-action-btn:hover:has(svg[data-icon="trash-2"]) { | |
| background: #7F1D1D; | |
| color: #FCA5A5; | |
| } | |
| /* Main Input Box */ | |
| .floating-input-box { | |
| background: var(--bg-primary); | |
| border: 1px solid var(--border-primary); | |
| border-radius: 16px; | |
| box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12); | |
| backdrop-filter: blur(20px); | |
| -webkit-backdrop-filter: blur(20px); | |
| overflow: hidden; | |
| transition: all 0.2s ease; | |
| } | |
| [data-theme="dark"] .floating-input-box { | |
| box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4); | |
| } | |
| .floating-input-box:focus-within { | |
| border-color: var(--accent-primary); | |
| box-shadow: 0 8px 32px rgba(0, 0, 0, 0.16), 0 0 0 1px var(--accent-primary); | |
| } | |
| [data-theme="dark"] .floating-input-box:focus-within { | |
| box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 0 1px var(--accent-primary); | |
| } | |
| /* Text Input Row */ | |
| .text-input-row { | |
| padding: 16px 20px 4px 20px; | |
| } | |
| .main-textarea { | |
| width: 100%; | |
| min-height: 24px; | |
| max-height: 200px; | |
| border: none; | |
| outline: none; | |
| resize: none; | |
| background: transparent; | |
| color: var(--text-primary); | |
| font-size: 16px; | |
| font-family: inherit; | |
| line-height: 1.5; | |
| overflow-y: auto; | |
| } | |
| .main-textarea::placeholder { | |
| color: var(--text-tertiary); | |
| } | |
| /* Controls Row */ | |
| .controls-row { | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| padding: 8px 20px 16px 20px; | |
| } | |
| /* File Controls - ensure buttons stay side by side */ | |
| .file-controls { | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| flex-wrap: nowrap; | |
| } | |
| /* Add Documents Button */ | |
| .add-docs-btn { | |
| display: flex; | |
| align-items: center; | |
| gap: 6px; | |
| background: var(--bg-secondary); | |
| border: 1px solid var(--border-secondary); | |
| border-radius: 8px; | |
| padding: 8px 12px; | |
| font-size: 14px; | |
| font-weight: 500; | |
| color: var(--text-secondary); | |
| cursor: pointer; | |
| transition: all 0.2s ease; | |
| } | |
| .add-docs-btn:hover:not(:disabled) { | |
| background: var(--bg-tertiary); | |
| border-color: var(--border-primary); | |
| color: var(--text-primary); | |
| } | |
| .add-docs-btn:disabled { | |
| opacity: 0.5; | |
| cursor: not-allowed; | |
| } | |
| .add-docs-btn.active { | |
| background: var(--accent-primary); | |
| border-color: var(--accent-primary); | |
| color: white; | |
| } | |
| /* View Documents Button */ | |
| .view-docs-btn { | |
| display: flex; | |
| align-items: center; | |
| gap: 6px; | |
| background: var(--bg-secondary); | |
| border: 1px solid var(--border-secondary); | |
| border-radius: 8px; | |
| padding: 8px 10px; | |
| color: var(--text-secondary); | |
| cursor: pointer; | |
| transition: all 0.2s ease; | |
| position: relative; | |
| } | |
| .view-docs-btn:hover { | |
| background: var(--bg-tertiary); | |
| border-color: var(--border-primary); | |
| color: var(--text-primary); | |
| } | |
| .view-docs-btn.active { | |
| background: var(--accent-primary); | |
| border-color: var(--accent-primary); | |
| color: white; | |
| } | |
| .docs-count { | |
| background: var(--accent-primary); | |
| color: white; | |
| border-radius: 10px; | |
| padding: 2px 6px; | |
| font-size: 10px; | |
| font-weight: 700; | |
| min-width: 16px; | |
| text-align: center; | |
| line-height: 1.2; | |
| } | |
| .view-docs-btn:hover .docs-count, | |
| .view-docs-btn.active .docs-count { | |
| background: white; | |
| color: var(--accent-primary); | |
| } | |
| /* Send Button - FIXED VERSION */ | |
| .send-button { | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| width: 36px; | |
| height: 36px; | |
| border-radius: 8px; | |
| border: none; | |
| cursor: pointer; | |
| transition: all 0.2s ease; | |
| position: relative; | |
| flex-shrink: 0; | |
| } | |
| /* Enabled state - clean approach */ | |
| .send-button.enabled { | |
| background: #3B82F6; | |
| color: #FFFFFF; | |
| box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3); | |
| } | |
| /* Icon styling - use currentColor for better inheritance */ | |
| .send-button svg { | |
| width: 16px; | |
| height: 16px; | |
| color: currentColor; | |
| } | |
| .send-button.enabled:hover { | |
| background: #2563EB; | |
| transform: translateY(-1px); | |
| box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4); | |
| } | |
| .send-button.enabled:active { | |
| transform: translateY(0); | |
| box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3); | |
| } | |
| /* Disabled state */ | |
| .send-button.disabled { | |
| background: #E5E7EB; | |
| color: #9CA3AF; | |
| cursor: not-allowed; | |
| box-shadow: none; | |
| } | |
| [data-theme="dark"] .send-button.disabled { | |
| background: #374151; | |
| color: #6B7280; | |
| } | |
| /* Document Upload Notifications */ | |
| .document-upload-notification { | |
| display: flex; | |
| justify-content: center; | |
| margin: 16px 0; | |
| animation: slideUpFade 0.3s ease-out; | |
| background: transparent; | |
| box-shadow: none; | |
| border: none; | |
| padding: 0; | |
| } | |
| /* [data-theme="dark"] .document-upload-notification { | |
| box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); | |
| } */ | |
| .upload-notification-content { | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| padding: 12px 16px; | |
| background: var(--feature-bg); /* Change from fixed color */ | |
| border: 1px solid var(--accent-primary); /* Change from fixed color */ | |
| border-radius: 12px; | |
| color: var(--accent-primary); /* Change from fixed color */ | |
| font-size: 14px; | |
| font-weight: 500; | |
| max-width: 80%; | |
| } | |
| .upload-notification-icon { | |
| flex-shrink: 0; | |
| } | |
| .upload-notification-icon.success { | |
| color: #10B981; | |
| } | |
| .upload-notification-icon.error { | |
| color: #EF4444; | |
| } | |
| .upload-notification-text { | |
| flex: 1; | |
| } | |
| .upload-notification-title { | |
| font-weight: 500; | |
| color: var(--text-primary); | |
| margin: 0 0 2px 0; | |
| font-size: 14px; | |
| } | |
| .upload-notification-message { | |
| color: var(--text-secondary); | |
| margin: 0; | |
| font-size: 13px; | |
| } | |
| /* [data-theme="dark"] .upload-notification-content { | |
| box-shadow: 0 4px 16px rgba(99, 102, 241, 0.25); | |
| } */ | |
| .notification-close-btn { | |
| background: none; | |
| border: none; | |
| color: var(--text-tertiary); | |
| cursor: pointer; | |
| padding: 4px; | |
| border-radius: 6px; | |
| transition: all 0.2s ease; | |
| } | |
| .notification-close-btn:hover { | |
| background: var(--bg-secondary); | |
| color: var(--text-secondary); | |
| } | |
| /* Animations */ | |
| @keyframes slideUpFade { | |
| from { | |
| opacity: 0; | |
| transform: translateY(10px); | |
| } | |
| to { | |
| opacity: 1; | |
| transform: translateY(0); | |
| } | |
| } | |
| /* Mobile Responsive */ | |
| @media (max-width: 768px) { | |
| .enhanced-chat-input-container { | |
| padding: 0 12px; | |
| } | |
| .text-input-row { | |
| padding: 14px 16px 4px 16px; | |
| } | |
| .controls-row { | |
| padding: 8px 16px 14px 16px; | |
| } | |
| .main-textarea { | |
| font-size: 16px; /* Prevents zoom on iOS */ | |
| } | |
| .add-docs-btn { | |
| padding: 6px 10px; | |
| font-size: 13px; | |
| } | |
| .add-docs-btn span { | |
| display: none; /* Hide text on mobile, show only icon */ | |
| } | |
| .view-docs-btn { | |
| padding: 6px 8px; | |
| } | |
| .send-button { | |
| width: 32px; | |
| height: 32px; | |
| } | |
| .floating-upload-section, | |
| .floating-documents-section { | |
| padding: 16px; | |
| } | |
| .documents-header { | |
| padding: 12px 16px; | |
| } | |
| .documents-list { | |
| max-height: 250px; | |
| } | |
| .upload-notification-content { | |
| max-width: 95%; | |
| padding: 10px 14px; | |
| font-size: 13px; | |
| } | |
| .reply-banner { | |
| margin: 0 12px 12px 12px; | |
| } | |
| } | |
| /* Focus and accessibility */ | |
| .add-docs-btn:focus-visible, | |
| .view-docs-btn:focus-visible, | |
| .send-button:focus-visible { | |
| outline: 2px solid var(--accent-primary); | |
| outline-offset: 2px; | |
| } | |
| .main-textarea:focus { | |
| outline: none; /* Handled by parent container */ | |
| } | |
| /* Loading states */ | |
| .floating-input-box.loading { | |
| opacity: 0.7; | |
| pointer-events: none; | |
| } | |
| .main-textarea.loading { | |
| cursor: wait; | |
| } | |
| /* High contrast mode support */ | |
| @media (prefers-contrast: high) { | |
| .floating-input-box { | |
| border-width: 2px; | |
| } | |
| .send-button.enabled { | |
| border: 2px solid #3B82F6; | |
| } | |
| } | |
| /* Reduced motion support */ | |
| @media (prefers-reduced-motion: reduce) { | |
| .floating-input-box, | |
| .add-docs-btn, | |
| .view-docs-btn, | |
| .send-button, | |
| .floating-upload-section, | |
| .floating-documents-section { | |
| transition: none; | |
| } | |
| .slideUpFade { | |
| animation: none; | |
| } | |
| } |