*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: #f0f2f7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.app {
  max-width: 860px;
  margin: 0 auto;
  padding: 14px 14px 36px;
}

/* ─── Loading Screen ─── */
.loading-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f2f7;
}

.loading-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.loading-logo {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #1D9E75, #185FA5);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  color: white;
  letter-spacing: -0.5px;
}

.loading-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #e0e0e0;
  border-top-color: #1D9E75;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  font-size: 14px;
  color: #888;
  font-weight: 500;
}

/* ─── Header ─── */
.header {
  border-radius: 20px;
  padding: 18px 20px 16px;
  color: white;
  margin-bottom: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-box {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.5px;
  flex-shrink: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.school-name {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.app-subtitle {
  font-size: 12px;
  opacity: 0.85;
  margin-top: 2px;
}

.header-date-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.header-date {
  font-size: 11px;
  opacity: 0.8;
  white-space: nowrap;
}

.header-clock {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
  opacity: 0.95;
}

.sync-badge {
  display: flex;
  align-items: center;
  gap: 3px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 99px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-top: 2px;
}

.header-progress {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 10px 12px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  opacity: 0.9;
  margin-bottom: 6px;
}

.progress-pct { font-weight: 800; }

.progress-track {
  height: 7px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 99px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 99px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 4px;
}

/* ─── Kid Switcher ─── */
.kid-switcher {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.kid-btn {
  flex: 1;
  padding: 14px 10px 12px;
  border-radius: 18px;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  background: white;
}

.kid-btn.active {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

.kid-avatar-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 6px;
  line-height: 0;
}

.kid-name {
  display: block;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.kid-grade {
  display: block;
  font-size: 11px;
  color: #888;
  margin-bottom: 8px;
}

.kid-mini-progress {
  height: 4px;
  background: #e8e8e8;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 8px;
  width: 70%;
  margin-left: auto;
  margin-right: auto;
}

.kid-mini-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.5s ease;
  min-width: 3px;
}

.kid-badges {
  display: flex;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}

/* ─── Calendar ─── */
.calendar-section { margin-bottom: 16px; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
}

.calendar-row {
  display: flex;
  gap: 6px;
}

.day-btn {
  flex: 1;
  padding: 9px 4px 7px;
  border-radius: 14px;
  border: 2px solid;
  cursor: pointer;
  text-align: center;
  background: white;
  transition: all 0.2s ease;
  min-width: 0;
}

.day-btn.active {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.day-name {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.day-num {
  display: block;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}

.day-count {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 99px;
}

.day-summary {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: white;
  border: 1px solid #eee;
}

.day-summary-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 6px;
}

.day-summary-tasks {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.day-task-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 20px;
  font-weight: 600;
}

/* ─── Stats ─── */
.stats-row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.stat-card {
  flex: 1;
  padding: 12px 8px;
  border-radius: 14px;
  text-align: center;
  background: white;
  border-top: 3px solid;
}

.stat-dot {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin: 0 auto 4px;
}

.stat-num {
  display: block;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 3px;
}

.stat-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* ─── Tabs + Add ─── */
.tab-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 22px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  transition: all 0.2s ease;
}

.tab-count {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 99px;
}

.add-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 18px;
  border-radius: 22px;
  border: none;
  cursor: pointer;
  font-weight: 800;
  font-size: 13px;
  color: white;
  transition: all 0.2s ease;
}

.add-btn:active { transform: scale(0.96); }

/* ─── Form ─── */
.form-card {
  background: white;
  border: 1.5px solid;
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.form-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 800;
}

.form-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid #eee;
  background: #f5f5f5;
  cursor: pointer;
  color: #888;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-field.full-span { grid-column: 1 / -1; }

.form-label {
  font-size: 11px;
  font-weight: 700;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.form-field select,
.form-field input {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px solid #ddd;
  font-size: 13px;
  width: 100%;
  background: white;
  transition: border-color 0.2s;
  outline: none;
  color: #222;
  -webkit-appearance: none;
  appearance: none;
}

.form-field select:focus,
.form-field input:focus { border-color: #888; }

.type-toggle { display: flex; gap: 8px; }

.type-opt {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px;
  border-radius: 10px;
  border: 1.5px solid;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.form-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.save-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  border-radius: 12px;
  border: none;
  color: white;
  font-weight: 800;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.save-btn:disabled { cursor: not-allowed; opacity: 0.7; }

.cancel-btn {
  padding: 12px 20px;
  border-radius: 12px;
  border: 1.5px solid #e0e0e0;
  background: white;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #666;
}

/* ─── Task List ─── */
.task-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.task-card {
  background: white;
  border-radius: 16px;
  border: 1.5px solid #eaecf0;
  border-left: 4px solid;
  padding: 13px 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.task-card:active { transform: scale(0.99); }
.task-card.overdue { background: #fff8f8; border-color: #F09595; }
.task-card.done { opacity: 0.7; }

.task-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.task-icon svg { display: block; }

.task-body {
  flex: 1;
  min-width: 0;
}

.task-title {
  font-weight: 700;
  font-size: 14px;
  color: #1a1a1a;
  margin-bottom: 6px;
  line-height: 1.35;
  transition: color 0.2s;
}

.task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 20px;
  font-weight: 700;
}

.badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

.task-due {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 500;
}

.task-source {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  color: #bbb;
  font-weight: 500;
}

.task-actions {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
  align-items: flex-end;
}

.task-actions select {
  font-size: 11px;
  padding: 6px 7px;
  border-radius: 9px;
  border: 1.5px solid;
  background: white;
  cursor: pointer;
  outline: none;
  color: inherit;
  max-width: 110px;
  -webkit-appearance: none;
  appearance: none;
}

.remove-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid #eee;
  background: white;
  color: #E24B4A;
  cursor: pointer;
  transition: all 0.15s;
}

.remove-btn:hover {
  background: #fff0f0;
  border-color: #E24B4A;
}

/* ─── Empty State ─── */
.empty-state {
  text-align: center;
  padding: 36px 20px;
  border-radius: 18px;
  border: 2px dashed;
}

.empty-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
  opacity: 0.6;
}

.empty-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 4px;
}

.empty-sub {
  font-size: 13px;
  color: #aaa;
  margin-bottom: 16px;
}

.empty-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 11px 24px;
  border-radius: 22px;
  border: none;
  color: white;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.empty-add-btn:active { transform: scale(0.97); }

/* ─── Footer ─── */
.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 28px;
  padding: 12px;
  font-size: 12px;
  color: #ccc;
}

.footer-dot { opacity: 0.5; }

/* ─── Responsive ─── */
@media (max-width: 520px) {
  .app { padding: 10px 10px 28px; }
  .header { padding: 15px 16px 14px; border-radius: 16px; }
  .school-name { font-size: 12px; }
  .logo-box { width: 44px; height: 44px; font-size: 12px; border-radius: 12px; }
  .kid-switcher { gap: 8px; }
  .kid-btn { padding: 12px 8px 10px; border-radius: 14px; }
  .kid-name { font-size: 14px; }
  .calendar-row { gap: 5px; }
  .day-btn { border-radius: 12px; padding: 8px 2px 6px; }
  .day-num { font-size: 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full-span { grid-column: 1; }
  .stats-row { gap: 7px; }
  .stat-num { font-size: 24px; }
  .task-card { padding: 11px 12px; gap: 10px; }
  .task-icon { width: 38px; height: 38px; border-radius: 10px; }
  .task-title { font-size: 13px; }
  .tab-btn { padding: 9px 12px; font-size: 12px; gap: 5px; }
  .add-btn { padding: 9px 14px; }
  .task-actions select { max-width: 95px; font-size: 10px; }
}

@media (max-width: 380px) {
  .header-date { display: none; }
  .school-name { font-size: 11px; }
}


The file /Users/khalidbinkalban/ascs-homework-tracker/src/App.css has been updated successfully.

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: #f0f2f7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.app {
  max-width: 860px;
  margin: 0 auto;
  padding: 14px 14px 36px;
}

/* ─── Loading Screen ─── */
.loading-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f0f2f7;
}

.loading-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.loading-logo {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #1D9E75, #185FA5);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  color: white;
  letter-spacing: -0.5px;
}

.loading-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid #e0e0e0;
  border-top-color: #1D9E75;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-text {
  font-size: 14px;
  color: #888;
  font-weight: 500;
}

/* ─── Header ─── */
.header {
  border-radius: 20px;
  padding: 18px 20px 16px;
  color: white;
  margin-bottom: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-box {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.5px;
  flex-shrink: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.school-name {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.app-subtitle {
  font-size: 12px;
  opacity: 0.85;
  margin-top: 2px;
}

.header-date-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
}

.header-date {
  font-size: 11px;
  opacity: 0.8;
  white-space: nowrap;
}

.header-clock {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.5px;
  opacity: 0.95;
}

.sync-badge {
  display: flex;
  align-items: center;
  gap: 3px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 99px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-top: 2px;
}

.header-progress {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 10px 12px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  opacity: 0.9;
  margin-bottom: 6px;
}

.progress-pct { font-weight: 800; }

.progress-track {
  height: 7px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 99px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 99px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 4px;
}

/* ─── Kid Switcher ─── */
.kid-switcher {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.kid-btn {
  flex: 1;
  padding: 14px 10px 12px;
  border-radius: 18px;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  background: white;
}

.kid-btn.active {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

.kid-avatar-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 6px;
  line-height: 0;
}

.kid-name {
  display: block;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.kid-grade {
  display: block;
  font-size: 11px;
  color: #888;
  margin-bottom: 8px;
}

.kid-mini-progress {
  height: 4px;
  background: #e8e8e8;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 8px;
  width: 70%;
  margin-left: auto;
  margin-right: auto;
}

.kid-mini-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.5s ease;
  min-width: 3px;
}

.kid-badges {
  display: flex;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}

/* ─── Calendar ─── */
.calendar-section { margin-bottom: 16px; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
}

.calendar-row {
  display: flex;
  gap: 6px;
}

.day-btn {
  flex: 1;
  padding: 9px 4px 7px;
  border-radius: 14px;
  border: 2px solid;
  cursor: pointer;
  text-align: center;
  background: white;
  transition: all 0.2s ease;
  min-width: 0;
}

.day-btn.active {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.day-name {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.day-num {
  display: block;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}

.day-count {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 99px;
}

.day-summary {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: white;
  border: 1px solid #eee;
}

.day-summary-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 6px;
}

.day-summary-tasks {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.day-task-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 20px;
  font-weight: 600;
}

/* ─── Stats ─── */
.stats-row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.stat-card {
  flex: 1;
  padding: 12px 8px;
  border-radius: 14px;
  text-align: center;
  background: white;
  border-top: 3px solid;
}

.stat-dot {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin: 0 auto 4px;
}

.stat-num {
  display: block;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 3px;
}

.stat-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* ─── Tabs + Add ─── */
.tab-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 22px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  transition: all 0.2s ease;
}

.tab-count {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 99px;
}

.add-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 18px;
  border-radius: 22px;
  border: none;
  cursor: pointer;
  font-weight: 800;
  font-size: 13px;
  color: white;
  transition: all 0.2s ease;
}

.add-btn:active { transform: scale(0.96); }

/* ─── Form ─── */
.form-card {
  background: white;
  border: 1.5px solid;
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.form-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 800;
}

.form-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid #eee;
  background: #f5f5f5;
  cursor: pointer;
  color: #888;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-field.full-span { grid-column: 1 / -1; }

.form-label {
  font-size: 11px;
  font-weight: 700;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.form-field select,
.form-field input {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px solid #ddd;
  font-size: 13px;
  width: 100%;
  background: white;
  transition: border-color 0.2s;
  outline: none;
  color: #222;
  -webkit-appearance: none;
  appearance: none;
}

.form-field select:focus,
.form-field input:focus { border-color: #888; }

.type-toggle { display: flex; gap: 8px; }

.type-opt {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px;
  border-radius: 10px;
  border: 1.5px solid;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.form-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.save-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px;
  border-radius: 12px;
  border: none;
  color: white;
  font-weight: 800;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.save-btn:disabled { cursor: not-allowed; opacity: 0.7; }

.cancel-btn {
  padding: 12px 20px;
  border-radius: 12px;
  border: 1.5px solid #e0e0e0;
  background: white;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #666;
}

/* ─── Task List ─── */
.task-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.task-card {
  background: white;
  border-radius: 16px;
  border: 1.5px solid #eaecf0;
  border-left: 4px solid;
  padding: 13px 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.task-card:active { transform: scale(0.99); }
.task-card.overdue { background: #fff8f8; border-color: #F09595; }
.task-card.done { opacity: 0.7; }

.task-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.task-icon svg { display: block; }

.task-body {
  flex: 1;
  min-width: 0;
}

.task-title {
  font-weight: 700;
  font-size: 14px;
  color: #1a1a1a;
  margin-bottom: 6px;
  line-height: 1.35;
  transition: color 0.2s;
}

.task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 20px;
  font-weight: 700;
}

.badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

.task-due {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 500;
}

.task-source {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  color: #bbb;
  font-weight: 500;
}

.task-actions {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
  align-items: flex-end;
}

.task-actions select {
  font-size: 11px;
  padding: 6px 7px;
  border-radius: 9px;
  border: 1.5px solid;
  background: white;
  cursor: pointer;
  outline: none;
  color: inherit;
  max-width: 110px;
  -webkit-appearance: none;
  appearance: none;
}

.remove-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 26px;
  border-radius: 8px;
  border: 1px solid #eee;
  background: white;
  color: #E24B4A;
  cursor: pointer;
  transition: all 0.15s;
}

.remove-btn:hover {
  background: #fff0f0;
  border-color: #E24B4A;
}

/* ─── Empty State ─── */
.empty-state {
  text-align: center;
  padding: 36px 20px;
  border-radius: 18px;
  border: 2px dashed;
}

.empty-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
  opacity: 0.6;
}

.empty-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 4px;
}

.empty-sub {
  font-size: 13px;
  color: #aaa;
  margin-bottom: 16px;
}

.empty-add-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 11px 24px;
  border-radius: 22px;
  border: none;
  color: white;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.empty-add-btn:active { transform: scale(0.97); }

/* ─── Footer ─── */
.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 28px;
  padding: 12px;
  font-size: 12px;
  color: #ccc;
}

.footer-dot { opacity: 0.5; }

/* ─── Responsive ─── */
@media (max-width: 520px) {
  .app { padding: 10px 10px 28px; }
  .header { padding: 15px 16px 14px; border-radius: 16px; }
  .school-name { font-size: 12px; }
  .logo-box { width: 44px; height: 44px; font-size: 12px; border-radius: 12px; }
  .kid-switcher { gap: 8px; }
  .kid-btn { padding: 12px 8px 10px; border-radius: 14px; }
  .kid-name { font-size: 14px; }
  .calendar-row { gap: 5px; }
  .day-btn { border-radius: 12px; padding: 8px 2px 6px; }
  .day-num { font-size: 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full-span { grid-column: 1; }
  .stats-row { gap: 7px; }
  .stat-num { font-size: 24px; }
  .task-card { padding: 11px 12px; gap: 10px; }
  .task-icon { width: 38px; height: 38px; border-radius: 10px; }
  .task-title { font-size: 13px; }
  .tab-btn { padding: 9px 12px; font-size: 12px; gap: 5px; }
  .add-btn { padding: 9px 14px; }
  .task-actions select { max-width: 95px; font-size: 10px; }
}

@media (max-width: 380px) {
  .header-date { display: none; }
  .school-name { font-size: 11px; }
}

+  background: linear-gradient(135deg, #1D9E75, #185FA5);

+  animation: spin 0.8s linear infinite;

margin-bottom: 6px;
}
-.progress-pct {
-  font-weight: 800;
-}
+.progress-pct { font-weight: 800; }
.progress-track {
height: 7px;

transform: translateY(-1px);
}
-.kid-emoji {
-  display: block;
-  font-size: 32px;
-  margin-bottom: 5px;
-  line-height: 1;
+.kid-avatar-wrap {
+  display: flex;
+  justify-content: center;
+  margin-bottom: 6px;
+  line-height: 0;
}
.kid-name {

+.calendar-section { margin-bottom: 16px; }

}
.day-task-chip {
+  display: inline-flex;
+  align-items: center;
+  gap: 4px;
font-size: 11px;
padding: 3px 9px;
border-radius: 20px;

text-align: center;
background: white;
border-top: 3px solid;
-  position: relative;
-  overflow: hidden;
}
.stat-dot {

}
.tab-btn {
-  display: flex;
+  display: inline-flex;
align-items: center;
gap: 6px;
padding: 10px 16px;

+.add-btn:active { transform: scale(0.96); }

}
.form-title {
+  display: inline-flex;
+  align-items: center;
+  gap: 6px;
font-size: 14px;
font-weight: 800;
}

border: 1.5px solid #eee;
background: #f5f5f5;
cursor: pointer;
-  font-size: 12px;
color: #888;
display: flex;
align-items: center;

+.form-field.full-span { grid-column: 1 / -1; }

+.form-field input:focus { border-color: #888; }

+.type-toggle { display: flex; gap: 8px; }

font-size: 13px;
font-weight: 600;
transition: all 0.2s ease;
-  text-align: center;
}
.form-actions {

.save-btn {
flex: 1;
+  display: inline-flex;
+  align-items: center;
+  justify-content: center;
+  gap: 6px;
padding: 12px;
border-radius: 12px;
border: none;

+.save-btn:disabled { cursor: not-allowed; opacity: 0.7; }

+.task-card:active { transform: scale(0.99); }

+.task-card.overdue { background: #fff8f8; border-color: #F09595; }

display: flex;
align-items: center;
justify-content: center;
-  font-size: 22px;
flex-shrink: 0;
}
+.task-icon svg { display: block; }
+
.task-body {
flex: 1;
min-width: 0;

}
.badge {
+  display: inline-flex;
+  align-items: center;
+  gap: 4px;
font-size: 10px;
padding: 3px 8px;
border-radius: 20px;
font-weight: 700;
-  display: inline-flex;
-  align-items: center;
-  gap: 4px;
}
.badge-dot {

}
.task-due {
+  display: inline-flex;
+  align-items: center;
+  gap: 3px;
font-size: 11px;
font-weight: 500;
}
.task-source {
+  display: inline-flex;
+  align-items: center;
+  gap: 3px;
font-size: 10px;
color: #bbb;
font-weight: 500;

}
.remove-btn {
-  font-size: 10px;
-  padding: 5px 9px;
+  display: flex;
+  align-items: center;
+  justify-content: center;
+  width: 28px;
+  height: 26px;
border-radius: 8px;
border: 1px solid #eee;
background: white;
color: #E24B4A;
cursor: pointer;
-  font-weight: 700;
transition: all 0.15s;
}

border: 2px dashed;
}
-.empty-emoji {
-  font-size: 44px;
+.empty-icon {
+  display: flex;
+  justify-content: center;
margin-bottom: 10px;
-  display: block;
+  opacity: 0.6;
}
.empty-title {

}
.empty-add-btn {
-  display: inline-block;
+  display: inline-flex;
+  align-items: center;
+  gap: 5px;
padding: 11px 24px;
border-radius: 22px;
border: none;

+.empty-add-btn:active { transform: scale(0.97); }

+  .header { padding: 15px 16px 14px; border-radius: 16px; }

+  .logo-box { width: 44px; height: 44px; font-size: 12px; border-radius: 12px; }

+  .kid-btn { padding: 12px 8px 10px; border-radius: 14px; }

+  .day-btn { border-radius: 12px; padding: 8px 2px 6px; }

+  .form-grid { grid-template-columns: 1fr; }

+  .form-field.full-span { grid-column: 1; }

+  .task-card { padding: 11px 12px; gap: 10px; }

+  .task-icon { width: 38px; height: 38px; border-radius: 10px; }

+  .tab-btn { padding: 9px 12px; font-size: 12px; gap: 5px; }

+  .task-actions select { max-width: 95px; font-size: 10px; }

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: #f0f2f7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

.app {
  max-width: 860px;
  margin: 0 auto;
  padding: 14px 14px 32px;
}

/* ─── Header ─── */
.header {
  border-radius: 20px;
  padding: 18px 20px 16px;
  color: white;
  margin-bottom: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
}

.header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-box {
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: -0.5px;
  flex-shrink: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
}

.school-name {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
}

.app-subtitle {
  font-size: 12px;
  opacity: 0.85;
  margin-top: 2px;
}

.header-date {
  font-size: 11px;
  opacity: 0.75;
  white-space: nowrap;
  padding-top: 4px;
}

.header-progress {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  padding: 10px 12px;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  opacity: 0.9;
  margin-bottom: 6px;
}

.progress-pct {
  font-weight: 800;
}

.progress-track {
  height: 7px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 99px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 99px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 4px;
}

/* ─── Kid Switcher ─── */
.kid-switcher {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
}

.kid-btn {
  flex: 1;
  padding: 14px 10px 12px;
  border-radius: 18px;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
  background: white;
}

.kid-btn.active {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  transform: translateY(-1px);
}

.kid-emoji {
  display: block;
  font-size: 32px;
  margin-bottom: 5px;
  line-height: 1;
}

.kid-name {
  display: block;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.3px;
}

.kid-grade {
  display: block;
  font-size: 11px;
  color: #888;
  margin-bottom: 8px;
}

.kid-mini-progress {
  height: 4px;
  background: #e8e8e8;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 8px;
  width: 70%;
  margin-left: auto;
  margin-right: auto;
}

.kid-mini-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.5s ease;
  min-width: 3px;
}

.kid-badges {
  display: flex;
  justify-content: center;
  gap: 4px;
  flex-wrap: wrap;
}

/* ─── Calendar ─── */
.calendar-section {
  margin-bottom: 16px;
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
}

.calendar-row {
  display: flex;
  gap: 6px;
}

.day-btn {
  flex: 1;
  padding: 9px 4px 7px;
  border-radius: 14px;
  border: 2px solid;
  cursor: pointer;
  text-align: center;
  background: white;
  transition: all 0.2s ease;
  min-width: 0;
}

.day-btn.active {
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

.day-name {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.day-num {
  display: block;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}

.day-count {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 99px;
}

.day-summary {
  margin-top: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: white;
  border: 1px solid #eee;
}

.day-summary-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  margin-bottom: 6px;
}

.day-summary-tasks {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.day-task-chip {
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 20px;
  font-weight: 600;
}

/* ─── Stats ─── */
.stats-row {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.stat-card {
  flex: 1;
  padding: 12px 8px;
  border-radius: 14px;
  text-align: center;
  background: white;
  border-top: 3px solid;
  position: relative;
  overflow: hidden;
}

.stat-dot {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin: 0 auto 4px;
}

.stat-num {
  display: block;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 3px;
}

.stat-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* ─── Tabs + Add ─── */
.tab-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 14px;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 22px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 13px;
  transition: all 0.2s ease;
}

.tab-count {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 99px;
}

.add-btn {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 10px 18px;
  border-radius: 22px;
  border: none;
  cursor: pointer;
  font-weight: 800;
  font-size: 14px;
  color: white;
  transition: all 0.2s ease;
}

.add-btn:active {
  transform: scale(0.96);
}

.add-icon {
  font-size: 18px;
  line-height: 1;
  margin-top: -1px;
}

.add-label {
  font-size: 13px;
}

/* ─── Form ─── */
.form-card {
  background: white;
  border: 1.5px solid;
  border-radius: 18px;
  padding: 18px;
  margin-bottom: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.form-title {
  font-size: 14px;
  font-weight: 800;
}

.form-close {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px solid #eee;
  background: #f5f5f5;
  cursor: pointer;
  font-size: 12px;
  color: #888;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.form-field.full-span {
  grid-column: 1 / -1;
}

.form-label {
  font-size: 11px;
  font-weight: 700;
  color: #777;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.form-field select,
.form-field input {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1.5px solid #ddd;
  font-size: 13px;
  width: 100%;
  background: white;
  transition: border-color 0.2s;
  outline: none;
  color: #222;
  -webkit-appearance: none;
  appearance: none;
}

.form-field select:focus,
.form-field input:focus {
  border-color: #888;
}

.type-toggle {
  display: flex;
  gap: 8px;
}

.type-opt {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  border: 1.5px solid;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.2s ease;
  text-align: center;
}

.form-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.save-btn {
  flex: 1;
  padding: 12px;
  border-radius: 12px;
  border: none;
  color: white;
  font-weight: 800;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.save-btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.cancel-btn {
  padding: 12px 20px;
  border-radius: 12px;
  border: 1.5px solid #e0e0e0;
  background: white;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #666;
}

/* ─── Task List ─── */
.task-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.task-card {
  background: white;
  border-radius: 16px;
  border: 1.5px solid #eaecf0;
  border-left: 4px solid;
  padding: 13px 14px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: all 0.2s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.task-card:active {
  transform: scale(0.99);
}

.task-card.overdue {
  background: #fff8f8;
  border-color: #F09595;
}

.task-card.done {
  opacity: 0.7;
}

.task-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.task-body {
  flex: 1;
  min-width: 0;
}

.task-title {
  font-weight: 700;
  font-size: 14px;
  color: #1a1a1a;
  margin-bottom: 6px;
  line-height: 1.35;
  transition: color 0.2s;
}

.task-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.badge {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 20px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  flex-shrink: 0;
}

.task-due {
  font-size: 11px;
  font-weight: 500;
}

.task-source {
  font-size: 10px;
  color: #bbb;
  font-weight: 500;
}

.task-actions {
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex-shrink: 0;
  align-items: flex-end;
}

.task-actions select {
  font-size: 11px;
  padding: 6px 7px;
  border-radius: 9px;
  border: 1.5px solid;
  background: white;
  cursor: pointer;
  outline: none;
  color: inherit;
  max-width: 110px;
  -webkit-appearance: none;
  appearance: none;
}

.remove-btn {
  font-size: 10px;
  padding: 5px 9px;
  border-radius: 8px;
  border: 1px solid #eee;
  background: white;
  color: #E24B4A;
  cursor: pointer;
  font-weight: 700;
  transition: all 0.15s;
}

.remove-btn:hover {
  background: #fff0f0;
  border-color: #E24B4A;
}

/* ─── Empty State ─── */
.empty-state {
  text-align: center;
  padding: 36px 20px;
  border-radius: 18px;
  border: 2px dashed;
}

.empty-emoji {
  font-size: 44px;
  margin-bottom: 10px;
  display: block;
}

.empty-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 4px;
}

.empty-sub {
  font-size: 13px;
  color: #aaa;
  margin-bottom: 16px;
}

.empty-add-btn {
  display: inline-block;
  padding: 11px 24px;
  border-radius: 22px;
  border: none;
  color: white;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.empty-add-btn:active {
  transform: scale(0.97);
}

/* ─── Footer ─── */
.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
  padding: 12px;
  font-size: 12px;
  color: #ccc;
}

.footer-dot {
  opacity: 0.5;
}

/* ─── Responsive ─── */
@media (max-width: 520px) {
  .app {
    padding: 10px 10px 28px;
  }

  .header {
    padding: 15px 16px 14px;
    border-radius: 16px;
  }

  .school-name {
    font-size: 12px;
  }

  .logo-box {
    width: 44px;
    height: 44px;
    font-size: 12px;
    border-radius: 12px;
  }

  .kid-switcher {
    gap: 8px;
  }

  .kid-btn {
    padding: 12px 8px 10px;
    border-radius: 14px;
  }

  .kid-emoji {
    font-size: 28px;
  }

  .kid-name {
    font-size: 14px;
  }

  .calendar-row {
    gap: 5px;
  }

  .day-btn {
    border-radius: 12px;
    padding: 8px 2px 6px;
  }

  .day-num {
    font-size: 16px;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-field.full-span {
    grid-column: 1;
  }

  .type-toggle {
    flex-direction: row;
  }

  .stats-row {
    gap: 7px;
  }

  .stat-num {
    font-size: 24px;
  }

  .task-card {
    padding: 11px 12px;
    gap: 10px;
  }

  .task-icon {
    width: 38px;
    height: 38px;
    font-size: 19px;
    border-radius: 10px;
  }

  .task-title {
    font-size: 13px;
  }

  .tab-btn {
    padding: 9px 12px;
    font-size: 12px;
  }

  .add-btn {
    padding: 9px 14px;
  }

  .task-actions select {
    max-width: 95px;
    font-size: 10px;
  }
}

@media (max-width: 380px) {
  .header-date {
    display: none;
  }

  .school-name {
    font-size: 11px;
  }
}


> ascs-homework-tracker@1.0.0 build
> vite build

The CJS build of Vite's Node API is deprecated. See https://vite.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.
vite v5.4.21 building for production...
transforming...
✓ 1515 modules transformed.
rendering chunks...
computing gzip size...
dist/index.html                   0.59 kB │ gzip:  0.40 kB
dist/assets/index-BMdXrO2M.css   10.52 kB │ gzip:  2.60 kB
dist/assets/index-DeaqBa1P.js   354.24 kB │ gzip: 94.73 kB
✓ built in 700ms


Clean build. Now let's deploy to Vercel for the shareable URL:


Vercel CLI 50.39.0
50.39.0


Command running in background with ID: bjpuf07ne. Output is being written to: /private/tmp/claude-501/-Users-khalidbinkalban/b8a417d9-4c38-43aa-9f78-45d2d13b63d0/tasks/bjpuf07ne.output


Bash

sleep 5 && cat /private/tmp/claude-501/-Users-khalidbinkalban/b8a417d9-4c38-43aa-9f78-45d2d13b63d0/tasks/bjpuf07ne.output 2>/dev/null


> NOTE: The Vercel CLI now collects telemetry regarding usage of the CLI.
> This information is used to shape the CLI roadmap and prioritize features.
> You can learn more, including how to opt-out if you'd not like to participate in this program, by visiting the following URL:
> https://vercel.com/docs/cli/about-telemetry
> No existing credentials found. Starting login flow...
>
  Visit https://vercel.com/oauth/device?user_code=BRWC-PMWK

Waiting for authentication...


Vercel needs you to log in first. Please run this in your terminal:

```
! npx vercel login
```

It will open a browser link to authenticate. Once done, come back and I'll deploy it for you automatically.

---

Meanwhile, here's a summary of everything that was updated:

**Changes made:**

- **SVG icons** — All emojis replaced:
  - Abdulla → hand-drawn SVG lion (mane, whiskers, eyes)
  - Salama → hand-drawn SVG butterfly (wings, antennae, body)
  - Subjects → lucide-react icons (Calculator, BookOpen, PenLine, Microscope, Palette, Trophy, Moon, BookMarked)
  - UI icons → Calendar, FileText, Layers, Plus, X, Check, AlertTriangle, Bell, Heart, Send, GraduationCap

- **Sources** → only **Telegram** and **Edunation** (with matching icons in task cards)

- **Live clock** → updates every second in the header, with `tabular-nums` to prevent layout shift

- **Live data (Firebase)** — `src/lib/firebase.js` + updated `useTasks.js`:
  - When Firebase is configured → real-time sync across all devices via `onValue` listener
  - When not configured → falls back to `localStorage` (works offline)
  - Shows a **"● Live"** badge in the header when connected

Once you're logged in to Vercel, type `continue` and I'll deploy it!


<task-notification>
<task-id>b8hh930x5</task-id>
<tool-use-id>toolu_01KfVVcLnjP5RQ7CKKfqust4</tool-use-id>
<output-file>/private/tmp/claude-501/-Users-khalidbinkalban/b8a417d9-4c38-43aa-9f78-45d2d13b63d0/tasks/b8hh930x5.output</output-file>
<status>completed</status>
<summary>Background command "which vercel 2>/dev/null || npx vercel --version 2>/dev/null | head -1 || echo "vercel-not-found"" completed (exit code 0)</summary>
</task-notification>


That notification is just from the earlier version check — nothing to act on yet.

Please run this in your terminal to log in to Vercel:

```
! npx vercel login
```

It will show a browser link. Click it, authenticate, then come back here and say **"done"** — I'll deploy the app immediately and give you the shareable URL.


- Make it SVG instead of emojies - the source of homeworks dropdown to be Telegram and Edunation  - Make it live data and live date - provide a url link to share it with my wife and start using the ap…