/* ============================================================
   chatbox_lb_monitor.css — Monitor Campagna L&B
   ============================================================ */

#lbm-panel {
    position: absolute;
    inset: 0;
    background: #1a1a1a;
    display: flex;
    flex-direction: column;
    z-index: 150;
    font-family: inherit;
    color: #ddd;
}

/* ── Header ──────────────────────────────────────────────────── */
.lbm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #111;
    padding: 10px 16px;
    border-bottom: 1px solid #2a2a2a;
    flex-shrink: 0;
    gap: 10px;
}
.lbm-title   { font-size: 0.95em; font-weight: bold; color: #eee; }
.lbm-badges  { display: flex; gap: 8px; align-items: center; flex: 1; }
.lbm-badge   { font-size: 0.75em; padding: 2px 8px; border-radius: 10px; background: #2a2a2a; color: #888; }
.lbm-badge-g { background: #1a3a1a; color: #4ecb82; }
.lbm-badge-r { background: #3a1a1a; color: #e74c3c; }
.lbm-close   { cursor: pointer; color: #888; font-size: 1.1em; padding: 2px 6px; border-radius: 4px; flex-shrink: 0; }
.lbm-close:hover { color: #fff; background: #333; }

/* ── Tabs ────────────────────────────────────────────────────── */
.lbm-tabs {
    display: flex;
    background: #111;
    border-bottom: 1px solid #2a2a2a;
    flex-shrink: 0;
}
.lbm-tab {
    padding: 8px 18px;
    font-size: 0.82em;
    color: #666;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    user-select: none;
}
.lbm-tab:hover  { color: #aaa; }
.lbm-tab.active { color: #eee; border-bottom-color: #2B87F2; }

/* ── Body ────────────────────────────────────────────────────── */
.lbm-body {
    flex: 1;
    overflow: hidden;
    position: relative;
}
.lbm-pane {
    display: none;
    height: 100%;
    overflow-y: auto;
    padding: 16px;
    scrollbar-width: none;
}
.lbm-pane.active { display: block; }

/* ── Summary cards ───────────────────────────────────────────── */
.lbm-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}
.lbm-card {
    background: #111;
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    padding: 14px 12px;
    text-align: center;
}
.lbm-card-val   { font-size: 2em; font-weight: bold; color: #4ecb82; line-height: 1.1; }
.lbm-card-label { font-size: 0.72em; color: #666; margin-top: 4px; text-transform: uppercase; letter-spacing: 0.04em; }

.lbm-info-row   { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.lbm-info-chip  { background: #222; border-radius: 5px; padding: 4px 10px; font-size: 0.78em; color: #888; }

/* ── Top 100 table ───────────────────────────────────────────── */
.lbm-rank-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82em;
}
.lbm-rank-table th {
    text-align: left;
    color: #666;
    font-size: 0.78em;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 8px 8px;
    border-bottom: 1px solid #2a2a2a;
}
.lbm-rank-table td {
    padding: 7px 8px;
    border-bottom: 1px solid #1e1e1e;
    color: #ccc;
    vertical-align: middle;
}
.lbm-rank-table tr:hover td { background: #1e1e1e; }
.lbm-medal { font-size: 1.1em; }
.lbm-punti { color: #4ecb82; font-weight: bold; }

/* ── Partecipanti table ──────────────────────────────────────── */
.lbm-part-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78em;
}
.lbm-part-table th {
    text-align: left;
    color: #666;
    font-size: 0.72em;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 4px 6px 8px;
    border-bottom: 1px solid #2a2a2a;
    white-space: nowrap;
}
.lbm-part-table td {
    padding: 6px 6px;
    border-bottom: 1px solid #1e1e1e;
    color: #bbb;
    vertical-align: middle;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.lbm-part-table tr:hover td { background: #1e1e1e; }
.lbm-ref-ok  { color: #4ecb82; }
.lbm-ref-bad { color: #888; }

/* ── Footer ──────────────────────────────────────────────────── */
.lbm-footer {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #111;
    padding: 8px 16px;
    border-top: 1px solid #2a2a2a;
    flex-shrink: 0;
}
.lbm-footer-info { font-size: 0.8em; color: #666; }

/* ── Button ──────────────────────────────────────────────────── */
.lbm-btn {
    background: #333;
    border: none;
    border-radius: 5px;
    color: #ccc;
    font-size: 0.82em;
    padding: 7px 14px;
    cursor: pointer;
}
.lbm-btn:hover { background: #444; }

.lbm-empty { color: #555; text-align: center; padding: 40px 20px; font-size: 0.85em; }
