Spaces:
Sleeping
Sleeping
| /* CSS Variables */ | |
| :root { | |
| --primary: #6d5ce7; | |
| --primary-light: #a29bfe; | |
| --primary-dark: #4a3db0; | |
| --primary-glow: rgba(109, 92, 231, 0.35); | |
| --accent: #5f72f3; | |
| --accent-light: #7c8cf8; | |
| --success: #00cec9; | |
| --danger: #ff6b6b; | |
| --warning: #feca57; | |
| --bg-dark: #080816; | |
| --bg-card: rgba(15, 15, 35, 0.65); | |
| --bg-card-solid: #0f0f23; | |
| --bg-surface: rgba(20, 20, 50, 0.5); | |
| --border-color: rgba(109, 92, 231, 0.12); | |
| --border-hover: rgba(109, 92, 231, 0.35); | |
| --text-white: #eef0ff; | |
| --text-secondary: #a0a8c8; | |
| --text-muted: #5c6280; | |
| --font-main: "Inter", "Noto Sans Sinhala", system-ui, sans-serif; | |
| --radius-sm: 10px; | |
| --radius-md: 16px; | |
| --radius-lg: 24px; | |
| --radius-full: 9999px; | |
| } | |
| /* Reset & Base */ | |
| *, | |
| *::before, | |
| *::after { | |
| margin: 0; | |
| padding: 0; | |
| box-sizing: border-box; | |
| } | |
| html { | |
| scroll-behavior: smooth; | |
| } | |
| body { | |
| font-family: var(--font-main); | |
| background: var(--bg-dark); | |
| min-height: 100vh; | |
| color: var(--text-white); | |
| overflow-x: hidden; | |
| } | |
| /* Three.js Background Canvas */ | |
| #bgCanvas { | |
| position: fixed; | |
| top: 0; | |
| left: 0; | |
| width: 100%; | |
| height: 100%; | |
| z-index: 0; | |
| pointer-events: none; | |
| } | |
| /* App Wrapper */ | |
| .app-wrapper { | |
| position: relative; | |
| z-index: 1; | |
| max-width: 1000px; | |
| margin: 0 auto; | |
| padding: 8px 24px 20px; | |
| min-height: 100vh; | |
| display: flex; | |
| flex-direction: column; | |
| gap: 6px; | |
| } | |
| /* ========== TOP BAR ========== */ | |
| .top-bar { | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: center; | |
| padding: 14px 24px; | |
| background: var(--bg-card); | |
| border: 1px solid var(--border-color); | |
| border-radius: var(--radius-lg); | |
| backdrop-filter: blur(20px); | |
| } | |
| .top-bar-left { | |
| display: flex; | |
| align-items: center; | |
| } | |
| .status-indicator { | |
| display: flex; | |
| align-items: center; | |
| gap: 10px; | |
| padding: 8px 18px; | |
| background: rgba(34, 197, 94, 0.08); | |
| border: 1px solid rgba(34, 197, 94, 0.25); | |
| border-radius: var(--radius-full); | |
| } | |
| .status-dot { | |
| width: 10px; | |
| height: 10px; | |
| border-radius: 50%; | |
| background: var(--success); | |
| box-shadow: 0 0 8px rgba(34, 197, 94, 0.6); | |
| animation: pulse-glow 2s ease-in-out infinite; | |
| } | |
| .status-dot.recording { | |
| background: var(--danger); | |
| box-shadow: 0 0 8px rgba(239, 68, 68, 0.6); | |
| animation: pulse-glow 0.5s ease-in-out infinite; | |
| } | |
| .status-dot.processing { | |
| background: var(--warning); | |
| box-shadow: 0 0 8px rgba(245, 158, 11, 0.6); | |
| animation: pulse-glow 0.8s ease-in-out infinite; | |
| } | |
| .status-text { | |
| font-size: 0.9rem; | |
| font-weight: 600; | |
| color: var(--success); | |
| } | |
| .top-bar-right { | |
| display: flex; | |
| align-items: center; | |
| gap: 10px; | |
| } | |
| .top-btn { | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| padding: 10px 20px; | |
| border-radius: var(--radius-full); | |
| font-size: 0.88rem; | |
| font-weight: 600; | |
| cursor: pointer; | |
| transition: all 0.25s ease; | |
| font-family: var(--font-main); | |
| border: 1px solid var(--border-color); | |
| } | |
| .lang-toggle-btn { | |
| background: var(--primary); | |
| color: white; | |
| border-color: var(--primary); | |
| } | |
| .lang-toggle-btn:hover { | |
| background: var(--primary-dark); | |
| box-shadow: 0 0 20px var(--primary-glow); | |
| } | |
| .lang-toggle-btn.si-mode { | |
| background: var(--accent); | |
| border-color: var(--accent); | |
| } | |
| .clear-btn { | |
| background: transparent; | |
| color: var(--text-secondary); | |
| border: 1px solid var(--border-color); | |
| } | |
| .clear-btn:hover { | |
| color: var(--danger); | |
| border-color: rgba(239, 68, 68, 0.4); | |
| background: rgba(239, 68, 68, 0.08); | |
| } | |
| /* ========== HERO ========== */ | |
| .hero { | |
| text-align: center; | |
| padding: 10px 20px 0; | |
| } | |
| .hero.compact { | |
| padding: 30px 20px 20px; | |
| } | |
| .hero.compact .hero-top-row { | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| gap: 20px; | |
| margin-bottom: 4px; | |
| } | |
| .hero.compact .hero-badge { | |
| margin-bottom: 0; | |
| } | |
| .hero.compact .hero-title { | |
| font-size: 2.6rem; | |
| margin-bottom: 0; | |
| } | |
| .hero.compact .hero-desc { | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| gap: 10px; | |
| } | |
| .hero.compact .hero-desc i { | |
| color: var(--primary-light); | |
| font-size: 1rem; | |
| } | |
| .hero-badge { | |
| display: inline-block; | |
| padding: 6px 20px; | |
| background: var(--primary); | |
| color: white; | |
| font-size: 0.82rem; | |
| font-weight: 700; | |
| border-radius: var(--radius-full); | |
| letter-spacing: 0.5px; | |
| margin-bottom: 18px; | |
| box-shadow: 0 4px 20px var(--primary-glow); | |
| } | |
| .hero-title { | |
| font-size: 3.5rem; | |
| font-weight: 800; | |
| background: linear-gradient( | |
| 135deg, | |
| var(--primary-light), | |
| var(--primary), | |
| var(--accent-light) | |
| ); | |
| -webkit-background-clip: text; | |
| -webkit-text-fill-color: transparent; | |
| background-clip: text; | |
| letter-spacing: -1.5px; | |
| line-height: 1.1; | |
| margin-bottom: 8px; | |
| } | |
| .hero-desc { | |
| font-size: 0.95rem; | |
| color: var(--text-secondary); | |
| font-weight: 400; | |
| } | |
| /* ========== INFO BANNER ========== */ | |
| .info-banner { | |
| display: flex; | |
| align-items: center; | |
| gap: 14px; | |
| padding: 18px 28px; | |
| background: var(--bg-card); | |
| border: 1px solid var(--border-color); | |
| border-radius: var(--radius-md); | |
| backdrop-filter: blur(20px); | |
| } | |
| .info-banner i { | |
| font-size: 1.3rem; | |
| color: var(--primary-light); | |
| } | |
| .info-banner span { | |
| font-size: 0.95rem; | |
| color: var(--text-secondary); | |
| font-weight: 500; | |
| } | |
| /* ========== MAIN CONTENT ========== */ | |
| .main-content { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 6px; | |
| } | |
| /* ========== MIC AREA ========== */ | |
| .mic-area { | |
| position: relative; | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| justify-content: center; | |
| padding: 6px 20px 4px; | |
| } | |
| .mic-area.no-box { | |
| background: none; | |
| border: none; | |
| border-radius: 0; | |
| backdrop-filter: none; | |
| overflow: visible; | |
| } | |
| .mic-area.no-box::before { | |
| display: none; | |
| } | |
| /* Recording Timer */ | |
| .recording-timer { | |
| display: none; | |
| align-items: center; | |
| gap: 8px; | |
| padding: 8px 18px; | |
| background: rgba(239, 68, 68, 0.1); | |
| border-radius: var(--radius-full); | |
| border: 1px solid rgba(239, 68, 68, 0.3); | |
| margin-bottom: 20px; | |
| z-index: 2; | |
| } | |
| .recording-timer.active { | |
| display: flex; | |
| } | |
| .timer-dot { | |
| width: 8px; | |
| height: 8px; | |
| background: var(--danger); | |
| border-radius: 50%; | |
| animation: blink 1s infinite; | |
| } | |
| .timer-text { | |
| font-family: "JetBrains Mono", monospace; | |
| font-size: 1rem; | |
| font-weight: 600; | |
| color: var(--danger); | |
| } | |
| /* Mic Row - inline mic + reset */ | |
| .mic-row { | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| gap: 24px; | |
| z-index: 2; | |
| } | |
| /* Reset Row - right aligned above chat */ | |
| .reset-row { | |
| display: flex; | |
| justify-content: flex-end; | |
| } | |
| /* Mic Wrapper & Glow Rings */ | |
| .mic-wrapper { | |
| position: relative; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| width: 140px; | |
| height: 140px; | |
| z-index: 2; | |
| } | |
| .mic-glow-ring { | |
| position: absolute; | |
| border-radius: 50%; | |
| border: 1.5px solid rgba(109, 92, 231, 0.2); | |
| pointer-events: none; | |
| } | |
| .mic-glow-ring.ring-1 { | |
| width: 90px; | |
| height: 90px; | |
| border-color: rgba(109, 92, 231, 0.25); | |
| box-shadow: 0 0 15px rgba(109, 92, 231, 0.08); | |
| } | |
| .mic-glow-ring.ring-2 { | |
| width: 115px; | |
| height: 115px; | |
| border-color: rgba(109, 92, 231, 0.15); | |
| box-shadow: 0 0 25px rgba(109, 92, 231, 0.05); | |
| } | |
| .mic-glow-ring.ring-3 { | |
| width: 140px; | |
| height: 140px; | |
| border-color: rgba(109, 92, 231, 0.08); | |
| } | |
| .mic-btn { | |
| width: 64px; | |
| height: 64px; | |
| border-radius: 50%; | |
| border: none; | |
| background: linear-gradient(135deg, var(--primary), var(--accent)); | |
| color: white; | |
| font-size: 1.6rem; | |
| cursor: pointer; | |
| position: relative; | |
| z-index: 3; | |
| transition: all 0.3s ease; | |
| box-shadow: | |
| 0 8px 32px var(--primary-glow), | |
| 0 0 60px rgba(109, 92, 231, 0.15); | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| } | |
| .mic-btn:hover { | |
| transform: scale(1.08); | |
| box-shadow: | |
| 0 12px 40px var(--primary-glow), | |
| 0 0 80px rgba(109, 92, 231, 0.2); | |
| } | |
| .mic-btn:active { | |
| transform: scale(0.98); | |
| } | |
| .mic-btn.recording { | |
| background: linear-gradient(135deg, var(--danger), #e55050); | |
| box-shadow: 0 8px 32px rgba(255, 107, 107, 0.4); | |
| animation: pulse-btn 1s infinite; | |
| } | |
| .mic-btn.recording ~ .mic-glow-ring { | |
| border-color: rgba(255, 107, 107, 0.2); | |
| animation: ring-pulse 1.5s ease-in-out infinite; | |
| } | |
| .mic-btn.recording i::before { | |
| content: "\f04d"; | |
| } | |
| /* Audio Visualizer */ | |
| .visualizer { | |
| display: none; | |
| align-items: flex-end; | |
| gap: 5px; | |
| height: 40px; | |
| margin-top: 20px; | |
| z-index: 2; | |
| } | |
| .visualizer.active { | |
| display: flex; | |
| } | |
| .visualizer .bar { | |
| width: 6px; | |
| background: linear-gradient(to top, var(--primary), var(--accent-light)); | |
| border-radius: 3px; | |
| animation: visualize 0.5s ease infinite; | |
| } | |
| .visualizer .bar:nth-child(1) { | |
| animation-delay: 0s; | |
| height: 15px; | |
| } | |
| .visualizer .bar:nth-child(2) { | |
| animation-delay: 0.1s; | |
| height: 25px; | |
| } | |
| .visualizer .bar:nth-child(3) { | |
| animation-delay: 0.2s; | |
| height: 35px; | |
| } | |
| .visualizer .bar:nth-child(4) { | |
| animation-delay: 0.3s; | |
| height: 20px; | |
| } | |
| .visualizer .bar:nth-child(5) { | |
| animation-delay: 0.4s; | |
| height: 30px; | |
| } | |
| /* Reset Button */ | |
| .reset-btn { | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| padding: 10px 18px; | |
| background: rgba(255, 255, 255, 0.05); | |
| border: 1px solid var(--border-color); | |
| border-radius: var(--radius-full); | |
| color: var(--text-secondary); | |
| font-size: 0.88rem; | |
| font-weight: 500; | |
| cursor: pointer; | |
| transition: all 0.25s ease; | |
| font-family: var(--font-main); | |
| z-index: 2; | |
| } | |
| .reset-btn:hover { | |
| background: rgba(255, 255, 255, 0.1); | |
| color: var(--text-white); | |
| border-color: var(--border-hover); | |
| } | |
| /* ========== CHAT MESSAGES ========== */ | |
| .chat-messages { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 8px; | |
| } | |
| .message-card { | |
| display: flex; | |
| align-items: flex-start; | |
| gap: 16px; | |
| padding: 22px 24px; | |
| background: var(--bg-card); | |
| border: 1px solid var(--border-color); | |
| border-radius: var(--radius-lg); | |
| backdrop-filter: blur(20px); | |
| transition: border-color 0.3s ease; | |
| } | |
| .message-card:hover { | |
| border-color: var(--border-hover); | |
| } | |
| .message-avatar { | |
| width: 48px; | |
| height: 48px; | |
| border-radius: 50%; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| font-size: 1.5rem; | |
| flex-shrink: 0; | |
| } | |
| .user-avatar { | |
| background: linear-gradient( | |
| 135deg, | |
| rgba(109, 92, 231, 0.2), | |
| rgba(95, 114, 243, 0.2) | |
| ); | |
| color: var(--primary-light); | |
| border: 1px solid rgba(109, 92, 231, 0.3); | |
| } | |
| .bot-avatar { | |
| background: linear-gradient( | |
| 135deg, | |
| rgba(0, 206, 201, 0.15), | |
| rgba(95, 114, 243, 0.15) | |
| ); | |
| color: var(--accent-light); | |
| border: 1px solid rgba(95, 114, 243, 0.3); | |
| } | |
| .message-body { | |
| flex: 1; | |
| min-width: 0; | |
| } | |
| .message-label { | |
| font-size: 0.88rem; | |
| font-weight: 700; | |
| color: var(--text-white); | |
| margin-bottom: 8px; | |
| letter-spacing: 0.3px; | |
| } | |
| .message-text { | |
| line-height: 1.7; | |
| font-size: 0.95rem; | |
| color: var(--text-secondary); | |
| } | |
| .message-text p { | |
| color: var(--text-secondary); | |
| } | |
| .message-text .placeholder { | |
| color: var(--text-muted); | |
| font-style: italic; | |
| } | |
| /* Message Actions (Speak / Pause) - Top Right inside bot card */ | |
| .bot-card { | |
| position: relative; | |
| } | |
| .message-actions-top { | |
| position: absolute; | |
| top: 12px; | |
| right: 14px; | |
| display: flex; | |
| gap: 6px; | |
| z-index: 2; | |
| } | |
| .action-btn-sm { | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| width: 34px; | |
| height: 34px; | |
| border-radius: 50%; | |
| border: 1px solid var(--border-color); | |
| background: rgba(255, 255, 255, 0.04); | |
| color: var(--text-secondary); | |
| font-size: 0.85rem; | |
| cursor: pointer; | |
| transition: all 0.25s ease; | |
| font-family: var(--font-main); | |
| } | |
| .action-btn-sm:hover:not(:disabled) { | |
| background: rgba(109, 92, 231, 0.15); | |
| color: var(--primary-light); | |
| border-color: var(--border-hover); | |
| } | |
| .action-btn-sm:disabled { | |
| opacity: 0.3; | |
| cursor: not-allowed; | |
| } | |
| .action-btn-sm.playing { | |
| background: var(--primary); | |
| color: white; | |
| border-color: var(--primary); | |
| } | |
| /* Legacy action-btn (keep for compatibility) */ | |
| .message-actions { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 8px; | |
| flex-shrink: 0; | |
| align-self: center; | |
| } | |
| .action-btn { | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| gap: 4px; | |
| width: 60px; | |
| padding: 12px 8px; | |
| border-radius: var(--radius-sm); | |
| border: 1px solid var(--border-color); | |
| background: rgba(255, 255, 255, 0.04); | |
| color: var(--text-secondary); | |
| font-size: 0.72rem; | |
| font-weight: 600; | |
| cursor: pointer; | |
| transition: all 0.25s ease; | |
| font-family: var(--font-main); | |
| } | |
| .action-btn i { | |
| font-size: 1.1rem; | |
| } | |
| .action-btn:hover:not(:disabled) { | |
| background: rgba(109, 92, 231, 0.15); | |
| color: var(--primary-light); | |
| border-color: var(--border-hover); | |
| } | |
| .action-btn:disabled { | |
| opacity: 0.3; | |
| cursor: not-allowed; | |
| } | |
| .action-btn.playing { | |
| background: var(--primary); | |
| color: white; | |
| border-color: var(--primary); | |
| } | |
| /* ========== SOURCE BADGES ========== */ | |
| .source-badge { | |
| display: inline-flex; | |
| align-items: center; | |
| gap: 6px; | |
| padding: 5px 12px; | |
| border-radius: var(--radius-full); | |
| font-size: 0.78rem; | |
| font-weight: 600; | |
| margin-bottom: 10px; | |
| } | |
| .source-rag { | |
| background: rgba(0, 206, 201, 0.15); | |
| color: #00cec9; | |
| border: 1px solid rgba(0, 206, 201, 0.3); | |
| } | |
| .source-gemini { | |
| background: rgba(109, 92, 231, 0.15); | |
| color: var(--primary-light); | |
| border: 1px solid rgba(109, 92, 231, 0.3); | |
| } | |
| /* ========== TRANSLATED TEXT ========== */ | |
| .translated-text { | |
| font-size: 1rem; | |
| margin-bottom: 8px; | |
| color: var(--text-white) ; | |
| } | |
| .original-text { | |
| color: var(--text-muted) ; | |
| font-size: 0.85rem; | |
| padding-top: 8px; | |
| border-top: 1px solid var(--border-color); | |
| } | |
| .original-text i { | |
| margin-right: 4px; | |
| color: var(--primary-light); | |
| } | |
| /* ========== LOADING OVERLAY ========== */ | |
| .loading-overlay { | |
| position: fixed; | |
| top: 0; | |
| left: 0; | |
| width: 100%; | |
| height: 100%; | |
| background: rgba(8, 8, 22, 0.88); | |
| display: none; | |
| align-items: center; | |
| justify-content: center; | |
| z-index: 1000; | |
| backdrop-filter: blur(12px); | |
| } | |
| .loading-overlay.active { | |
| display: flex; | |
| } | |
| .loader { | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| gap: 28px; | |
| } | |
| /* Loader Visual - Triple ring spinner */ | |
| .loader-visual { | |
| position: relative; | |
| width: 100px; | |
| height: 100px; | |
| } | |
| .loader-ring { | |
| position: absolute; | |
| border-radius: 50%; | |
| border: 2px solid transparent; | |
| } | |
| .loader-ring:nth-child(1) { | |
| width: 100px; | |
| height: 100px; | |
| top: 0; | |
| left: 0; | |
| border-top-color: var(--primary); | |
| border-right-color: var(--primary); | |
| animation: loader-spin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite; | |
| filter: drop-shadow(0 0 6px var(--primary-glow)); | |
| } | |
| .loader-ring:nth-child(2) { | |
| width: 76px; | |
| height: 76px; | |
| top: 12px; | |
| left: 12px; | |
| border-bottom-color: var(--accent); | |
| border-left-color: var(--accent); | |
| animation: loader-spin-reverse 1s cubic-bezier(0.5, 0, 0.5, 1) infinite; | |
| filter: drop-shadow(0 0 6px rgba(95, 114, 243, 0.35)); | |
| } | |
| .loader-ring:nth-child(3) { | |
| width: 52px; | |
| height: 52px; | |
| top: 24px; | |
| left: 24px; | |
| border-top-color: var(--primary-light); | |
| border-right-color: var(--accent-light); | |
| animation: loader-spin 0.8s cubic-bezier(0.5, 0, 0.5, 1) infinite; | |
| filter: drop-shadow(0 0 4px rgba(162, 155, 254, 0.3)); | |
| } | |
| .loader-core { | |
| position: absolute; | |
| width: 36px; | |
| height: 36px; | |
| top: 32px; | |
| left: 32px; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| font-size: 1.1rem; | |
| color: var(--primary-light); | |
| animation: loader-pulse 1.5s ease-in-out infinite; | |
| } | |
| /* Loader Text */ | |
| .loader-text-area { | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| gap: 10px; | |
| } | |
| .loader-text-area p { | |
| color: var(--text-white); | |
| font-size: 1.05rem; | |
| font-weight: 600; | |
| letter-spacing: 0.3px; | |
| } | |
| .loader-dots { | |
| display: flex; | |
| gap: 6px; | |
| } | |
| .loader-dots span { | |
| width: 6px; | |
| height: 6px; | |
| border-radius: 50%; | |
| background: var(--primary-light); | |
| animation: loader-dot-bounce 1.2s ease-in-out infinite; | |
| } | |
| .loader-dots span:nth-child(2) { | |
| animation-delay: 0.15s; | |
| } | |
| .loader-dots span:nth-child(3) { | |
| animation-delay: 0.3s; | |
| } | |
| @keyframes loader-spin { | |
| 0% { | |
| transform: rotate(0deg); | |
| } | |
| 100% { | |
| transform: rotate(360deg); | |
| } | |
| } | |
| @keyframes loader-spin-reverse { | |
| 0% { | |
| transform: rotate(0deg); | |
| } | |
| 100% { | |
| transform: rotate(-360deg); | |
| } | |
| } | |
| @keyframes loader-pulse { | |
| 0%, | |
| 100% { | |
| opacity: 0.6; | |
| transform: scale(1); | |
| } | |
| 50% { | |
| opacity: 1; | |
| transform: scale(1.15); | |
| } | |
| } | |
| @keyframes loader-dot-bounce { | |
| 0%, | |
| 80%, | |
| 100% { | |
| opacity: 0.3; | |
| transform: scale(0.8); | |
| } | |
| 40% { | |
| opacity: 1; | |
| transform: scale(1.2); | |
| } | |
| } | |
| /* ========== ANIMATIONS ========== */ | |
| @keyframes pulse-glow { | |
| 0%, | |
| 100% { | |
| opacity: 1; | |
| } | |
| 50% { | |
| opacity: 0.5; | |
| } | |
| } | |
| @keyframes blink { | |
| 0%, | |
| 100% { | |
| opacity: 1; | |
| } | |
| 50% { | |
| opacity: 0; | |
| } | |
| } | |
| @keyframes pulse-btn { | |
| 0%, | |
| 100% { | |
| transform: scale(1); | |
| } | |
| 50% { | |
| transform: scale(1.06); | |
| } | |
| } | |
| @keyframes ring-pulse { | |
| 0%, | |
| 100% { | |
| transform: scale(1); | |
| opacity: 0.6; | |
| } | |
| 50% { | |
| transform: scale(1.05); | |
| opacity: 1; | |
| } | |
| } | |
| @keyframes visualize { | |
| 0%, | |
| 100% { | |
| transform: scaleY(0.5); | |
| } | |
| 50% { | |
| transform: scaleY(1.3); | |
| } | |
| } | |
| @keyframes spin { | |
| to { | |
| transform: rotate(360deg); | |
| } | |
| } | |
| /* ========== RESPONSIVE ========== */ | |
| @media (max-width: 768px) { | |
| .app-wrapper { | |
| padding: 14px 16px 30px; | |
| gap: 20px; | |
| } | |
| .top-bar { | |
| padding: 12px 16px; | |
| border-radius: var(--radius-md); | |
| } | |
| .top-btn span { | |
| display: none; | |
| } | |
| .top-btn { | |
| padding: 10px 14px; | |
| } | |
| .hero.compact .hero-title { | |
| font-size: 1.6rem; | |
| } | |
| .hero-desc { | |
| font-size: 0.88rem; | |
| } | |
| .mic-btn { | |
| width: 58px; | |
| height: 58px; | |
| font-size: 1.4rem; | |
| } | |
| .mic-glow-ring.ring-1 { | |
| width: 80px; | |
| height: 80px; | |
| } | |
| .mic-glow-ring.ring-2 { | |
| width: 100px; | |
| height: 100px; | |
| } | |
| .mic-glow-ring.ring-3 { | |
| width: 120px; | |
| height: 120px; | |
| } | |
| .mic-area { | |
| padding: 24px 16px 20px; | |
| } | |
| .message-card { | |
| padding: 16px 18px; | |
| } | |
| .message-actions { | |
| flex-direction: row; | |
| } | |
| .action-btn { | |
| width: 50px; | |
| padding: 10px 6px; | |
| font-size: 0.68rem; | |
| } | |
| } | |
| @media (max-width: 480px) { | |
| .hero.compact .hero-title { | |
| font-size: 1.4rem; | |
| } | |
| .mic-btn { | |
| width: 68px; | |
| height: 68px; | |
| font-size: 1.7rem; | |
| } | |
| .status-indicator { | |
| padding: 6px 14px; | |
| } | |
| .status-text { | |
| font-size: 0.82rem; | |
| } | |
| .info-banner { | |
| padding: 14px 18px; | |
| } | |
| } | |
| /* ========== SCROLLBAR ========== */ | |
| ::-webkit-scrollbar { | |
| width: 6px; | |
| } | |
| ::-webkit-scrollbar-track { | |
| background: transparent; | |
| } | |
| ::-webkit-scrollbar-thumb { | |
| background: rgba(109, 92, 231, 0.3); | |
| border-radius: 3px; | |
| } | |
| ::-webkit-scrollbar-thumb:hover { | |
| background: rgba(109, 92, 231, 0.5); | |
| } | |
| ::selection { | |
| background: var(--primary); | |
| color: white; | |
| } | |