body {
  font-family: system-ui, sans-serif;
  background: #f8fafc;
  margin: 0;
  padding: 0;
  color: #222;
}
main {
  max-width: 480px;
  margin: 2rem auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 2rem 1.5rem 1.5rem 1.5rem;
}
.status-header {
  text-align: center;
  margin-bottom: 1.5rem;
}
h1 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
  letter-spacing: -1px;
}
.status-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.2rem 1rem;
  border-radius: 10px;
  background: #f9fafb;
  margin-bottom: 0.75rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
  transition: box-shadow 0.2s;
}
.status-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.status-dot {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  margin-right: 0.75rem;
  border: 2px solid #fff;
  box-shadow: 0 0 0 2px #e5e7eb;
}
.status-dot.ok { background: #22c55e; }
.status-dot.warn { background: #facc15; }
.status-dot.err { background: #ef4444; }
.status-dot.checking { background: #38bdf8; animation: pulse 1s infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 #38bdf880; }
  70% { box-shadow: 0 0 0 10px #38bdf800; }
  100% { box-shadow: 0 0 0 0 #38bdf800; }
}
.status-name {
  font-weight: 500;
  font-size: 1rem;
}
.status-url {
  font-size: 0.9rem;
  color: #64748b;
  margin-left: 0.5rem;
  word-break: break-all;
}
.status-details {
  font-size: 0.85rem;
  color: #64748b;
  margin-left: 2.5rem;
}
.controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
#refresh-btn {
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.5rem 1.2rem;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(37,99,235,0.08);
  transition: background 0.2s;
}
#refresh-btn:hover {
  background: #1d4ed8;
}
#last-checked {
  color: #888;
  font-size: 0.98rem;
  margin-left: 1rem;
}
footer {
  text-align: center;
  margin-top: 2rem;
  color: #888;
  font-size: 0.95rem;
}
@media (max-width: 600px) {
  main {
    max-width: 98vw;
    padding: 1rem 0.5rem 1rem 0.5rem;
  }
  .status-card {
    padding: 1rem 0.5rem;
  }
  h1 {
    font-size: 1.3rem;
  }
} 