/* Appointments Manager plugin styles */

/* Patient booking calendar */
#dab_datepicker {
  display: none;
}

.flatpickr-calendar.inline {
  padding: 12px;
  width: min(100%, 340px);
}

.flatpickr-day:not(.flatpickr-disabled) {
  border-radius: 8px;
  border: 1px solid transparent;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.flatpickr-day:not(.flatpickr-disabled) {
  background: #f8f9fa;
  color: #333;
}

.flatpickr-day:not(.flatpickr-disabled):hover {
  background: #00c48c;
  color: #fff;
}

.flatpickr-day.selected {
  background: #00c48c;
  border-color: #00c48c;
  color: #fff;
  font-weight: bold;
}

.flatpickr-day.selected:focus {
  background: #00c48c;
  border-color: #00c48c;
  margin-bottom: 0;
}

.datetimepicker__wrap {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(170px, 220px);
  gap: 16px;
  align-items: start;
  margin-bottom: 24px;
}

.datetimepicker__wrap .datepicker {
  width: 100%;
  min-width: 0;
}

.datetimepicker__wrap .timepicker {
  width: 100%;
  min-width: 0;
}

#dab_timepicker {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #ddd;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  background: #fff;
  appearance: none;
  transition: border 0.2s;
}

#dab_timepicker:focus {
  border-color: #0073e6;
  outline: none;
  box-shadow: 0 0 5px rgba(0, 115, 230, 0.3);
}

/* Patient checkout */
.dab-checkout {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px;
  background: #fff;
}

.dab-checkout__summary {
  margin-bottom: 16px;
}

.dab-checkout__help {
  margin: 6px 0;
  color: #4b5563;
  line-height: 1.5;
}

.dab-checkout__back-form {
  display: inline;
  margin: 0;
}

.dab-checkout__back-link {
  color: #0f766e;
  text-decoration: underline;
  font-weight: 600;
}

.dab-checkout__back-link:hover {
  color: #115e59;
}

#pay-button {
  margin-top: 12px;
  border-radius: 8px;
  padding: 12px 18px;
  border: 1px solid #0b9f76;
  background: #00c48c;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

#pay-button:hover {
  background: #0bb07f;
}

/* Doctor dashboard schedule */
.day-schedule {
  border: 1px solid #ccc;
  padding: 16px 20px;
  margin-bottom: 15px;
  border-radius: 5px;
}

.time-slot {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.remove-slot {
  padding-right: 24px;
  line-height: 2;
}

.time-label {
  padding: 10px 0 10px 8px;
}

@media only screen and (max-width: 600px) {
  .time-slot {
    flex-direction: column;
  }

  .remove-slot {
    margin-top: 16px;
    padding-right: 10px;
  }

  .time-label {
    padding-bottom: 10px;
    line-height: 1.3;
  }
}

.timepicker {
  width: 120px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: #333;
  background: #fff
    url("data:image/svg+xml;utf8,<svg fill='gray' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>")
    no-repeat right 10px center;
  background-size: 16px;
  cursor: pointer;
}

.timepicker::-webkit-calendar-picker-indicator {
  opacity: 0;
  cursor: pointer;
}

.flatpickr-input {
  text-align: left;
  min-width: 0;
  width: 100%;
}

.timepicker:focus {
  outline: none;
  border-color: #0073e6;
  box-shadow: 0 0 4px rgba(0, 115, 230, 0.3);
}

.flatpickr-calendar {
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  border: 1px solid #eee;
  max-width: 340px;
  width: 100%;
}

.flatpickr-time input {
  font-weight: bold;
  border: 1px solid #ddd;
  padding: 4px 6px;
}

.flatpickr-time .flatpickr-am-pm {
  font-weight: 600;
  border-radius: 6px;
}

.flatpickr-time .flatpickr-time-separator {
  width: 10%;
}

@media (max-width: 768px) {
  .datetimepicker__wrap {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) and (max-width: 1280px) {
  .datetimepicker__wrap {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .flatpickr-calendar.inline,
  .flatpickr-calendar,
  .datetimepicker__wrap .datepicker,
  .datetimepicker__wrap .timepicker,
  #dab_timepicker {
    width: 100%;
    max-width: 332px;
  }
}

.add-slot {
  color: var(--accent);
  border: none;
  border-bottom: 2px solid var(--accent);
  background-color: #fff;
  padding: 0 0 4px 0;
}

.add-slot:active,
.add-slot:focus,
.add-slot:hover {
  background: none;
  color: var(--accent-4);
  border-bottom: 2px solid transparent;
}

.approved--feed {
  color: green;
  background-color: #cbf5dd;
  padding: 12px 16px;
  border-radius: 4px;
  border: 1px solid green;
  font-size: 20px;
}

.lead {
  font-size: 24px;
  line-height: 34px;
}

/* Doctor overview cards */
.um-members {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 30px;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .um-members {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .um-members {
    grid-template-columns: repeat(3, 1fr);
  }
}

.um-members .um-member {
  background: #fff;
  border: 2px solid #ddd m !important;
  border-radius: 10px;
  text-align: center;
  transition: box-shadow 0.3s ease;
  cursor: pointer;
}

.um-members .um-member:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.um-members .um-member:focus {
  outline: 3px solid #00c48c;
  outline-offset: 2px;
}

.um-members .um-member-photo img {
  border-radius: 50%;
  max-width: 150px;
  height: auto;
  margin: 20px auto;
  display: block;
}

.um-members .um-member-name {
  font-size: 1.2rem;
  font-weight: bold;
  margin: 10px 0;
}

.um-members .um-member-tagline {
  font-size: 0.95rem;
  color: #555;
  padding: 0 12px 20px;
}

.um-members .um-member-card {
  max-height: 156px;
}

/* Doctor details section */
.um-member-appointment {
  margin-top: 64px;
}

.um-custom-doctor-detail .um-member {
  border-radius: 14px;
  padding: 24px;
  text-align: initial;
  cursor: default;
}

.um-custom-doctor-detail .um-profile-body {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr;
  gap: 28px;
  align-items: start;
}

.um-custom-doctor-detail .um-col-122,
.um-custom-doctor-detail .um-col-121 {
  min-width: 0;
}

.um-custom-doctor-detail .um-member-photo img {
  border-radius: 14px;
  max-width: 220px;
  width: 100%;
  margin: 0 auto 16px;
  display: block;
}

.um-custom-doctor-detail .um-field {
  margin-bottom: 16px;
}

.um-custom-doctor-detail .um-field h3 {
  margin: 0;
}

.um-custom-doctor-detail .um-field-value p {
  margin: 0;
}

.um-custom-doctor-detail .um-member-appointment {
  margin-top: 36px;
}

@media (max-width: 900px) {
  .um-custom-doctor-detail .um-profile-body {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .um-custom-doctor-detail .um-member {
    padding: 18px;
  }

  .um-custom-doctor-detail .um-member-photo img {
    max-width: 190px;
  }
}

.label {
  display: block;
  margin-bottom: 10px;
  font-weight: bold;
}
