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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f0f4f8;
  color: #2d3748;
  min-height: 100vh;
}

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

h1 {
  text-align: center;
  font-size: 1.6rem;
  margin-bottom: 24px;
  color: #2b6cb0;
}

h2 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  color: #2d3748;
}

/* Setup Section */
.setup-section {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

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

.form-group label {
  display: block;
  font-size: 0.85rem;
  color: #718096;
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  color: #2d3748;
  outline: none;
  transition: border-color 0.2s;
}

.form-group input:focus {
  border-color: #4299e1;
}

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

.btn-primary:hover {
  background: #3182ce;
}

/* Stats Section */
.stats-section {
  margin-top: 0;
}

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

.stat-card {
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.stat-card.accent {
  background: #ebf8ff;
  border: 1.5px solid #bee3f8;
}

.stat-card.green {
  background: #f0fff4;
  border: 1.5px solid #c6f6d5;
}

.stat-label {
  font-size: 0.8rem;
  color: #718096;
  margin-bottom: 6px;
}

.stat-value {
  font-size: 2.4rem;
  font-weight: 700;
  color: #2b6cb0;
  line-height: 1;
}

.stat-card.green .stat-value {
  color: #276749;
}

.stat-unit {
  font-size: 0.9rem;
  color: #718096;
  margin-top: 4px;
}

.detail-time {
  background: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 0.9rem;
  color: #4a5568;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  margin-bottom: 12px;
  line-height: 1.6;
}

.reset-area {
  text-align: center;
  margin-bottom: 24px;
}

.btn-reset {
  padding: 8px 20px;
  background: transparent;
  color: #a0aec0;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-reset:hover {
  color: #718096;
  border-color: #a0aec0;
}

/* Timeline */
.timeline-section {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.timeline-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f7fafc;
}

.timeline-item:last-child {
  border-bottom: none;
}

.timeline-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.timeline-item.achieved .timeline-icon {
  background: #48bb78;
  color: #fff;
}

.timeline-item.pending .timeline-icon {
  background: #e2e8f0;
  color: #a0aec0;
}

.timeline-content {
  flex: 1;
}

.timeline-time {
  font-size: 0.78rem;
  color: #a0aec0;
  margin-bottom: 2px;
}

.timeline-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #2d3748;
  margin-bottom: 2px;
}

.timeline-item.achieved .timeline-title {
  color: #276749;
}

.timeline-desc {
  font-size: 0.82rem;
  color: #718096;
  line-height: 1.4;
}

.timeline-badge {
  font-size: 0.75rem;
  padding: 2px 8px;
  border-radius: 12px;
  flex-shrink: 0;
  align-self: center;
}

.timeline-item.achieved .timeline-badge {
  background: #c6f6d5;
  color: #276749;
}

.timeline-item.pending .timeline-badge {
  background: #f7fafc;
  color: #a0aec0;
}

@media (max-width: 400px) {
  .stat-value {
    font-size: 2rem;
  }
}
