/* Persisted display accessibility preference. Zoom scales every text label and control,
   including components that use fixed pixel sizes in the dashboard styles. */
body.font-large { zoom: 1.12; }
body.font-extra-large { zoom: 1.25; }

.appointment-actions { display: flex; align-items: center; gap: 7px; }
.appointment-delete { width: 32px; height: 32px; border: 0; border-radius: 8px; display: grid; place-items: center; color: #b6534a; background: #fff0ee; }
.appointment-delete:hover { background: #ffdeda; }
.appointment-delete i { width: 16px; height: 16px; }
.appointment-edit { width: 32px; height: 32px; border: 0; border-radius: 8px; display: grid; place-items: center; color: #3648ae; background: #e9edff; }
.appointment-edit:hover { background: #dbe2ff; }
.appointment-edit i { width: 16px; height: 16px; }
.appointment-info em { color: #5362c4; font-style: normal; font-weight: 700; }
.repeat-select { appearance: auto; }

.note-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -8px 0 20px; }
.note-filters { display: flex; flex-wrap: wrap; gap: 7px; }
.note-filter { min-height: 34px; padding: 7px 11px; border: 1px solid #dfe4f1; border-radius: 20px; color: #68748c; background: #fff; font: 700 11px "DM Sans", sans-serif; }
.note-filter:hover, .note-filter.active { color: #25358f; border-color: #b8c2f3; background: #edf0ff; }
.note-sort { min-height: 36px; padding: 0 10px; border: 1px solid #dfe4f1; border-radius: 8px; color: #56627c; background: #fff; font: 700 11px "DM Sans", sans-serif; }
.note-pin { color: #916e19 !important; background: #fff6d9 !important; }
.note-pin.pinned { color: #6f5512 !important; background: #ffeaa5 !important; }
.note-complete { padding: 7px 10px; border: 0; border-radius: 8px; color: #397250; background: #e6f5eb; font: 700 10px "DM Sans", sans-serif; }
.note-complete:hover { background: #d6f0df; }
.note-card.completed { opacity: .72; }
.note-card.completed h2 { text-decoration: line-through; }
.note-card .note-status { display: inline-block; margin-top: 5px; color: #4d966b; font-size: 9px; font-weight: 700; letter-spacing: .6px; }
.notes-list .note { position: relative; }
.pinned-heading-icon { width: 19px; height: 19px; margin-right: 7px; vertical-align: -3px; color: #5564c5; }
.dashboard-unpin { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border: 0; border-radius: 50%; color: #68748c; background: rgba(255,255,255,.65); font-size: 16px; line-height: 1; opacity: 0; transition: opacity .2s; }
.note:hover .dashboard-unpin, .dashboard-unpin:focus-visible { opacity: 1; }
.note-form-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
@media (max-width: 600px) {
  .note-controls { align-items: stretch; flex-direction: column; } .note-sort { width: 100%; } .note-form-meta { grid-template-columns: 1fr; }
  /* Bigger tap targets for appointment row actions on touch screens */
  .appointment-actions { gap: 8px; }
  .appointment-edit, .appointment-delete { width: 36px; height: 36px; }
}
@media (max-width: 800px) { .dashboard-unpin { opacity: 1; } }

.medicine-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 16px; }
.medicine-filters { display: flex; flex-wrap: wrap; gap: 7px; }
.medicine-filter { min-height: 34px; padding: 7px 11px; border: 1px solid #dfe4f1; border-radius: 20px; color: #68748c; background: #fff; font: 700 11px "DM Sans", sans-serif; }
.medicine-filter:hover, .medicine-filter.active { color: #25358f; border-color: #b8c2f3; background: #edf0ff; }
.medicine-actions { display: flex; align-items: center; gap: 7px; }
.medicine-edit, .medicine-delete { width: 32px; height: 32px; border: 0; border-radius: 8px; display: grid; place-items: center; }
.medicine-edit { color: #3648ae; background: #e9edff; }.medicine-edit:hover { background: #dbe2ff; }
.medicine-delete { color: #b6534a; background: #fff0ee; }.medicine-delete:hover { background: #ffdeda; }
.medicine-edit i, .medicine-delete i { width: 16px; height: 16px; }
.medicine-repeat { display: block; margin-top: 3px; color: #5f6fc4; font-size: 10px; font-weight: 700; }
.medicine-instructions { margin-top: 6px; color: #8a93a5; font-size: 10px; }
@media (max-width: 600px) { .medicine-controls { align-items: stretch; flex-direction: column; } }

@media (max-width: 800px) {
  body.font-large { zoom: 1.08; }
  body.font-extra-large { zoom: 1.16; }
}
