:root {
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --primary: #2563eb;
  --accent: #10b981;
  --border: #e2e8f0;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  padding: 12px;
  max-width: 720px;
  margin-inline: auto;
}
.hidden { display: none !important; }
.card {
  background: var(--card);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
  margin-top: 24px;
}
.app-header {
  background: var(--card);
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}
.header-top { display: flex; justify-content: space-between; align-items: center; }
.header-top h1 { margin: 0; font-size: 1.2rem; }
.countdown-row { display: flex; justify-content: space-between; margin: 8px 0 4px; font-weight: 600; font-size: 0.9rem; }
.progress-bar { height: 8px; background: var(--border); border-radius: 99px; overflow: hidden; }
#progress-fill { height: 100%; background: var(--accent); transition: width 0.25s; }
.member-stats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; font-size: 0.8rem; }
.stat-pill { background: #f1f5f9; padding: 2px 8px; border-radius: 99px; }
.garbage-alert {
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
  padding: 10px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 0.88rem;
}
.tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.tab {
  flex: 1; padding: 10px; border: 1px solid var(--border); background: var(--card);
  border-radius: 8px; font-weight: 600; cursor: pointer;
}
.tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.filters { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 12px; }
.filter-btn {
  padding: 6px 12px; border: 1px solid var(--border); background: var(--card);
  border-radius: 99px; font-size: 0.82rem; white-space: nowrap; cursor: pointer;
}
.filter-btn.active { background: var(--text); color: #fff; border-color: var(--text); }
.category-card {
  background: var(--card); border-radius: 10px; padding: 12px; margin-bottom: 10px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.category-title { font-weight: 700; margin-bottom: 8px; display: flex; justify-content: space-between; }
.task-row {
  display: flex; align-items: center; gap: 8px; padding: 8px 0;
  border-top: 1px solid var(--border);
}
.task-title { flex: 1; font-size: 0.92rem; }
.task-title.done { text-decoration: line-through; color: var(--muted); }
.badge {
  padding: 3px 8px; border-radius: 99px; font-size: 0.75rem; font-weight: 600;
  border: 1px solid var(--border); background: #f8fafc; cursor: pointer;
}
.badge-today { background: #fee2e2; color: #b91c1c; border-color: #fca5a5; }
.badge-tomorrow { background: #fef3c7; color: #b45309; border-color: #fcd34d; }
.btn { padding: 10px 14px; border: none; border-radius: 8px; cursor: pointer; font-weight: 600; }
.btn.primary { background: var(--primary); color: #fff; width: 100%; }
.btn.accent { background: var(--accent); color: #fff; width: 100%; }
.btn.small { padding: 6px 10px; font-size: 0.8rem; background: #e2e8f0; }
.form-group { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
input[type="text"] { padding: 10px; border: 1px solid var(--border); border-radius: 8px; font-size: 1rem; }
