body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f6f4fb;
  color: #222;
}

/* HEADER */
header {
  background: #2c2730;
  color: white;
  padding: 28px 16px;
  text-align: center;
}

/* MAIN CARDS */
.card {
  background: white;
  margin: 16px;
  padding: 16px;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
}

/* INGREDIENT ROW */
.row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 8px;
  margin-top: 10px;
  align-items: center;
}

/* INPUTS */
input,
select {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 10px;
  font-size: 14px;
}

/* BUTTONS */
button {
  margin-top: 10px;
  padding: 11px;
  border-radius: 10px;
  border: none;
  font-weight: 600;
  cursor: pointer;
}

/* PRIMARY ACTION (ORANGE) */
.primary {
  background: #ff8a00;
  color: white;
}

/* SECONDARY ACTION */
.secondary {
  background: #e6e0da;
  color: #2c2730;
}

/* ADD INGREDIENT */
.dotted {
  border: 2px dashed #bbb;
  background: transparent;
  color: #2c2730;
}

/* RESULT BOX */
.result {
  margin-top: 12px;
  padding: 12px;
  background: #f2f0f6;
  text-align: center;
  font-weight: 600;
  border-radius: 10px;
  white-space: pre-line;
}

/* FOOTER */
footer {
  background: #2c2730;
  color: white;
  text-align: center;
  padding: 18px;
  font-size: 12px;
}

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

/* =========================
   MOBILE RESPONSIVE FIX
   ========================= */

@media (max-width: 600px) {

  .row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .card {
    margin: 10px;
    padding: 14px;
  }

  input,
  select,
  button {
    font-size: 16px; /* prevents iOS zoom + improves usability */
  }

  button {
    width: 100%;
  }
}