/* Bootstrap 5.3 does the styling. Only app-specific layout lives here. */
:root {
  --feed: #3b82c4;
  --diaper: #c4893b;
}

.app-width {
  max-width: 640px;
}

.google-button {
  display: flex;
  justify-content: center;
  min-height: 44px;
}

/* Two big buttons side by side, easy to hit one-handed. */
.button-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.button-grid .btn {
  padding-top: 18px;
  padding-bottom: 18px;
  font-weight: 600;
}

.bottle-row {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 8px;
}
.bottle-row .btn {
  white-space: nowrap;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 1rem;
}
.stats .stat:last-child {
  grid-column: 1 / -1;
}

.baby-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.timeline li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: start;
  border-left: 4px solid transparent;
}
.timeline li.feed {
  border-left-color: var(--feed);
}
.timeline li.diaper {
  border-left-color: var(--diaper);
}
.timeline .what {
  display: flex;
  flex-direction: column;
}
.timeline .time {
  white-space: nowrap;
}
.timeline .actions {
  white-space: nowrap;
}

form.edit {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
}

details > summary {
  cursor: pointer;
}

.toast-box {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 1080;
  max-width: 90vw;
}
