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

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

.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 16px;
}

header {
  text-align: center;
  padding: 24px 0 16px;
}

header h1 {
  font-size: 1.8rem;
  color: #2e7d32;
}

.subtitle {
  color: #666;
  font-size: 0.9rem;
  margin-top: 4px;
}

.form-section,
.list-section {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

h2 {
  font-size: 1.1rem;
  color: #2e7d32;
  margin-bottom: 16px;
  border-bottom: 2px solid #a5d6a7;
  padding-bottom: 8px;
}

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

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

input[type="date"],
input[type="number"],
input[type="text"],
select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  background: #fafafa;
  transition: border-color 0.2s;
}

input:focus,
select:focus {
  outline: none;
  border-color: #4CAF50;
  background: #fff;
}

.btn-add {
  width: 100%;
  padding: 12px;
  background: #4CAF50;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px;
  transition: background 0.2s;
}

.btn-add:hover {
  background: #388e3c;
}

.empty-message {
  text-align: center;
  color: #999;
  padding: 24px 0;
  font-size: 0.95rem;
}

#record-list {
  list-style: none;
}

.record-item {
  border: 1px solid #e8f5e9;
  border-radius: 10px;
  padding: 14px;
  margin-bottom: 12px;
  background: #f9fbe7;
  position: relative;
}

.record-date {
  font-size: 0.85rem;
  font-weight: 700;
  color: #2e7d32;
  margin-bottom: 8px;
}

.record-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  font-size: 0.9rem;
}

.record-detail {
  display: flex;
  gap: 4px;
}

.detail-label {
  color: #888;
  font-size: 0.82rem;
}

.detail-value {
  color: #333;
  font-size: 0.9rem;
}

.record-note {
  margin-top: 8px;
  font-size: 0.88rem;
  color: #555;
  background: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  border-left: 3px solid #a5d6a7;
}

.btn-delete {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  color: #bbb;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: color 0.2s;
}

.btn-delete:hover {
  color: #e53935;
  background: #ffebee;
}

@media (max-width: 480px) {
  header h1 {
    font-size: 1.5rem;
  }
  .record-details {
    grid-template-columns: 1fr;
  }
}
