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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #f7f8fa;
  color: #1a1a1a;
  line-height: 1.5;
}

.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 20px;
}

header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.header-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.header-logo {
  height: 108px;
  width: auto;
}

header h1 {
  font-size: 24px;
  font-weight: 600;
}

/* Banner */
.banner {
  padding: 20px 24px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 32px;
  color: #fff;
}

.banner--operational { background: #2da44e; }
.banner--partial { background: #d29922; }
.banner--major { background: #cf222e; }
.banner--loading { background: #656d76; }

/* Groups */
.group {
  margin-bottom: 28px;
}

.group-title {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #656d76;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid #d1d9e0;
}

/* Endpoint rows */
.endpoint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #eef0f3;
}

.endpoint:last-child {
  border-bottom: none;
}

.endpoint-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot--up { background: #2da44e; }
.status-dot--down { background: #cf222e; }

.endpoint-name {
  font-size: 15px;
  font-weight: 500;
  color: #1a1a1a;
  text-decoration: none;
}

.endpoint-name:hover {
  color: #0969da;
  text-decoration: underline;
}

.endpoint-right {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 13px;
  color: #656d76;
}

.response-time {
  font-variant-numeric: tabular-nums;
}

.status-label {
  font-weight: 500;
}

.status-label--up { color: #2da44e; }
.status-label--down { color: #cf222e; }

/* Uptime section */
#uptime-section {
  margin-top: 40px;
}

#uptime-section h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
}

.uptime-row {
  margin-bottom: 24px;
}

.uptime-row-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.uptime-row-name {
  font-size: 14px;
  font-weight: 500;
}

.uptime-row-percent {
  font-size: 13px;
  color: #656d76;
  font-variant-numeric: tabular-nums;
}

.uptime-bar {
  display: flex;
  gap: 2px;
  height: 32px;
  align-items: stretch;
}

.uptime-day {
  flex: 1;
  border-radius: 2px;
  position: relative;
  cursor: pointer;
  min-width: 2px;
}

.uptime-day--green { background: #2da44e; }
.uptime-day--light-green { background: #4ac26b; }
.uptime-day--yellow { background: #d29922; }
.uptime-day--orange { background: #e16f24; }
.uptime-day--red { background: #cf222e; }
.uptime-day--gray { background: #d1d9e0; }

/* Tooltip */
.uptime-day .tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #1a1a1a;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 10;
  pointer-events: none;
}

.uptime-day:hover .tooltip {
  display: block;
}

/* Footer */
footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #d1d9e0;
  font-size: 13px;
  color: #656d76;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 12px;
}

.footer-links a {
  color: #656d76;
  text-decoration: none;
  font-weight: 500;
}

.footer-links a:hover {
  color: #0969da;
  text-decoration: underline;
}

footer p + p {
  margin-top: 4px;
}

/* Responsive */
@media (max-width: 600px) {
  .container { padding: 20px 16px; }
  .uptime-bar { height: 24px; }
  .endpoint { flex-direction: column; align-items: flex-start; gap: 4px; }
  .endpoint-right { margin-left: 20px; }
}
