/* Small overrides on top of Pico.css -- see plan "Mobile-friendly UI". */

.status-badge {
  display: inline-block;
  padding: 0.15em 0.6em;
  border-radius: 999px;
  font-size: 0.8em;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
}
.status-badge.overdue,
.status-badge.never_watered {
  background: #c0392b;
}
.status-badge.due_today {
  background: #d4860b;
}
.status-badge.upcoming {
  background: #2e7d32;
}

.plant-card {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-bottom: 1rem;
}
.plant-card img,
.plant-card .photo-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--pico-muted-border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
}
.plant-card .plant-card-body {
  flex: 1;
  min-width: 0;
}
.plant-card .plant-card-actions {
  flex-shrink: 0;
}

.full-width {
  width: 100%;
}

.plant-photo-large {
  max-width: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 8px;
}

#identify-candidates {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0;
}
#identify-candidates button {
  width: auto;
}

nav.app-nav ul {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.copy-field {
  display: flex;
  gap: 0.5rem;
}
.copy-field input {
  flex: 1;
  min-width: 0;
}
.copy-field button {
  width: auto;
  flex-shrink: 0;
}

.household-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--pico-muted-border-color);
}
.household-row-body {
  flex: 1;
  min-width: 12rem;
}
.household-row form {
  margin: 0;
}
.household-row button {
  width: auto;
  margin: 0;
  padding: 0.35rem 0.75rem;
  font-size: 0.9em;
}
.household-row-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.role-badge {
  display: inline-block;
  margin-left: 0.4em;
  padding: 0.1em 0.5em;
  border-radius: 999px;
  font-size: 0.75em;
  font-weight: 600;
  color: #fff;
  background: #2e7d32;
}
.role-badge.removed {
  background: #7f8c8d;
}
