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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f7fa;
  color: #333;
  line-height: 1.6;
}

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

h1 {
  font-size: 1.4rem;
  font-weight: 700;
  color: #2c5f8a;
  margin-bottom: 20px;
  text-align: center;
}

h2 {
  font-size: 1rem;
  font-weight: 700;
  color: #444;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid #4a90d9;
}

section {
  background: #fff;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

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

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

select, input[type="date"], input[type="text"] {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.95rem;
  background: #fafafa;
  color: #333;
}

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

.btn-primary {
  width: 100%;
  padding: 10px;
  background: #4a90d9;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px;
}

.btn-primary:hover {
  background: #357abd;
}

.record-list, .next-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.empty-msg {
  color: #aaa;
  font-size: 0.9rem;
  text-align: center;
  padding: 12px 0;
}

.record-item {
  background: #f0f6ff;
  border-left: 4px solid #4a90d9;
  border-radius: 6px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.record-info {
  flex: 1;
}

.record-vaccine {
  font-weight: 700;
  font-size: 0.95rem;
  color: #2c5f8a;
}

.record-date {
  font-size: 0.85rem;
  color: #666;
  margin-top: 2px;
}

.record-memo {
  font-size: 0.82rem;
  color: #888;
  margin-top: 2px;
}

.delete-btn {
  background: none;
  border: none;
  color: #ccc;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

.delete-btn:hover {
  background: #ffe0e0;
  color: #e05050;
}

.next-item {
  background: #fffbf0;
  border-left: 4px solid #f0a020;
  border-radius: 6px;
  padding: 10px 12px;
}

.next-vaccine {
  font-weight: 700;
  font-size: 0.9rem;
  color: #885010;
}

.next-date {
  font-size: 0.85rem;
  color: #666;
  margin-top: 2px;
}

.next-note {
  font-size: 0.8rem;
  color: #aaa;
  margin-top: 2px;
}

.badge-done {
  display: inline-block;
  background: #e0f5e0;
  color: #2a8a2a;
  border-radius: 4px;
  font-size: 0.75rem;
  padding: 1px 7px;
  margin-left: 6px;
  font-weight: 600;
}

@media (max-width: 375px) {
  h1 { font-size: 1.2rem; }
  .container { padding: 10px; }
}
