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

body {
  font-family: Arial, sans-serif;
  background: #f0f4f8;
  display: flex;
  justify-content: center;
  padding: 40px 16px;
  min-height: 100vh;
}

.container {
  width: 100%;
  max-width: 520px;
}

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

header h1 {
  font-size: 1.6rem;
  color: #1a202c;
}

.badge {
  font-size: 0.75rem;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 12px;
  background: #e2e8f0;
  color: #4a5568;
}

.badge.healthy {
  background: #c6f6d5;
  color: #276749;
}

.badge.unhealthy {
  background: #fed7d7;
  color: #9b2c2c;
}

.card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  padding: 24px;
}

.card h2 {
  font-size: 1.1rem;
  color: #2d3748;
  margin-bottom: 16px;
}

.input-row {
  display: flex;
  gap: 8px;
}

input[type="text"] {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #cbd5e0;
  border-radius: 4px;
  font-size: 0.95rem;
  outline: none;
}

input[type="text"]:focus {
  border-color: #4299e1;
  box-shadow: 0 0 0 2px rgba(66,153,225,0.3);
}

button {
  padding: 8px 20px;
  background: #4299e1;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 0.95rem;
  cursor: pointer;
}

button:hover {
  background: #3182ce;
}

button:disabled {
  background: #a0aec0;
  cursor: not-allowed;
}

.result {
  margin-top: 16px;
  font-size: 1.1rem;
  color: #2d3748;
  min-height: 1.5rem;
}

.result.error {
  color: #e53e3e;
}
