/* 仪表盘 ↔ 构建历史串联 */
.stat-card-clickable {
  cursor: pointer;
  transition: border-color 0.15s, transform 0.12s;
}
.stat-card-clickable:hover {
  border-color: #58a6ff;
  transform: translateY(-1px);
}
.dashboard-recent-section {
  margin-bottom: 16px;
  flex-shrink: 0;
}
.dashboard-recent-panel .panel-header {
  margin-bottom: 8px;
}
.dashboard-recent-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: 220px;
  overflow-y: auto;
  border: 1px solid var(--border-color, #30363d);
  border-radius: 8px;
  background: #0d1117;
}
.dashboard-recent-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid #21262d;
  cursor: pointer;
  transition: background 0.12s;
}
.dashboard-recent-item:last-child { border-bottom: none; }
.dashboard-recent-item:hover { background: #161b22; }
.dashboard-recent-item-main {
  flex: 1;
  min-width: 0;
}
.dashboard-recent-item-title {
  font-size: 13px;
  font-weight: 600;
  color: #e6edf3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dashboard-recent-item-meta {
  font-size: 11px;
  color: #484f58;
  margin-top: 2px;
}
.dashboard-recent-empty {
  padding: 24px;
  text-align: center;
  color: #484f58;
  font-size: 12px;
}
.dashboard-recent-offline {
  padding: 12px;
  font-size: 12px;
  color: #d29922;
  background: rgba(210, 153, 34, 0.08);
  border-radius: 6px;
  margin-bottom: 8px;
}
.dashboard-success-rate {
  font-size: 11px;
  color: #8b949e;
  margin-left: 8px;
}

/* 系统监控面板 */
.dashboard-monitor-section {
  margin-bottom: 16px;
  flex-shrink: 0;
}
.dashboard-monitor-panel .panel-header {
  margin-bottom: 10px;
}
.dashboard-monitor-tick {
  font-size: 11px;
  color: #484f58;
  font-family: var(--font-mono, monospace);
}
.dashboard-monitor-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.monitor-card {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border-color, #30363d);
  border-radius: 10px;
  background: #0d1117;
  transition: border-color 0.15s;
}
.monitor-card:hover {
  border-color: #58a6ff;
}
.monitor-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.monitor-card-body {
  flex: 1;
  min-width: 0;
}
.monitor-card-label {
  font-size: 11px;
  color: #8b949e;
  margin-bottom: 3px;
}
.monitor-card-value {
  font-size: 15px;
  font-weight: 600;
  color: #e6edf3;
  line-height: 1.3;
}
.monitor-card-meta {
  font-size: 11px;
  color: #484f58;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.monitor-bar {
  height: 5px;
  background: #21262d;
  border-radius: 3px;
  overflow: hidden;
  margin-top: 6px;
}
.monitor-bar-fill {
  height: 100%;
  background: #3fb950;
  border-radius: 3px;
  transition: width 0.5s ease, background 0.3s;
}
.monitor-bar-mem {
  background: #d29922;
}
.monitor-bar-disk {
  background: #f472b6;
}
@media (max-width: 900px) {
  .dashboard-monitor-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
