* { box-sizing: border-box; }

body {
  font-family: system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  margin: 0;
  background: #f6f4fb;
  color: #2b2240;
  padding-bottom: 5rem;
}

.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 1.5rem 1rem;
}

.brand {
  font-size: 1.4rem;
  margin: 0.5rem 0 1.5rem;
  text-align: center;
}

h2 { font-size: 1.1rem; margin-top: 2rem; }
h3 { font-size: 1rem; }

.balance-card {
  background: #5b3fb3;
  color: white;
  border-radius: 16px;
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.balance-label { margin: 0; opacity: 0.85; font-size: 0.95rem; }
.balance-amount { margin: 0.25rem 0 0; font-size: 2.2rem; font-weight: bold; }

.empty-state {
  color: #7a7190;
  text-align: center;
  padding: 2rem 1rem;
  font-style: italic;
}

.movement-list, .kid-list, .member-list, .request-list, .schedule-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.movement-item, .kid-card, .member-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: white;
  border: 1px solid #ddd6f3;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  gap: 0.5rem;
}

a.kid-card { text-decoration: none; color: inherit; }

.movement-out { color: #b3261e; }
.movement-in { color: #146c43; }

.request-item, .schedule-item {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  background: white;
  border: 1px solid #ddd6f3;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
}

.request-meta, .schedule-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.schedule-meta { color: #7a7190; font-size: 0.85rem; }

.status-pill {
  align-self: flex-start;
  padding: 0.15rem 0.6rem;
  border-radius: 6px;
  font-size: 0.8rem;
}

.status-pending { background: #fff3cd; color: #8a6400; }
.status-approved { background: #d9f2e3; color: #146c43; }
.status-declined { background: #fbe1df; color: #b3261e; }

.inline-actions {
  display: flex;
  gap: 0.5rem;
}

.inline-actions form { flex: 1; margin: 0; }
.inline-actions button { width: 100%; }
.button-decline { background: #ede9fb; color: #b3261e; }

.back-link {
  display: inline-block;
  margin-bottom: 1rem;
  color: #5b3fb3;
  text-decoration: none;
  font-weight: 600;
}

.badge {
  background: #ede9fb;
  color: #5b3fb3;
  padding: 0.15rem 0.6rem;
  border-radius: 6px;
  font-size: 0.8rem;
}

form { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 0.75rem; }
form label { display: flex; flex-direction: column; gap: 0.3rem; font-size: 0.95rem; }
.radio-label { flex-direction: row; align-items: center; gap: 0.5rem; display: flex; }

input, select, button {
  font-size: 1rem;
  padding: 0.75rem;
  border-radius: 10px;
  border: 1px solid #ccc;
  min-height: 44px;
}

button, .button, .button-primary, .button-secondary {
  background: #5b3fb3;
  color: white;
  border: none;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: block;
  font-weight: 600;
}

.button-secondary { background: #ede9fb; color: #5b3fb3; }

.error { color: #b3261e; text-align: center; }

.login-container { padding-top: 3rem; }
.dev-login { margin-top: 2rem; border-top: 1px solid #ddd6f3; padding-top: 1rem; }

.week-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin: 1rem 0;
  font-size: 0.85rem;
}

.week-nav a { color: #5b3fb3; text-decoration: none; font-weight: 600; }

.day-plan {
  background: white;
  border: 1px solid #ddd6f3;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
}

.ingredient-row {
  display: flex;
  gap: 0.5rem;
}

.ingredient-row label { flex: 1; }

.second-option-kids {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.9rem;
  align-items: center;
}

.low-stock-badge { background: #fbe1df; color: #b3261e; margin-inline-start: 0.4rem; }

.item-checked { opacity: 0.55; }
.item-checked .request-meta span:first-child { text-decoration: line-through; }

.bottom-nav {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  display: flex;
  background: white;
  border-top: 1px solid #ddd6f3;
  padding-bottom: env(safe-area-inset-bottom, 0);
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-height: 60px;
  color: #2b2240;
  text-decoration: none;
  font-size: 0.75rem;
  padding: 0.4rem 0.2rem;
}

.nav-icon { font-size: 1.4rem; }

@media (min-width: 900px) {
  .bottom-nav { max-width: 480px; inset-inline: auto; left: 50%; transform: translateX(-50%); border-inline: 1px solid #ddd6f3; border-radius: 16px 16px 0 0; }
}
