/* ── Voice page styles — all classes prefixed with voice- to avoid collisions ── */ @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap'); /* ── Background ── */ .voice-bg-particles { position: fixed; inset: 0; pointer-events: none; z-index: 0; } .voice-bg-particles::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(ellipse at 20% 50%, rgba(108,92,231,0.08) 0%, transparent 50%), radial-gradient(ellipse at 80% 20%, rgba(116,185,255,0.06) 0%, transparent 50%), radial-gradient(ellipse at 50% 80%, rgba(162,155,254,0.05) 0%, transparent 50%); animation: voiceBgShift 20s ease-in-out infinite alternate; } @keyframes voiceBgShift { 0% { transform: translate(0,0) rotate(0deg); } 100% { transform: translate(-5%,3%) rotate(3deg); } } /* ── App container ── */ .voice-app-container { position: relative; z-index: 1; display: flex; flex-direction: column; height: 100vh; max-width: 1440px; margin: 0 auto; font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif; color: #f0f0f5; } /* ── Header ── */ .voice-app-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 28px; border-bottom: 1px solid rgba(255,255,255,0.06); background: rgba(10,10,15,0.85); backdrop-filter: blur(20px); z-index: 10; } .voice-header-left { display: flex; align-items: center; gap: 14px; } .voice-header-right { display: flex; align-items: center; gap: 10px; } .voice-back-btn { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.06); background: transparent; color: #9a9ab0; font-size: 0.8rem; font-weight: 500; cursor: pointer; text-decoration: none; transition: 200ms cubic-bezier(0.4,0,0.2,1); } .voice-back-btn:hover { background: #1c1c28; color: #f0f0f5; border-color: rgba(108,92,231,0.3); } .voice-logo-icon { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 50%, #74b9ff 100%); color: #fff; box-shadow: 0 0 40px rgba(108,92,231,0.35); flex-shrink: 0; } .voice-header-text h1 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.02em; background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 50%, #74b9ff 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } .voice-subtitle { font-size: 0.72rem; color: #5c5c7a; letter-spacing: 0.02em; } /* Status badge */ .voice-status-badge { display: flex; align-items: center; gap: 8px; padding: 5px 13px; border-radius: 9999px; font-size: 0.75rem; font-weight: 500; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.06); } .voice-status-badge.voice-status-connected { background: rgba(0,206,201,0.1); border-color: rgba(0,206,201,0.3); } .voice-status-badge.voice-status-connecting { background: rgba(253,203,110,0.1); border-color: rgba(253,203,110,0.3); } .voice-status-badge.voice-status-error { background: rgba(255,118,117,0.1); border-color: rgba(255,118,117,0.3); } .voice-status-dot { width: 8px; height: 8px; border-radius: 50%; background: #00cec9; box-shadow: 0 0 8px #00cec9; animation: voicePulse 2s ease-in-out infinite; } .voice-status-badge.voice-status-connecting .voice-status-dot { background: #fdcb6e; box-shadow: 0 0 8px #fdcb6e; } .voice-status-badge.voice-status-error .voice-status-dot { background: #ff7675; box-shadow: 0 0 8px #ff7675; } .voice-status-badge.voice-status-disconnected .voice-status-dot { background: #5c5c7a; box-shadow: none; animation: none; } @keyframes voicePulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.8); } } .voice-btn-icon { display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 8px; border: 1px solid rgba(255,255,255,0.06); background: transparent; color: #9a9ab0; cursor: pointer; transition: 200ms cubic-bezier(0.4,0,0.2,1); } .voice-btn-icon:hover { background: #1c1c28; color: #f0f0f5; border-color: rgba(108,92,231,0.3); } /* ── Main layout ── */ .voice-main-content { display: flex; flex: 1; overflow: hidden; } /* ── Avatar panel ── */ .voice-avatar-panel { width: 300px; flex-shrink: 0; display: flex; flex-direction: column; align-items: center; padding: 28px 20px; gap: 24px; border-right: 1px solid rgba(255,255,255,0.06); background: #12121a; } .voice-avatar-container { position: relative; width: 180px; height: 180px; border-radius: 50%; background: #16161f; border: 2px solid rgba(108,92,231,0.3); display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: 0 0 40px rgba(108,92,231,0.35); overflow: visible; } .voice-avatar-glow { position: absolute; inset: -20px; border-radius: 50%; background: radial-gradient(circle, rgba(108,92,231,0.35) 0%, transparent 70%); animation: voiceGlowPulse 3s ease-in-out infinite; pointer-events: none; } @keyframes voiceGlowPulse { 0%,100% { opacity: 0.5; } 50% { opacity: 1; } } .voice-avatar-icon { color: #a29bfe; opacity: 0.9; } .voice-avatar-name { margin-top: 8px; font-size: 0.8rem; font-weight: 500; color: #9a9ab0; letter-spacing: 0.03em; } .voice-speaking-indicator { position: absolute; bottom: -20px; display: flex; align-items: flex-end; gap: 3px; height: 24px; } .voice-wave-bar { width: 4px; border-radius: 2px; background: #6c5ce7; animation: voiceWave 0.8s ease-in-out infinite alternate; } .voice-wave-bar:nth-child(1) { height: 8px; } .voice-wave-bar:nth-child(2) { height: 16px; } .voice-wave-bar:nth-child(3) { height: 24px; } .voice-wave-bar:nth-child(4) { height: 16px; } .voice-wave-bar:nth-child(5) { height: 8px; } @keyframes voiceWave { from { transform: scaleY(0.4); opacity: 0.6; } to { transform: scaleY(1); opacity: 1; } } .voice-avatar-stats { display: flex; gap: 16px; width: 100%; justify-content: center; padding: 14px 0; border-top: 1px solid rgba(255,255,255,0.06); border-bottom: 1px solid rgba(255,255,255,0.06); } .voice-stat-item { display: flex; flex-direction: column; align-items: center; gap: 4px; } .voice-stat-value { font-size: 1.1rem; font-weight: 700; font-variant-numeric: tabular-nums; background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 50%, #74b9ff 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; } .voice-stat-value.voice-conn-connected { color: #00cec9; -webkit-text-fill-color: #00cec9; background: none; } .voice-stat-value.voice-conn-disconnected { color: #5c5c7a; -webkit-text-fill-color: #5c5c7a; background: none; } .voice-stat-value.voice-conn-connecting { color: #fdcb6e; -webkit-text-fill-color: #fdcb6e; background: none; } .voice-stat-value.voice-conn-error { color: #ff7675; -webkit-text-fill-color: #ff7675; background: none; } .voice-stat-label { font-size: 0.7rem; color: #5c5c7a; letter-spacing: 0.04em; text-transform: uppercase; } .voice-connect-area { width: 100%; } .voice-btn-connect, .voice-btn-disconnect { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border: none; border-radius: 12px; font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: 200ms cubic-bezier(0.4,0,0.2,1); } .voice-btn-connect { background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 50%, #74b9ff 100%); color: #fff; box-shadow: 0 4px 20px rgba(108,92,231,0.35); } .voice-btn-connect:hover { transform: translateY(-1px); box-shadow: 0 6px 28px rgba(108,92,231,0.35); } .voice-btn-connect:disabled { background: #1c1c28; color: #5c5c7a; box-shadow: none; cursor: not-allowed; transform: none; } .voice-btn-disconnect { background: rgba(255,118,117,0.1); border: 1px solid rgba(255,118,117,0.3); color: #ff7675; } .voice-btn-disconnect:hover { background: rgba(255,118,117,0.2); } .voice-spinner-sm { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,0.2); border-top-color: #fff; animation: voiceSpin 0.7s linear infinite; display: inline-block; } @keyframes voiceSpin { to { transform: rotate(360deg); } } /* ── Chat panel ── */ .voice-chat-panel { flex: 1; display: flex; flex-direction: column; overflow: hidden; background: #0a0a0f; } .voice-chat-messages { flex: 1; overflow-y: auto; padding: 20px 24px; display: flex; flex-direction: column; gap: 16px; scrollbar-width: thin; scrollbar-color: #1c1c28 transparent; } .voice-chat-messages::-webkit-scrollbar { width: 4px; } .voice-chat-messages::-webkit-scrollbar-thumb { background: #1c1c28; border-radius: 2px; } .voice-message { display: flex; gap: 12px; animation: voiceFadeIn 0.2s ease-out; } @keyframes voiceFadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } } .voice-user-message { flex-direction: row-reverse; } .voice-system-message { justify-content: center; } .voice-assistant-message { flex-direction: row; } .voice-message-avatar { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; } .voice-assistant-message .voice-message-avatar { background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 50%, #74b9ff 100%); color: #fff; box-shadow: 0 2px 10px rgba(108,92,231,0.35); } .voice-user-message .voice-message-avatar { background: #1c1c28; color: #9a9ab0; border: 1px solid rgba(255,255,255,0.06); } .voice-message-content { max-width: 68%; display: flex; flex-direction: column; gap: 4px; } .voice-user-message .voice-message-content { align-items: flex-end; } .voice-message-header { display: flex; align-items: baseline; gap: 8px; } .voice-message-name { font-size: 0.8rem; font-weight: 600; color: #9a9ab0; } .voice-message-time { font-size: 0.7rem; color: #5c5c7a; } .voice-message-text { padding: 10px 14px; border-radius: 12px; font-size: 0.9rem; line-height: 1.55; } .voice-assistant-message .voice-message-text { background: #16161f; border: 1px solid rgba(255,255,255,0.06); border-bottom-left-radius: 4px; color: #f0f0f5; } .voice-user-message .voice-message-text { background: #6c5ce7; color: #fff; border-bottom-right-radius: 4px; } .voice-message-text code { background: #1c1c28; padding: 1px 5px; border-radius: 4px; font-family: 'JetBrains Mono', 'Fira Code', monospace; font-size: 0.82em; } .voice-system-message .voice-message-content { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); border-radius: 9999px; padding: 5px 14px; max-width: none; } .voice-system-message .voice-message-text { font-size: 0.78rem; color: #5c5c7a; background: none; border: none; padding: 0; } /* ── Input hint ── */ .voice-input-area { padding: 16px 24px; border-top: 1px solid rgba(255,255,255,0.06); background: #12121a; } .voice-hint { display: flex; align-items: center; gap: 10px; justify-content: center; font-size: 0.85rem; color: #5c5c7a; padding: 10px; border: 1px dashed rgba(255,255,255,0.06); border-radius: 12px; } .voice-mic-pulse { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #00cec9; box-shadow: 0 0 8px #00cec9; animation: voicePulse 1.5s ease-in-out infinite; }