Spaces:
Running
Running
| :root { | |
| --pollen-coral: #FF6B35; | |
| --pollen-coral-light: #FF8A5C; | |
| --pollen-coral-dark: #E55A2B; | |
| --pollen-dark: #1A1A2E; | |
| --pollen-darker: #0F0F1A; | |
| --pollen-card: #16213E; | |
| --pollen-card-light: #1E2A4A; | |
| --text-primary: #FFFFFF; | |
| --text-secondary: #A0AEC0; | |
| --text-muted: #718096; | |
| --success: #48BB78; | |
| --warning: #ECC94B; | |
| --danger: #F56565; | |
| } | |
| * { box-sizing: border-box; margin: 0; padding: 0; } | |
| body { | |
| font-family: 'Inter', system-ui, -apple-system, sans-serif; | |
| background: var(--pollen-darker); | |
| color: var(--text-primary); | |
| min-height: 100vh; | |
| min-height: 100dvh; | |
| overflow-x: hidden; | |
| } | |
| /* Header */ | |
| .header { | |
| background: rgba(0,0,0,0.4); | |
| backdrop-filter: blur(10px); | |
| padding: 8px 16px; | |
| display: flex; | |
| align-items: center; | |
| justify-content: space-between; | |
| border-bottom: 1px solid rgba(255,107,53,0.2); | |
| } | |
| .logo { | |
| display: flex; | |
| align-items: center; | |
| gap: 10px; | |
| } | |
| .logo img { | |
| width: 32px; | |
| height: 32px; | |
| border-radius: 6px; | |
| } | |
| .logo-text { | |
| font-weight: 700; | |
| font-size: 1em; | |
| color: var(--pollen-coral); | |
| } | |
| .logo-text span { | |
| color: var(--text-secondary); | |
| font-weight: 400; | |
| font-size: 0.85em; | |
| } | |
| .user-section { | |
| display: flex; | |
| align-items: center; | |
| gap: 8px; | |
| } | |
| .user-badge { | |
| background: var(--pollen-card); | |
| padding: 4px 12px; | |
| border-radius: 16px; | |
| font-size: 0.8em; | |
| } | |
| .btn-logout { | |
| background: transparent; | |
| border: 1px solid var(--text-muted); | |
| color: var(--text-secondary); | |
| padding: 4px 12px; | |
| border-radius: 12px; | |
| cursor: pointer; | |
| font-size: 0.75em; | |
| } | |
| /* Main Layout - Single Column */ | |
| .app-container { | |
| display: flex; | |
| flex-direction: column; | |
| padding: 8px; | |
| gap: 8px; | |
| max-width: 800px; | |
| margin: 0 auto; | |
| } | |
| /* Video Section */ | |
| .video-container { | |
| position: relative; | |
| background: #000; | |
| border-radius: 12px; | |
| overflow: hidden; | |
| aspect-ratio: 16/9; | |
| width: 100%; | |
| } | |
| video { | |
| width: 100%; | |
| height: 100%; | |
| object-fit: cover; | |
| background: linear-gradient(135deg, #0a0a15 0%, #1a1a2e 100%); | |
| } | |
| .video-overlay-top { | |
| position: absolute; | |
| top: 0; | |
| left: 0; | |
| right: 0; | |
| padding: 12px; | |
| background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, transparent 100%); | |
| display: flex; | |
| justify-content: space-between; | |
| align-items: flex-start; | |
| } | |
| .connection-badge { | |
| display: flex; | |
| align-items: center; | |
| gap: 6px; | |
| background: rgba(0,0,0,0.5); | |
| padding: 6px 12px; | |
| border-radius: 16px; | |
| font-size: 0.8em; | |
| } | |
| .status-indicator { | |
| width: 8px; | |
| height: 8px; | |
| border-radius: 50%; | |
| background: var(--danger); | |
| } | |
| .status-indicator.connected { | |
| background: var(--success); | |
| box-shadow: 0 0 8px var(--success); | |
| } | |
| .status-indicator.connecting { | |
| background: var(--warning); | |
| animation: blink 0.8s infinite; | |
| } | |
| @keyframes blink { | |
| 0%, 100% { opacity: 1; } | |
| 50% { opacity: 0.4; } | |
| } | |
| .robot-name { | |
| background: rgba(0,0,0,0.5); | |
| padding: 6px 12px; | |
| border-radius: 16px; | |
| font-size: 0.8em; | |
| font-weight: 500; | |
| } | |
| .video-overlay-bottom { | |
| position: absolute; | |
| bottom: 0; | |
| left: 0; | |
| right: 0; | |
| padding: 12px; | |
| background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%); | |
| } | |
| .video-controls { | |
| display: flex; | |
| justify-content: center; | |
| gap: 8px; | |
| flex-wrap: wrap; | |
| } | |
| .btn { | |
| padding: 8px 16px; | |
| border: none; | |
| border-radius: 8px; | |
| font-weight: 600; | |
| font-size: 0.85em; | |
| cursor: pointer; | |
| transition: all 0.2s; | |
| } | |
| .btn-primary { | |
| background: var(--pollen-coral); | |
| color: white; | |
| } | |
| .btn-secondary { | |
| background: rgba(255,255,255,0.15); | |
| color: white; | |
| } | |
| .btn-danger { | |
| background: var(--danger); | |
| color: white; | |
| } | |
| .btn:disabled { | |
| opacity: 0.4; | |
| cursor: not-allowed; | |
| } | |
| .btn-mute { | |
| background: rgba(255,255,255,0.15); | |
| color: white; | |
| display: flex; | |
| align-items: center; | |
| gap: 6px; | |
| } | |
| .btn-mute.muted { | |
| background: var(--danger); | |
| } | |
| .btn-mute svg { | |
| width: 16px; | |
| height: 16px; | |
| } | |
| /* Panels */ | |
| .panel { | |
| background: var(--pollen-card); | |
| border-radius: 12px; | |
| overflow: hidden; | |
| } | |
| .panel-header { | |
| padding: 10px 14px; | |
| background: rgba(0,0,0,0.2); | |
| font-weight: 600; | |
| font-size: 0.85em; | |
| color: var(--pollen-coral); | |
| } | |
| .panel-content { | |
| padding: 12px; | |
| } | |
| /* Sliders */ | |
| .slider-row { | |
| display: flex; | |
| gap: 12px; | |
| align-items: center; | |
| margin-bottom: 12px; | |
| } | |
| .slider-row:last-child { | |
| margin-bottom: 0; | |
| } | |
| .slider-label { | |
| font-size: 0.8em; | |
| color: var(--text-secondary); | |
| min-width: 80px; | |
| } | |
| .slider { | |
| flex: 1; | |
| height: 8px; | |
| -webkit-appearance: none; | |
| background: var(--pollen-darker); | |
| border-radius: 4px; | |
| } | |
| .slider::-webkit-slider-thumb { | |
| -webkit-appearance: none; | |
| width: 20px; | |
| height: 20px; | |
| background: var(--pollen-coral); | |
| border-radius: 50%; | |
| cursor: pointer; | |
| } | |
| .slider-value { | |
| font-family: monospace; | |
| font-size: 0.8em; | |
| color: var(--pollen-coral); | |
| min-width: 45px; | |
| text-align: right; | |
| } | |
| /* Sound */ | |
| .sound-row { | |
| display: flex; | |
| gap: 8px; | |
| margin-bottom: 10px; | |
| } | |
| .sound-input { | |
| flex: 1; | |
| padding: 8px 10px; | |
| background: var(--pollen-darker); | |
| border: 1px solid var(--pollen-card-light); | |
| border-radius: 6px; | |
| color: var(--text-primary); | |
| font-size: 0.85em; | |
| } | |
| .sound-presets { | |
| display: flex; | |
| flex-wrap: wrap; | |
| gap: 6px; | |
| margin-bottom: 12px; | |
| } | |
| .preset-chip { | |
| padding: 4px 10px; | |
| background: var(--pollen-darker); | |
| border: 1px solid var(--pollen-card-light); | |
| border-radius: 12px; | |
| color: var(--text-secondary); | |
| font-size: 0.7em; | |
| cursor: pointer; | |
| } | |
| .preset-chip:hover { | |
| border-color: var(--pollen-coral); | |
| color: var(--pollen-coral); | |
| } | |
| /* Robot Selector */ | |
| .robot-list { | |
| display: flex; | |
| flex-direction: column; | |
| gap: 8px; | |
| } | |
| .robot-card { | |
| padding: 10px 14px; | |
| background: var(--pollen-darker); | |
| border: 2px solid transparent; | |
| border-radius: 8px; | |
| cursor: pointer; | |
| } | |
| .robot-card:hover { | |
| background: var(--pollen-card-light); | |
| } | |
| .robot-card.selected { | |
| border-color: var(--pollen-coral); | |
| } | |
| .robot-card .name { | |
| font-weight: 600; | |
| font-size: 0.9em; | |
| } | |
| .robot-card .id { | |
| font-size: 0.75em; | |
| color: var(--text-muted); | |
| font-family: monospace; | |
| } | |
| /* Desktop Layout - Side by Side */ | |
| @media (min-width: 900px) { | |
| .app-container { | |
| display: grid; | |
| grid-template-columns: 1fr 1fr; | |
| grid-template-rows: auto auto auto auto; | |
| max-width: 1200px; | |
| gap: 12px; | |
| } | |
| .video-container { | |
| grid-column: 1; | |
| grid-row: 1 / 3; | |
| } | |
| #robotSelector { | |
| grid-column: 1; | |
| grid-row: 3; | |
| } | |
| .panel:nth-of-type(1) { /* Head Control */ | |
| grid-column: 2; | |
| grid-row: 1; | |
| } | |
| .panel:nth-of-type(2) { /* Antennas */ | |
| grid-column: 2; | |
| grid-row: 2; | |
| } | |
| .panel:nth-of-type(3) { /* Sound */ | |
| grid-column: 2; | |
| grid-row: 3; | |
| } | |
| } | |
| /* Login View */ | |
| .login-view { | |
| min-height: 100vh; | |
| min-height: 100dvh; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| padding: 20px; | |
| } | |
| .login-card { | |
| background: var(--pollen-card); | |
| padding: 40px; | |
| border-radius: 16px; | |
| text-align: center; | |
| max-width: 380px; | |
| } | |
| .login-logo { | |
| width: 72px; | |
| height: 72px; | |
| margin-bottom: 20px; | |
| border-radius: 12px; | |
| } | |
| .login-card h2 { | |
| color: var(--pollen-coral); | |
| margin-bottom: 10px; | |
| font-size: 1.5em; | |
| } | |
| .login-card p { | |
| color: var(--text-secondary); | |
| margin-bottom: 24px; | |
| font-size: 0.9em; | |
| line-height: 1.5; | |
| } | |
| .btn-hf { | |
| background: #FFD21E; | |
| color: #000; | |
| border: none; | |
| padding: 12px 28px; | |
| border-radius: 8px; | |
| font-size: 0.95em; | |
| font-weight: 700; | |
| cursor: pointer; | |
| display: inline-flex; | |
| align-items: center; | |
| gap: 8px; | |
| } | |
| .hidden { display: none ; } | |