/* --- CALENDAR DASHBOARD LAYOUT --- */
.jp2-title {
  margin: 10px 0;
  padding: 16px;

  display: flex;
  justify-content: center;   /* 🔥 centers horizontally */
  align-items: center;
  gap: 10px;

  background: linear-gradient(135deg, #2563eb, #60a5fa);
  color: white;

  border-radius: 50px;

  font-size: 1.3rem;
  font-weight: 600;

  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Icon */
.jp2-title i {
  font-size: 1.2rem;
  color: white;
}
.calendar-dashboard {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 1000px) {
  .calendar-dashboard {
    grid-template-columns: 2fr 1fr;
    align-items: start;
  }
}

/* --- THE CALENDAR CARD --- */
.calendar-card {
  background: white;
  border-radius: 24px;
  padding: 25px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.calendar-header-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.calendar-header-nav h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.nav-btn {
  background: #f1f5f9;
  border: none;
  width: 35px;
  height: 35px;
  border-radius: 10px;
  color: var(--primary);
  cursor: pointer;
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
  font-weight: 700;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}

.calendar-grid div {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  background: #f8fafc;
  transition: 0.2s;
}

.calendar-grid .today {
  background: var(--primary) !important;
  color: white !important;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.calendar-grid .has-appt {
  background: #dbeafe;
  color: var(--primary);
  position: relative;
}

.calendar-grid .has-appt::after {
  content: '';
  position: absolute;
  bottom: 6px;
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
}

/* --- FORM & SIDEBAR --- */
.calendar-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-card, .appointments-card {
  background: white;
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.jp-form input {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  margin-bottom: 10px;
  font-family: inherit;
  font-size: 16px;
}

.input-group-custom {
  display: flex;
  gap: 10px;
}

/* --- APPOINTMENT LIST CLEANUP --- */
.appt-list-clean {
  list-style: none;
  padding: 0;
}

.appt-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 16px;
  margin-bottom: 10px;
  position: relative;
}

.appt-time-tag {
  font-size: 10px;
  font-weight: 800;
  background: white;
  color: var(--primary);
  padding: 4px 8px;
  border-radius: 8px;
  white-space: nowrap;
}

.appt-details {
  display: flex;
  flex-direction: column;
}

.appt-details strong {
  font-size: 13px;
  color: var(--text);
}

.appt-details span {
  font-size: 11px;
  color: var(--muted);
}

.delete-appt {
  margin-left: auto;
  background: transparent;
  border: none;
  color: #fca5a5;
  cursor: pointer;
}
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #3498db;
  color: white;
  padding: 12px 18px;
  border-radius: 8px;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 9999;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast.error {
  background: #e74c3c;
}

.toast.success {
  background: #2ecc71;
}