/* ─── Checklists — CuidarApp ───────────────────────────────────────────────── */

/* Progress Card */
.progress-card {
  background: #fff;
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
}

.progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #374151;
}

#progress-pct {
  color: var(--blue, #1267a8);
  font-size: 1.1rem;
}

.progress-bar-bg {
  background: #e5e7eb;
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.progress-bar-fill {
  background: linear-gradient(90deg, var(--blue, #1267a8), var(--aqua, #18a99d));
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
}

.progress-bar-fill.complete {
  background: linear-gradient(90deg, #16a34a, #4ade80);
}

/* Category Groups */
.category-group {
  margin-bottom: 20px;
}

.category-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  margin-bottom: 8px;
  padding-left: 4px;
}

/* Checklist Items */
.checklist-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,.07);
  transition: opacity 0.2s;
}

.checklist-item.done {
  opacity: 0.65;
}

.checklist-item.done .item-title {
  text-decoration: line-through;
  color: #9ca3af;
}

.checklist-checkbox {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  cursor: pointer;
  accent-color: var(--blue, #1267a8);
}

.item-info {
  flex: 1;
  min-width: 0;
}

.item-title {
  font-weight: 600;
  color: #1f2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-meta {
  font-size: 0.78rem;
  color: #6b7280;
  margin-top: 2px;
}

.item-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  background: #f3f4f6;
  color: #374151;
}

.item-badge.higiene    { background: #dbeafe; color: #1d4ed8; }
.item-badge.alimentacao { background: #fef9c3; color: #92400e; }
.item-badge.fisioterapia { background: #d1fae5; color: #065f46; }
.item-badge.medicacao  { background: #ede9fe; color: #5b21b6; }
.item-badge.geral      { background: #f3f4f6; color: #374151; }

/* Manage Items */
.manage-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,.07);
}

.manage-item-info {
  flex: 1;
  min-width: 0;
}

.manage-item-title {
  font-weight: 600;
  color: #1f2937;
}

.manage-item-meta {
  font-size: 0.78rem;
  color: #6b7280;
  margin-top: 2px;
}

.btn-remove-item {
  background: none;
  border: none;
  color: #ef4444;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s;
}

.btn-remove-item:hover {
  background: #fee2e2;
}

/* History */
.history-day {
  background: #fff;
  border-radius: 12px;
  margin-bottom: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,.07);
  overflow: hidden;
}

.history-day-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.history-day-date {
  font-weight: 700;
  color: #1f2937;
}

.history-day-progress {
  font-size: 0.85rem;
  color: #6b7280;
}

.history-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-bottom: 1px solid #f3f4f6;
}

.history-item:last-child {
  border-bottom: none;
}

.history-item-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.history-item-dot.completed { background: #22c55e; }
.history-item-dot.pending   { background: #d1d5db; }

.history-item-name {
  font-size: 0.9rem;
  color: #374151;
  flex: 1;
}

.history-item-by {
  font-size: 0.75rem;
  color: #9ca3af;
}

/* Utilities */
.subtitle-date {
  font-size: 0.85rem;
  color: #9ca3af;
  margin-top: 2px;
}

.section-title {
  font-size: 1rem;
  font-weight: 700;
  color: #374151;
  margin: 24px 0 12px;
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: #374151;
}

.filter-bar select {
  padding: 6px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  font-size: 0.9rem;
  color: #374151;
}
