@import url("https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700&display=swap");

:root {
  --pink: #dd479c;
  --pink-dark: #d43d8d;
  --blue: #0280b0;
  --blue-dark: #015f8a;
  --purple: #b47aff;
  --text-dark: #1a1a2e;
  --text-mid: #555;
  --text-light: #888;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Cairo", "Segoe UI", sans-serif;
  min-height: 100vh;
}

/* ─── PAGE BACKGROUND ─────────────────────────────── */
.page-bg {
  min-height: 100vh;
  background: url("../images/bc.png") center center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
}

/* ─── CARD ────────────────────────────────────────── */
.patient-card {
  background: url("../images/bw.png") center center / cover no-repeat;
  background-color: #ffffff;
  border-radius: 20px;
  padding: 20px 20px 18px;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.22);
  position: relative;
  overflow: hidden;
}

/* no side strips — matches reference design */

.patient-card,
.visits-card {
  width: 92%;
  max-width: 500px;
}

/* ─── LANGUAGE TOGGLE ─────────────────────────────── */
.lang-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
}

.lang-btn {
  padding: 2px 13px;
  border-radius: 20px;
  border: 1.5px solid #ddd;
  background: transparent;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: "Cairo", sans-serif;
  color: #777;
  transition: all 0.2s ease;
  line-height: 1.6;
}

.lang-btn.active {
  background: var(--pink);
  color: #fff;
  border-color: var(--pink);
}

/* ─── BRAND HEADER ────────────────────────────────── */
.brand-header {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo-wrapper {
  width: 270px;
  height: 175px;
  overflow: hidden;
  margin: 0 auto 0px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.clinic-logo {
  width: 230px;
  margin-top: -14px;
  height: auto;
  display: block;
  flex-shrink: 0;
}

.name-wrapper {
  width: 100%;
  max-width: 440px;
  height: 130px;
  overflow: hidden;
  margin: 2px 0 auto 0px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.doctor-name-img {
  width: 100%;
  height: auto;
  display: block;
  flex-shrink: 0;
}

.specialty-badge {
  display: inline-block;
  background: var(--pink);
  color: #fff;
  padding: 2px 28px;
  border-radius: 20px;
  font-size: 16px;
  letter-spacing: 2.5px;
  word-spacing: 6px;
  font-weight: 700;
  margin-bottom: 6px;
}

.specialty-line {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 0;
  line-height: 1.4;
  text-align: center;
  width: 100%;
  letter-spacing: 1.8px;
  word-spacing:-5px;
  background: linear-gradient(to left, var(--pink) 0%, var(--blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

/* ─── DIVIDER ─────────────────────────────────────── */
.section-divider {
  border: none;
  border-top: 1px solid #eee;
  margin: 4px 0;
}

/* ─── FORM ────────────────────────────────────────── */
.form-field {
  margin-bottom: 12px;
}
.form-field-last {
  margin-bottom: 14px;
}

.field-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.patient-input {
  display: block;
  width: 100%;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 14px;
  font-family: "Cairo", sans-serif;
  color: var(--text-dark);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  background: #f9f9f9;
}

.patient-input:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(180, 122, 255, 0.15);
  background: #fff;
}

.patient-input.input-error {
  border-color: #dc3545;
}

.ltr-input {
  direction: ltr;
  text-align: right;
}
[dir="ltr"] .ltr-input {
  text-align: left;
}

.invalid-msg {
  color: #dc3545;
  font-size: 12px;
  margin-top: 3px;
  display: none;
}
.invalid-msg.show {
  display: block;
}

/* ─── LOGIN BUTTON ────────────────────────────────── */
.login-btn {
  background: linear-gradient(
    to right,
    var(--pink),
    var(--purple),
    var(--blue)
  );
  color: #fff !important;
  border-radius: 14px;
  padding: 6px;
  font-size: 18px;
  font-weight: 700;
  font-family: "Cairo", sans-serif;
  border: none;
  transition:
    opacity 0.2s,
    transform 0.1s;
  letter-spacing: 0.5px;
  cursor: pointer;
}

.login-btn:hover {
  opacity: 0.9;
}
.login-btn:active {
  transform: scale(0.98);
}

/* ─── CLINIC PHONES ───────────────────────────────── */
.clinic-phones {
  text-align: center;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f2f2f2;
}

.phones-label {
  font-size: 11px;
  color: var(--text-light);
  margin-bottom: 8px;
}

.phones-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  direction: ltr;
}

.phone-entry {
  display: flex;
  align-items: center;
  gap: 6px;
}

.phone-circle {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.phone-circle:hover {
  opacity: 0.85;
}

.blue-icon {
  background: var(--blue);
}
.ws-icon {
  background: #25d366;
}
.pink-icon {
  background: var(--pink);
}

.phone-number {
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  font-family: "Cairo", sans-serif;
}

.num-blue {
  color: var(--blue);
}
.num-pink {
  color: var(--pink);
}

.phone-sep {
  color: #ddd;
  font-size: 16px;
}

/* ─── SOCIAL MEDIA ────────────────────────────────── */
.social-section {
  text-align: center;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #f2f2f2;
}

.social-icons-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  margin-bottom: 4px;
}

.social-icon-link {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: #fff;
  text-decoration: none;
  transition:
    opacity 0.2s,
    transform 0.1s;
}

.social-icon-link:hover {
  opacity: 0.8;
  transform: scale(1.12);
}

.si-fb {
  background: #1877f2;
}
.si-tw {
  background: #000;
}
.si-ig {
  background: linear-gradient(
    135deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
}
.si-tk {
  background: #010101;
}
.si-yt {
  background: #ff0000;
}

.social-handle {
  font-size: 11px;
  font-weight: 700;
  color: var(--pink);
  letter-spacing: 0.5px;
  direction: ltr;
  margin-top: 0.7rem;
  margin-bottom: 0 !important;
}

/* ─── CARD EXTRA INFO (credentials + address) ─────── */
.dots-sep {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  margin: 7px 0;
}

.dots-sep span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-mid);
  display: block;
  flex-shrink: 0;
}

.credential-line {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-dark);
  text-align: start;
  margin-bottom: 2px;
  line-height: 1.7;
}

.address-block {
  background: linear-gradient(to left, var(--pink), var(--purple), var(--blue));
  border-radius: 10px;
  padding: 9px 16px;
  margin: 2px 0;
  text-align: center;
}

.address-line {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  line-height: 1.9;
  margin: 0;
  letter-spacing: 1.5px;
  word-spacing: 8px;
}

/* ─── CARD FOOTER ─────────────────────────────────── */
.card-footer-text {
  text-align: center;
  font-size: 11px;
  color: #bbb;
  margin-top: 8px;
  margin-bottom: 0;
}

/* ─── VISITS PAGE ─────────────────────────────────── */

.appointments-section {
  position: relative;
}

#appointmentsList {
  max-height: 110px;
  overflow-y: auto;
  padding-inline-end: 4px;
}

#appointmentsList::-webkit-scrollbar {
  width: 5px;
}
#appointmentsList::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 10px;
}
#appointmentsList::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--purple), var(--blue));
  border-radius: 10px;
}

