:root {
  --sidebar-bg: #1e5c3a;
  --sidebar-width: 240px;
  --accent: #2e86de;
  --accent-soft: #e8f2fc;
  --accent-green: #1db87a;
  --accent-orange: #f5a623;
  --accent-red: #e84848;
  --text-muted-custom: #8a93a2;
  --card-border: #e8edf3;
  --bg-page: #f4f7fb;
  --topbar-h: 60px;
}

/* ── SECTION CARD ── */
.section-card {
  background: #fff;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
}
.section-card-header {
  padding: 16px 22px;
  border-bottom: 1px solid var(--card-border);
  display: flex; align-items: center; justify-content: space-between;
}
.section-card-title { font-size: .95rem; font-weight: 600; }
.section-card-body { padding: 0; }

/* ── CALENDAR ── */
.calendar-nav {
  display: flex; align-items: center; gap: 12px;
}
.cal-nav-btn {
  width: 30px; height: 30px; border-radius: 7px;
  border: 1px solid var(--card-border); background: var(--bg-page);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: #4a5568; transition: all .15s;
}
.cal-nav-btn:hover { background: var(--accent-soft); color: var(--accent); border-color: #c4dcf5; }
.cal-month-label { font-size: .95rem; font-weight: 600; min-width: 130px; text-align: center; }

.calendar-grid {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 1px; background: var(--card-border);
  border: 1px solid var(--card-border);
}
.cal-day-header {
  background: #fafbfd; text-align: center;
  font-size: .68rem; font-weight: 600; color: var(--text-muted-custom);
  text-transform: uppercase; letter-spacing: 1px;
  padding: 8px 0;
}
.cal-cell {
  background: #fff; min-height: 90px; padding: 6px;
  position: relative; vertical-align: top;
}
.cal-cell.other-month { background: #fafbfd; }
.cal-cell.today .cal-date {
  background: var(--accent); color: #fff;
  border-radius: 50%; width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
}
.cal-date {
  font-size: .78rem; font-weight: 600; color: #4a5568;
  margin-bottom: 4px; width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
}
.cal-cell.other-month .cal-date { color: #c0c8d4; }
.cal-event {
  font-size: .68rem; font-weight: 500;
  padding: 2px 6px; border-radius: 4px;
  margin-bottom: 2px; cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: opacity .15s;
}
.cal-event:hover { opacity: .8; }
.cal-event.blue   { background: var(--accent-soft); color: #1a5ea8; }
.cal-event.green  { background: #e6f9f2; color: #1a9e6a; }
.cal-event.orange { background: #fef5e7; color: #c47a00; }

/* ── UPCOMING LIST ── */
.appt-item {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 18px;
  border-bottom: 1px solid #f1f4f9;
}
.appt-item:last-child { border-bottom: none; }
.appt-time {
  font-size: .75rem; font-weight: 600;
  color: var(--text-muted-custom); min-width: 54px;
}
.appt-info .appt-patient { font-size: .86rem; font-weight: 600; }
.appt-info .appt-doctor  { font-size: .76rem; color: var(--text-muted-custom); }

.avatar-sm {
  width: 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 600; color: #fff; flex-shrink: 0;
}
