/* === Appointments Widget (Figma Style) === */
.appointments-widget-section {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 2px 16px 0 rgba(32,101,209,0.07);
  margin-bottom: 36px;
  padding: 36px 24px;
}
.appointments-widget-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #2065d1;
  margin-bottom: 22px;
  font-family: 'Public Sans', 'Inter', Arial, sans-serif;
}
.appointments-widget-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.appointments-widget-card {
  background: #F3E8FD;
  border-radius: 16px;
  box-shadow: 0 1px 5px 0 rgba(32,101,209,0.04);
  transition: box-shadow 0.18s, transform 0.18s;
  padding: 22px 22px 22px 22px; /* Not Modal */
  display: flex;
  flex-direction: column;
  gap: 12px;
  border: 2px solid transparent;
  position: relative;
}
.appointments-widget-actions {
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  gap: 7px;
  justify-content: center;
  width: 100%;
  z-index: 2;
  pointer-events: auto;
}
@media (max-width: 600px) {
  .appointments-widget-list {
    gap: 12px;
  }
  .appointments-widget-card {
    padding: 12px 6px 36px 6px;
    gap: 8px;
  }
  .appointments-widget-card-header {
    margin-bottom: 6px;
    gap: 8px;
  }
  .appointments-widget-card-body {
    gap: 10px;
  }
  .appointments-widget-studentinfo {
    gap: 12px;
    margin: 10px 0 4px 0;
  }
  .appointments-widget-actions {
    gap: 6px;
    bottom: 0;
    padding: 0 4px;
  }
  .appointments-widget-btn {
    font-size: 0.96rem;
    padding: 5px 8px;
  }
}

@media (max-width: 400px) {
  .appointments-widget-card {
    padding: 6px 2px 28px 2px;
    border-radius: 10px;
    gap: 6px;
  }
  .appointments-widget-list {
    gap: 8px;
  }
  .appointments-widget-card-header {
    gap: 6px;
  }
  .appointments-widget-card-body {
    gap: 7px;
  }
  .appointments-widget-actions {
    gap: 4px;
    padding: 0 2px;
  }
  .appointments-widget-btn {
    font-size: 0.93rem;
    padding: 5px 4px;
  }
}

.appointments-widget-card:hover {
  box-shadow: 0 6px 18px 0 rgba(32,101,209,0.13);
  transform: translateY(-2px) scale(1.01);
  border-color: #e3f2fd;
}
.appointments-widget-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 16px;
}
.appointments-widget-card-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.appointments-widget-dateblock {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 56px;
  font-family: 'Public Sans', 'Inter', Arial, sans-serif;
}
.appointments-widget-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #2065d1;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 700;
  box-shadow: 0 2px 8px 0 rgba(32,101,209,0.09);
}
.appointments-widget-time {
  display: flex;
  align-items: center;
  gap: 7px;
}
.appointments-widget-time-label {
  display: flex;
  align-items: center;
  color: #637381;
  font-size: 0.95rem;
  font-weight: 500;
  gap: 3px;
}
.appointments-widget-card-body {
  display: flex;
  align-items: center;
  gap: 18px;
}
.appointments-widget-studentinfo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin: 18px 0 8px 0;
}
.appointments-widget-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #2065d1;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.45rem;
  font-weight: 700;
  box-shadow: 0 2px 8px 0 rgba(32,101,209,0.09);
}
.appointments-widget-student {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 180px;
}
.appointments-widget-actions {
  display: flex;
  gap: 7px;
  margin-top: 18px;
  justify-content: center;
  width: 100%;
}
.appointments-widget-btn {
  padding: 5px 14px;
  border-radius: 6px;
  font-size: 0.97rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  background: #2065d1;
  color: #fff;
  transition: background 0.16s, box-shadow 0.16s;
  box-shadow: 0 1px 4px 0 rgba(32,101,209,0.06);
  min-width: 84px;
  line-height: 1.2;
}
.appointments-widget-btn:hover {
  background: #184a90;
  box-shadow: 0 2px 8px 0 rgba(32,101,209,0.13);
}
.appointments-widget-btn.danger {
  background: #d32f2f;
}
.appointments-widget-btn.danger:hover {
  background: #a31515;
}
.appointments-widget-btn.success {
  background: #229a16;
}
.appointments-widget-btn.success:hover {
  background: #197c0e;
}