#prevVisitsList {
  max-height: 260px;
  overflow-y: auto;
  padding-inline-end: 4px;
}

#prevVisitsList::-webkit-scrollbar {
  width: 5px;
}
#prevVisitsList::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 10px;
}
#prevVisitsList::-webkit-scrollbar-thumb {
  background: linear-gradient(to bottom, var(--pink), var(--purple));
  border-radius: 10px;
}

.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar .lang-toggle {
  margin-bottom: 0;
}

.logout-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  padding: 4px 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-mid);
  cursor: pointer;
  font-family: "Cairo", sans-serif;
  transition:
    border-color 0.2s,
    color 0.2s;
}

.logout-btn:hover {
  border-color: var(--pink);
  color: var(--pink);
}

/* Compact brand (visits page) */
.brand-compact {
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.clinic-logo-sm {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.doctor-name-img-sm {
  width: 155px;
  object-fit: contain;
  margin-bottom: 2px;
}

.specialty-line-sm {
  font-size: 11px;
  color: var(--text-mid);
  line-height: 1.4;
  margin: 0;
}

/* Patient info */
.patient-info-section {
  margin-bottom: 12px;
}

.patient-name {
  font-size: 20px;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 2px;
}

.patient-id-display {
  font-size: 13px;
  color: var(--text-light);
  margin: 0;
}

/* Section title */
.section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
  padding-bottom: 7px;
  position: relative;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(to left, #ff8bb5, var(--purple), #6bb8ff);
  border-radius: 2px;
}

[dir="ltr"] .section-title::after {
  background: linear-gradient(to right, #ff8bb5, var(--purple), #6bb8ff);
}

/* Appointment card */
.appointment-item {
  background: #fafafa;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  padding: 14px;
  margin-bottom: 10px;
  border-right: 4px solid var(--purple);
}

[dir="ltr"] .appointment-item {
  border-right: 1px solid #f0f0f0;
  border-left: 4px solid var(--purple);
}

.appt-date {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 5px;
}

.appt-time {
  font-size: 13px;
  color: var(--blue);
  font-weight: 600;
  margin-bottom: 8px;
  direction: ltr;
  text-align: right;
}

[dir="ltr"] .appt-time {
  text-align: left;
}

.appt-status {
  display: inline-block;
  padding: 2px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.status-booked {
  background: #e3f2fd;
  color: var(--blue);
}
.status-completed {
  background: #e8f5e9;
  color: #388e3c;
}
.status-cancelled {
  background: #fce4ec;
  color: #c62828;
}

.appt-notes {
  margin-top: 7px;
  font-size: 12px;
  color: var(--text-mid);
  background: #f7f7f7;
  border-radius: 8px;
  padding: 5px 10px;
  line-height: 1.6;
  border-inline-start: 3px solid var(--purple);
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.appt-notes i {
  color: var(--purple);
  font-size: 11px;
  margin-top: 2px;
  flex-shrink: 0;
}

.no-appointments {
  display: none;
  text-align: center;
  padding: 18px 14px;
  color: var(--pink);
  font-size: 13px;
  line-height: 1.8;
  background: #fff8fc;
  border-radius: 12px;
  border: 1px dashed var(--pink);
}

/* ─── PREVIOUS VISITS ────────────────────────────── */
.prev-section {
  margin-top: 4px;
}

.prev-visit-card {
  background: #fafafa;
  border: 1px solid rgba(245, 83, 174, 0.12);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
  border-right: 4px solid var(--pink);
}

[dir="ltr"] .prev-visit-card {
  border-right: 1px solid rgba(245, 83, 174, 0.12);
  border-left: 4px solid var(--pink);
}

.prev-visit-header {
  background: linear-gradient(
    135deg,
    rgba(245, 83, 174, 0.05) 0%,
    rgba(245, 83, 174, 0.13) 100%
  );
  border-bottom: 1px solid rgba(245, 83, 174, 0.1);
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.prev-cal-icon {
  width: 46px;
  height: 46px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid rgba(245, 83, 174, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.prev-cal-day {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1;
  font-family: "Cairo", sans-serif;
}

.prev-cal-month {
  font-size: 10px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: "Cairo", sans-serif;
}

.prev-visit-info {
  flex: 1;
  min-width: 0;
}

.prev-visit-type {
  font-size: 14px;
  font-weight: 700;
  color: var(--pink);
  margin-bottom: 5px;
}

.prev-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.prev-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dark);
  background: #fff;
  border: 1px solid #eee;
  padding: 2px 10px;
  border-radius: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.prev-badge i {
  color: var(--purple);
  font-size: 11px;
}

/* Visit card body (images + PDF) */
.prev-visit-body {
  padding: 10px 14px 12px;
  background: #fff;
}

.prev-imgs-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: 0.4px;
  margin-bottom: 7px;
  padding-bottom: 5px;
  border-bottom: 1px dashed rgba(2, 128, 176, 0.2);
}

.prev-imgs-label i {
  font-size: 12px;
}

.prev-img-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 8px;
}

.prev-img-thumb {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 8px;
  border: 1.5px solid rgba(245, 83, 174, 0.2);
  cursor: pointer;
  transition:
    transform 0.15s,
    box-shadow 0.15s;
}

.prev-img-thumb:hover {
  transform: scale(1.07);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.prev-pdf-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(to left, var(--pink), var(--purple));
  text-decoration: none;
  transition: opacity 0.2s;
}

.prev-pdf-link:hover {
  opacity: 0.85;
  color: #fff;
}

/* Lightbox */
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 60px 16px;
}

.lightbox-overlay.open {
  display: flex;
}

.lightbox-img {
  max-width: 94vw;
  max-height: 82vh;
  border-radius: 10px;
  object-fit: contain;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}

.lightbox-close {
  position: fixed;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10000;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10000;
}

.lightbox-nav:hover {
  background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
  left: 12px;
}
.lightbox-next {
  right: 12px;
}

/* ─── BOOKING FORM ────────────────────────────────── */
#appointmentsList.booking-mode {
  max-height: none;
  overflow-y: visible;
}

.book-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 4px;
}

/* ─── DATE PICKER INPUT ───────────────────────────── */
.date-picker-wrap {
  position: relative;
}

.date-picker-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #f9f9f9;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  font-family: "Cairo", sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  text-align: start;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.date-picker-btn:hover:not(:disabled) {
  border-color: var(--purple);
}

.date-picker-btn:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(180, 122, 255, 0.15);
  background: #fff;
}

