/* ── Medications — CuidarApp ─────────────────────────────────────────── */

/* Dose card */
.doses-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.dose-card {
  background: #fff;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.08);
  display: flex;
  align-items: center;
  gap: 1rem;
  border-left: 4px solid #ccc;
}

.dose-card.pending   { border-left-color: #f59e0b; }
.dose-card.administered { border-left-color: #10b981; }
.dose-card.missed    { border-left-color: #ef4444; }

.dose-time {
  font-size: 1.1rem;
  font-weight: 700;
  color: #374151;
  min-width: 52px;
  text-align: center;
}

.dose-info {
  flex: 1;
}

.dose-name {
  font-weight: 600;
  color: #111827;
}

.dose-dosage {
  font-size: 0.85rem;
  color: #6b7280;
}

.dose-status {
  font-size: 0.8rem;
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.dose-status.pending       { background: #fef3c7; color: #92400e; }
.dose-status.administered  { background: #d1fae5; color: #065f46; }
.dose-status.missed        { background: #fee2e2; color: #991b1b; }

.dose-action {
  min-width: 100px;
  text-align: right;
}

/* Today label */
.today-label {
  font-size: 0.95rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

/* Notification banner */
.notification-banner {
  background: #fef3c7;
  border-bottom: 2px solid #f59e0b;
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: #92400e;
}

/* Times container */
.times-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.time-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.time-input {
  flex: 1;
  max-width: 160px;
  padding: 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 1rem;
}

.btn-remove-time {
  background: #fee2e2;
  border: none;
  color: #991b1b;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-remove-time:hover { background: #fca5a5; }

/* Form layout */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group-action {
  display: flex;
  align-items: flex-end;
}

/* History list */
.history-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.history-item {
  background: #fff;
  border-radius: 8px;
  padding: 0.85rem 1rem;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
  display: grid;
  grid-template-columns: 80px 1fr auto;
  align-items: center;
  gap: 0.75rem;
  border-left: 4px solid #ccc;
}

.history-item.administered { border-left-color: #10b981; }
.history-item.missed       { border-left-color: #ef4444; }
.history-item.pending      { border-left-color: #f59e0b; }

.history-date {
  font-size: 0.8rem;
  color: #6b7280;
  font-weight: 600;
}

.history-name {
  font-weight: 600;
  color: #111827;
  font-size: 0.95rem;
}

.history-by {
  font-size: 0.8rem;
  color: #6b7280;
}

/* Filter form */
.filter-form {
  background: #f9fafb;
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1rem;
}

/* Page actions */
.page-actions {
  display: flex;
  gap: 0.5rem;
}

/* Responsive */
@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .history-item { grid-template-columns: 70px 1fr; }
  .history-item .dose-status { display: none; }
  .dose-card { flex-wrap: wrap; }
  .dose-action { width: 100%; text-align: left; }
}
