:root { --primary: #dc3545; --dark: #121212; --light: #f8f9fa; --bg: #1e1e1e; }
body { margin:0; font-family:sans-serif; background:var(--dark); color:var(--light); }
* { box-sizing:border-box; }

/* LAYOUT */
.screen { display:none; height:100vh; flex-direction:column; }
.screen.active { display:flex; }
header { padding:15px; background:var(--bg); display:flex; justify-content:space-between; align-items:center; }
h2 { margin:0; font-size:18px; }

/* BUTTONS */
.btn { border:none; border-radius:8px; font-weight:bold; cursor:pointer; color:white; padding:15px; }
.btn-primary { background:#007bff; width:100%; margin-top:10px; }
.btn-danger { background:var(--primary); }
.btn-warning { background:#ffc107; color:black; }
.btn-success { background:#28a745; width:100%; margin-top:10px; }
.btn-stop { background:#333; color:#aaa; width:100%; padding:25px; font-size:18px; border:1px solid #444; }
.btn-sm, .btn-dl { background:#444; color:white; padding:5px 10px; border-radius:4px; text-decoration:none; font-size:12px; border:none; cursor:pointer; }
.btn-icon { text-decoration:none; font-size:20px; margin-right:15px; cursor:pointer; }
.btn-icon-del { background:none; border:none; font-size:18px; cursor:pointer; padding:10px; }

/* AUTH */
#auth-screen { justify-content:center; padding:20px; }
input { width:100%; padding:12px; margin-bottom:10px; background:#333; border:1px solid #555; color:white; border-radius:4px; }
.tabs { display:flex; margin-bottom:20px; }
.tab-btn { flex:1; background:none; border:none; border-bottom:2px solid #555; color:#aaa; padding:10px; cursor:pointer; }
.tab-btn.active { border-color:var(--primary); color:white; font-weight:bold; }

/* DASHBOARD */
.main-actions { padding:15px; display:flex; flex-direction:column; gap:10px; }
.btn-xl { font-size:20px; padding:30px; text-transform:uppercase; letter-spacing:1px; }
.dashboard-lists { flex:1; overflow-y:auto; padding:10px; }
h3 { font-size:14px; color:#888; text-transform:uppercase; border-bottom:1px solid #333; padding-bottom:5px; margin-top:20px; }
ul { padding:0; list-style:none; }
.session-card { background:#222; border-radius:6px; margin-bottom:8px; display:flex; align-items:center; justify-content:space-between; }
.active-card { border-left:4px solid red; }
.card-link { flex:1; padding:15px; text-decoration:none; color:white; display:block; }
.s-name { font-weight:bold; }
.s-time { font-size:12px; color:#888; margin-top:4px; }
.badge { background:red; font-size:10px; padding:2px 6px; border-radius:3px; margin-left:10px; }

/* VIEWER LAYOUT (Fixed) */
.viewer-body { height:100vh; display:flex; flex-direction:column; overflow:hidden; }
.viewer-layout { flex:1; display:flex; flex-direction:column; }
.viewer-header { flex:0 0 auto; z-index:10; }
.video-section { flex:0 0 40%; background:black; position:relative; }
#remote-video { width:100%; height:100%; object-fit:contain; }
#video-status { position:absolute; top:50%; width:100%; text-align:center; transform:translateY(-50%); pointer-events:none; }
.map-section { flex:1; position:relative; }
#map { width:100%; height:100%; }
.meta-bar { position:absolute; bottom:0; left:0; width:100%; background:rgba(0,0,0,0.8); padding:10px; font-size:12px; display:flex; justify-content:space-between; z-index:999; }
.live-tag { font-size:10px; padding:2px 5px; border-radius:3px; font-weight:bold; margin-left:10px; }

/* ACCOUNT PAGE */
.container { padding-top:20px; }
.alert-box { background:#2d4028; border:1px solid #46703b; padding:15px; border-radius:6px; margin-bottom:20px; color:#d4edda; }
.form-group { margin-bottom:20px; }
.form-group label { display:block; margin-bottom:5px; font-weight:bold; }
.form-group small { color:#888; font-size:12px; }

/* MODAL */
.modal { display:none; position:fixed; top:0; left:0; width:100%; height:100%; background:rgba(0,0,0,0.8); z-index:2000; align-items:center; justify-content:center; }
.modal.active { display:flex; }
.modal-content { background:#222; padding:25px; border-radius:8px; width:90%; max-width:350px; }
.modal-actions { display:flex; gap:10px; margin-top:20px; }
.modal-actions button { width:100%; padding:10px; }
