:root { --bg-dark: #0f172a; --glass-bg: rgba(255, 255, 255, 0.05); --glass-border: rgba(255, 255, 255, 0.1); --primary: #06b6d4; --primary-glow: rgba(6, 182, 212, 0.3); --secondary: #8b5cf6; --text-main: #f8fafc; --text-muted: #94a3b8; --ai-bubble: rgba(30, 41, 59, 0.7); --user-bubble: linear-gradient(135deg, #06b6d4, #3b82f6); } * { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Outfit', sans-serif; } body { background-color: var(--bg-dark); /* Mesh Gradient cực kỳ Premium bằng CSS thuần */ background-image: radial-gradient(at 0% 0%, rgba(6, 182, 212, 0.15) 0px, transparent 50%), radial-gradient(at 100% 0%, rgba(139, 92, 246, 0.15) 0px, transparent 50%), radial-gradient(at 100% 100%, rgba(6, 182, 212, 0.1) 0px, transparent 50%), radial-gradient(at 0% 100%, rgba(139, 92, 246, 0.1) 0px, transparent 50%); background-size: cover; height: 100vh; display: flex; justify-content: center; align-items: center; color: var(--text-main); overflow: hidden; } .app-container { width: 95vw; height: 90vh; background: var(--glass-bg); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border: 1px solid var(--glass-border); border-radius: 24px; display: flex; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); overflow: hidden; position: relative; } /* Sidebar Styling */ .sidebar { width: 260px; background: rgba(15, 23, 42, 0.4); border-right: 1px solid var(--glass-border); padding: 30px 20px; display: flex; flex-direction: column; } .logo-area { display: flex; align-items: center; gap: 12px; margin-bottom: 50px; } .logo-icon { width: 40px; height: 40px; background: var(--user-bubble); border-radius: 12px; display: flex; justify-content: center; align-items: center; font-size: 20px; box-shadow: 0 0 20px var(--primary-glow); } .logo-area h1 { font-size: 20px; font-weight: 700; letter-spacing: 0.5px; } .side-nav { flex: 1; } .nav-item { padding: 14px 18px; border-radius: 12px; display: flex; align-items: center; gap: 15px; cursor: pointer; transition: 0.3s; color: var(--text-muted); margin-bottom: 8px; } .nav-item:hover, .nav-item.active { background: rgba(255, 255, 255, 0.08); color: var(--text-main); } .nav-item.active { border-left: 4px solid var(--primary); } .system-status { padding-top: 20px; border-top: 1px solid var(--glass-border); display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-muted); } .status-dot { width: 8px; height: 8px; border-radius: 50%; } .status-dot.online { background: #10b981; box-shadow: 0 0 10px #10b981; } /* Main Chat Area */ .chat-main { flex: 1; display: flex; flex-direction: column; position: relative; } .chat-header { padding: 25px 40px; border-bottom: 1px solid var(--glass-border); display: flex; justify-content: space-between; align-items: center; } .header-info h2 { font-size: 18px; } .header-info p { font-size: 13px; color: var(--text-muted); } .header-actions button { background: transparent; border: none; color: var(--text-muted); font-size: 18px; cursor: pointer; transition: 0.3s; } .header-actions button:hover { color: #ef4444; } .messages-container { flex: 1; padding: 40px; overflow-y: auto; display: flex; flex-direction: column; gap: 25px; scrollbar-width: thin; scrollbar-color: var(--glass-border) transparent; } .messages-container::-webkit-scrollbar { width: 6px; } .messages-container::-webkit-scrollbar-thumb { background-color: var(--glass-border); border-radius: 10px; } .message { display: flex; gap: 18px; max-width: 85%; animation: fadeIn 0.4s ease-out; } @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } .message.user { align-self: flex-end; flex-direction: row-reverse; } .avatar { width: 40px; height: 40px; border-radius: 12px; display: flex; justify-content: center; align-items: center; flex-shrink: 0; } .ai .avatar { background: rgba(255, 255, 255, 0.1); color: var(--primary); border: 1px solid var(--glass-border); } .user .avatar { background: var(--user-bubble); color: white; } .content { background: var(--ai-bubble); padding: 16px 20px; border-radius: 18px; border-bottom-left-radius: 4px; line-height: 1.6; font-size: 15px; border: 1px solid var(--glass-border); } .user .content { background: var(--user-bubble); border-bottom-left-radius: 18px; border-bottom-right-radius: 4px; border: none; } .citation-tag { display: inline-block; margin-top: 10px; padding: 4px 10px; background: rgba(6, 182, 212, 0.1); border: 1px solid rgba(6, 182, 212, 0.2); border-radius: 8px; font-size: 12px; color: var(--primary); cursor: pointer; transition: 0.3s; } .citation-tag:hover { background: rgba(6, 182, 212, 0.2); } /* Footer Input Area */ .chat-footer { padding: 30px 40px; } .input-wrapper { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--glass-border); border-radius: 16px; padding: 10px 15px; display: flex; align-items: center; gap: 15px; transition: 0.3s; } .input-wrapper:focus-within { border-color: var(--primary); box-shadow: 0 0 15px var(--primary-glow); } textarea { flex: 1; background: transparent; border: none; color: var(--text-main); resize: none; outline: none; padding: 10px 5px; max-height: 150px; } #send-btn { width: 45px; height: 45px; background: var(--user-bubble); border: none; border-radius: 12px; color: white; cursor: pointer; transition: 0.3s; } #send-btn:hover { transform: scale(1.05); box-shadow: 0 0 15px var(--primary-glow); } .disclaimer { text-align: center; font-size: 11px; color: var(--text-muted); margin-top: 12px; } /* Source Panel */ .source-panel { position: absolute; right: -350px; top: 0; width: 350px; height: 100%; background: rgba(15, 23, 42, 0.95); backdrop-filter: blur(25px); border-left: 1px solid var(--glass-border); transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1); z-index: 10; padding: 30px; } .source-panel.active { right: 0; } .panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; } .source-item { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--glass-border); border-radius: 12px; padding: 15px; margin-bottom: 15px; } .source-item h4 { font-size: 14px; margin-bottom: 5px; color: var(--primary); } .source-item p { font-size: 12px; color: var(--text-muted); line-height: 1.4; } /* History Panel */ .history-item { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--glass-border); border-radius: 12px; padding: 15px; margin-bottom: 12px; cursor: pointer; transition: 0.3s; } .history-item:hover { background: rgba(255, 255, 255, 0.08); } .history-item .history-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; } .history-item .history-time { font-size: 12px; color: var(--text-muted); } .history-item .history-status { font-size: 11px; padding: 2px 8px; border-radius: 6px; font-weight: 600; } .history-item .history-status.completed { background: rgba(16, 185, 129, 0.2); color: #10b981; } .history-item .history-status.failed { background: rgba(239, 68, 68, 0.2); color: #ef4444; } .history-item .history-status.running { background: rgba(139, 92, 246, 0.2); color: #8b5cf6; } .history-item .history-summary { display: flex; gap: 12px; font-size: 12px; color: var(--text-muted); } .history-item .history-summary span { display: flex; align-items: center; gap: 4px; } .history-files { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--glass-border); display: none; } .history-item.expanded .history-files { display: block; } .history-file { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 12px; border-bottom: 1px solid rgba(255,255,255,0.03); } .history-file:last-child { border-bottom: none; } .history-file-name { color: var(--text-main); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .history-file-status { font-size: 10px; padding: 2px 6px; border-radius: 4px; margin-left: 8px; } .history-file-status.indexed { background: rgba(16, 185, 129, 0.2); color: #10b981; } .history-file-status.skipped { background: rgba(234, 179, 8, 0.2); color: #eab308; } .history-file-status.error { background: rgba(239, 68, 68, 0.2); color: #ef4444; } /* Login Screen */ .login-screen { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; display: flex; justify-content: center; align-items: center; z-index: 100; } .login-card { background: var(--glass-bg); backdrop-filter: blur(30px); border: 1px solid var(--glass-border); border-radius: 24px; padding: 50px 40px; width: 400px; text-align: center; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5); } .login-logo { margin-bottom: 40px; } .login-logo .logo-icon { width: 60px; height: 60px; margin: 0 auto 20px; font-size: 28px; } .login-logo h1 { font-size: 24px; margin-bottom: 8px; } .login-logo p { color: var(--text-muted); font-size: 14px; } .input-group { display: flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--glass-border); border-radius: 12px; padding: 14px 18px; margin-bottom: 20px; transition: 0.3s; } .input-group:focus-within { border-color: var(--primary); box-shadow: 0 0 15px var(--primary-glow); } .input-group i { color: var(--text-muted); font-size: 16px; } .input-group input { flex: 1; background: transparent; border: none; outline: none; color: var(--text-main); font-size: 15px; } .login-btn { width: 100%; padding: 14px; background: var(--user-bubble); border: none; border-radius: 12px; color: white; font-size: 16px; font-weight: 600; cursor: pointer; transition: 0.3s; } .login-btn:hover { transform: scale(1.02); box-shadow: 0 0 20px var(--primary-glow); } .login-hint { margin-top: 20px; font-size: 12px; color: var(--text-muted); } .login-divider { display: flex; align-items: center; gap: 15px; margin: 20px 0; color: var(--text-muted); font-size: 13px; } .login-divider::before, .login-divider::after { content: ''; flex: 1; height: 1px; background: var(--glass-border); } .sso-btn { width: 100%; padding: 14px; background: rgba(255, 255, 255, 0.08); border: 1px solid var(--glass-border); border-radius: 12px; color: var(--text-main); font-size: 15px; font-weight: 600; cursor: pointer; transition: 0.3s; display: flex; align-items: center; justify-content: center; gap: 10px; } .sso-btn:hover { background: rgba(255, 255, 255, 0.15); border-color: var(--primary); } /* User Info */ .user-info { padding-top: 20px; border-top: 1px solid var(--glass-border); display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--text-muted); } .user-avatar { width: 36px; height: 36px; background: rgba(255, 255, 255, 0.1); border-radius: 10px; display: flex; align-items: center; justify-content: center; color: var(--primary); } .user-details { flex: 1; display: flex; flex-direction: column; } .user-name { color: var(--text-main); font-weight: 600; font-size: 13px; } .user-role { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; } #logout-btn { background: transparent; border: none; color: var(--text-muted); cursor: pointer; padding: 8px; border-radius: 8px; transition: 0.3s; } #logout-btn:hover { color: #ef4444; background: rgba(239, 68, 68, 0.1); } /* Sync Button */ .sync-btn { width: 100%; padding: 12px 18px; margin-top: 10px; background: rgba(6, 182, 212, 0.1); border: 1px solid rgba(6, 182, 212, 0.2); border-radius: 12px; color: var(--primary); font-size: 13px; cursor: pointer; transition: 0.3s; display: flex; align-items: center; gap: 10px; } .sync-btn:hover { background: rgba(6, 182, 212, 0.2); } .sync-btn:disabled { opacity: 0.5; cursor: not-allowed; } /* Sync Status */ .sync-status { padding: 12px; margin-top: 10px; background: rgba(139, 92, 246, 0.1); border: 1px solid rgba(139, 92, 246, 0.2); border-radius: 10px; display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--secondary); } .sync-status.done { background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.2); color: #10b981; } .sync-status.error { background: rgba(239, 68, 68, 0.1); border-color: rgba(239, 68, 68, 0.2); color: #ef4444; }