/* ==========================================================
   helloworld.css — shared styles for all Hello World apps
   ========================================================== */

/* ── Reset & box model ───────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0; }

/* ── Body layout ─────────────────────────────── */
body { display: flex; flex-direction: column; height: 100vh; padding: 12px; gap: 12px; background: #060606; color: #e5e7eb; font: 14px -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }

/* ── Top bar ─────────────────────────────────── */
#top  { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
#info { flex: 1; color: #9ca3af; font-size: 13px; }
#info strong { color: #e5e7eb; }

/* ── Buttons ─────────────────────────────────── */
button { padding: 6px 12px; border-radius: 6px; border: 1px solid rgba(14,165,164,0.3); background: rgba(14,165,164,0.08); color: #0EA5A4; font: inherit; cursor: pointer; }
button:hover { background: rgba(14,165,164,0.15); }
/* State-coded toggle buttons (presence + Live + camera/mic/screen) — solid fills so on/off/muted read at a glance */
button.btn-on    { background: #10b981; border-color: #10b981; color: #04140d; font-weight: 600; }
button.btn-on:hover    { background: #34d399; border-color: #34d399; }
button.btn-off   { background: #2b303b; border-color: #3a3f4b; color: #aab2c0; }
button.btn-off:hover   { background: #363c48; }
button.btn-muted { background: #f59e0b; border-color: #f59e0b; color: #1c1204; font-weight: 600; }
button.btn-muted:hover { background: #fbbf24; }
button.btn-in    { background: #10b981; border-color: #10b981; color: #04140d; font-weight: 600; }
button.btn-in:hover    { background: #34d399; border-color: #34d399; }
button.btn-out   { background: #4a2222; border-color: #7f1d1d; color: #fca5a5; font-weight: 600; }
button.btn-out:hover   { background: #5c2a2a; }
#btnLive { font-weight: 600; }

/* ── Top-bar divider (separates Exit from the Live/media cluster) ── */
.top-sep { width: 1px; height: 22px; align-self: center; background: rgba(255,255,255,0.15); margin: 0 2px; }
/* ── Main area (sidebar layouts) ─────────────── */
#main { display: flex; flex: 1; gap: 12px; min-height: 0; }

/* ── Stage: stacks the screen/camera sections beside the sidebar (main/combo) ── */
#stage { flex: 1; display: flex; flex-direction: column; gap: 12px; min-height: 0; min-width: 0; }

/* ── Video grid & tiles ──────────────────────── */
#grid { flex: 1; display: flex; gap: 8px; min-height: 0; }
.tile { flex: 1; position: relative; min-width: 0; border-radius: 10px; overflow: hidden; background: #0a0a0a; }
.tile video { width: 100%; height: 100%; display: block; object-fit: cover; }
.tile.local video { transform: scaleX(-1); }
.tile .name { position: absolute; bottom: 8px; left: 8px; padding: 3px 10px; font-size: 11px; background: rgba(0,0,0,0.55); color: #fff; border-radius: 999px; }
