* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Arial, sans-serif;
  background: #0f1420;
  color: #e7ecf5;
  padding: 24px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

h1 {
  font-size: 22px;
  margin: 0;
}

h2 {
  font-size: 16px;
  margin: 0 0 14px;
  color: #c7cedb;
}

.status-pill {
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  background: #2a3448;
  color: #8b96ab;
}

.status-pill.up {
  background: #123a26;
  color: #2ecc71;
}

.status-pill.down {
  background: #3a1414;
  color: #e74c3c;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.card {
  background: #171f30;
  border: 1px solid #2a3448;
  border-radius: 12px;
  padding: 18px;
}

.card-label {
  color: #8b96ab;
  font-size: 12px;
  margin-bottom: 10px;
}

.big-value {
  font-size: 26px;
  font-weight: 700;
}

.sub-value {
  color: #5b6579;
  font-size: 12px;
  margin-top: 6px;
}

.chart-section, .log-section {
  background: #171f30;
  border: 1px solid #2a3448;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}

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

th, td {
  padding: 8px 10px;
  text-align: right;
  border-bottom: 1px solid #232d42;
}

th {
  color: #8b96ab;
  font-weight: 600;
  font-size: 12px;
}

td.status-up {
  color: #2ecc71;
}

td.status-down {
  color: #e74c3c;
}

footer {
  text-align: center;
  color: #5b6579;
  font-size: 12px;
  padding: 16px 0;
}

footer code {
  color: #8b96ab;
}