.date-picker-btn i.fa-calendar-alt {
  color: var(--pink);
  font-size: 14px;
  flex-shrink: 0;
}

.date-picker-btn span {
  flex: 1;
  text-align: start;
}

.date-picker-arrow {
  color: var(--text-light);
  font-size: 11px;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.date-picker-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.cal-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  z-index: 200;
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.13);
  border: 1.5px solid #e8e8e8;
  overflow: hidden;
}

.cal-dropdown.open {
  display: block;
}

/* ─── CUSTOM CALENDAR ─────────────────────────────── */
.custom-cal {
  background: #fff;
  padding: 8px 8px 6px;
  -webkit-user-select: none;
  user-select: none;
}

.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding: 0 4px;
}

.cal-month-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-dark);
  font-family: "Cairo", sans-serif;
}

.cal-nav-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid #e0e0e0;
  background: #f8f8f8;
  color: var(--text-mid);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  padding: 0;
  transition:
    background 0.15s,
    color 0.15s,
    border-color 0.15s;
}

.cal-nav-btn:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  border-color: transparent;
  color: #fff;
}

.cal-nav-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.cal-days-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-bottom: 2px;
}

.cal-day-header {
  text-align: center;
  font-size: 9px;
  font-weight: 700;
  color: var(--text-light);
  padding: 2px 0;
  font-family: "Cairo", sans-serif;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
}

