* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0d1117;
  color: #c9d1d9;
  min-height: 100vh;
}
.container { max-width: 1400px; margin: 0 auto; padding: 20px; }
.hero {
  background: linear-gradient(135deg, #161b22 0%, #0d1117 100%);
  border: 1px solid #30363d;
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 24px;
}
.hero-content h1 { font-size: 2em; margin-bottom: 4px; }
.subtitle { color: #8b949e; font-size: 1.1em; margin-bottom: 12px; }
.meta { display: flex; gap: 24px; color: #8b949e; font-size: 0.9em; }

.summary-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.stat-card {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
}
.stat-card .stat-value { font-size: 2em; font-weight: 700; }
.stat-card .stat-label { color: #8b949e; font-size: 0.85em; margin-top: 4px; }
.stat-card.ok { border-left: 4px solid #3fb950; }
.stat-card.warning { border-left: 4px solid #d29922; }
.stat-card.error { border-left: 4px solid #f85149; }
.stat-card.disabled { border-left: 4px solid #484f58; }
.stat-card.unknown { border-left: 4px solid #8b949e; }
.stat-card.ok .stat-value { color: #3fb950; }
.stat-card.warning .stat-value { color: #d29922; }
.stat-card.error .stat-value { color: #f85149; }
.stat-card.disabled .stat-value { color: #484f58; }
.stat-card.unknown .stat-value { color: #8b949e; }

.charts-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.chart-box {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 10px;
  padding: 16px;
}

.problems-panel {
  background: #161b22;
  border: 1px solid #f85149;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 24px;
}
.problems-panel h2 { color: #f85149; margin-bottom: 12px; }
.problem-item {
  padding: 8px 12px;
  margin-bottom: 6px;
  background: #21262d;
  border-radius: 6px;
  font-size: 0.9em;
}
.problem-item .error-text { color: #f85149; }
.problem-item .meta-text { color: #8b949e; font-size: 0.85em; }

.table-section {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 10px;
  padding: 20px;
}
.table-section h2 { margin-bottom: 12px; }
.search-input {
  width: 100%;
  padding: 10px 14px;
  background: #0d1117;
  border: 1px solid #30363d;
  border-radius: 8px;
  color: #c9d1d9;
  font-size: 0.95em;
  margin-bottom: 12px;
}
.search-input:focus { outline: none; border-color: #58a6ff; }
.table-wrapper { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.9em; }
th {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 2px solid #30363d;
  color: #8b949e;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
th:hover { color: #58a6ff; }
td {
  padding: 8px 12px;
  border-bottom: 1px solid #21262d;
  vertical-align: middle;
}
tr:hover { background: #21262d; }
.status-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.8em;
  font-weight: 600;
}
.status-badge.ok { background: #3fb95022; color: #3fb950; border: 1px solid #3fb95044; }
.status-badge.warning { background: #d2992222; color: #d29922; border: 1px solid #d2992244; }
.status-badge.error { background: #f8514922; color: #f85149; border: 1px solid #f8514944; }
.status-badge.disabled { background: #484f5822; color: #484f58; border: 1px solid #484f5844; }
.status-badge.unknown { background: #8b949e22; color: #8b949e; border: 1px solid #8b949e44; }
.error-text { color: #f85149; font-size: 0.85em; max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.error-box {
  background: #f8514922;
  border: 1px solid #f85149;
  border-radius: 10px;
  padding: 20px;
  margin: 20px;
  text-align: center;
}
.error-box pre { margin-top: 10px; font-size: 0.85em; color: #f85149; }
