/* Full-page layout for Baby Tracker */
html,
body {
  width: 100%;
  height: 100%;
}
body {
  margin: 0;
  max-width: none;
  width: 100vw;
  height: 100vh;
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  overflow: auto;
  padding: 0;
  box-sizing: border-box;
}
#react_root {
  flex: 1;
  display: flex;
  flex-direction: column;
}
/* Center the access-code prompt on mobile */
.btCenterScreen {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
.btAccessCard {
  width: 100%;
  max-width: 480px;
}
.btAccessInput {
  width: 100%;
  font-size: 14px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}
/* Logged-in mobile layout */
.btLoggedIn {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}
/* Root column that fills page and allows scrolling sections */
.btFullPageColumn {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.btPageScrollColumn {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}
.btPrimaryStats {
  text-align: center;
  padding: 8px;
}
.btBigNumber {
  font-size: 48px;
  line-height: 1.1;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.btInlineBottle {
  line-height: 1;
}
.btStatusSmall {
  text-align: center;
  font-size: 14px;
  opacity: 0.8;
  min-height: 1em;
}
/* Inline debug toggle inside card flow (no absolute positioning) */
.btCardWrapper {
  display: flex;
  flex-direction: column;
}
.btCardClickable {
  cursor: pointer;
}
/* Add extra bottom spacing when debug is open */
.btDebugPanel {
  margin-top: 4px;
  margin-bottom: 4px;
}
.btLinkButton {
  background: none;
  border: none;
  color: #4290fe;
  padding: 8px 4px;
  font-size: 16px;
}
.btDebugHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
}
.btChartPadding {
  padding: 0 8px 8px;
}
.btNoData {
  text-align: center;
  padding: 12px;
}
.btList {
  list-style: none;
  padding: 0 4px;
  margin: 8px 0;
}
.btListRow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
/* Bottom action grid */
.btGridActions {
  width: 100%;
  max-width: 800px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 12px;
  justify-items: center;
}
.btGridActionsWide {
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 1fr;
}
.btGridActionsNarrow {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
}
.btActionBar {
  flex-shrink: 0;
}
.btGridAction {
  width: 24vmin;
  height: 24vmin;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20vmin;
  line-height: 1;
  border-radius: 0;
  border: none;
  background: none;
  transition: filter 250ms ease, opacity 250ms ease;
}
.btGridAction:disabled {
  filter: grayscale(1);
  opacity: 0.5;
}
/* Icon-only buttons (e.g., delete) */
.btIconButton {
  background: none;
  border: none;
  padding: 4px 6px;
  font-size: 18px;
}
.btIconDanger {
  color: #dc3545;
}
/* Top navigation bar */
.btTopBar {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: #e9ecef;
  color: #343a40;
  border-bottom: 1px solid #ced4da;
}
.btTopBarSide {
  width: 80px;
}
.btTopBarTitle {
  flex: 1;
  text-align: center;
  font-weight: 600;
}
@media (prefers-color-scheme: dark) {
  .btTopBar {
    background-color: #212529;
    color: #e9ecef;
    border-bottom: 1px solid #495057;
  }
}
/* Baby Tracker specific: make cards more spacious */
.reactCard {
  margin: 16px;
}
/* Dark mode: make big numbers thinner */
@media (prefers-color-scheme: dark) {
  .btBigNumber {
    font-weight: 400;
  }
}
/* Weight page layout */
.btWeightCard {
  max-width: 520px;
  margin: 0 auto;
}
.btCenterTitle {
  text-align: center;
  margin-top: 8px;
}
.btFormRow {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
}
.btColCenter {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.btLabelSmall {
  font-size: 12px;
  opacity: 0.8;
}
.btInlineRow {
  display: flex;
  gap: 12px;
  align-items: center;
}
.btWeightInput {
  width: 100px;
  text-align: center;
}
.btSubtleNote {
  text-align: center;
  margin-top: 8px;
  font-size: 12px;
  opacity: 0.8;
}
.btMetricText {
  text-align: center;
  margin-top: 6px;
  font-size: 18px;
  font-weight: 600;
}
.btErrorText {
  color: #dc3545;
  margin-top: 8px;
  text-align: center;
}
.btButtonsRow {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  justify-content: center;
}
/* Chart containers */
.btChartContainer {
  width: 100%;
  overflow: hidden;
}
