:root { --bg-primary: #1a1a1a; --bg-secondary: #2d2d2d; --bg-tertiary: #3a3a3a; --text-primary: #ffffff; --text-secondary: #b3b3b3; --accent-primary: #4a90e2; --accent-secondary: #357abd; --border-color: #404040; --success-color: #28a745; --warning-color: #ffc107; --danger-color: #dc3545; --message-user: #4a90e2; --message-assistant: #2d2d2d; --sidebar-width: 280px; } [data-theme="light"] { --bg-primary: #ffffff; --bg-secondary: #f8f9fa; --bg-tertiary: #e9ecef; --text-primary: #212529; --text-secondary: #6c757d; --accent-primary: #4a90e2; --accent-secondary: #357abd; --border-color: #dee2e6; --message-user: #4a90e2; --message-assistant: #f8f9fa; } * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; background-color: var(--bg-primary); color: var(--text-primary); height: 100vh; overflow: hidden; } .app-container { display: flex; height: 100vh; } /* Notification Styles */ .notification { position: fixed; top: 20px; right: 20px; background: linear-gradient(135deg, #4a90e2, #357abd); color: white; padding: 1rem 1.5rem; border-radius: 12px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); z-index: 1000; display: flex; align-items: center; gap: 0.75rem; max-width: 400px; animation: slideIn 0.3s ease-out; } .notification.success { background: linear-gradient(135deg, #28a745, #20c997); } .notification.error { background: linear-gradient(135deg, #dc3545, #c82333); } .notification.info { background: linear-gradient(135deg, #17a2b8, #138496); } .notification button { background: none; border: none; color: white; font-size: 1.2rem; cursor: pointer; margin-left: auto; padding: 0; width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; } @keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } } /* Sidebar Styles */ .sidebar { width: var(--sidebar-width); background-color: var(--bg-secondary); border-right: 1px solid var(--border-color); display: flex; flex-direction: column; overflow: hidden; } .sidebar-header { padding: 20px; border-bottom: 1px solid var(--border-color); } .sidebar-header h2 { font-size: 18px; font-weight: 600; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; } .new-chat-btn { width: 100%; padding: 12px; background-color: var(--accent-primary); color: white; border: none; border-radius: 8px; cursor: pointer; font-size: 14px; font-weight: 500; display: flex; align-items: center; justify-content: center; gap: 8px; transition: background-color 0.2s; } .new-chat-btn:hover { background-color: var(--accent-secondary); } .characters-list { flex: 1; padding: 20px; overflow-y: auto; } .character-card { display: flex; align-items: center; padding: 16px; margin-bottom: 12px; background-color: var(--bg-tertiary); border-radius: 12px; cursor: pointer; transition: all 0.2s; border: 2px solid transparent; } .character-card:hover { background-color: var(--bg-primary); transform: translateY(-2px); } .character-card.active { border-color: var(--accent-primary); background-color: var(--accent-primary); color: white; } .character-avatar { width: 48px; height: 48px; border-radius: 50%; overflow: hidden; margin-right: 12px; flex-shrink: 0; } .character-avatar img { width: 100%; height: 100%; object-fit: cover; } .character-info h3 { font-size: 16px; font-weight: 600; margin-bottom: 4px; } .character-info p { font-size: 13px; color: var(--text-secondary); } .character-card.active .character-info p { color: rgba(255, 255, 255, 0.8); } .sidebar-footer { padding: 20px; border-top: 1px solid var(--border-color); display: flex; flex-direction: column; gap: 12px; } .resources-btn, .settings-btn { padding: 12px; background-color: transparent; color: var(--text-secondary); border: 1px solid var(--border-color); border-radius: 8px; cursor: pointer; font-size: 14px; display: flex; align-items: center; gap: 8px; transition: all 0.2s; } .resources-btn:hover, .settings-btn:hover { background-color: var(--bg-tertiary); color: var(--text-primary); } /* Main Content Styles */ .main-content { flex: 1; display: flex; flex-direction: column; background-color: var(--bg-primary); } .chat-header { padding: 20px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; background-color: var(--bg-secondary); } .current-character { display: flex; align-items: center; gap: 12px; } .character-avatar-small { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; } .character-avatar-small img { width: 100%; height: 100%; object-fit: cover; } .character-details h2 { font-size: 20px; font-weight: 600; margin-bottom: 2px; } .character-details p { font-size: 14px; color: var(--text-secondary); } .chat-controls { display: flex; gap: 12px; } .voice-toggle, .clear-chat { width: 40px; height: 40px; border: none; border-radius: 8px; background-color: var(--bg-tertiary); color: var(--text-primary); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; } .voice-toggle:hover, .clear-chat:hover { background-color: var(--bg-primary); } .voice-toggle.active { background-color: var(--success-color); color: white; } /* Chat Messages */ .chat-messages { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 20px; } .message { display: flex; gap: 12px; max-width: 80%; animation: fadeIn 0.3s ease-out; } .message.user { align-self: flex-end; flex-direction: row-reverse; } .message-avatar { width: 32px; height: 32px; border-radius: 50%; overflow: hidden; flex-shrink: 0; } .message-avatar img { width: 100%; height: 100%; object-fit: cover; } .message-content { background-color: var(--message-assistant); padding: 16px; border-radius: 16px; position: relative; } .message.user .message-content { background-color: var(--message-user); color: white; } .message-content p { margin: 0; line-height: 1.5; } .welcome-message { display: flex; gap: 12px; margin-bottom: 20px; opacity: 0.7; } .welcome-message .message-content { background-color: var(--bg-secondary); border: 1px solid var(--border-color); } /* Chat Input */ .chat-input-container { padding: 20px; border-top: 1px solid var(--border-color); background-color: var(--bg-secondary); } .typing-indicator { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 14px; color: var(--text-secondary); } .typing-dots { display: flex; gap: 4px; } .typing-dots span { width: 6px; height: 6px; background-color: var(--accent-primary); border-radius: 50%; animation: typingDot 1.4s infinite ease-in-out; } .typing-dots span:nth-child(2) { animation-delay: 0.16s; } .typing-dots span:nth-child(3) { animation-delay: 0.32s; } .chat-input-wrapper { display: flex; gap: 12px; align-items: flex-end; } #message-input { flex: 1; min-height: 48px; max-height: 120px; padding: 12px 16px; border: 1px solid var(--border-color); border-radius: 24px; background-color: var(--bg-primary); color: var(--text-primary); font-family: inherit; font-size: 14px; resize: none; outline: none; transition: border-color 0.2s; } #message-input:focus { border-color: var(--accent-primary); } #message-input::placeholder { color: var(--text-secondary); } .send-button { width: 48px; height: 48px; border: none; border-radius: 50%; background-color: var(--accent-primary); color: white; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.2s; } .send-button:hover { background-color: var(--accent-secondary); transform: scale(1.05); } .send-button:disabled { opacity: 0.5; cursor: not-allowed; transform: none; } /* Modal Styles */ .modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.5); z-index: 1000; backdrop-filter: blur(4px); } .modal.active { display: flex; align-items: center; justify-content: center; } .modal-content { background-color: var(--bg-secondary); border-radius: 16px; width: 90%; max-width: 600px; max-height: 80vh; overflow: hidden; animation: modalSlideIn 0.3s ease-out; } .modal-header { display: flex; justify-content: space-between; align-items: center; padding: 24px; border-bottom: 1px solid var(--border-color); } .modal-header h2 { font-size: 20px; font-weight: 600; } .close-modal { width: 32px; height: 32px; border: none; background: none; color: var(--text-secondary); cursor: pointer; border-radius: 8px; display: flex; align-items: center; justify-content: center; transition: all 0.2s; } .close-modal:hover { background-color: var(--bg-tertiary); color: var(--text-primary); } .modal-body { padding: 24px; overflow-y: auto; max-height: 60vh; } .resource-section { margin-bottom: 32px; } .resource-section h3 { font-size: 18px; font-weight: 600; margin-bottom: 16px; color: var(--accent-primary); } .resource-links { display: flex; flex-direction: column; gap: 12px; } .resource-link { display: flex; align-items: center; gap: 12px; padding: 16px; background-color: var(--bg-tertiary); border-radius: 12px; text-decoration: none; color: var(--text-primary); transition: all 0.2s; } .resource-link:hover { background-color: var(--accent-primary); color: white; transform: translateY(-2px); } .architecture-diagram img { width: 100%; border-radius: 8px; margin: 16px 0; } .architecture-text ul { margin-left: 20px; margin-top: 12px; } .architecture-text li { margin-bottom: 8px; line-height: 1.5; } .setting-group { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--border-color); } .setting-group:last-child { border-bottom: none; } .setting-group label { font-weight: 500; } .setting-group input, .setting-group select { padding: 8px 12px; border: 1px solid var(--border-color); border-radius: 6px; background-color: var(--bg-primary); color: var(--text-primary); } /* Animations */ @keyframes fadeIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } } @keyframes typingDot { 0%, 80%, 100% { transform: scale(0); opacity: 0.5; } 40% { transform: scale(1); opacity: 1; } } @keyframes modalSlideIn { from { opacity: 0; transform: scale(0.9) translateY(-20px); } to { opacity: 1; transform: scale(1) translateY(0); } } /* Scrollbar Styles */ .chat-messages::-webkit-scrollbar, .modal-body::-webkit-scrollbar { width: 6px; } .chat-messages::-webkit-scrollbar-track, .modal-body::-webkit-scrollbar-track { background: var(--bg-secondary); } .chat-messages::-webkit-scrollbar-thumb, .modal-body::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: 3px; } .chat-messages::-webkit-scrollbar-thumb:hover, .modal-body::-webkit-scrollbar-thumb:hover { background: var(--text-secondary); } /* Responsive Design */ @media (max-width: 768px) { .app-container { flex-direction: column; } .sidebar { width: 100%; height: auto; position: relative; } .characters-list { display: flex; overflow-x: auto; padding: 12px 20px; } .character-card { min-width: 200px; margin-right: 12px; margin-bottom: 0; } .main-content { height: calc(100vh - 200px); } .message { max-width: 95%; } }