/* Volunteer Tracking Styles */

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

body {
  font-family: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: #f9f9f9;
  min-height: 100vh;
  padding: 20px;
  padding-top: max(64px, 20px);
}

.container {
  max-width: 1000px;
  margin: 0 auto;
}

.screen {
  background: white;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  min-height: 400px;
}

#loading-screen, #auth-screen, #error-screen {
  text-align: center;
}

#loading-screen p {
  color: #666;
  font-size: 16px;
  margin-top: 20px;
}

/* The shared theme.css .screen centers text; the main screen is left-aligned. */
#main-screen {
  text-align: left;
}

#main-screen .subtitle {
  text-align: left;
  margin: 0 0 20px;
  color: #666;
}

.warning-card {
  text-align: center;
  padding: 20px;
}

.warning-card h1 {
  color: #d32f2f;
  margin-bottom: 20px;
}

.warning-card p {
  color: #666;
  margin-bottom: 30px;
}

/* Toolbar */
.controls {
  display: flex;
  gap: 15px;
  margin-bottom: 15px;
  flex-wrap: wrap;
  align-items: center;
}

.search-box {
  flex: 1;
  min-width: 250px;
  padding: 10px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1em;
}

.status-filter {
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1em;
  background: #fff;
}

.status-info {
  margin-bottom: 15px;
  padding: 10px;
  background: #f0f0f0;
  border-radius: 4px;
  font-size: 0.9em;
  color: #333;
}

/* Household cards */
.household-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.household-card {
  border: 1px solid #ddd;
  border-left-width: 8px;
  border-radius: 8px;
  background: #fff;
}

.household-card.met {
  border-color: #8fd19e;
  border-left-color: #28a745;
  background: #f3fbf5;
}

.household-card.unmet {
  border-color: #f0a8a8;
  border-left-color: #d32f2f;
  background: #fdf3f3;
}

.household-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 12px 16px;
  border: 0;
  background: transparent;
  font: inherit;
  text-align: left;
  cursor: pointer;
  color: inherit;
}

.household-title {
  font-weight: 700;
  font-size: 1.05em;
  color: #02133e;
}

.household-adults {
  font-size: 0.88em;
  color: #555;
  margin-top: 2px;
}

.household-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.req-pill {
  padding: 3px 9px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.req-pill.met { background: #d4edda; color: #155724; }
.req-pill.unmet { background: #f8d7da; color: #721c24; }

.chevron {
  color: #555;
  font-size: 0.9em;
  width: 1em;
  text-align: center;
}

.household-body {
  padding: 4px 16px 14px 16px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.req-section {
  margin-top: 12px;
}

.req-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: #02133e;
}

.req-rule {
  font-size: 0.85em;
  color: #666;
  margin: 2px 0 4px 0;
}

.req-details {
  margin-left: 22px;
  font-size: 0.93em;
  color: #222;
}

.req-details li {
  margin: 2px 0;
}

.req-none {
  margin-left: 22px;
  font-size: 0.93em;
  color: #999;
  font-style: italic;
}

.empty-message {
  text-align: center;
  color: #666;
  padding: 30px;
}

/* Messages */
.error-message {
  position: fixed;
  top: 74px; /* clear the fixed beta-notice (top:0, ~64px) so it isn't obscured */
  right: 20px;
  padding: 15px 20px;
  border-radius: 8px;
  color: white;
  font-weight: 600;
  background: #d32f2f;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 10000; /* above the beta-notice (z-index: 9999) */
  max-width: 400px;
}
