:root { --bg-color: #0b0c10; --bg-card: rgba(22, 24, 33, 0.7); --bg-card-hover: rgba(30, 33, 45, 0.8); --border-color: rgba(255, 255, 255, 0.08); --border-glow: rgba(99, 102, 241, 0.15); --text-primary: #f3f4f6; --text-secondary: #9ca3af; --text-muted: #6b7280; --primary: #6366f1; --primary-glow: rgba(99, 102, 241, 0.35); --primary-dark: #4f46e5; --secondary: #a855f7; /* Sentiment Colors */ --color-happy: #10b981; --color-happy-bg: rgba(16, 185, 129, 0.1); --color-sad: #0ea5e9; --color-sad-bg: rgba(14, 165, 233, 0.1); --color-frustrated: #f43f5e; --color-frustrated-bg: rgba(244, 63, 94, 0.1); --color-neutral: #f59e0b; --color-neutral-bg: rgba(245, 158, 11, 0.1); --font-family: 'Inter', system-ui, -apple-system, sans-serif; --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); } * { box-sizing: border-box; margin: 0; padding: 0; } body { background-color: var(--bg-color); color: var(--text-primary); font-family: var(--font-family); min-height: 100vh; overflow-x: hidden; background-image: radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.08) 0%, transparent 40%), radial-gradient(circle at 90% 80%, rgba(168, 85, 247, 0.08) 0%, transparent 40%); background-attachment: fixed; } /* Custom Scrollbar */ ::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.2); } ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 4px; } ::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.2); } /* App Container */ .app-container { max-width: 1400px; margin: 0 auto; padding: 2rem 1.5rem; display: flex; flex-direction: column; gap: 2rem; min-height: 100vh; } /* Header */ .app-header { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border-color); padding-bottom: 1.5rem; } .header-title-section h1 { font-size: 2.2rem; font-weight: 800; background: linear-gradient(135deg, #fff 30%, #a855f7 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; letter-spacing: -0.5px; } .header-title-section p { color: var(--text-secondary); font-size: 0.95rem; margin-top: 0.4rem; } .header-status { display: flex; align-items: center; gap: 0.8rem; } .status-badge { display: flex; align-items: center; gap: 0.5rem; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border-color); padding: 0.4rem 0.8rem; border-radius: 9999px; font-size: 0.85rem; color: var(--text-secondary); } .status-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; } .status-dot.loading { background-color: var(--color-neutral); box-shadow: 0 0 8px var(--color-neutral); animation: pulse 1.5s infinite; } .status-dot.ready { background-color: var(--color-happy); box-shadow: 0 0 8px var(--color-happy); } .status-dot.failed { background-color: var(--color-frustrated); box-shadow: 0 0 8px var(--color-frustrated); } /* Settings Bar */ .settings-toggle-btn { background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-color); color: var(--text-primary); padding: 0.5rem 1rem; border-radius: 8px; cursor: pointer; display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; transition: var(--transition); } .settings-toggle-btn:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--primary); } .settings-drawer { background: var(--bg-card); backdrop-filter: blur(12px); border: 1px solid var(--border-color); border-radius: 12px; padding: 1.5rem; display: flex; flex-direction: column; gap: 1.2rem; animation: slideDown 0.3s ease-out; } .settings-group { display: flex; flex-direction: column; gap: 0.5rem; } .settings-group label { font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.5px; } .settings-group input, .settings-group textarea { background: rgba(0, 0, 0, 0.2); border: 1px solid var(--border-color); border-radius: 8px; color: var(--text-primary); padding: 0.75rem 1rem; font-family: inherit; font-size: 0.95rem; transition: var(--transition); } .settings-group input:focus, .settings-group textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 10px var(--primary-glow); } /* Main Layout Grid */ .main-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; } /* Query Input Section */ .query-card { background: var(--bg-card); backdrop-filter: blur(12px); border: 1px solid var(--border-color); border-radius: 16px; padding: 1.5rem; display: flex; flex-direction: column; gap: 1rem; position: relative; overflow: hidden; box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2); } .query-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--primary), var(--secondary)); } .query-input-wrapper { display: flex; gap: 1rem; } .query-textarea { flex: 1; background: rgba(0, 0, 0, 0.25); border: 1px solid var(--border-color); border-radius: 12px; color: var(--text-primary); padding: 1rem; font-family: inherit; font-size: 1.05rem; resize: vertical; min-height: 80px; transition: var(--transition); } .query-textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 12px var(--primary-glow); } .send-button { background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%); border: none; color: white; border-radius: 12px; padding: 0 1.8rem; font-weight: 600; font-size: 1rem; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 0.6rem; transition: var(--transition); box-shadow: 0 4px 14px rgba(99, 102, 241, 0.3); } .send-button:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(99, 102, 241, 0.5); } .send-button:disabled { background: var(--text-muted); cursor: not-allowed; transform: none; box-shadow: none; } /* Quick Prompts */ .quick-prompts { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; } .quick-prompt-label { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; } .quick-prompt-btn { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-color); color: var(--text-secondary); padding: 0.4rem 0.8rem; border-radius: 20px; font-size: 0.85rem; cursor: pointer; transition: var(--transition); } .quick-prompt-btn:hover { background: rgba(99, 102, 241, 0.1); border-color: var(--primary); color: var(--text-primary); } /* Chat Comparison Columns */ .comparison-grid { display: grid; grid-template-columns: 1fr; gap: 2rem; } @media (min-width: 900px) { .comparison-grid { grid-template-columns: 1fr 1fr; } } @media (min-width: 1300px) { .comparison-grid { grid-template-columns: 1fr 1fr 1fr 1fr; } } .column-card { background: var(--bg-card); backdrop-filter: blur(12px); border: 1px solid var(--border-color); border-radius: 16px; display: flex; flex-direction: column; min-height: auto; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3); overflow: hidden; transition: var(--transition); } .column-card:hover { border-color: rgba(255, 255, 255, 0.12); box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4); } .column-header { padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.8rem; background: rgba(0, 0, 0, 0.15); } .column-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 0.6rem; } .column-title-wrapper h2 { font-size: 1.15rem; font-weight: 700; display: flex; align-items: center; gap: 0.5rem; } .column-title-wrapper p { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.2rem; } .latency-badge { background: rgba(0, 0, 0, 0.3); border: 1px solid var(--border-color); color: var(--text-secondary); font-size: 0.75rem; padding: 0.3rem 0.6rem; border-radius: 6px; font-family: monospace; white-space: nowrap; } /* Sentiment Details Badge */ .sentiment-badge { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.8rem; border-radius: 8px; font-size: 0.85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; } .sentiment-badge.confused_but_engaged, .sentiment-badge.confusion { background-color: rgba(245, 158, 11, 0.1); border: 1px solid #f59e0b; color: #f59e0b; } .sentiment-badge.confused_and_frustrated, .sentiment-badge.frustration { background-color: rgba(244, 63, 94, 0.1); border: 1px solid #f43f5e; color: #f43f5e; } .sentiment-badge.starting_to_get_bored { background-color: rgba(168, 85, 247, 0.1); border: 1px solid #a855f7; color: #a855f7; } .sentiment-badge.confident_and_engaged { background-color: rgba(16, 185, 129, 0.1); border: 1px solid #10b981; color: #10b981; } .sentiment-badge.neutral { background-color: rgba(156, 163, 175, 0.1); border: 1px solid #9ca3af; color: #9ca3af; } /* Chat Body Response */ .column-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; gap: 1.5rem; overflow-y: auto; } .sentiment-analysis-box { background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border-color); border-radius: 12px; padding: 1rem; } .sentiment-analysis-box h3 { font-size: 0.85rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.5rem; } .sentiment-analysis-box p { font-size: 0.95rem; line-height: 1.5; color: var(--text-secondary); } .chat-response-content { flex: 1; font-size: 1rem; line-height: 1.6; color: var(--text-primary); border-top: 1px solid rgba(255, 255, 255, 0.04); padding-top: 1.5rem; } .chat-response-content p { margin-bottom: 1rem; } .chat-response-content ul, .chat-response-content ol { margin-bottom: 1rem; padding-left: 1.5rem; } .chat-response-content li { margin-bottom: 0.4rem; } .chat-response-content code { background: rgba(0, 0, 0, 0.3); padding: 0.2rem 0.4rem; border-radius: 4px; font-family: monospace; font-size: 0.9rem; } .chat-response-content pre { background: rgba(0, 0, 0, 0.4); padding: 1rem; border-radius: 8px; overflow-x: auto; margin: 1rem 0; border: 1px solid var(--border-color); } .chat-response-content pre code { background: transparent; padding: 0; } /* Prompt Context Inspector */ .inspector-section { border-top: 1px solid var(--border-color); background: rgba(0, 0, 0, 0.2); } .inspector-header { padding: 0.75rem 1.5rem; display: flex; justify-content: space-between; align-items: center; cursor: pointer; user-select: none; transition: var(--transition); } .inspector-header:hover { background: rgba(255, 255, 255, 0.02); } .inspector-header span { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; display: flex; align-items: center; gap: 0.4rem; } .inspector-body { padding: 1.2rem 1.5rem; border-top: 1px solid var(--border-color); background: rgba(0, 0, 0, 0.3); font-family: monospace; font-size: 0.85rem; line-height: 1.5; color: var(--text-secondary); white-space: pre-wrap; max-height: 250px; overflow-y: auto; animation: slideDown 0.2s ease-out; } /* RoBERTa Custom Emotion List & Chart */ .emotion-chart-container { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.8rem; } .emotion-bar-row { display: flex; align-items: center; gap: 0.8rem; } .emotion-bar-label { width: 110px; font-size: 0.8rem; color: var(--text-secondary); text-align: right; text-transform: capitalize; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .emotion-bar-track { flex: 1; height: 8px; background: rgba(255, 255, 255, 0.04); border-radius: 4px; overflow: hidden; position: relative; } .emotion-bar-fill { height: 100%; border-radius: 4px; transition: width 0.8s cubic-bezier(0.1, 0.8, 0.2, 1); } .emotion-bar-value { width: 45px; font-size: 0.75rem; color: var(--text-muted); font-family: monospace; } /* Loading Skeletons */ .skeleton-wrapper { display: flex; flex-direction: column; gap: 1rem; width: 100%; } .skeleton-line { height: 16px; background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 4px; } .skeleton-line.short { width: 40%; } .skeleton-line.medium { width: 70%; } .skeleton-line.long { width: 100%; } .skeleton-box { height: 80px; background: linear-gradient(90deg, rgba(255,255,255,0.03) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.03) 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 8px; } /* Animations */ @keyframes pulse { 0% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.15); opacity: 0.6; } 100% { transform: scale(1); opacity: 1; } } @keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } } @keyframes slideDown { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } } /* Empty State / Welcome Screen */ .empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 4rem 2rem; text-align: center; color: var(--text-secondary); gap: 1rem; flex: 1; } .empty-state-icon { color: var(--text-muted); margin-bottom: 0.5rem; } .empty-state h3 { font-size: 1.3rem; color: var(--text-primary); font-weight: 600; } .empty-state p { max-width: 500px; font-size: 0.95rem; line-height: 1.5; color: var(--text-muted); } /* Voice Session Modal */ .voice-modal-backdrop { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(11, 12, 16, 0.85); backdrop-filter: blur(20px); display: flex; justify-content: center; align-items: center; z-index: 2000; animation: fadeIn 0.3s ease; } .voice-modal-content { background: rgba(22, 24, 33, 0.95); border: 1px solid rgba(168, 85, 247, 0.25); box-shadow: 0 20px 80px rgba(168, 85, 247, 0.15); border-radius: 24px; width: 90%; max-width: 460px; padding: 2.5rem; display: flex; flex-direction: column; align-items: center; position: relative; animation: scaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); } .voice-modal-close { position: absolute; top: 1.5rem; right: 1.5rem; background: none; border: none; color: var(--text-secondary); cursor: pointer; padding: 0.5rem; border-radius: 50%; transition: var(--transition); } .voice-modal-close:hover { background: rgba(255, 255, 255, 0.05); color: var(--text-primary); } .voice-modal-header { text-align: center; margin-bottom: 2rem; } .voice-modal-header h2 { font-size: 1.6rem; font-weight: 700; background: linear-gradient(135deg, var(--text-primary), var(--secondary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 0.3rem; } .voice-modal-header p { font-size: 0.85rem; color: var(--text-muted); } .voice-visualizer-container { height: 200px; display: flex; justify-content: center; align-items: center; position: relative; width: 100%; margin-bottom: 1.5rem; } .voice-status-indicator { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; font-size: 0.95rem; font-weight: 600; color: var(--text-secondary); } .pulse-circle { width: 80px; height: 80px; border-radius: 50%; background: var(--text-muted); transition: var(--transition); } .pulse-circle.active { background: linear-gradient(135deg, var(--color-happy), #34d399); box-shadow: 0 0 30px rgba(16, 185, 129, 0.4); animation: float 3s ease-in-out infinite; } .pulse-circle.speaking-pulse { background: linear-gradient(135deg, var(--secondary), #a855f7); box-shadow: 0 0 35px rgba(168, 85, 247, 0.5); } .pulse-ring { position: absolute; width: 80px; height: 80px; border-radius: 50%; border: 2px solid var(--color-happy); opacity: 0; pointer-events: none; } .pulse-ring.speaking-ring { border-color: var(--secondary); } .pulse-ring.ring-1 { animation: ripple 2s cubic-bezier(0.1, 0.8, 0.3, 1) infinite; } .pulse-ring.ring-2 { animation: ripple 2s cubic-bezier(0.1, 0.8, 0.3, 1) 0.6s infinite; } .voice-transcript-box { background: rgba(255, 255, 255, 0.02); border: 1px solid var(--border-color); border-radius: 16px; padding: 1rem 1.25rem; width: 100%; max-height: 100px; overflow-y: auto; margin-bottom: 2rem; text-align: center; box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2); } .voice-transcript-box p { margin: 0; font-size: 0.9rem; line-height: 1.5; font-style: italic; color: var(--text-primary); } .voice-modal-controls { display: flex; justify-content: center; width: 100%; } .voice-control-btn { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border-color); color: var(--text-primary); display: flex; flex-direction: column; align-items: center; gap: 0.5rem; padding: 0.8rem 1.8rem; border-radius: 16px; cursor: pointer; transition: var(--transition); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; } .voice-control-btn:hover { background: rgba(255, 255, 255, 0.07); border-color: rgba(255, 255, 255, 0.15); } .voice-control-btn.muted { border-color: rgba(244, 63, 94, 0.3); background: rgba(244, 63, 94, 0.08); color: var(--color-frustrated); } .voice-control-btn.muted:hover { background: rgba(244, 63, 94, 0.15); } @keyframes ripple { 0% { transform: scale(1); opacity: 0.8; } 100% { transform: scale(2.2); opacity: 0; } } @keyframes scaleUp { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } } @keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }