* {
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Arial, sans-serif;
  background: linear-gradient(180deg, #fdf6ec 0%, #f5e9d8 100%);
  margin: 0;
  padding: 0;
  color: #3e2723;
  overflow-x: hidden;
}

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

/* ===== Main form card — brown / orange / green 3D theme ===== */
.container {
  max-width: 500px;
  margin: 16px auto;
  padding: 16px 18px 14px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfbf9 100%);
  border: 3px solid #4e342e;                 /* brown outer border */
  border-top: 6px solid #2e7d32;             /* green accent stripe */
  border-radius: 12px;
  width: 100%;
  box-shadow:
    0 10px 20px rgba(62, 39, 35, 0.18),      /* soft brown drop shadow = 3D lift */
    0 2px 0 rgba(255, 255, 255, 0.6) inset;
}

h1 {
  text-align: center;
  color: #2e7d32;
  margin: 0 0 14px;
  font-size: clamp(1.4rem, 5vw, 2rem);
  text-shadow: 1px 1px 0 rgba(62, 39, 35, 0.15);
  padding-bottom: 8px;
  border-bottom: 2px solid #ffcc80;          /* light orange underline */
}

label {
  display: block;
  color: #4e342e;
  font-weight: 600;
  margin-bottom: 4px;
}

input, select, textarea {
  width: 100%;
  padding: 7px 12px;
  border: 2px solid #8d6e63;                 /* brown border */
  border-radius: 6px;
  margin-bottom: 10px;
  box-sizing: border-box;
  font-family: inherit;
  font-size: 16px; /* prevents iOS auto-zoom on focus */
  background: #fffdf9;
  box-shadow: inset 0 2px 4px rgba(62, 39, 35, 0.12);   /* subtle pressed-in 3D */
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #ff9800;                     /* light orange focus highlight */
  box-shadow: inset 0 2px 4px rgba(62, 39, 35, 0.12), 0 0 0 3px rgba(255, 152, 0, 0.25);
}

/* ===== Buttons — raised 3D orange/green with hover + active press ===== */
button {
  background: linear-gradient(180deg, #43a047 0%, #2e7d32 100%);
  color: #fff;
  border: none;
  border-bottom: 3px solid #1b5e20;
  padding: 9px 20px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 8px rgba(62, 39, 35, 0.25);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.2s ease;
}

button:hover {
  background: linear-gradient(180deg, #4e342e 0%, #3e2723 100%);
  border-bottom-color: #24140f;
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(62, 39, 35, 0.3);
}

button:active {
  transform: translateY(1px);
  box-shadow: 0 2px 4px rgba(62, 39, 35, 0.25);
  border-bottom-width: 1px;
}

.result {
  margin-top: 20px;
  padding: 16px;
  background: #f1f8e9;
  border: 1px solid #c8e6c9;
  border-left: 5px solid #2e7d32;
  border-radius: 6px;
  color: #3e2723;
  box-shadow: 0 3px 8px rgba(62, 39, 35, 0.1);
}

/* 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: #2e7d32;
  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: #c62828;
  color: white;
  font-weight: bold;
  padding: 8px;
  border-radius: 4px;
}

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