* {
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: #e6ffe6;
  margin: 0;
  padding: 0;
  color: #3e2723;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  max-width: 600px;
  margin: 20px auto;
  padding: 20px;
  background: #fdfdfd;
  border: 2px solid #2e7d32;
  border-radius: 8px;
  width: 100%;
}

h1 {
  text-align: center;
  color: #2e7d32;
  margin-bottom: 20px;
  font-size: clamp(1.4rem, 5vw, 2rem);
}

label {
  display: block;
  color: #3e2723;
  margin-bottom: 8px;
}

input, select {
  width: 100%;
  padding: 8px;
  border: 1px solid #3e2723;
  border-radius: 4px;
  margin-bottom: 12px;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 16px; /* prevents iOS auto-zoom on focus */
}

button {
  background: #2e7d32;
  color: #fff;
  border: none;
  padding: 10px 15px;
  border-radius: 4px;
  cursor: pointer;
}

button:hover {
  background: #3e2723;
}

.result {
  margin-top: 20px;
  padding: 15px;
  background: #f1f8e9;
  border-left: 4px solid #3e2723;
  color: #3e2723;
}

/* Day Meter label - always highlighted yellow */
.day-meter-label {
  background-color: #ffeb3b;
  color: black;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 4px;
}

/* Day Meter value - highlighted based on status */
.excellent {
  background-color: green;
  color: white;
  font-weight: bold;
  padding: 8px;
  border-radius: 4px;
}

.average {
  background-color: silver;
  color: black;
  font-weight: bold;
  padding: 8px;
  border-radius: 4px;
}

.negative {
  background-color: red;
  color: white;
  font-weight: bold;
  padding: 8px;
  border-radius: 4px;
}

@media (max-width: 480px) {
  .container {
    padding: 15px;
    margin: 16px 12px;
  }
}