.appointments-widget-notes {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;

  margin-top: 12px;
  background: #fffbe6;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.5rem;
  color: #8d6c00;
  font-weight: 300;
  display: flex;
  gap: 8px;
  align-items: center;
}
.appointments-widget-notes svg {
 
  vertical-align: middle;
}
@media (max-width: 600px) {
  .appointments-widget-card-body {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .appointments-widget-studentinfo {
    gap: 8px;
  }
  .appointments-widget-avatar {
    width: 36px;
    height: 36px;
    font-size: 1.1rem;
  }
}
.appointments-widget-date {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 56px;
  font-family: 'Public Sans', 'Inter', Arial, sans-serif;
}
.date-day {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2065d1;
  line-height: 1;
}
.date-month {
  font-size: 1.02rem;
  color: #637381;
  margin-top: -2px;
  font-weight: 600;
}
.appointments-widget-status {
  display: flex;
  align-items: center;
  font-size: 1.02rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 7px 18px;
  min-width: 110px;
  justify-content: center;
  gap: 7px;
  background: #e3f2fd;
  color: #8E33FF;
}
.appointments-widget-status.status-confirmed {
  background: #eaf6e9;
  color: #229a16;
}
.appointments-widget-status.status-completed {
  background: #e3f2fd;
  color: #2065d1;
}
.appointments-widget-status.status-cancelled {
  background: #fdeaea;
  color: #d32f2f;
}
.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 3px;
  background: #8E33FF;
}
.status-confirmed .status-dot { background: #229a16; }
.status-completed .status-dot { background: #2065d1; }
.status-cancelled .status-dot { background: #d32f2f; }
.appointments-widget-card-body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.appointments-widget-student {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.student-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: #222;
}
.student-contact {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 0.99rem;
  color: #637381;
  align-items: flex-start;
}
.student-email, .student-phone {
  display: flex;
  align-items: center;
  gap: 5px;
}
.student-email .dashicons, .student-phone .dashicons {
  font-size: 1.12em;
  margin-right: 2px;
  vertical-align: middle;
}
.student-email .dashicons,
.student-phone .dashicons {
  font-size: 1.12em;
  margin-right: 2px;
  vertical-align: middle;
}
.appointments-widget-time {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  font-family: 'Public Sans', 'Inter', Arial, sans-serif;
}
.appointments-widget-time-label {
  color: #637381;
  font-size: 0.95rem;
  font-weight: 500;
}
.appointments-widget-time-value {
  font-size: 1.16rem;
  font-weight: 700;
  color: #2065d1;
}
.appointments-widget-notes {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;

  margin-top: 10px;
  background: #fffbe6;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.75rem;
  color: #8d6c00;
  font-weight: 500;
  display: flex;
  gap: 6px;
  align-items: center;
}
.notes-label {
  font-weight: 700;
  color: #b88900;
}
.notes-value {
  color: #8d6c00;
}
.appointments-widget-empty-state {
  width: 100%;
  padding: 40px 0;
  text-align: center;
  color: #637381;
  font-size: 1.05rem;
  background: #f4f6f8;
  border-radius: 14px;
  margin-top: 8px;
}
.empty-state-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.empty-state-icon {
  font-size: 2.5rem;
  color: #2065d1;
  margin-bottom: 8px;
}
@media (max-width: 600px) {
  .appointments-widget-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .appointments-widget-section {
    padding: 18px 6px;
  }
  .appointments-widget-card {
    padding: 12px 8px 10px 8px;
  }
}