.cal-empty {
  visibility: hidden;
}

.cal-day {
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px;
  font-family: "Cairo", sans-serif;
  position: relative;
}

.cal-disabled {
  color: #ccc;
}

.cal-available {
  color: var(--blue);
  background: rgba(2, 128, 176, 0.07);
  border: 1px solid rgba(2, 128, 176, 0.2);
  cursor: pointer;
  transition:
    background 0.15s,
    transform 0.1s;
}

.cal-available:hover {
  background: rgba(2, 128, 176, 0.16);
  transform: scale(1.12);
}

.cal-selected {
  background: linear-gradient(135deg, var(--pink), var(--purple));
  color: #fff;
  cursor: default;
  box-shadow: 0 2px 6px rgba(245, 83, 174, 0.3);
}

.cal-today::after {
  content: "";
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--pink);
}

.cal-selected.cal-today::after {
  background: rgba(255, 255, 255, 0.7);
}

.cal-dropdown .custom-cal {
  margin-bottom: 0;
}

.slot-btn {
  font-family: "Cairo", sans-serif;
  font-size: 11px;
  font-weight: 600;
  padding: 7px 4px;
  border-radius: 8px;
  border: 1.5px solid var(--blue);
  background: rgba(2, 128, 176, 0.06);
  color: var(--blue);
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  direction: ltr;
}

.slot-btn:hover {
  background: rgba(2, 128, 176, 0.14);
}

.slot-btn.selected {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.slot-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.book-notes {
  font-family: "Cairo", sans-serif;
  font-size: 13px;
  border: 1.5px solid #e0e0e0;
  border-radius: 10px;
  padding: 8px 12px;
  resize: none;
  background: #f9f9f9;
  color: var(--text-dark);
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.book-notes:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(180, 122, 255, 0.15);
  background: #fff;
}

.book-btn {
  background: linear-gradient(to left, var(--pink), var(--purple));
  color: #fff;
  font-family: "Cairo", sans-serif;
  font-weight: 700;
  font-size: 15px;
  border: none;
  border-radius: 12px;
  padding: 8px;
  cursor: pointer;
  transition: opacity 0.2s;
  display: block;
}

.book-btn:hover {
  opacity: 0.9;
}
.book-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.book-msg {
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 10px;
  text-align: center;
  line-height: 1.7;
}

.book-msg-success {
  background: #e8f5e9;
  color: #388e3c;
  border: 1px solid #c8e6c9;
}

.book-msg-error {
  background: #fce4ec;
  color: #c62828;
  border: 1px solid #f8bbd0;
}

.book-no-slots {
  font-size: 12px;
  color: var(--text-light);
  padding: 14px;
  text-align: center;
}

/* ─── RESPONSIVE ──────────────────────────────────── */
@media (max-width: 480px) {
  .patient-card {
    width: 96%;
    padding: 18px 16px 16px;
  }
  .logo-wrapper {
    width: 240px;
    height: 116px;
  }
  .clinic-logo {
    width: 240px;
    margin-top: -19px;
  }
  .name-wrapper {
    height: 96px;
    margin-top: -12px;
  }
  .login-btn {
    font-size: 17px;
    padding: 12px;
  }
}

@media (max-width: 360px) {
  .logo-wrapper {
    width: 210px;
    height: 96px;
  }
  .clinic-logo {
    width: 210px;
    margin-top: -17px;
  }
  .name-wrapper {
    height: 84px;
    margin-top: -10px;
  }
  .specialty-line {
    font-size: 12px;
  }
}
