/* FinBot Frontend Styles */ * { margin: 0; padding: 0; box-sizing: border-box; } body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); min-height: 100vh; color: #333; } .app-container { display: flex; flex-direction: column; height: 100vh; background: white; } /* Header */ .app-header { background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); color: white; padding: 1.5rem; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); z-index: 100; } .header-content h1 { font-size: 2.5rem; font-weight: 700; margin-bottom: 0.25rem; } .header-content p { font-size: 0.95rem; opacity: 0.9; } .user-info { display: flex; gap: 1rem; align-items: center; } #userSelect { padding: 0.5rem 1rem; border: none; border-radius: 4px; background: rgba(255, 255, 255, 0.2); color: white; cursor: pointer; font-size: 0.95rem; } #userSelect option { color: #333; } #logoutBtn { padding: 0.5rem 1.5rem; background: rgba(255, 255, 255, 0.2); color: white; border: 1px solid white; border-radius: 4px; cursor: pointer; font-size: 0.95rem; transition: all 0.3s ease; } #logoutBtn:hover { background: rgba(255, 255, 255, 0.3); } /* Login Screen */ .login-screen { display: flex; align-items: center; justify-content: center; flex: 1; padding: 2rem; background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%); } .login-box { background: white; border-radius: 12px; padding: 3rem; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1); max-width: 600px; width: 100%; } .login-box h2 { margin-bottom: 1rem; color: #667eea; font-size: 2rem; } .login-box p { color: #666; margin-bottom: 2rem; font-size: 1.05rem; } .users-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; } .user-btn { padding: 1.5rem; border: 2px solid #ddd; border-radius: 8px; background: white; cursor: pointer; transition: all 0.3s ease; text-align: left; } .user-btn:hover { border-color: #667eea; background: #f8f9fa; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2); } .user-btn strong { display: block; color: #667eea; margin-bottom: 0.25rem; } .user-btn small { display: block; color: #999; font-size: 0.85rem; } /* Chat Interface */ .chat-interface { display: flex; flex: 1; overflow: hidden; } .chat-container { display: flex; width: 100%; gap: 1rem; padding: 1rem; background: #f8f9fa; } /* Sidebar */ .sidebar { width: 250px; background: white; border-radius: 8px; padding: 1.5rem; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); overflow-y: auto; } .sidebar-section { margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid #eee; } .sidebar-section:last-child { border-bottom: none; } .sidebar-section h3 { font-size: 0.95rem; color: #333; margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.5px; } .user-profile p { font-size: 0.9rem; margin-bottom: 0.5rem; color: #666; } .user-profile span { color: #667eea; font-weight: 600; } .collections-list { display: flex; flex-direction: column; gap: 0.5rem; } .collection-tag { display: inline-block; padding: 0.5rem 0.75rem; background: #f0f3ff; color: #667eea; border-radius: 20px; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.25rem; } .status-indicator { color: #4CAF50; font-size: 1.5rem; margin-right: 0.5rem; } /* Main Chat Area */ .chat-main { flex: 1; display: flex; flex-direction: column; background: white; border-radius: 8px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05); overflow: hidden; } .guardrail-warnings { padding: 1rem; background: #fff3cd; border-left: 4px solid #ffc107; margin-bottom: 1rem; border-radius: 4px; } .guardrail-warnings p { color: #856404; font-size: 0.95rem; margin-bottom: 0.5rem; } .guardrail-warnings p:last-child { margin-bottom: 0; } .chat-messages { flex: 1; overflow-y: auto; padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; } .message { display: flex; margin-bottom: 1rem; animation: slideIn 0.3s ease; } @keyframes slideIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } .message.user { justify-content: flex-end; } .message-content { max-width: 70%; padding: 1rem; border-radius: 8px; word-wrap: break-word; } .message.user .message-content { background: #667eea; color: white; border-bottom-right-radius: 4px; } .message.assistant .message-content { background: #f0f0f0; color: #333; border-bottom-left-radius: 4px; } .message.system .message-content { background: #e3f2fd; color: #1976d2; border-radius: 8px; } .system-message { padding: 1.5rem; background: #e3f2fd; border-left: 4px solid #1976d2; border-radius: 4px; color: #1976d2; } .system-message ul { margin: 1rem 0 0 1.5rem; padding-left: 0; } .system-message li { margin-bottom: 0.5rem; } .message-metadata { font-size: 0.85rem; color: #999; margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px solid rgba(0, 0, 0, 0.1); } .sources { margin-top: 0.75rem; padding: 0.75rem; background: rgba(0, 0, 0, 0.05); border-radius: 4px; font-size: 0.85rem; } .source-item { margin-bottom: 0.25rem; color: #666; } .source-item strong { color: #333; } .route-badge { display: inline-block; padding: 0.25rem 0.5rem; background: #667eea; color: white; border-radius: 12px; font-size: 0.75rem; margin-right: 0.5rem; } .warning-banner { padding: 0.75rem; background: #fff3cd; border-left: 3px solid #ffc107; border-radius: 4px; color: #856404; font-size: 0.9rem; margin-top: 0.75rem; } /* Query Input Area */ .query-input-area { padding: 1.5rem; background: #f8f9fa; border-top: 1px solid #ddd; } .input-group { display: flex; gap: 0.75rem; } .query-input { flex: 1; padding: 0.75rem 1rem; border: 2px solid #ddd; border-radius: 6px; font-size: 0.95rem; transition: border-color 0.3s ease; } .query-input:focus { outline: none; border-color: #667eea; box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1); } .send-btn { padding: 0.75rem 1.5rem; background: #667eea; color: white; border: none; border-radius: 6px; cursor: pointer; font-weight: 600; transition: all 0.3s ease; } .send-btn:hover { background: #5568d3; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3); } .send-btn:active { transform: translateY(0); } .loading-indicator { margin-top: 0.75rem; color: #667eea; font-size: 0.9rem; display: flex; align-items: center; gap: 0.75rem; } .spinner { display: inline-block; animation: spin 1s linear infinite; } @keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } } /* Modal */ .modal { display: flex !important; position: fixed; z-index: 1000; left: 0; top: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.4); align-items: center; justify-content: center; } .modal-content { background: white; padding: 2rem; border-radius: 8px; max-width: 600px; max-height: 80vh; overflow-y: auto; box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3); position: relative; } .close { position: absolute; right: 1.5rem; top: 1.5rem; font-size: 2rem; cursor: pointer; color: #999; } .close:hover { color: #333; } /* Responsive Design */ @media (max-width: 768px) { .chat-container { flex-direction: column; } .sidebar { width: 100%; } .message-content { max-width: 90% !important; } .login-box { padding: 2rem 1.5rem; } .users-list { grid-template-columns: 1fr; } .app-header { flex-direction: column; gap: 1rem; } } /* Scrollbar Styling */ .chat-messages::-webkit-scrollbar, .sidebar::-webkit-scrollbar { width: 8px; } .chat-messages::-webkit-scrollbar-track, .sidebar::-webkit-scrollbar-track { background: #f1f1f1; } .chat-messages::-webkit-scrollbar-thumb, .sidebar::-webkit-scrollbar-thumb { background: #888; border-radius: 4px; } .chat-messages::-webkit-scrollbar-thumb:hover, .sidebar::-webkit-scrollbar-thumb:hover { background: #555; }