* {
  box-sizing: border-box;
}

:root {
  --bg: #f3f5f8;
  --text: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --card-bg: #ffffff;
  --success: #22c55e;
  --failure: #ef4444;
  --partial: #f59e0b;
  --nodata: #e5e7eb;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  padding: 24px 12px 40px;
}

a {
  color: #2563eb;
  text-decoration: none;
}

.pageContainer {
  width: min(980px, 100%);
  margin: 20px auto;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 10px 35px rgba(2, 8, 23, 0.08);
  padding: 28px 28px 22px;
}

.headline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.headline span {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.01em;
}

.reportContainer {
  margin: 24px auto 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.statusContainer {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--card-bg);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  padding: 16px;
  text-align: left;
}

.statusContainer + .statusContainer {
  margin-top: 0;
}

.statusHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.statusTitle {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  text-transform: none;
  color: var(--text);
}

.statusHeadline {
  color: #fff;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-left: 0;
  white-space: nowrap;
}

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

.sectionUrl {
  font-size: 13px;
}

.sectionUrl a {
  word-break: break-all;
}

.statusUptime {
  flex: 1;
  text-align: right;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.statusStreamContainer {
  display: flex;
  justify-content: space-between;
  gap: 4px;
}

.statusLine {
  width: 100%;
}

.statusSquare {
  border-radius: 6px;
  height: 24px;
  width: 100%;
  min-width: 10px;
  border: 1px solid rgba(15, 23, 42, 0.05);
}

.statusSquare + .statusSquare {
  margin-left: 0;
}

.success {
  background: var(--success);
  color: #fff;
}

.failure {
  background: var(--failure);
  color: #fff;
}

.partial {
  background: var(--partial);
  color: #fff;
}

.nodata {
  background: var(--nodata);
  color: #94a3b8;
}

.tooltip {
  background: #0f172a;
  border-radius: 10px;
  color: #e2e8f0;
  font-size: 12px;
  line-height: 1.4;
  padding: 14px;
  position: absolute;
  text-align: left;
  z-index: 100;
  width: 260px;
  box-shadow: 0 12px 30px rgba(2, 8, 23, 0.35);
  transition: opacity 0.2s;
}

.tooltip .tooltipArrow {
  position: absolute;
  bottom: 100%;
  width: 4px;
  text-align: center;
  border: 6px solid transparent;
  border-bottom-color: #0f172a;
  left: 50%;
  margin-left: -3px;
}

.tooltip .tooltipDateTime {
  font-size: 11px;
  color: #cbd5e1;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.tooltip .tooltipDescription {
  margin-top: 10px;
  font-size: 13px;
  color: #f8fafc;
}

.tooltip #tooltipStatus {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  margin-top: 8px;
  display: inline-block;
}

.tooltip hr {
  border: none;
  border-top: 1px solid #334155;
  margin-top: 12px;
}

footer {
  color: #94a3b8;
  margin-top: 16px;
  font-size: 12px;
}

@media screen and (max-width: 800px) {
  .pageContainer {
    padding: 20px 14px 16px;
    border-radius: 12px;
    margin-top: 8px;
  }

  .headline img {
    width: 150px;
  }

  .headline span {
    font-size: 13px;
    padding: 7px 12px;
  }

  .statusHeader,
  .statusSubtitle {
    display: block;
  }

  .statusHeadline,
  .sectionUrl,
  .statusUptime {
    margin-top: 8px;
    text-align: left;
  }

  .statusStreamContainer {
    gap: 2px;
  }

  .statusSquare {
    min-width: 5px;
    height: 20px;
    border-radius: 4px;
  }
}
