Spaces:
Sleeping
Sleeping
| :root { | |
| --primary-color: #667eea; | |
| --primary-dark: #5a67d8; | |
| --secondary-color: #764ba2; | |
| --success-color: #48bb78; | |
| --warning-color: #ed8936; | |
| --error-color: #f56565; | |
| --text-primary: #2d3748; | |
| --text-secondary: #4a5568; | |
| --text-muted: #718096; | |
| --bg-primary: #ffffff; | |
| --bg-secondary: #f7fafc; | |
| --bg-tertiary: #edf2f7; | |
| --bg-overlay: rgba(255, 255, 255, 0.9); | |
| --border-color: #e2e8f0; | |
| --border-light: #f1f5f9; | |
| --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); | |
| --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); | |
| --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); | |
| --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1); | |
| --border-radius: 12px; | |
| --radius-sm: 0.375rem; | |
| --radius-md: 0.5rem; | |
| --radius-lg: 0.75rem; | |
| --radius-xl: 1rem; | |
| --radius-full: 9999px; | |
| --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); | |
| } | |
| body[data-theme="dark"] { | |
| --success-color: #38a169; | |
| --warning-color: #dd6b20; | |
| --error-color: #e53e3e; | |
| --text-primary: #edf2f7; | |
| --text-secondary: #a0aec0; | |
| --text-muted: #718096; | |
| --bg-primary: #1a202c; | |
| --bg-secondary: #2d3748; | |
| --bg-tertiary: #4a5568; | |
| --bg-overlay: rgba(26, 32, 44, 0.9); | |
| --border-color: #4a5568; | |
| --border-light: #2d3748; | |
| --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.3), 0 1px 2px 0 rgba(0, 0, 0, 0.2); | |
| --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2); | |
| --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.2); | |
| } | |
| * { | |
| margin: 0; | |
| padding: 0; | |
| box-sizing: border-box; | |
| } | |
| body { | |
| font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; | |
| background: var(--bg-secondary); | |
| min-height: 100vh; | |
| color: var(--text-primary); | |
| line-height: 1.6; | |
| transition: var(--transition); | |
| } | |
| .app-container { | |
| display: flex; | |
| flex-direction: column; | |
| height: 100vh; | |
| width: 100%; | |
| margin: 0; | |
| background: var(--bg-primary); | |
| box-shadow: var(--shadow-lg); | |
| border-radius: 0; | |
| overflow: hidden; | |
| } | |
| /* Header Styles - RESTORED PREVIOUS GRADIENT BACKGROUND */ | |
| .header { | |
| background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); | |
| color: white; | |
| padding: 1rem 2rem; | |
| box-shadow: var(--shadow-sm); | |
| } | |
| .header-content { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| } | |
| .logo { | |
| display: flex; | |
| align-items: center; | |
| gap: 0.75rem; | |
| } | |
| .logo-image { | |
| width: 40px; | |
| height: 40px; | |
| border-radius: var(--radius-lg); | |
| object-fit: cover; | |
| box-shadow: var(--shadow-md); | |
| } | |
| .logo h1 { | |
| font-size: 1.5rem; | |
| font-weight: 600; | |
| margin: 0; | |
| } | |
| .header-actions { | |
| display: flex; | |
| gap: 0.75rem; | |
| } | |
| /* Button Styles - RESTORED PREVIOUS STYLING */ | |
| .btn-secondary { | |
| background: rgba(255, 255, 255, 0.2); | |
| color: white; | |
| border: 1px solid rgba(255, 255, 255, 0.3); | |
| padding: 0.5rem 1rem; | |
| border-radius: 8px; | |
| font-size: 0.875rem; | |
| font-weight: 500; | |
| cursor: pointer; | |
| transition: var(--transition); | |
| display: flex; | |
| align-items: center; | |
| gap: 0.5rem; | |
| } | |
| #themeToggleBtn, #conversationsBtn { | |
| padding: 0.5rem 0.8rem; | |
| } | |
| .btn-secondary:hover { | |
| background: rgba(255, 255, 255, 0.3); | |
| transform: translateY(-2px); | |
| } | |
| .btn-icon { | |
| background: transparent; | |
| border: none; | |
| padding: 0.5rem; | |
| border-radius: 8px; | |
| cursor: pointer; | |
| color: var(--text-muted); | |
| transition: var(--transition); | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| } | |
| .btn-icon:hover { | |
| background: var(--bg-tertiary); | |
| color: var(--primary-color); | |
| } | |
| /* Input Area Styling - Fixed Alignment */ | |
| .input-area { | |
| padding: 0.75rem 2rem; | |
| background: var(--bg-overlay); | |
| backdrop-filter: blur(12px); | |
| border-top: 1px solid var(--border-color); | |
| box-shadow: 0 -4px 6px -1px rgb(0 0 0 / 0.1); | |
| } | |
| .input-wrapper { | |
| display: flex; | |
| align-items: center; | |
| gap: 0.75rem; | |
| background: var(--bg-primary); | |
| border: 2px solid var(--border-color); | |
| border-radius: var(--radius-xl); | |
| padding: 0.75rem; | |
| box-shadow: var(--shadow-lg); | |
| transition: var(--transition); | |
| min-height: 56px; | |
| } | |
| .input-wrapper:focus-within { | |
| border-color: var(--primary-color); | |
| box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1); | |
| } | |
| .input-actions-left, | |
| .input-actions-right { | |
| display: flex; | |
| align-items: center; | |
| gap: 0.5rem; | |
| } | |
| .action-btn { | |
| width: 40px; | |
| height: 40px; | |
| border: none; | |
| border-radius: var(--radius-lg); | |
| cursor: pointer; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| font-size: 1rem; | |
| transition: var(--transition); | |
| position: relative; | |
| overflow: hidden; | |
| flex-shrink: 0; | |
| } | |
| .upload-btn, | |
| .scrape-btn, | |
| .voice-btn { | |
| background: var(--bg-secondary); | |
| color: var(--text-secondary); | |
| border: 1px solid var(--border-color); | |
| } | |
| .upload-btn:hover, | |
| .scrape-btn:hover, | |
| .voice-btn:hover { | |
| background: var(--bg-tertiary); | |
| color: var(--text-primary); | |
| transform: scale(1.05); | |
| } | |
| .send-btn { | |
| background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)); | |
| color: white; | |
| box-shadow: var(--shadow-md); | |
| } | |
| .send-btn:enabled:hover { | |
| transform: scale(1.05); | |
| box-shadow: var(--shadow-lg); | |
| } | |
| .send-btn:disabled { | |
| opacity: 0.5; | |
| cursor: not-allowed; | |
| transform: none; | |
| } | |
| .input-field-wrapper { | |
| flex: 1; | |
| position: relative; | |
| display: flex; | |
| align-items: center; | |
| } | |
| #messageInput { | |
| width: 100%; | |
| border: none; | |
| outline: none; | |
| background: transparent; | |
| font-family: inherit; | |
| font-size: 1rem; | |
| color: var(--text-primary); | |
| resize: none; | |
| min-height: 40px; | |
| max-height: 120px; | |
| padding: 0.5rem 0; | |
| line-height: 1.5; | |
| } | |
| #messageInput::placeholder { | |
| color: var(--text-muted); | |
| } | |
| /* Voice Recording State */ | |
| .voice-recording { | |
| background: var(--error-color) ; | |
| color: white ; | |
| animation: voicePulse 2s infinite; | |
| } | |
| @keyframes voicePulse { | |
| 0% { box-shadow: 0 0 0 0 rgba(245, 101, 101, 0.7); } | |
| 70% { box-shadow: 0 0 0 10px rgba(245, 101, 101, 0); } | |
| 100% { box-shadow: 0 0 0 0 rgba(245, 101, 101, 0); } | |
| } | |
| /* Main Content */ | |
| .main-content { | |
| display: flex; | |
| flex: 1; | |
| overflow: hidden; | |
| } | |
| .chat-container { | |
| flex: 1; | |
| display: flex; | |
| flex-direction: column; | |
| background: var(--bg-primary); | |
| } | |
| .chat-header { | |
| padding: 1rem 2rem; | |
| border-bottom: 1px solid var(--border-color); | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| background: var(--bg-secondary); | |
| } | |
| .status-indicator { | |
| display: flex; | |
| align-items: center; | |
| gap: 0.5rem; | |
| font-size: 0.875rem; | |
| color: var(--text-secondary); | |
| } | |
| .status-dot { | |
| width: 8px; | |
| height: 8px; | |
| border-radius: 50%; | |
| background: var(--text-muted); | |
| } | |
| .status-dot.active { | |
| background: var(--success-color); | |
| animation: pulse 2s infinite; | |
| } | |
| @keyframes pulse { | |
| 0% { opacity: 1; } | |
| 50% { opacity: 0.5; } | |
| 100% { opacity: 1; } | |
| } | |
| .document-status { | |
| display: flex; | |
| align-items: center; | |
| gap: 0.5rem; | |
| font-size: 0.875rem; | |
| color: var(--text-secondary); | |
| } | |
| /* Messages */ | |
| .messages-container { | |
| flex: 1; | |
| overflow-y: auto; | |
| padding: 2rem; | |
| background: var(--bg-secondary); | |
| } | |
| /* RESTORED PREVIOUS WELCOME MESSAGE CONTAINER */ | |
| .welcome-message { | |
| text-align: center; | |
| max-width: 700px; | |
| margin: 2rem auto; | |
| padding: 2rem; | |
| background: var(--bg-overlay); | |
| backdrop-filter: blur(12px); | |
| border-radius: var(--radius-xl); | |
| box-shadow: var(--shadow-lg); | |
| border: 1px solid var(--border-color); | |
| } | |
| .welcome-icon { | |
| margin-bottom: 1rem; | |
| } | |
| .welcome-logo { | |
| width: 64px; | |
| height: 64px; | |
| border-radius: var(--radius-xl); | |
| object-fit: cover; | |
| box-shadow: var(--shadow-xl); | |
| } | |
| .welcome-message h2 { | |
| margin-bottom: 0.5rem; | |
| color: var(--text-primary); | |
| font-weight: 600; | |
| font-size: 1.75rem; | |
| } | |
| .welcome-message p { | |
| color: var(--text-secondary); | |
| margin-bottom: 2rem; | |
| font-size: 1rem; | |
| } | |
| .feature-grid { | |
| display: grid; | |
| grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); | |
| gap: 1rem; | |
| margin-bottom: 2rem; | |
| } | |
| .feature-item { | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| gap: 0.5rem; | |
| padding: 1rem; | |
| background: var(--bg-secondary); | |
| border-radius: var(--radius-lg); | |
| color: var(--text-secondary); | |
| font-size: 0.875rem; | |
| transition: transform 0.25s cubic-bezier(.4,2,.35,1.3), box-shadow 0.18s; | |
| border: 1px solid var(--border-color); | |
| } | |
| .feature-item:hover { | |
| transform: scale(1.06) rotate(-1deg); | |
| box-shadow: 0 2px 32px 2px rgba(126,116,244,0.12); | |
| background: var(--bg-tertiary); | |
| } | |
| .feature-item i { | |
| font-size: 1.5rem; | |
| color: var(--primary-color); | |
| } | |
| /* Quick Actions */ | |
| .quick-actions { | |
| display: flex; | |
| justify-content: center; | |
| gap: 0.75rem; | |
| flex-wrap: wrap; | |
| } | |
| .quick-btn { | |
| background: var(--bg-overlay); | |
| backdrop-filter: blur(12px); | |
| border: 1px solid var(--border-color); | |
| border-radius: var(--radius-full); | |
| padding: 0.6rem 1.25rem; | |
| cursor: pointer; | |
| display: flex; | |
| align-items: center; | |
| gap: 0.5rem; | |
| color: var(--text-primary); | |
| font-weight: 500; | |
| font-size: 0.85rem; | |
| transition: var(--transition); | |
| box-shadow: var(--shadow-md); | |
| } | |
| .quick-btn:hover { | |
| background: var(--primary-color); | |
| color: white; | |
| border-color: var(--primary-color); | |
| transform: translateY(-2px); | |
| } | |
| .message { | |
| margin-bottom: 1.5rem; | |
| display: flex; | |
| align-items: flex-start; | |
| gap: 0.75rem; | |
| animation: fadeInUp 0.3s ease-out; | |
| } | |
| @keyframes fadeInUp { | |
| from { | |
| opacity: 0; | |
| transform: translateY(20px); | |
| } | |
| to { | |
| opacity: 1; | |
| transform: translateY(0); | |
| } | |
| } | |
| .message.user { | |
| flex-direction: row-reverse; | |
| } | |
| /* Modern Attractive Avatars - KEEPING THE NEW BEAUTIFUL DESIGN */ | |
| .message-avatar { | |
| width: 40px; | |
| height: 40px; | |
| border-radius: 50%; | |
| flex-shrink: 0; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| overflow: hidden; | |
| position: relative; | |
| background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); | |
| box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4); | |
| border: 3px solid rgba(255, 255, 255, 0.9); | |
| } | |
| /* Stylish User Avatar with Modern Design */ | |
| .user-avatar { | |
| background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)); | |
| box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4); | |
| position: relative; | |
| } | |
| .user-avatar::before { | |
| content: ''; | |
| position: absolute; | |
| top: -2px; | |
| left: -2px; | |
| right: -2px; | |
| bottom: -2px; | |
| background: linear-gradient(45deg, var(--primary-color), var(--primary-dark), #667eea, #5a67d8); | |
| border-radius: 50%; | |
| z-index: -1; | |
| animation: avatarGlow 3s ease-in-out infinite alternate; | |
| } | |
| @keyframes avatarGlow { | |
| 0% { opacity: 0.5; transform: scale(1); } | |
| 100% { opacity: 0.8; transform: scale(1.05); } | |
| } | |
| .user-avatar .avatar-text { | |
| font-size: 1.1rem; | |
| font-weight: 700; | |
| color: white; | |
| text-shadow: 0 2px 4px rgba(0,0,0,0.3); | |
| line-height: 1; | |
| } | |
| /* Stylish Bot Avatar with Modern Design */ | |
| .bot-avatar { | |
| background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); | |
| box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4); | |
| padding: 0; | |
| border: 3px solid rgba(255, 255, 255, 0.9); | |
| position: relative; | |
| } | |
| .bot-avatar::before { | |
| content: ''; | |
| position: absolute; | |
| top: -3px; | |
| left: -3px; | |
| right: -3px; | |
| bottom: -3px; | |
| background: linear-gradient(45deg, #667eea, #764ba2, #f093fb, #f5576c); | |
| border-radius: 50%; | |
| z-index: -1; | |
| animation: botAvatarGlow 4s ease-in-out infinite alternate; | |
| } | |
| @keyframes botAvatarGlow { | |
| 0% { opacity: 0.3; } | |
| 100% { opacity: 0.7; } | |
| } | |
| .bot-avatar img { | |
| width: 100%; | |
| height: 100%; | |
| object-fit: cover; | |
| border-radius: 50%; | |
| } | |
| /* Hover effects for avatars */ | |
| .message-avatar:hover { | |
| transform: scale(1.1); | |
| transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1); | |
| } | |
| .message-content { | |
| max-width: 70%; | |
| display: flex; | |
| flex-direction: column; | |
| } | |
| .message.user .message-content { | |
| align-items: flex-end; | |
| } | |
| .message.bot .message-content { | |
| align-items: flex-start; | |
| } | |
| .message-bubble { | |
| padding: 1rem 1.25rem; | |
| border-radius: var(--radius-xl); | |
| box-shadow: var(--shadow-lg); | |
| word-wrap: break-word; | |
| display: inline-block; | |
| max-width: 100%; | |
| text-align: left; | |
| position: relative; | |
| } | |
| .message.user .message-bubble { | |
| background: linear-gradient(135deg, var(--primary-color), var(--primary-dark)); | |
| color: white; | |
| border-bottom-right-radius: var(--radius-sm); | |
| } | |
| .message.bot .message-bubble { | |
| background: var(--bg-overlay); | |
| backdrop-filter: blur(12px); | |
| color: var(--text-primary); | |
| border: 1px solid var(--border-color); | |
| border-bottom-left-radius: var(--radius-sm); | |
| } | |
| .message-time { | |
| font-size: 0.75rem; | |
| color: var(--text-muted); | |
| margin-top: 0.5rem; | |
| text-align: right; | |
| } | |
| .message.bot .message-time { | |
| text-align: left; | |
| } | |
| /* Voice Modal */ | |
| .voice-modal { | |
| position: fixed; | |
| top: 0; | |
| left: 0; | |
| right: 0; | |
| bottom: 0; | |
| background: rgba(15, 23, 42, 0.9); | |
| backdrop-filter: blur(12px); | |
| display: none; | |
| align-items: center; | |
| justify-content: center; | |
| z-index: 2000; | |
| } | |
| .voice-modal.active { | |
| display: flex; | |
| } | |
| .voice-content { | |
| text-align: center; | |
| color: white; | |
| padding: 3rem; | |
| max-width: 400px; | |
| } | |
| .voice-animation { | |
| display: flex; | |
| justify-content: center; | |
| align-items: center; | |
| gap: 4px; | |
| height: 60px; | |
| margin-bottom: 2rem; | |
| } | |
| .voice-wave { | |
| width: 4px; | |
| background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)); | |
| border-radius: var(--radius-full); | |
| animation: voiceWave 1.2s ease-in-out infinite; | |
| } | |
| .voice-wave:nth-child(1) { animation-delay: 0s; } | |
| .voice-wave:nth-child(2) { animation-delay: 0.1s; } | |
| .voice-wave:nth-child(3) { animation-delay: 0.2s; } | |
| .voice-wave:nth-child(4) { animation-delay: 0.3s; } | |
| .voice-wave:nth-child(5) { animation-delay: 0.4s; } | |
| @keyframes voiceWave { | |
| 0%, 100% { | |
| height: 20px; | |
| opacity: 0.5; | |
| } | |
| 50% { | |
| height: 60px; | |
| opacity: 1; | |
| } | |
| } | |
| .voice-title { | |
| font-size: 1.5rem; | |
| font-weight: 600; | |
| margin-bottom: 0.5rem; | |
| } | |
| .voice-subtitle { | |
| font-size: 1rem; | |
| opacity: 0.8; | |
| margin-bottom: 2rem; | |
| } | |
| .stop-voice-btn { | |
| background: var(--error-color); | |
| color: white; | |
| border: none; | |
| padding: 0.75rem 1.5rem; | |
| border-radius: var(--radius-full); | |
| cursor: pointer; | |
| font-size: 1rem; | |
| font-weight: 500; | |
| transition: var(--transition); | |
| display: flex; | |
| align-items: center; | |
| gap: 0.5rem; | |
| margin: 0 auto; | |
| } | |
| .stop-voice-btn:hover { | |
| background: #e53e3e; | |
| transform: scale(1.05); | |
| } | |
| /* Advanced Loading Spinner */ | |
| .loading-overlay { | |
| position: fixed; | |
| top: 0; | |
| left: 0; | |
| right: 0; | |
| bottom: 0; | |
| background: rgba(15, 23, 42, 0.8); | |
| backdrop-filter: blur(8px); | |
| display: none; | |
| align-items: center; | |
| justify-content: center; | |
| z-index: 1000; | |
| } | |
| .loading-overlay.active { | |
| display: flex; | |
| } | |
| .loading-spinner { | |
| position: relative; | |
| width: 80px; | |
| height: 80px; | |
| margin-bottom: 2rem; | |
| } | |
| .spinner-ring { | |
| position: absolute; | |
| border: 3px solid transparent; | |
| border-top: 3px solid var(--primary-color); | |
| border-radius: 50%; | |
| animation: spin 1s linear infinite; | |
| } | |
| .spinner-ring:nth-child(1) { | |
| width: 80px; | |
| height: 80px; | |
| animation-delay: 0s; | |
| } | |
| .spinner-ring:nth-child(2) { | |
| width: 60px; | |
| height: 60px; | |
| top: 10px; | |
| left: 10px; | |
| border-top-color: var(--secondary-color); | |
| animation-delay: 0.1s; | |
| } | |
| .spinner-ring:nth-child(3) { | |
| width: 40px; | |
| height: 40px; | |
| top: 20px; | |
| left: 20px; | |
| border-top-color: var(--success-color); | |
| animation-delay: 0.2s; | |
| } | |
| .loading-text { | |
| color: white; | |
| font-size: 1.125rem; | |
| font-weight: 500; | |
| text-align: center; | |
| } | |
| @keyframes spin { | |
| 0% { transform: rotate(0deg); } | |
| 100% { transform: rotate(360deg); } | |
| } | |
| /* Sidebar */ | |
| .sidebar { | |
| width: 350px; | |
| background: var(--bg-primary); | |
| border-left: 1px solid var(--border-color); | |
| display: none; | |
| flex-direction: column; | |
| transition: var(--transition); | |
| transform: translateX(100%); | |
| } | |
| .sidebar.active { | |
| display: flex; | |
| transform: translateX(0); | |
| } | |
| .sidebar-header { | |
| padding: 1rem 2rem; | |
| border-bottom: 1px solid var(--border-color); | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| background: var(--bg-secondary); | |
| } | |
| .sidebar-header h3 { | |
| font-size: 1.125rem; | |
| font-weight: 600; | |
| color: var(--text-primary); | |
| } | |
| .sidebar-content { | |
| flex: 1; | |
| padding: 2rem; | |
| overflow-y: auto; | |
| } | |
| /* Modal */ | |
| .modal { | |
| display: none; | |
| position: fixed; | |
| top: 0; | |
| left: 0; | |
| width: 100%; | |
| height: 100%; | |
| background: rgba(0, 0, 0, 0.5); | |
| z-index: 1000; | |
| align-items: center; | |
| justify-content: center; | |
| } | |
| .modal.active { | |
| display: flex; | |
| } | |
| .modal-content { | |
| background: var(--bg-primary); | |
| border-radius: var(--border-radius); | |
| box-shadow: var(--shadow-lg); | |
| max-width: 600px; | |
| width: 90%; | |
| max-height: 80vh; | |
| overflow: hidden; | |
| display: flex; | |
| flex-direction: column; | |
| } | |
| .modal-header { | |
| padding: 1.5rem 2rem; | |
| border-bottom: 1px solid var(--border-color); | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| background: var(--bg-secondary); | |
| } | |
| .modal-header h3 { | |
| font-size: 1.25rem; | |
| font-weight: 600; | |
| color: var(--text-primary); | |
| } | |
| .modal-body { | |
| flex: 1; | |
| padding: 2rem; | |
| overflow-y: auto; | |
| } | |
| /* Improved Memory Modal Font */ | |
| #memoryContent, .modal-body pre, .modal-body code { | |
| font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Roboto Mono', 'Consolas', 'Courier New', monospace; | |
| font-size: 0.875rem; | |
| line-height: 1.6; | |
| white-space: pre-wrap; | |
| color: var(--text-primary); | |
| background: var(--bg-tertiary); | |
| padding: 1rem; | |
| border-radius: var(--radius-md); | |
| border: 1px solid var(--border-color); | |
| } | |
| /* Loading Animation */ | |
| .typing-indicator { | |
| display: flex; | |
| align-items: center; | |
| gap: 0.25rem; | |
| padding: 1rem 1.25rem; | |
| background: var(--bg-overlay); | |
| backdrop-filter: blur(12px); | |
| border: 1px solid var(--border-color); | |
| border-radius: var(--radius-xl); | |
| border-bottom-left-radius: var(--radius-sm); | |
| box-shadow: var(--shadow-lg); | |
| } | |
| .typing-dot { | |
| width: 8px; | |
| height: 8px; | |
| border-radius: 50%; | |
| background: var(--text-muted); | |
| animation: typing 1.4s infinite ease-in-out; | |
| } | |
| .typing-dot:nth-child(1) { animation-delay: -0.32s; } | |
| .typing-dot:nth-child(2) { animation-delay: -0.16s; } | |
| @keyframes typing { | |
| 0%, 80%, 100% { | |
| transform: scale(0); | |
| opacity: 0.5; | |
| } | |
| 40% { | |
| transform: scale(1); | |
| opacity: 1; | |
| } | |
| } | |
| /* Conversation sidebar styles */ | |
| .conversations-list { | |
| margin-top: 1rem; | |
| } | |
| .conversation-item { | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| padding: 0.75rem; | |
| margin-bottom: 0.5rem; | |
| background: var(--bg-secondary); | |
| border-radius: 8px; | |
| border: 1px solid var(--border-color); | |
| cursor: pointer; | |
| transition: var(--transition); | |
| } | |
| .conversation-item:hover { | |
| background: var(--bg-tertiary); | |
| transform: translateY(-2px); | |
| } | |
| .conversation-item.active { | |
| background: var(--primary-color); | |
| color: white; | |
| border-color: var(--primary-color); | |
| } | |
| .conversation-info { | |
| flex: 1; | |
| } | |
| .conversation-title { | |
| font-weight: 500; | |
| margin-bottom: 0.25rem; | |
| } | |
| .conversation-meta { | |
| font-size: 0.75rem; | |
| opacity: 0.7; | |
| } | |
| .conversation-actions { | |
| display: flex; | |
| gap: 0.25rem; | |
| } | |
| .conversation-actions .btn-icon { | |
| padding: 0.25rem; | |
| font-size: 0.75rem; | |
| } | |
| .sidebar-actions { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 0.5rem; | |
| padding-bottom: 1rem; | |
| border-bottom: 1px solid var(--border-color); | |
| } | |
| .sidebar-actions .btn-secondary { | |
| background: var(--bg-tertiary); | |
| color: var(--text-secondary); | |
| border: 1px solid var(--border-color); | |
| justify-content: center; | |
| width: 100%; | |
| } | |
| .sidebar-actions .btn-secondary:hover { | |
| background: var(--border-color); | |
| color: var(--text-primary); | |
| } | |
| body[data-theme="dark"] .sidebar-actions .btn-secondary { | |
| background: var(--bg-secondary); | |
| color: var(--text-primary); | |
| border-color: var(--border-color); | |
| } | |
| /* Scrollbar Styling */ | |
| .messages-container::-webkit-scrollbar, | |
| .sidebar-content::-webkit-scrollbar, | |
| .modal-body::-webkit-scrollbar { | |
| width: 6px; | |
| } | |
| .messages-container::-webkit-scrollbar-track, | |
| .sidebar-content::-webkit-scrollbar-track, | |
| .modal-body::-webkit-scrollbar-track { | |
| background: var(--bg-tertiary); | |
| border-radius: 3px; | |
| } | |
| .messages-container::-webkit-scrollbar-thumb, | |
| .sidebar-content::-webkit-scrollbar-thumb, | |
| .modal-body::-webkit-scrollbar-thumb { | |
| background: var(--text-muted); | |
| border-radius: 3px; | |
| } | |
| .messages-container::-webkit-scrollbar-thumb:hover, | |
| .sidebar-content::-webkit-scrollbar-thumb:hover, | |
| .modal-body::-webkit-scrollbar-thumb:hover { | |
| background: var(--text-secondary); | |
| } | |
| /* Responsive Design */ | |
| @media (max-width: 768px) { | |
| .header { | |
| padding: 1rem; | |
| } | |
| .logo h1 { | |
| font-size: 1.25rem; | |
| } | |
| .header-actions { | |
| gap: 0.5rem; | |
| } | |
| .chat-header { | |
| padding: 1rem; | |
| flex-direction: column; | |
| gap: 0.5rem; | |
| align-items: flex-start; | |
| } | |
| .messages-container { | |
| padding: 1rem; | |
| } | |
| .input-area { | |
| padding: 1rem; | |
| } | |
| .message-content { | |
| max-width: 85%; | |
| } | |
| .feature-grid { | |
| grid-template-columns: repeat(2, 1fr); | |
| } | |
| .quick-actions { | |
| flex-direction: column; | |
| align-items: center; | |
| } | |
| .sidebar { | |
| position: fixed; | |
| top: 0; | |
| right: -350px; | |
| height: 100vh; | |
| z-index: 100; | |
| box-shadow: var(--shadow-lg); | |
| } | |
| .sidebar.active { | |
| right: 0; | |
| } | |
| .modal-content { | |
| margin: 1rem; | |
| width: calc(100% - 2rem); | |
| } | |
| .voice-content { | |
| padding: 2rem; | |
| } | |
| .voice-title { | |
| font-size: 1.25rem; | |
| } | |
| .message-avatar { | |
| width: 36px; | |
| height: 36px; | |
| } | |
| .user-avatar .avatar-text { | |
| font-size: 1rem; | |
| } | |
| } | |
| @media (max-width: 480px) { | |
| .input-wrapper { | |
| gap: 0.5rem; | |
| padding: 0.5rem; | |
| } | |
| .action-btn { | |
| width: 36px; | |
| height: 36px; | |
| font-size: 0.875rem; | |
| } | |
| #messageInput { | |
| font-size: 16px; /* Prevent zoom on iOS */ | |
| } | |
| .message-avatar { | |
| width: 32px; | |
| height: 32px; | |
| } | |
| .user-avatar .avatar-text { | |
| font-size: 0.9rem; | |
| } | |
| } | |
| /* Notification styles */ | |
| .notification { | |
| position: fixed; | |
| top: 1rem; | |
| right: 1rem; | |
| padding: 0.75rem 1rem; | |
| border-radius: 8px; | |
| color: white; | |
| font-weight: 500; | |
| z-index: 1000; | |
| animation: slideInRight 0.3s ease-out; | |
| } | |
| .notification.success { background: var(--success-color); } | |
| .notification.error { background: var(--error-color); } | |
| .notification.info { background: var(--primary-color); } | |
| @keyframes slideInRight { | |
| from { transform: translateX(100%); } | |
| to { transform: translateX(0); } | |
| } | |
| /* Animation Classes */ | |
| .fade-in { | |
| animation: fadeIn 0.3s ease-out; | |
| } | |
| .slide-up { | |
| animation: slideUp 0.3s ease-out; | |
| } | |
| @keyframes fadeIn { | |
| from { | |
| opacity: 0; | |
| transform: translateY(10px); | |
| } | |
| to { | |
| opacity: 1; | |
| transform: translateY(0); | |
| } | |
| } | |
| @keyframes slideUp { | |
| from { | |
| opacity: 0; | |
| transform: translateY(20px); | |
| } | |
| to { | |
| opacity: 1; | |
| transform: translateY(0); | |
| } | |
| } | |
| /* Utility Classes */ | |
| .hidden { | |
| display: none ; | |
| } | |
| .visible { | |
| display: block ; | |
| } |