/* Layout */ body { display: flex; overflow: hidden; } .sidebar { width: var(--sidebar-width); height: 100vh; background: var(--bg-secondary); border-right: 1px solid var(--border); display: flex; flex-direction: column; flex-shrink: 0; position: fixed; left: 0; top: 0; z-index: 100; } .sidebar-header { padding: 20px 16px; border-bottom: 1px solid var(--border); } .logo { display: flex; align-items: center; gap: 10px; color: var(--accent); font-weight: 700; font-size: 16px; } .nav-links { flex: 1; padding: 12px 8px; } .nav-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius); color: var(--text-secondary); transition: all var(--transition); margin-bottom: 2px; } .nav-link:hover { background: var(--bg-card); color: var(--text-primary); } .nav-link.active { background: var(--accent); color: white; } .sidebar-footer { padding: 16px; border-top: 1px solid var(--border); } .connection-status { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-muted); } .status-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; } .status-dot.online { background: var(--success); box-shadow: 0 0 6px var(--success); } .status-dot.offline { background: var(--danger); } .status-dot.provisioning { background: var(--warning); animation: pulse 2s infinite; } @keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } } .content { margin-left: var(--sidebar-width); flex: 1; height: 100vh; overflow-y: auto; padding: 24px 32px; } /* Page Header */ .page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; } .page-header h1 { font-size: 24px; font-weight: 600; } .page-header .subtitle { color: var(--text-secondary); font-size: 13px; margin-top: 2px; } /* Buttons */ .btn { padding: 8px 16px; border-radius: var(--radius); font-weight: 500; font-size: 13px; transition: all var(--transition); display: inline-flex; align-items: center; gap: 6px; } .btn-primary { background: var(--accent); color: white; } .btn-primary:hover { background: var(--accent-hover); } .btn-secondary { background: var(--bg-card); border: 1px solid var(--border); color: var(--text-primary); } .btn-secondary:hover { background: var(--bg-card-hover); } .btn-danger { background: var(--danger-dim); color: #fca5a5; } .btn-danger:hover { background: var(--danger); color: white; } .btn-sm { padding: 5px 10px; font-size: 12px; } .btn-icon { padding: 6px; border-radius: var(--radius); color: var(--text-secondary); transition: all var(--transition); } .btn-icon:hover { background: var(--bg-card); color: var(--text-primary); } /* Device Grid */ .device-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; } .device-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: all var(--transition); cursor: pointer; } .device-card:hover { border-color: var(--accent); box-shadow: var(--shadow); transform: translateY(-2px); } .device-card-preview { aspect-ratio: 16/9; background: var(--bg-primary); position: relative; overflow: hidden; } .device-card-preview img { width: 100%; height: 100%; object-fit: cover; } .device-card-preview .no-preview { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-muted); gap: 8px; } .device-card-preview .no-preview svg { opacity: 0.3; } .device-card-status { position: absolute; top: 10px; right: 10px; display: flex; align-items: center; gap: 6px; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); padding: 4px 10px; border-radius: 20px; font-size: 11px; font-weight: 500; } .device-card-body { padding: 14px 16px; } .device-card-name { font-weight: 600; font-size: 15px; margin-bottom: 6px; } .device-card-meta { display: flex; align-items: center; gap: 12px; color: var(--text-secondary); font-size: 12px; } .device-card-meta .meta-item { display: flex; align-items: center; gap: 4px; } /* Device Detail */ .device-detail { max-width: 1200px; } .back-link { display: inline-flex; align-items: center; gap: 6px; color: var(--text-secondary); margin-bottom: 16px; font-size: 13px; transition: color var(--transition); } .back-link:hover { color: var(--text-primary); } .device-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; } .device-header-left { display: flex; align-items: center; gap: 16px; } .device-header-left h1 { font-size: 22px; } .device-status-badge { padding: 4px 12px; border-radius: 20px; font-size: 12px; font-weight: 500; } .device-status-badge.online { background: var(--success-dim); color: var(--success); } .device-status-badge.offline { background: var(--danger-dim); color: #fca5a5; } .device-status-badge.provisioning { background: var(--warning-dim); color: var(--warning); } .tabs { display: flex; gap: 0; border-bottom: 1px solid var(--border); margin-bottom: 20px; } .tab { padding: 10px 20px; color: var(--text-secondary); font-size: 13px; font-weight: 500; border-bottom: 2px solid transparent; transition: all var(--transition); cursor: pointer; } .tab:hover { color: var(--text-primary); } .tab.active { color: var(--accent); border-bottom-color: var(--accent); } .tab-content { display: none; } .tab-content.active { display: block; } /* Screenshot Preview */ .screenshot-container { background: var(--bg-primary); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16/9; position: relative; margin-bottom: 20px; } .screenshot-container img { width: 100%; height: 100%; object-fit: contain; } .screenshot-container .no-screenshot { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-muted); gap: 8px; } /* Remote Control */ .remote-container { display: flex; gap: 20px; } .remote-screen { flex: 1; background: #000; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; position: relative; cursor: crosshair; } .remote-screen canvas { width: 100%; display: block; } .remote-controls { width: 120px; display: flex; flex-direction: column; gap: 8px; } .remote-controls .btn { width: 100%; justify-content: center; } /* Playlist */ .playlist-container { display: flex; flex-direction: column; gap: 8px; } .playlist-item { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius); transition: all var(--transition); } .playlist-item:hover { border-color: var(--border-light); } .playlist-item-thumb { width: 80px; height: 45px; border-radius: 4px; object-fit: cover; background: var(--bg-primary); flex-shrink: 0; } .playlist-item-info { flex: 1; min-width: 0; } .playlist-item-name { font-weight: 500; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .playlist-item-meta { font-size: 11px; color: var(--text-secondary); } .playlist-item-actions { display: flex; gap: 4px; } /* Info Grid */ .info-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; } .info-card { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; } .info-card-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-muted); margin-bottom: 6px; } .info-card-value { font-size: 20px; font-weight: 600; } .info-card-value.small { font-size: 14px; } /* Progress bar */ .progress-bar { height: 6px; background: var(--bg-primary); border-radius: 3px; overflow: hidden; margin-top: 8px; } .progress-bar-fill { height: 100%; border-radius: 3px; transition: width var(--transition); } .progress-bar-fill.success { background: var(--success); } .progress-bar-fill.warning { background: var(--warning); } .progress-bar-fill.danger { background: var(--danger); } /* Content Library */ .content-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; } .content-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: all var(--transition); } .content-item:hover { border-color: var(--border-light); } .content-item-preview { aspect-ratio: 16/9; background: var(--bg-primary); overflow: hidden; display: flex; align-items: center; justify-content: center; } .content-item-preview img { width: 100%; height: 100%; object-fit: cover; } .content-item-preview .video-icon { color: var(--text-muted); } .content-item-body { padding: 10px 12px; } .content-item-name { font-size: 12px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; } .content-item-size { font-size: 11px; color: var(--text-muted); } .content-item-actions { display: flex; justify-content: flex-end; padding: 0 12px 10px; gap: 4px; } /* Upload Area */ .upload-area { border: 2px dashed var(--border); border-radius: var(--radius-lg); padding: 48px 24px; text-align: center; cursor: pointer; transition: all var(--transition); margin-bottom: 24px; } .upload-area:hover, .upload-area.dragover { border-color: var(--accent); background: rgba(59, 130, 246, 0.05); } .upload-area svg { margin: 0 auto 12px; color: var(--text-muted); } .upload-area p { color: var(--text-secondary); font-size: 14px; } .upload-area .upload-hint { font-size: 12px; color: var(--text-muted); margin-top: 4px; } /* Modal */ .modal-overlay { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 1000; } .modal { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-lg); width: 440px; max-width: 90vw; box-shadow: var(--shadow); } .modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); } .modal-header h3 { font-size: 16px; font-weight: 600; } .modal-body { padding: 20px; } .modal-description { color: var(--text-secondary); font-size: 13px; margin-bottom: 16px; } .modal-footer { display: flex; justify-content: flex-end; gap: 8px; padding: 16px 20px; border-top: 1px solid var(--border); } /* Form Elements */ .form-group { margin-bottom: 16px; } .form-group label { display: block; font-size: 12px; font-weight: 500; color: var(--text-secondary); margin-bottom: 6px; } .input { width: 100%; padding: 8px 12px; background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-primary); transition: border-color var(--transition); } .input:focus { outline: none; border-color: var(--accent); } .pairing-input { width: 100%; padding: 12px 16px; background: var(--bg-input); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-primary); font-size: 28px; font-weight: 700; text-align: center; letter-spacing: 8px; font-family: 'Courier New', monospace; } .pairing-input:focus { outline: none; border-color: var(--accent); } /* Toast */ .toast-container { position: fixed; bottom: 24px; right: 24px; display: flex; flex-direction: column; gap: 8px; z-index: 2000; } .toast { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; min-width: 280px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 10px; animation: slideIn 0.3s ease; } .toast.success { border-left: 3px solid var(--success); } .toast.error { border-left: 3px solid var(--danger); } .toast.info { border-left: 3px solid var(--accent); } @keyframes slideIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } } /* Empty State */ .empty-state { text-align: center; padding: 60px 24px; color: var(--text-muted); } .empty-state svg { margin: 0 auto 16px; opacity: 0.3; } .empty-state h3 { color: var(--text-secondary); margin-bottom: 8px; } .empty-state p { font-size: 13px; max-width: 360px; margin: 0 auto; } /* Settings */ .settings-section { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; margin-bottom: 20px; } .settings-section h3 { font-size: 16px; margin-bottom: 16px; } /* Assign Modal */ .assign-content-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; max-height: 400px; overflow-y: auto; } .assign-content-item { background: var(--bg-input); border: 2px solid var(--border); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: all var(--transition); } .assign-content-item:hover { border-color: var(--accent); } .assign-content-item.selected { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); } .assign-content-item img { width: 100%; aspect-ratio: 16/9; object-fit: cover; } .assign-content-item-name { padding: 6px 8px; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } /* Scrollbar */ ::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-track { background: transparent; } ::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; } ::-webkit-scrollbar-thumb:hover { background: var(--border-light); } /* Upload progress */ .upload-progress { margin-top: 16px; } .upload-progress-bar { height: 4px; background: var(--bg-primary); border-radius: 2px; overflow: hidden; } .upload-progress-fill { height: 100%; background: var(--accent); border-radius: 2px; transition: width 0.3s ease; } /* Help tooltips */ .help-tip { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; background: var(--bg-card); border: 1px solid var(--border); color: var(--text-muted); font-size: 11px; font-weight: 600; cursor: help; position: relative; margin-left: 6px; flex-shrink: 0; } .help-tip:hover::after { content: attr(data-tip); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 12px; font-size: 12px; font-weight: 400; color: var(--text-secondary); white-space: normal; width: 250px; z-index: 1000; box-shadow: var(--shadow); margin-bottom: 6px; line-height: 1.4; } /* Mobile hamburger toggle */ .mobile-menu-btn { display: none; position: fixed; top: 12px; left: 12px; z-index: 200; width: 40px; height: 40px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius); align-items: center; justify-content: center; color: var(--text-primary); cursor: pointer; } /* Responsive */ @media (max-width: 768px) { .mobile-menu-btn { display: flex; } .sidebar { transform: translateX(-100%); transition: transform 0.3s ease; z-index: 150; } .sidebar.open { transform: translateX(0); } .sidebar-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 140; } .sidebar-backdrop.open { display: block; } .content { margin-left: 0; padding: 16px; padding-top: 60px; } .page-header { flex-direction: column; gap: 12px; align-items: flex-start; } .device-grid { grid-template-columns: 1fr; } .content-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); } .info-grid { grid-template-columns: 1fr 1fr; } .remote-container { flex-direction: column; } .remote-controls { width: 100%; flex-direction: row; flex-wrap: wrap; } .modal { width: 95vw; max-height: 90vh; overflow-y: auto; } .tabs { overflow-x: auto; } .tab { white-space: nowrap; } }