/* 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-toolbar { display: flex; align-items: center; gap: 12px; padding: 10px 20px; background: rgba(0,0,0,.8); position: absolute; top: 0; left: 0; right: 0; z-index: 10; opacity: 0; transition: opacity .3s; } .focus-overlay:hover .focus-toolbar { opacity: 1; } .focus-toolbar button { background: rgba(255,255,255,.15); border: none; color: #fff; padding: 8px 14px; border-radius: 6px; cursor: pointer; font-size: 16px; } .focus-toolbar button:hover { background: rgba(255,255,255,.25); } #focus-title { flex: 1; font-size: 16px; color: #fff; } .focus-time { font-size: 13px; color: var(--text-muted); } #focus-video { flex: 1; width: 100%; object-fit: contain; } .thumb-strip { display: flex; gap: 4px; padding: 8px; background: rgba(0,0,0,.8); overflow-x: auto; } .thumb-strip .thumb { width: 120px; height: 68px; object-fit: cover; border: 2px solid transparent; border-radius: 4px; cursor: pointer; opacity: .6; } .thumb-strip .thumb:hover, .thumb-strip .thumb.active { opacity: 1; border-color: var(--accent); } /* ── 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: 900px) { .grid-4x2 { grid-template-columns: repeat(2, 1fr); grid-template-rows: auto; } #camera-cards { grid-template-columns: 1fr; } } @media (max-width: 500px) { .grid-4x2 { grid-template-columns: 1fr; } .topbar h1 { font-size: 14px; } .tab { padding: 4px 8px; font-size: 12px; } }