/* General body styling */
body {
  font-family: 'Arial', sans-serif;
  background-color: #f9f9f9;
  color: #333;
  margin: 0;
  padding: 0;
  width: 320px; /* slightly wider for better spacing */
}
/* Use Apple system font for all text */
body, input, select, button {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
    

/* Container for padding and shadow */
.container {
  padding: 20px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  background-color: #fff;
  border-radius: 12px;
  margin: 10px auto; /* center horizontally */
}

/* Headings */
h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #006633; /* match theme color */
}

/* Each row of label + input/select */
.converter-row {
  display: flex;
  flex-direction: column;
  margin-bottom: 15px;
}

/* Labels */
label {
  font-weight: 600;
  margin-bottom: 6px;
  font-size: 14px;
}

/* Inputs and selects */
input[type="number"],
select {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  font-size: 14px;
  outline: none;
  transition: border 0.2s, box-shadow 0.2s;
}

input[type="number"]:focus,
select:focus {
  border-color: #006633;
  box-shadow: 0 0 6px rgba(0, 102, 51, 0.3);
}

/* Convert button */
button {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: none;
  background-color: #006633;
  color: #fff;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
  margin-top: 10px;
}

button:hover {
  background-color: #004d29;
}

button:active {
  transform: translateY(1px);
}

/* Result text */
.result-text {
  text-align: center;
  margin-top: 20px;
  font-weight: bold;
  font-size: 16px;
  color: #006633; /* match theme */
  word-break: break-word; /* prevent overflow */
}
/* Footer styling */
.footer {
  text-align: center;
  font-size: 10px;
  color: #666;
  margin-top: 10px;
  padding-top: 5px;
  border-top: 1px solid #eee;
}
