@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');

body { font-family: 'Open Sans', sans-serif; background: #222222 url('/assets/img/bgright.png') right center / auto no-repeat fixed; color: #f0f0f0; margin: 0; }
button, input, select, textarea, .btn-link, .menu-link { font-family: 'Open Sans', sans-serif; }
.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: 250px; background: #111111; border-right: 1px solid #2b2b2b; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.content { flex: 1; padding: 20px; overflow-x: auto; }
.muted { color: #a5a5a5; font-size: 13px; }
.menu { display: flex; flex-direction: column; gap: 8px; }
.menu-link { width: 100%; text-align: left; background: #2a2a2a; border: 1px solid #3a3a3a; display: inline-flex; align-items: center; gap: 8px; padding: 10px; border-radius: 6px; color: #e8e8e8; text-decoration: none; box-sizing: border-box; }
.menu-link i { width: 16px; text-align: center; }
.menu-link.active { background: #3f3f3f; color: #fff; }
.panel { display: none; }
.panel.active { display: block; }
.container { max-width: 960px; margin: 30px auto; padding: 0 16px; }
.narrow { max-width: 420px; }
.card { background: #1a1a1a; border: 1px solid #343434; border-radius: 8px; padding: 16px; margin-bottom: 16px; }
.card.error { border-color: #da3633; color: #ffb3b3; }
label { display: block; margin-top: 8px; margin-bottom: 4px; }
input, select, textarea { width: 100%; padding: 10px; margin-bottom: 8px; border-radius: 6px; border: 1px solid #3a3a3a; background: #262626; color: #f0f0f0; }
button { cursor: pointer; background: #238636; border: none; color: #e6edf3; padding: 10px 14px; margin-bottom: 8px; border-radius: 6px; min-width: 140px; width: auto; display: inline-flex; align-items: center; gap: 8px; }
button:hover { background: #2ea043; }
button.danger, .menu-link.danger { background: #da3633; }
button.danger:hover, .menu-link.danger:hover { background: #f85149; }
button.secondary { background: #4b4b4b; }
button.secondary:hover { background: #606060; }
button.btn-start { background: #1f6feb; }
button.btn-start:hover { background: #388bfd; }
button.btn-stop { background: #da3633; }
button.btn-stop:hover { background: #f85149; }
table { width: 100%; border-collapse: collapse; margin-top: 10px; min-width: 640px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.btn-link { display: inline-flex; align-items: center; gap: 8px; background: #2f81f7; color: #fff; text-decoration: none; border-radius: 6px; padding: 8px 12px; }
.btn-link:hover { background: #1f6feb; }
th, td { border: 1px solid #3a3a3a; padding: 8px; text-align: left; vertical-align: middle; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.money-pos { color: #3fb950; font-weight: 600; }
.money-neg { color: #f85149; font-weight: 600; }
.money-zero { color: #a5a5a5; }
.money-hidden { color: #d0d0d0 !important; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 999px; font-size: 12px; }
.status-pill.on { background: rgba(63,185,80,0.18); color: #3fb950; }
.status-pill.off { background: rgba(248,81,73,0.18); color: #f85149; }
.icon-muted { color: rgb(160, 160, 160); }
pre { white-space: pre-wrap; }
.room-row { padding: 8px; border: 1px solid #3a3a3a; border-radius: 6px; margin-bottom: 10px; }
.row-inline { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.row-inline label { margin: 0; display: inline-flex; align-items: center; gap: 6px; }
.row-inline input[type="checkbox"] { width: auto; margin: 0; }
.avatar-lg { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 1px solid #3a3a3a; }
.avatar-sm { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; border: 1px solid #3a3a3a; }
.room-icon { width: 18px; height: 18px; object-fit: cover; border-radius: 4px; display: block; }
.player-inline, .room-inline { align-items: center; gap: 6px; width: auto; max-width: 100%; }
*:not(td).player-inline, *:not(td).room-inline { display: inline-flex; }
td.player-inline, td.room-inline { white-space: nowrap; }
td.player-inline img, td.room-inline img { display: inline-block; vertical-align: middle; margin-right: 6px; }
.player-inline span, .room-inline span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
.metrics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.metric-card { background: #242424; border: 1px solid #3a3a3a; border-radius: 8px; padding: 10px; }
.metric-card span { display: block; color: #b0b0b0; font-size: 12px; margin-bottom: 4px; }
.metric-card strong { font-size: 18px; }
.session-indicator { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 999px; font-size: 12px; margin-bottom: 8px; }
.session-indicator.on { background: rgba(63,185,80,0.2); color: #3fb950; }
.session-indicator.off { background: rgba(139,148,158,0.2); color: #8b949e; }

@media (max-width: 900px) {
  .app-shell { flex-direction: column; }
  .sidebar { width: 100%; border-right: 0; border-bottom: 1px solid #2b2b2b; }
  .menu { flex-direction: row; flex-wrap: wrap; }
  .menu-link { width: auto; flex: 1 1 180px; }
}
