body {
    font-family: Arial, sans-serif;
    background: #f0f4f8;
    color: #222;
    margin: 0;
    padding: 2rem;
    display: flex;
    justify-content: center;
    min-height: 100vh;
  }
  #container {
    max-width: 645px;
    width: 100%;
    background: white;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 0 15px rgb(0 0 0 / 0.1);
    box-sizing: border-box;
  }
  h1 {
    text-align: center;
    margin-bottom: 0.2rem;
  }
  p.description {
    font-size: 0.9rem;
    color: #555;
    margin-top: 0;
    margin-bottom: 1.5rem;
    line-height: 1.4;
  }
  label {
    display: block;
    margin-top: 1rem;
    font-weight: bold;
  }
  input[type="number"], input[type="text"] {
    padding: 0.6rem;
    font-size: 1rem;
    width: 100%;
    margin-top: 0.3rem;
    border: 1px solid #bbb;
    border-radius: 6px;
    box-sizing: border-box;
  }
  #sprinklerZones {
    margin-top: 1rem;
    background: #f9fafb;
    border: 1px solid #ddd;
    padding: 1rem;
    border-radius: 8px;
  }
  .zone-row {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
  }
  .zone-row input {
    padding: 0.5rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1rem;
  }
  .zone-row input.zone-name {
    flex: 2;
  }
  .zone-row input.zone-rate {
    flex: 1;
  }
  .zone-row button {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 6px;
    width: 41px;
    font-size: 1.3rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
  }
  .zone-row button:hover {
    background: #b02a37;
  }
  button {
    margin-top: 1rem;
    padding: 0.75rem;
    font-size: 1.1rem;
    width: 100%;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.25s ease;
  }
  #addZoneBtn {
    background-color: #28a745;
    color: white;
  }
  #addZoneBtn:hover {
    background-color: #1e7e34;
  }
  #locationBtn {
    background-color: #007bff;
    color: white;
  }
  #locationBtn:hover {
    background-color: #0056b3;
  }
  #calculateBtn {
    background-color: #17a2b8;
    color: white;
  }
  #calculateBtn:hover {
    background-color: #117a8b;
  }
  #resetBtn {
    background-color: #dc3545;
    color: white;
    margin-top: 0.5rem;
  }
  #resetBtn:hover {
    background-color: #b02a37;
  }
  #results {
    margin-top: 2rem;
    background: #e9f7fa;
    padding: 1rem;
    border-radius: 8px;
    white-space: pre-line;
    box-shadow: inset 0 0 10px rgb(0 123 255 / 0.2);
    font-size: 1rem;
    line-height: 1.4;
  }
  .labels-row {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.25rem;
    margin-bottom: 0.75rem;
    font-weight: bold;
    font-size: 0.95rem;
    color: #555;
  }
  .labels-row > div {
    flex-shrink: 0;
  }
  .labels-row > div.zone-name {
    flex: 2;
  }
  .labels-row > div.zone-rate {
    flex: 1;
  }
  @media (max-width: 480px) {
    .zone-row, .labels-row {
      flex-direction: column;
    }
    .zone-row input, .labels-row > div {
      width: 100%;
      flex: none;
    }
    .zone-row button {
      width: 100%;
      font-size: 1.5rem;
      margin-top: 0.25rem;
    }
  }
  .required {
    color: #c00;
    font-weight: normal;
    font-size: 0.95em;
    margin-left: 0.2em;
  }
  .location-note {
    font-size: 0.95em;
    color: #555;
    margin: 0.25em 0 1em 0;
  }
footer {
  background: #f8f9fa;
  padding: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: #555;
  border-top: 1px solid #ddd;
}

footer a {
  color: #4CAF50;
  text-decoration: none;
}

footer a:hover {
  text-decoration: underline;
}
