/* NextNVR v0.1.0 — Minimal responsive CSS */ :root { --bg: #0d1117; --surface: #161b22; --border: #30363d; --text: #c9d1d9; --text-muted: #8b949e; --accent: #58a6ff; --green: #3fb950; --red: #f85149; --orange: #d2991d; --radius: 8px; } *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; } body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--text); min-height: 100vh; } /* ── Top Bar ── */ .topbar { display: flex; align-items: center; gap: 16px; padding: 10px 20px; background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; } .topbar h1 { font-size: 18px; font-weight: 600; } .tab { background: none; border: none; color: var(--text-muted); padding: 6px 14px; cursor: pointer; border-radius: var(--radius); font-size: 14px; transition: all .15s; } .tab:hover { color: var(--text); background: var(--border); } .tab.active { color: #fff; background: var(--accent); } .status { margin-left: auto; font-size: 22px; } .status.online { color: var(--green); } .status.offline { color: var(--red); } /* ── Tab Panels ── */ .tab-panel { display: none; padding: 16px; } .tab-panel.active { display: block; } /* ── Live Grid ── */ .grid-4x2 { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 1fr); gap: 8px; height: calc(100vh - 70px); } .grid-tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; transition: border-color .2s, transform .1s; aspect-ratio: 16/9; } .grid-tile:hover { border-color: var(--accent); transform: scale(1.01); } .grid-tile.offline { opacity: 0.5; cursor: default; } .tile-label { position: absolute; bottom: 6px; left: 8px; font-size: 11px; color: #fff; background: rgba(0,0,0,.6); padding: 2px 8px; border-radius: 4px; } .tile-status { position: absolute; top: 6px; right: 8px; width: 8px; height: 8px; border-radius: 50%; } .tile-status.online { background: var(--green); } .tile-status.offline { background: var(--red); } .tile-placeholder { font-size: 14px; color: var(--text-muted); text-align: center; padding: 10px; } /* ── Focus Overlay ── */ .focus-overlay { position: fixed; inset: 0; z-index: 200; background: #000; display: flex; flex-direction: column; } .focus-overlay.hidden { display: none; } .focus-bar { display: flex; justify-content: flex-end; align-items: center; padding: 8px 16px; background: rgba(0,0,0,.85); z-index: 10; } .focus-bar button { background: rgba(255,255,255,.15); border: none; color: #fff; padding: 10px 24px; border-radius: 6px; cursor: pointer; font-size: 16px; } .focus-bar button:hover { background: rgba(255,255,255,.25); } .focus-frame { flex: 1; width: 100%; border: none; } /* ── Playback ── */ .playback-controls { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; } .playback-controls select, .playback-controls input { padding: 8px 12px; background: var(--surface); border: 1px solid var(--border); color: var(--text); border-radius: var(--radius); font-size: 14px; } .preset-group { display: flex; gap: 4px; } .preset { background: var(--surface); border: 1px solid var(--border); color: var(--text-muted); padding: 7px 12px; border-radius: var(--radius); cursor: pointer; font-size: 13px; transition: all .15s; } .preset:hover { color: var(--text); border-color: var(--accent); } .preset.active { background: var(--accent); color: #fff; border-color: var(--accent); } #pb-custom-range.hidden { display: none !important; } .clip-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; } .clip-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; cursor: pointer; transition: border-color .15s; } .clip-card:hover { border-color: var(--accent); } .clip-card .clip-time { font-size: 12px; color: var(--text-muted); } .clip-card .clip-size { font-size: 11px; color: var(--text-muted); } .clip-thumb { width: 100%; height: 100px; object-fit: cover; border-radius: 4px; margin-bottom: 6px; background: var(--bg); } .clip-player { position: fixed; inset: 0; z-index: 200; background: #000; display: flex; align-items: center; justify-content: center; flex-direction: column; } .clip-player.hidden { display: none; } .clip-player video { max-width: 90%; max-height: 80%; } .clip-player button { margin-top: 12px; } /* ── Settings ── */ .settings-toolbar { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; } #camera-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); gap: 12px; } .camera-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; } .camera-card h3 { font-size: 15px; margin-bottom: 8px; } .camera-card label { display: block; font-size: 12px; color: var(--text-muted); margin-top: 8px; } .camera-card input, .camera-card textarea, .camera-card select { width: 100%; padding: 6px 10px; margin-top: 2px; background: var(--bg); border: 1px solid var(--border); color: var(--text); border-radius: 4px; font-size: 13px; } .camera-card textarea { resize: vertical; min-height: 50px; } .camera-card .row { display: flex; gap: 8px; align-items: center; margin-top: 8px; } .camera-card .row label { margin-top: 0; } .btn-primary { background: var(--accent); color: #fff; border: none; padding: 8px 20px; border-radius: var(--radius); cursor: pointer; font-size: 14px; } .btn-success { background: var(--green); color: #fff; border: none; padding: 8px 20px; border-radius: var(--radius); cursor: pointer; font-size: 14px; } .btn-primary:hover, .btn-success:hover { opacity: .9; } .scan-results { margin-top: 12px; padding: 12px; background: var(--surface); border-radius: var(--radius); } /* ── Mobile ── */ @media (max-width: 768px) { /* Top bar: compact */ .topbar { padding: 8px 10px; gap: 8px; } .topbar h1 { font-size: 14px; } .tab { padding: 5px 10px; font-size: 12px; } /* Grid: 2 columns, auto-height rows */ .grid-4x2 { grid-template-columns: repeat(2, 1fr); grid-auto-rows: minmax(120px, auto); gap: 4px; height: auto; } .grid-tile { aspect-ratio: auto; min-height: 120px; } .tile-label { font-size: 10px; bottom: 3px; left: 4px; padding: 1px 5px; } /* Settings: full-width cards */ #camera-cards { grid-template-columns: 1fr; } .settings-toolbar { flex-direction: column; gap: 8px; } .settings-toolbar button { width: 100%; } /* Playback: stacked controls */ .playback-controls { flex-direction: column; gap: 8px; } .preset-group { flex-wrap: wrap; } .preset { padding: 6px 10px; font-size: 12px; } .playback-controls select, .playback-controls input { width: 100%; } .clip-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); } /* Clip player fullscreen on mobile */ .clip-player video { max-width: 100%; max-height: 60%; } /* Tab panels: less padding */ .tab-panel { padding: 8px; } } @media (max-width: 400px) { /* Single column grid on very small screens */ .grid-4x2 { grid-template-columns: 1fr; } .grid-tile { min-height: 160px; } /* Minimal top bar */ .topbar { padding: 6px 8px; } .topbar h1 { display: none; } .tab { padding: 4px 8px; font-size: 11px; } /* Clip thumbnails smaller */ .clip-thumb { height: 70px; } .clip-card { padding: 6px; } /* Wizard: stack inputs vertically */ #wiz-from, #wiz-to, #wiz-user, #wiz-pass { width: 100% !important; margin: 4px 0 !important; } }