* { margin: 0; padding: 0; box-sizing: border-box; } html, body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; width: 360px !important; min-width: 360px !important; max-width: 360px !important; min-height: 480px; background: #f8fafc; color: #1e293b; overflow-x: hidden; line-height: 1.5; } .app { display: flex; flex-direction: column; min-height: 100vh; } /* Header */ .header { background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%); color: white; padding: 16px 20px; box-shadow: 0 2px 10px rgba(99, 102, 241, 0.2); } .header-content { display: flex; justify-content: space-between; align-items: center; } .logo { display: flex; align-items: center; gap: 8px; } .logo-icon { font-size: 20px; } .logo-text { font-size: 16px; font-weight: 600; } /* Power Toggle */ .power-toggle { position: relative; } .toggle-input { display: none; } .toggle-label { display: block; width: 48px; height: 28px; background: rgba(255, 255, 255, 0.2); border-radius: 14px; cursor: pointer; transition: all 0.3s ease; position: relative; } .toggle-slider { position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; background: white; border-radius: 50%; transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); } .toggle-input:checked + .toggle-label { background: rgba(34, 197, 94, 0.3); } .toggle-input:checked + .toggle-label .toggle-slider { transform: translateX(20px); background: #22c55e; } /* Content */ .content { flex: 1; padding: 20px; display: flex; flex-direction: column; gap: 16px; } /* Cards */ .status-card, .control-card { background: white; border-radius: 12px; padding: 16px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); border: 1px solid #e2e8f0; transition: all 0.2s ease; } .control-card:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); } /* Status Card */ .status-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; } .status-icon { font-size: 18px; } .status-info { flex: 1; } .status-title { font-weight: 600; font-size: 14px; color: #1e293b; } .status-subtitle { font-size: 12px; color: #64748b; } .icon-btn { background: #f1f5f9; border: none; border-radius: 8px; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s ease; font-size: 14px; } .icon-btn:hover { background: #e2e8f0; transform: rotate(180deg); } .video-indicator { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #f8fafc; border-radius: 8px; font-size: 12px; color: #64748b; } .indicator-dot { width: 8px; height: 8px; border-radius: 50%; background: #cbd5e1; transition: all 0.3s ease; } .indicator-dot.active { background: #22c55e; animation: pulse 2s infinite; } @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } } /* Card Headers */ .card-header { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; font-weight: 600; font-size: 14px; } .card-header.clickable { cursor: pointer; padding: 4px 0; transition: all 0.2s ease; } .card-header.clickable:hover { color: #6366f1; } .card-icon { font-size: 16px; } .card-title { flex: 1; } .expand-icon { font-size: 12px; transition: transform 0.3s ease; } .card-header.collapsed .expand-icon { transform: rotate(-90deg); } .card-content { max-height: 300px; overflow: hidden; transition: max-height 0.3s ease; } .card-content.collapsed { max-height: 0; } /* Speed Display */ .current-speed { text-align: center; margin-bottom: 20px; } .speed-value { font-size: 32px; font-weight: 700; color: #6366f1; } .speed-unit { font-size: 18px; color: #64748b; margin-left: 4px; } /* Speed Slider */ .speed-slider-container { margin-bottom: 20px; } .speed-slider { width: 100%; height: 6px; border-radius: 3px; background: #e2e8f0; outline: none; -webkit-appearance: none; appearance: none; cursor: pointer; } .speed-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #6366f1; cursor: pointer; box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3); transition: all 0.2s ease; } .speed-slider::-webkit-slider-thumb:hover { transform: scale(1.1); box-shadow: 0 4px 12px rgba(99, 102, 241, 0.4); } .speed-slider::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: #6366f1; cursor: pointer; border: none; box-shadow: 0 2px 6px rgba(99, 102, 241, 0.3); } .slider-labels { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11px; color: #64748b; } /* Quick Speed Buttons */ .quick-speeds { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; } .speed-preset { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 8px 4px; font-size: 12px; font-weight: 500; cursor: pointer; transition: all 0.2s ease; color: #475569; } .speed-preset:hover { background: #e2e8f0; border-color: #cbd5e1; } .speed-preset.active { background: #6366f1; color: white; border-color: #6366f1; box-shadow: 0 2px 4px rgba(99, 102, 241, 0.2); } /* Main Controls */ .main-controls { display: flex; justify-content: center; align-items: center; gap: 12px; margin-bottom: 16px; } .control-btn { border: none; border-radius: 12px; cursor: pointer; transition: all 0.2s ease; display: flex; flex-direction: column; align-items: center; gap: 4px; font-weight: 500; } .control-btn.primary { background: #6366f1; color: white; width: 56px; height: 56px; box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3); } .control-btn.primary:hover { background: #5b5bd6; transform: translateY(-2px); box-shadow: 0 6px 16px rgba(99, 102, 241, 0.4); } .control-btn.secondary { background: #f8fafc; color: #475569; width: 48px; height: 48px; border: 1px solid #e2e8f0; } .control-btn.secondary:hover { background: #e2e8f0; border-color: #cbd5e1; } .control-icon { font-size: 20px; } .control-text { font-size: 10px; } /* Skip Options */ .skip-options { display: flex; justify-content: center; gap: 8px; } .skip-btn { background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 6px; padding: 6px 12px; font-size: 11px; font-weight: 500; cursor: pointer; transition: all 0.2s ease; color: #475569; } .skip-btn:hover { background: #e2e8f0; border-color: #cbd5e1; } /* Settings */ .setting-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid #f1f5f9; } .setting-row:last-child { border-bottom: none; } .setting-info { flex: 1; } .setting-label { font-weight: 500; font-size: 14px; color: #1e293b; } .setting-desc { font-size: 12px; color: #64748b; } .setting-control { margin-left: 16px; } .setting-toggle { display: none; } .toggle-label.mini { width: 36px; height: 20px; background: #e2e8f0; border-radius: 10px; cursor: pointer; transition: all 0.3s ease; position: relative; display: block; } .toggle-label.mini .toggle-slider { width: 16px; height: 16px; top: 2px; left: 2px; background: white; border-radius: 50%; transition: all 0.3s ease; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); } .setting-toggle:checked + .toggle-label.mini { background: #6366f1; } .setting-toggle:checked + .toggle-label.mini .toggle-slider { transform: translateX(16px); } /* Keyboard Shortcuts */ .shortcuts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .shortcut-item { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px; background: #f8fafc; border-radius: 8px; font-size: 11px; } kbd { background: #e2e8f0; border: 1px solid #cbd5e1; border-radius: 4px; padding: 2px 6px; font-size: 10px; font-family: monospace; color: #374151; margin: 0 2px; } /* Footer */ .footer { background: white; border-top: 1px solid #e2e8f0; padding: 12px 20px; display: flex; justify-content: space-between; align-items: center; } .footer-btn { background: none; border: none; color: #6366f1; font-size: 12px; cursor: pointer; padding: 4px 8px; border-radius: 4px; transition: all 0.2s ease; } .footer-btn:hover { background: #f1f5f9; } .footer-info { font-size: 11px; color: #64748b; } /* Toast Notifications */ .toast-container { position: fixed; top: 10px; right: 10px; z-index: 1000; display: flex; flex-direction: column; gap: 8px; } .toast { background: #1e293b; color: white; padding: 12px 16px; border-radius: 8px; font-size: 14px; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); transform: translateX(100%); opacity: 0; transition: all 0.3s ease; } .toast.show { transform: translateX(0); opacity: 1; } .toast.success { background: #22c55e; } .toast.error { background: #ef4444; } /* Animations */ @keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } } .control-card { animation: fadeIn 0.3s ease; } /* Responsive adjustments */ @media (max-height: 600px) { .content { padding: 16px; gap: 12px; } .card-content { max-height: 200px; } } /* Custom scrollbar */ ::-webkit-scrollbar { width: 4px; } ::-webkit-scrollbar-track { background: #f1f5f9; } ::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 2px; } ::-webkit-scrollbar-thumb:hover { background: #94a3b8; }