* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: system-ui, -apple-system, sans-serif;
  background: #0f1117;
  color: #e0e0e0;
  display: flex;
  height: 100vh;
  overflow: hidden;
}

#grid {
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
  gap: 24px;
  padding: 32px;
  overflow-y: auto;
}

.dot-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.dot {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  transition: transform 0.3s, box-shadow 0.3s, opacity 0.5s;
  opacity: 0.6;
}

.dot.pulse {
  transform: scale(1.3);
  opacity: 1;
  box-shadow: 0 0 16px currentColor;
}

.dot.stale {
  opacity: 0.25;
  background: #555 !important;
  box-shadow: none !important;
}

.dot.alerting {
  outline: 3px solid #ff4444;
  outline-offset: 3px;
}

.dot-label {
  font-size: 11px;
  color: #aaa;
  text-align: center;
  max-width: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Group colors */
.dot.group-blue   { background: #4a9eff; color: #4a9eff; }
.dot.group-green  { background: #4aff8a; color: #4aff8a; }
.dot.group-red    { background: #ff6a6a; color: #ff6a6a; }
.dot.group-default { background: #aaa; color: #aaa; }

/* Side panel */
#panel {
  width: 480px;
  background: #181a20;
  border-left: 1px solid #2a2d35;
  overflow-y: auto;
  padding: 16px;
}

#panel h2 {
  font-size: 14px;
  color: #888;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

#status-bar {
  font-size: 12px;
  color: #666;
  padding: 8px 0;
  border-bottom: 1px solid #2a2d35;
  margin-bottom: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

th {
  text-align: left;
  color: #666;
  font-weight: 600;
  padding: 6px 8px;
  border-bottom: 1px solid #2a2d35;
  white-space: nowrap;
}

td {
  padding: 5px 8px;
  border-bottom: 1px solid #1a1d25;
  white-space: nowrap;
}

tr.selected { background: #1e2230; }
tr.row-stale td { color: #666; }
tr.row-alerting td:last-child { color: #ff4444; font-weight: 600; }

.age-warn { color: #ff8844; }
.age-stale { color: #ff4444; }
