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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background-color: #f5f7fa;
  color: #333;
  min-height: 100vh;
}

.splash-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.5s ease;
}

.splash-screen.fade-out {
  opacity: 0;
}

.splash-screen.hidden {
  display: none;
}

.splash-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.splash-ring-container {
  position: relative;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bottle-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 220px;
  height: 220px;
}

.bottle {
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: 1.3rem;
  opacity: 0.25;
  transform: rotate(calc(var(--i) * 30deg)) translateY(-95px) rotate(calc(var(--i) * -30deg)) scale(0.7);
  transform-origin: 0 0;
  transition: all 0.3s ease;
  filter: grayscale(0.5);
}

.bottle.active {
  opacity: 1;
  transform: rotate(calc(var(--i) * 30deg)) translateY(-95px) rotate(calc(var(--i) * -30deg)) scale(1);
  filter: grayscale(0);
}

.splash-title {
  font-size: 2rem;
  font-weight: 700;
  color: white;
  margin-top: 1.5rem;
  text-align: center;
}

header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1rem;
  text-align: center;
  position: relative;
}

.header-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.header-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
}

header h1 {
  font-size: 1.5rem;
  font-weight: 600;
}

.hamburger-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  color: white;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.2s ease;
}

.hamburger-btn:hover,
.hamburger-btn:active {
  background: rgba(255, 255, 255, 0.3);
}

.hamburger-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.hamburger-label {
  font-weight: 500;
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 1rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  min-width: 180px;
  overflow: hidden;
  z-index: 1000;
  animation: menuSlideIn 0.2s ease;
}

.mobile-menu.open {
  display: block;
}

@keyframes menuSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.mobile-menu-item {
  display: block;
  width: 100%;
  padding: 0.875rem 1.25rem;
  border: none;
  background: white;
  text-align: left;
  font-size: 1rem;
  color: #333;
  cursor: pointer;
  transition: background 0.15s ease;
}

.mobile-menu-item:hover,
.mobile-menu-item:active {
  background: #f0f0f0;
}

