* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #f4f6f8;
  color: #333;
  min-height: 100vh;
  padding: 16px;
}

.container {
  max-width: 480px;
  margin: 0 auto;
}

h1 {
  font-size: 1.4rem;
  text-align: center;
  margin-bottom: 20px;
  color: #1a7f4b;
}

.card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 16px;
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 6px;
}

input[type="number"] {
  width: 100%;
  padding: 12px 14px;
  font-size: 1rem;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s;
  -moz-appearance: textfield;
}

input[type="number"]:focus {
  border-color: #1a7f4b;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  opacity: 1;
}

.btn-primary {
  width: 100%;
  padding: 14px;
  background: #1a7f4b;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-primary:hover {
  background: #156039;
}

.result-card h2 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: #1a7f4b;
}

.result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.result-item {
  background: #f8fafb;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.result-item.large {
  grid-column: 1 / -1;
  background: #e8f5ee;
}

.result-label {
  font-size: 0.75rem;
  color: #777;
}

.result-value {
  font-size: 1rem;
  font-weight: 700;
  color: #333;
}

.result-value.highlight {
  color: #c0392b;
}

.result-value.accent {
  font-size: 1.5rem;
  color: #1a7f4b;
}

.progress-bar-wrap {
  background: #e0e0e0;
  border-radius: 100px;
  height: 12px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #1a7f4b, #2ecc71);
  border-radius: 100px;
  transition: width 0.5s ease;
  width: 0%;
}

.result-date {
  font-size: 0.75rem;
  color: #aaa;
  text-align: right;
}
