/* 消息日志 - Bootstrap 5 直角风格覆写（0 圆角） */
:root {
  --bs-border-radius: 0;
  --bs-border-radius-sm: 0;
  --bs-border-radius-lg: 0;
  --bs-border-radius-xl: 0;
  --bs-border-radius-xxl: 0;
  --bs-border-radius-2xl: 0;
  --bs-border-radius-pill: 0;
}

/* 连接状态指示灯 */
.conn-state .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--bs-warning); margin-right: 4px; }
.conn-state.ok .dot { background: var(--bs-success); }
.conn-state.err .dot { background: var(--bs-danger); }

/* 概览统计卡片 */
.overview-card .display-6 { font-variant-numeric: tabular-nums; }

/* 柱状图（纯 CSS，直角） */
.bar-chart { display: flex; align-items: flex-end; gap: 3px; height: 220px; }
.bar-chart .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; min-width: 0; }
.bar-chart .bar { width: 100%; max-width: 28px; background: var(--bs-primary); min-height: 2px; transition: height .3s ease; }
.bar-chart .col:hover .bar { background: var(--bs-info); }
.bar-chart .val { font-size: 10px; color: var(--bs-secondary-color); font-variant-numeric: tabular-nums; }
.bar-chart .x { font-size: 10px; color: var(--bs-secondary-color); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.bar-chart.empty { align-items: center; justify-content: center; color: var(--bs-secondary-color); }

/* 排行列表 */
.rank-list { max-height: 300px; overflow-y: auto; }
.rank-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.rank-row .idx { width: 26px; text-align: center; flex-shrink: 0; font-size: 12px; color: var(--bs-secondary-color); }
.rank-row .idx.top { color: var(--bs-warning); font-weight: 700; }
.rank-row .name { flex-shrink: 0; width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-row .cnt { flex-shrink: 0; width: 56px; text-align: right; color: var(--bs-secondary-color); font-variant-numeric: tabular-nums; }

/* 实时消息 / 消息列表条目 */
.live-item, .msg-item { border-left: 4px solid var(--bs-primary); }
.live-item.private, .msg-item.private { border-left-color: var(--bs-success); }

/* 时间数字等宽 */
.t { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* 页面切换 */
.page { display: none; }
.page.active { display: block; animation: fadeIn .18s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; } }

/* 滚动条 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: var(--bs-secondary-bg); }
::-webkit-scrollbar-track { background: transparent; }

/* 下拉筛选框统一宽度 */
#msgGroup, #expGroup { min-width: 170px; }
#msgUser, #expUser { min-width: 150px; }