.mobile-menu-item.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.tabs {
  display: none;
  background: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.tab-buttons {
  display: flex;
}

.tab-btn {
  flex: 1;
  padding: 0.875rem 0.5rem;
  border: none;
  background: white;
  font-size: 0.9rem;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 3px solid transparent;
}

.tab-btn.active {
  color: #667eea;
  border-bottom-color: #667eea;
}

.tab-btn:hover {
  background-color: #f8f9fa;
}

main {
  padding: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.record-form {
  background: white;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: #555;
  margin-bottom: 0.375rem;
}

.form-group input[type="datetime-local"],
.form-group input[type="number"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #667eea;
}

.form-group textarea {
  resize: vertical;
}

.checkbox-group .checkbox-row {
  display: flex;
  gap: 1.5rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1rem;
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  cursor: pointer;
}

.submit-btn {
  width: 100%;
  padding: 0.875rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.submit-btn:active {
  transform: translateY(0);
}

.hidden {
  display: none !important;
}

.records-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.record-card {
  background: white;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.record-card .record-time {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 0.375rem;
}

.record-card .record-details {
  font-size: 0.95rem;
  font-weight: 500;
  color: #333;
  margin-bottom: 0.25rem;
}

.record-card .record-note {
  font-size: 0.85rem;
  color: #666;
  font-style: italic;
  margin-top: 0.375rem;
  padding-top: 0.375rem;
  border-top: 1px solid #eee;
}

.record-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #eee;
}

.action-btn {
  flex: 1;
  padding: 0.5rem 0.75rem;
  border: none;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.edit-btn {
  background-color: #e8f0fe;
  color: #1a73e8;
}

.edit-btn:hover {
  background-color: #d2e3fc;
}

.delete-btn {
  background-color: #fce8e6;
  color: #d93025;
}

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

.empty-message {
  text-align: center;
  color: #999;
  font-size: 0.9rem;
  padding: 2rem 1rem;
}

.home-greeting {
  text-align: center;
  padding: 1.75rem 1.25rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  color: white;
  margin-bottom: 1.25rem;
  box-shadow: 0 4px 16px rgba(102, 126, 234, 0.25);
}

.home-greeting h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}

.greeting-subtitle {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-bottom: 1rem;
  font-weight: 400;
}

.age-info {
  font-size: 0.875rem;
  opacity: 0.9;
  line-height: 1.6;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  margin-top: 0.5rem;
}

.dashboard-card {
  background: white;
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  margin-bottom: 1.25rem;
}

.card-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.875rem;
}

.dashboard-card h3 {
  font-size: 1rem;
  color: #333;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #eee;
}

.baby-info-form .form-row {
  display: flex;
  gap: 0.75rem;
}

.baby-info-form .form-row .form-group {
  flex: 1;
}

.baby-info-form .form-group input[type="date"],
.baby-info-form .form-group input[type="number"] {
  width: 100%;
  padding: 0.625rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 0.95rem;
}

.small-btn {
  padding: 0.625rem;
  font-size: 0.9rem;
}

.mood-options {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.mood-btn {
  flex: 1;
  max-width: 100px;
  padding: 1rem 0.75rem;
  border: 2px solid #f0f0f0;
  border-radius: 16px;
  background: #fafafa;
  cursor: pointer;
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.375rem;
}

.mood-emoji {
  font-size: 2rem;
  line-height: 1;
  transition: transform 0.25s ease;
}

.mood-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: #666;
  transition: color 0.25s ease;
}

.mood-btn:hover {
  border-color: #d0d0f0;
  background: #f5f5ff;
}

.mood-btn:hover .mood-emoji {
  transform: scale(1.1);
}

.mood-btn.active {
  border-color: #667eea;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.mood-btn.active .mood-emoji {
  transform: scale(1.15);
}

.mood-btn.active .mood-text {
  color: #667eea;
  font-weight: 700;
}

.current-mood {
  margin-top: 1rem;
  padding: 0.625rem 1rem;
  background: transparent;
  border-radius: 8px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 500;
  color: #888;
}

.mood-card.mood-happy {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
}

.mood-card.mood-sleepy {
  background: linear-gradient(135deg, #e8e0f0 0%, #d4c4e3 100%);
}

.mood-card.mood-fussy {
  background: linear-gradient(135deg, #ffe5d9 0%, #ffccbc 100%);
}

.mood-history {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.mood-history-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.mood-history-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0;
  font-size: 0.85rem;
}

.mood-history-date {
  color: #666;
  min-width: 100px;
}

.mood-history-emoji {
  font-size: 1rem;
}

.mood-history-label {
  color: #333;
  font-weight: 500;
}

.summary-blocks {
  display: flex;
  gap: 0.75rem;
}

.summary-block {
  flex: 1;
  padding: 1rem 0.75rem;
  background: #f8f9fa;
  border-radius: 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 120px;
}

.summary-block-icon {
  font-size: 1.5rem;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.summary-block-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: #333;
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.summary-block-label {
  font-size: 0.7rem;
  font-weight: 500;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.5rem;
}

.feeding-block {
  background: linear-gradient(135deg, rgba(116, 185, 255, 0.15) 0%, rgba(9, 132, 227, 0.1) 100%);
}

.sleep-block {
  background: linear-gradient(135deg, rgba(162, 155, 254, 0.15) 0%, rgba(108, 92, 231, 0.1) 100%);
}

.diaper-block {
  background: linear-gradient(135deg, rgba(85, 239, 196, 0.15) 0%, rgba(0, 184, 148, 0.1) 100%);
}

.summary-bar {
  width: 100%;
  height: 4px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-top: auto;
}

.summary-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s ease;
  width: 0%;
}

.feeding-bar {
  background: linear-gradient(90deg, #74b9ff 0%, #0984e3 100%);
}

.sleep-bar {
  background: linear-gradient(90deg, #a29bfe 0%, #6c5ce7 100%);
}

.diaper-bar {
  background: linear-gradient(90deg, #55efc4 0%, #00b894 100%);
}

.summary-empty {
  text-align: center;
  font-size: 0.85rem;
  color: #999;
  padding: 0.75rem;
  margin-top: 0.5rem;
}

.growth-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.growth-item {
  text-align: center;
  padding: 0.75rem 0.5rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.growth-item .growth-label {
  display: block;
  font-size: 0.75rem;
  color: #666;
  margin-bottom: 0.25rem;
}

.growth-item .growth-value {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: #333;
}

.growth-item .growth-arrow {
  display: block;
  font-size: 0.7rem;
  color: #667eea;
  margin: 0.25rem 0;
}

.quick-actions {
  background: white;
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  margin-bottom: 1.25rem;
}

.action-buttons {
  display: flex;
  gap: 0.75rem;
}

.action-btn-large {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 0.5rem;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.action-btn-large:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(102, 126, 234, 0.35);
}

.action-btn-large:active {
  transform: translateY(0);
}

.action-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.action-text {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.nav-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1rem 0;
}

.chart-container {
  background: white;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  margin-bottom: 1.5rem;
}

.chart-container h3 {
  font-size: 1rem;
  color: #333;
  margin-bottom: 1rem;
}

.chart-container canvas {
  width: 100% !important;
  height: auto !important;
  max-height: 200px;
}

.growth-comparison {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.growth-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: #f8f9fa;
  border-radius: 8px;
}

.growth-row-label {
  font-weight: 500;
  color: #333;
  min-width: 60px;
}

.growth-row-values {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.growth-row-birth {
  color: #666;
}

.growth-row-arrow {
  color: #667eea;
}

.growth-row-latest {
  font-weight: 600;
  color: #333;
}

.growth-row-diff {
  color: #28a745;
  font-size: 0.8rem;
  font-weight: 500;
}

.nav-btn {
  padding: 1rem 0.5rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nav-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.nav-btn:active {
  transform: translateY(0);
}

.stats-header {
  text-align: center;
  margin-bottom: 1rem;
}

.stats-header h2 {
  font-size: 1.25rem;
  color: #333;
  font-weight: 600;
}

/* Weekly Summary Card */
.weekly-summary-card {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border: 1px solid rgba(33, 150, 243, 0.2);
}

.weekly-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.weekly-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.5rem 0.25rem;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 10px;
}

.weekly-stat-icon {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.weekly-stat-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1565c0;
}

.weekly-stat-label {
  font-size: 0.65rem;
  color: #5e5e5e;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Insights Cards */
.insights-card {
  margin-bottom: 1rem;
}

.insights-stats {
  display: flex;
  justify-content: space-around;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.insight-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.insight-stat-label {
  font-size: 0.7rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 0.25rem;
}

.insight-stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #333;
}

.insight-last-time {
  font-size: 0.8rem;
  color: #666;
  text-align: center;
  margin-bottom: 0.5rem;
  font-style: italic;
}

.mini-chart {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  height: 80px;
  padding-top: 0.5rem;
}

/* Mood Insights */
.mood-insights-card {
  text-align: center;
}

.mood-chips {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 0.75rem 0;
}

.mood-chip {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.5rem 0.875rem;
  border-radius: 16px;
  font-weight: 500;
}

.mood-chip.happy {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  color: #2e7d32;
}

.mood-chip.sleepy {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  color: #1565c0;
}

.mood-chip.fussy {
  background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
  color: #e65100;
}

.mood-chip-emoji {
  font-size: 1.1rem;
}

.mood-chip-count {
  font-size: 0.9rem;
  font-weight: 600;
}

.mood-insight-summary {
  font-size: 0.85rem;
  color: #666;
  margin-top: 0.5rem;
}

.stats-card {
  margin-bottom: 1rem;
}

.stats-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
  height: 120px;
  padding-top: 0.5rem;
}

.stats-bar-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
}

.stats-bar-wrapper {
  flex: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
}

.stats-bar {
  width: 100%;
  max-width: 28px;
  border-radius: 4px 4px 0 0;
  min-height: 4px;
  transition: height 0.3s ease;
}

.stats-bar.feeding {
  background: linear-gradient(180deg, #0984e3 0%, #74b9ff 100%);
}

.stats-bar.sleep {
  background: linear-gradient(180deg, #6c5ce7 0%, #a29bfe 100%);
}

.stats-bar.diaper {
  background: linear-gradient(180deg, #00b894 0%, #55efc4 100%);
}

.stats-bar-value {
  font-size: 0.7rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.25rem;
}

.stats-bar-label {
  font-size: 0.65rem;
  color: #666;
  margin-top: 0.375rem;
  text-align: center;
}

.stats-empty {
  text-align: center;
  color: #999;
  font-size: 0.9rem;
  padding: 2rem 1rem;
}

/* Milestones Styles */
.milestone-presets {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.preset-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.preset-btn {
  padding: 0.5rem 0.75rem;
  border: 1px solid #e0e0e0;
  border-radius: 20px;
  background: #fafafa;
  font-size: 0.8rem;
  color: #555;
  cursor: pointer;
  transition: all 0.2s ease;
}

.preset-btn:hover {
  border-color: #667eea;
  background: #f5f5ff;
  color: #667eea;
}

.photo-upload-area {
  border: 2px dashed #ddd;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: #fafafa;
}

.photo-upload-area:hover {
  border-color: #667eea;
  background: #f8f9ff;
}

.photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.photo-icon {
  font-size: 2rem;
}

.photo-text {
  font-size: 0.85rem;
  color: #888;
}

.photo-preview {
  position: relative;
  display: inline-block;
}

.photo-preview img {
  max-width: 100%;
  max-height: 200px;
  border-radius: 8px;
  object-fit: cover;
}

.remove-photo-btn {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: #ff4757;
  color: white;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.milestone-card {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.milestone-photo-thumb {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.milestone-photo-thumb:hover {
  transform: scale(1.05);
}

.milestone-info {
  flex: 1;
  min-width: 0;
}

.milestone-title {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.25rem;
}

.milestone-date {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 0.375rem;
}

.milestone-note {
  font-size: 0.85rem;
  color: #666;
  line-height: 1.4;
}

.milestone-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

/* Notes Styles */
.note-card {
  padding: 1rem;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.note-date {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 0.5rem;
}

.note-text {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.5;
  white-space: pre-wrap;
}

.note-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #eee;
}

/* Photo Modal */
.photo-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.photo-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
}

.photo-modal-content {
  position: relative;
  max-width: 95%;
  max-height: 90%;
  z-index: 1;
}

.photo-modal-content img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: 8px;
}

.photo-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Today's Moments Card */
.moments-card .moment-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.75rem;
  background: #f8f9fa;
  border-radius: 10px;
  margin-bottom: 0.5rem;
}

.moments-card .moment-item:last-child {
  margin-bottom: 0;
}

.moment-icon {
  font-size: 1.25rem;
}

.moment-content {
  flex: 1;
}

.moment-label {
  font-size: 0.7rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.moment-text {
  font-size: 0.9rem;
  color: #333;
  font-weight: 500;
}

.no-moments {
  text-align: center;
  color: #999;
  font-size: 0.85rem;
  padding: 1rem;
}

/* Health Section Styles */
.health-section {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.health-form {
  background: white;
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.health-form h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.helper-text {
  font-size: 0.8rem;
  color: #888;
  margin-bottom: 1rem;
  padding: 0.5rem 0.75rem;
  background: #f0f8ff;
  border-radius: 8px;
  border-left: 3px solid #667eea;
}

.health-list {
  margin-top: 1rem;
}

.health-record {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.875rem;
  background: #f8f9fa;
  border-radius: 10px;
  margin-bottom: 0.5rem;
}

.health-record:last-child {
  margin-bottom: 0;
}

.health-record-info {
  flex: 1;
}

.health-record-main {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.25rem;
}

.health-record-sub {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.125rem;
}

.health-record-date {
  font-size: 0.75rem;
  color: #999;
}

.health-record-note {
  font-size: 0.8rem;
  color: #666;
  margin-top: 0.375rem;
  font-style: italic;
}

.temp-value {
  font-size: 1.25rem;
  font-weight: 700;
}

.temp-normal {
  color: #2ecc71;
}

.temp-elevated {
  color: #f39c12;
}

.temp-high {
  color: #e74c3c;
}

/* Health Today Summary Card */
.health-summary-card {
  background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
}

.health-summary-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.625rem;
  background: rgba(255,255,255,0.7);
  border-radius: 8px;
  margin-bottom: 0.375rem;
}

.health-summary-item:last-child {
  margin-bottom: 0;
}

.health-summary-icon {
  font-size: 1.1rem;
}

.health-summary-text {
  font-size: 0.85rem;
  color: #333;
}

.no-health-data {
  text-align: center;
  color: #888;
  font-size: 0.85rem;
  padding: 0.75rem;
}

@media (min-width: 600px) {
  header h1 {
    font-size: 1.75rem;
  }

  .hamburger-btn,
  .mobile-menu {
    display: none !important;
  }

  .tabs {
    display: block;
  }

  .tab-btn {
    font-size: 0.85rem;
    padding: 0.875rem 0.5rem;
  }

  main {
    padding: 1.5rem;
  }

  .home-greeting h2 {
    font-size: 2rem;
  }

  .summary-blocks {
    flex-direction: row;
    gap: 0.75rem;
  }
  
  .summary-block {
    flex: 1;
  }
}

@media (min-width: 768px) {
  .tab-btn {
    font-size: 1rem;
    padding: 1rem;
  }
}

/* Medicine Presets Styles */
.quick-add-container {
  display: none;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: linear-gradient(135deg, #e8f5e9 0%, #f1f8e9 100%);
  border-radius: 12px;
  border: 1px solid rgba(76, 175, 80, 0.2);
}

.quick-add-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #388e3c;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.quick-add-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.quick-add-chip {
  padding: 0.625rem 1rem;
  background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
  color: white;
  border: none;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(76, 175, 80, 0.3);
  min-height: 44px;
}

.quick-add-chip:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

.quick-add-chip:active {
  transform: scale(0.95);
}

.preset-select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 1rem;
  background: white;
  cursor: pointer;
  min-height: 48px;
}

.preset-select:focus {
  outline: none;
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.presets-section {
  margin-top: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  overflow: hidden;
  background: #fafafa;
}

.presets-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.875rem 1rem;
  background: linear-gradient(135deg, #f3e5f5 0%, #e8eaf6 100%);
  cursor: pointer;
  font-weight: 600;
  color: #5e35b1;
  transition: background 0.2s ease;
}

.presets-header:hover {
  background: linear-gradient(135deg, #e1bee7 0%, #c5cae9 100%);
}

.toggle-icon {
  font-size: 1.25rem;
  font-weight: bold;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.presets-panel {
  padding: 1rem;
  transition: all 0.3s ease;
}

.presets-panel.collapsed {
  display: none;
}

.preset-form {
  margin-bottom: 1rem;
}

.preset-add-btn {
  background: linear-gradient(135deg, #7c4dff 0%, #651fff 100%);
}

.presets-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.preset-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  background: white;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
}

.preset-info {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
}

.preset-name {
  font-weight: 600;
  color: #333;
  font-size: 0.95rem;
}

.preset-dosage {
  font-size: 0.85rem;
  color: #666;
}

.preset-note {
  font-size: 0.8rem;
  color: #888;
  font-style: italic;
}

.preset-delete-btn {
  padding: 0.375rem 0.75rem;
  background: #ffebee;
  color: #c62828;
  border: none;
  border-radius: 6px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 36px;
}

.preset-delete-btn:hover {
  background: #ffcdd2;
}

.quick-add-toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: linear-gradient(135deg, #4caf50 0%, #66bb6a 100%);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 24px;
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: 0 4px 16px rgba(76, 175, 80, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 9999;
}

.quick-add-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Fun Stats Card */
.fun-stats-card {
  background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
  border: 1px solid rgba(255, 193, 7, 0.2);
  position: relative;
  overflow: hidden;
}

.fun-stats-card::before {
  content: "💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩 💩";
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  font-size: 12px;
  line-height: 24px;
  letter-spacing: 12px;
  word-spacing: 8px;
  opacity: 0.12;
  pointer-events: none;
  z-index: 0;
}

.fun-stats-card .card-label,
.fun-stats-card .fun-stat-content {
  position: relative;
  z-index: 1;
}

.fun-stat-content {
  text-align: center;
  padding: 0.5rem 0;
}

.fun-stat-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

.fun-stat-hero-emoji {
  font-size: 2.5rem;
  line-height: 1;
  margin-bottom: 0.25rem;
}

.fun-stat-label {
  font-size: 0.85rem;
  color: #795548;
  font-weight: 500;
}

.fun-stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ff8f00;
  line-height: 1;
}

.fun-stat-tagline {
  font-size: 0.8rem;
  color: #8d6e63;
  font-style: italic;
  margin: 0;
}

.diaper-level-badge {
  display: inline-block;
  padding: 0.375rem 0.875rem;
  border-radius: 16px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.level-recruit {
  background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
  color: #2e7d32;
}

.level-bronze {
  background: linear-gradient(135deg, #efebe9 0%, #d7ccc8 100%);
  color: #6d4c41;
}

.level-silver {
  background: linear-gradient(135deg, #eceff1 0%, #cfd8dc 100%);
  color: #546e7a;
}

.level-gold {
  background: linear-gradient(135deg, #fff8e1 0%, #ffecb3 100%);
  color: #f57f17;
}

.level-legendary {
  background: linear-gradient(135deg, #e8eaf6 0%, #c5cae9 100%);
  color: #5e35b1;
  box-shadow: 0 2px 8px rgba(94, 53, 177, 0.2);
}

.level-progress-container {
  margin-top: 0.75rem;
  width: 100%;
}

.level-progress-bar {
  width: 100%;
  height: 18px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 9px;
  overflow: hidden;
  margin-bottom: 0.375rem;
}

.level-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ffb74d 0%, #ff9800 100%);
  border-radius: 9px;
  transition: width 0.4s ease;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}

.level-progress-fill::before {
  content: "💩💩💩💩💩💩💩💩💩💩💩💩💩💩💩";
  font-size: 10px;
  letter-spacing: 2px;
  white-space: nowrap;
}

.level-progress-text {
  font-size: 0.75rem;
  color: #795548;
  font-weight: 500;
}

.level-progress-container.max-level .level-progress-fill {
  background: linear-gradient(90deg, #7c4dff 0%, #651fff 100%);
}

.level-progress-container.max-level .level-progress-fill::before {
  content: "👑👑👑👑👑👑👑👑👑👑👑👑👑👑👑";
}

.level-progress-container.max-level .level-progress-text {
  color: #5e35b1;
  font-weight: 600;
}

.poop-quick-btn {
  margin-top: 0.75rem;
  padding: 0.625rem 1.25rem;
  background: linear-gradient(135deg, #8d6e63 0%, #6d4c41 100%);
  color: white;
  border: none;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(109, 76, 65, 0.3);
}

.poop-quick-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(109, 76, 65, 0.4);
}

.poop-quick-btn:active {
  transform: scale(0.95);
}

/* Level Up Toast */
.level-up-toast {
  position: fixed;
  top: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(102, 126, 234, 0.4);
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  z-index: 9999;
  min-width: 220px;
}

.level-up-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.level-up-title {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
  opacity: 0.9;
}

.level-up-level {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.level-up-subtitle {
  font-size: 0.75rem;
  opacity: 0.8;
}
