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

body,
html {
  margin: 0;
  padding: 0;
}
.child.disabled,
.child.disabled-weekend {
  background-color: rgb(180, 180, 180);
  cursor: not-allowed;
}

.nav-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px 0;
}

.arrow-button {
  background-color: #007dd9;
  color: white;
  border: 1px solid #007dd9;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  font-weight: bold;
  transition: background-color 0.3s, border-color 0.3s;
  user-select: none;
}
.appointment-card {
  display: none;
}
.appointment-card.show {
  display: block;
}
.arrow-button:hover {
  background-color: #0056b3;
  border-color: #0056b3;
}

.arrow-button:active {
  background-color: #004080;
  border-color: #004080;
}
.modal-inputs {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.container {
  overflow: auto;
  width: 100%;
  max-width: 100%;
  background-color: white;
  border: 0px solid #007dd9;
  border-radius: 0px;
  padding: 5px;
  color: goldenrod;
}

.container1 {
  display: none;
  justify-content: space-between;
  align-items: center;
  background-color: #007dd9;
  padding: 5px;
  color: white;
  font-size: 18px;
  font-weight: bold;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 20px;
  height: 40px;
}

@media (max-width: 767px) {
  .container1 {
    flex-direction: row;
    align-items: center;
    font-size: 16px;
    padding: 4px;
    gap: 10px;
  }
  #lblLoggedinUserName {
    font-size: 12px;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .container1 {
    font-size: 17px;
    padding: 5px;
  }
}

@media (min-width: 1025px) {
  .container1 {
    font-size: 18px;
    padding: 5px;
  }
}

.left-align {
  display: flex;
  align-items: center;
  gap: 10px;
}

.title-text {
  font-size: 18px;
  font-weight: bold;
}

.right-align {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 10px;
}

/* Dropdown Styles */
.dropdown {
  position: relative;
  display: inline-block;
}

.dropbtn {
  background-color: #007dd9;
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 16px;
  border-radius: 5px;
}

.dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: white;
  min-width: 180px;
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  z-index: 1000;
}

.dropdown-content a {
  color: black;
  padding: 12px;
  text-decoration: none;
  display: block;
  font-size: 14px;
  text-align: left;
}

.dropdown-content a:hover {
  background-color: #007dd9;
  color: white;
}

.dropdown:hover .dropdown-content {
  display: block;
}

/* Login Button */
.login-btn {
  background-color: #007dd9;
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  font-size: 16px;
  border-radius: 5px;
}
.left-align {
  display: flex;
  align-items: center;
  gap: 10px;
}
.left-align img {
  height: 40px;
}
.title-text {
  font-size: 18px;
  font-weight: bold;
}

.doctorcontainer {
  width: 100%;
  background: linear-gradient(135deg, #007dd9, #115474);
  padding: 10px 0;
  color: white;
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: -20px;
}

.doctorcontent {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}
.doctorimage {
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.doctorimage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doctorinfo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding-left: 20px;
  text-align: left;
  flex: 1;
}

.doctortextname {
  font-size: 24px;
  margin-bottom: 5px;
}

.doctortext {
  font-size: 16px;
  margin-bottom: 5px;
}

.doctorcontact {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 5px 0;
}

.doctorcontact span {
  margin-right: 10px;
  font-size: 16px;
}

.doctordescription {
  font-size: 14px;
  margin-top: 10px;
}
@media (max-width: 768px) {
  .doctorcontent {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .doctorinfo {
    padding-left: 0;
    align-items: center;
  }

  .doctortextname {
    font-size: 20px;
  }

  .doctortext {
    font-size: 14px;
  }

  .doctordescription {
    font-size: 12px;
    padding: 15px;
  }
}
.logout-button {
  padding: 5px 20px;
  background-color: #007dd9;
  color: white;
  border: none;
  cursor: pointer;
  height: 40px;
  align-self: center;
  font-size: 16px;
  border-radius: 4px;
  transition: all 0.3s ease;
  width: auto;
  max-width: 100%;
  white-space: nowrap;
}

/* Medium screens (tablets) */
@media (max-width: 768px) {
  .logout-button {
    font-size: 15px;
    padding: 5px 16px;
  }
}

/* Small screens (phones) */
@media (max-width: 480px) {
  .logout-button {
    font-size: 14px;
    padding: 4px 12px;
    height: auto;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }
}

.logout-button:hover {
  background-color: #005fa3;
}

.loggedin-username {
  color: #fff;
  font-size: 16px;
  align-self: center;
}

.padleft {
  float: left;
  width: 5%;
  background-color: white;
  border: 0px solid beige;
  border-radius: 5px;
  padding: 5px;
}

.inner {
  overflow: auto;
  width: 90%;
  background-color: white;
  border: 0px solid beige;
  border-radius: 5px;
  padding: 5px;
  text-align: center;
  vertical-align: middle;
}

.innerpadleft {
  float: left;
  background-color: white;
  border: 1px solid beige;
  border-radius: 5px;
  padding: 5px;
  text-align: center;
  vertical-align: middle;
  height: 50px;
}

.datecontent {
  display: flex;
  justify-content: space-between;
  background-color: white;
  border: 1px solid beige;
  border-radius: 5px;
  text-align: center;
  overflow: hidden;
  white-space: nowrap;
}
.datecontent .child {
  flex: 1 1 14.28%;
  max-width: 14.28%;
  box-sizing: border-box;
  padding: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 768px) {
  .datecontent .child {
    flex: 1 1 14.28%;
    max-width: 14.28%;
    padding: 3px;
    font-size: 12px;
  }
}
.child {
  display: inline-block;
  width: 50px;
  height: 75px;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 5px;
  color: #333;
  cursor: pointer;
  transition: all 0.3s ease;
}

.unselected-date {
  background-color: #f8f9fa;
  border: 1px solid #e0e0e0;
}

.unselected-date:hover {
  background-color: #e9ecef;
  transform: translateY(-2px);
}

.current-date {
  background-color: #e6f3ff;
  color: #007dd9;
  border: 2px solid #007dd9;
  font-weight: bold;
}

.selected-date {
  background-color: #007dd9 !important;
  color: white !important;
  border: 2px solid #007dd9 !important;
  transform: scale(1.05);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* If a date is both current and selected */
.current-date.selected-date {
  background-color: #007dd9;
  color: white;
  border: 2px solid #005fb3;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.month {
  font-size: small;
  color: #333;
}

.day {
  font-size: large;
  color: inherit;
}

.weekday {
  font-size: small;
  color: inherit;
}

@media (max-width: 768px) {
  .child {
    width: 45px;
    height: 70px;
    padding: 4px;
  }

  .current-date,
  .selected-date {
    transform: scale(1.02);
  }
}

.innerpadright {
  float: right;
  height: 50px;
  background-color: white;
  border: 1px solid beige;
  border-radius: 5px;
  padding: 5px;
  text-align: center;
  vertical-align: middle;
}

.padright {
  z-index: 10;
  position: absolute;
  right: 5;
  top: 100;
  width: 5px;
  background-color: gold;
  border: 1px solid beige;
  border-radius: 5px;
  padding: 5px;
  display: none;
}

.clinic-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 20px auto;
  width: 100%;
  max-width: 450px;
}
.appointment-id {
  color: #ff5733;
  font-weight: bold;
  margin-right: 8px;
}

.clinic-label {
  flex: 0 1 auto;
  min-width: 200px;
  max-width: 200px;
  padding: 15px 25px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
  position: relative;
}

.clinic-label.active {
  font-weight: bold;
  color: black;
}
.disabled {
  pointer-events: none;
  opacity: 1;
  cursor: not-allowed;
}

.clinic-label.active::after {
  content: "";
  display: block;
  width: 100%;
  height: 4px;
  background-color: #007dd9;
  position: absolute;
  bottom: -1px;
  left: 0;
}

/* Style for single clinic */
.clinic-label.single-clinic {
  margin: 0 auto;
  flex: 0 1 auto;
}

.button-container {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin: 20px auto;
  width: 100%;
  max-width: 450px;
  transform: translateX(-25px);
}
.button-container button {
  flex: 1;
  max-width: 130px;
  min-width: 120px;
  padding: 12px 20px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.button-container button:hover {
  background-color: #f8f9fa;
  transform: translateY(-2px);
}

.button-container button.active {
  background-color: #007bff;
  color: white;
}

#appointmentCards {
  margin: 20px auto;
  width: 100%;
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  transform: translateX(-25px);
}

.appointment-card {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 15px 25px;
  display: flex;
  align-items: center;
  gap: 20px;
  transition: all 0.3s ease;
  width: 100%;
}

.appointment-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.appointment-info {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  justify-content: space-between;
  width: 100%;
  gap: 10px;
}

.appointment-main {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-width: 0;
  gap: 4px;
}
.appointment-start-time {
  display: flex;
  align-items: center;
  font-size: 1.5em;
  font-weight: bold;
  color: #000;
  gap: 5px;
  flex-shrink: 0;
}

.appointment-start-time i {
  margin-right: 5px;
  color: #007bff;
}
.appointment-action {
  display: flex;
  align-items: flex-start;
  justify-content: flex-end;
  min-width: 110px;
  margin-left: 10px;
}
@media (max-width: 900px) {
  .appointment-info {
    flex-direction: column;
    gap: 8px;
  }
  .appointment-action {
    margin-left: 0;
    justify-content: flex-start;
    align-items: flex-start;
    margin-top: 8px;
  }
}
@media (max-width: 600px) {
  .appointment-card {
    padding: 8px 4px;
    font-size: 1em;
  }
  .appointment-info {
    flex-direction: column;
    gap: 6px;
  }
  .appointment-action {
    margin-left: 0;
    margin-top: 8px;
    width: 100%;
    justify-content: flex-start;
  }
  .appointment-main {
    gap: 2px;
  }
}
.appointment-action a {
  font-size: 1em;
  padding: 10px 20px;
  background-color: #007bff;
  color: #fff;
  border-radius: 5px;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.appointment-action a:hover {
  background-color: #005f9c;
}

.appointment-name-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 1.1em;
}

.hidden {
  display: none;
}

@media (max-width: 768px) {
  .clinic-container,
  .button-container,
  #appointmentCards {
    max-width: calc(100% - 30px);
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    transform: none;
  }

  .clinic-label {
    min-width: 150px;
    padding: 12px 15px;
  }

  .clinic-label.single-clinic {
    width: 200px;
  }

  .button-container button {
    max-width: 110px;
    min-width: 90px;
    padding: 10px 15px;
    font-size: 13px;
  }

  .appointment-card {
    padding: 10px 15px;
    flex-wrap: wrap;
  }

  .appointment-start-time {
    font-size: 1.2em;
  }

  .appointment-name-phone {
    flex: 1 1 100%;
    margin: 5px 0;
  }

  .appointment-action {
    margin-left: auto;
  }
}

@media (max-width: 480px) {
  .appointment-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .appointment-name-phone {
    font-size: 0.9em;
    margin: 5px 0;
  }

  .appointment-start-time {
    font-size: 1em;
  }

  .appointment-action {
    text-align: right;
    width: 100%;
  }
}
.appointment-purpose-tooltip {
  display: inline-block;
  position: relative;
  margin-left: 6px;
  margin-bottom: 0;
  vertical-align: middle;
}
.purpose-icon {
  cursor: pointer;
  font-size: 1.15em;
  color: #007bff;
  vertical-align: middle;
}

.purpose-tooltip-text {
  visibility: hidden;
  opacity: 0;
  width: max-content;
  max-width: 320px;
  background-color: #222;
  color: #fff;
  text-align: left;
  border-radius: 6px;
  padding: 8px 12px;
  position: absolute;
  z-index: 10;
  left: 110%;
  top: 50%;
  transform: translateY(-50%);
  transition: opacity 0.2s;
  font-size: 0.98em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  white-space: pre-line;
}

.appointment-purpose-tooltip:hover .purpose-tooltip-text,
.appointment-purpose-tooltip:focus-within .purpose-tooltip-text {
  visibility: visible;
  opacity: 1;
}

@media (max-width: 600px) {
  .purpose-tooltip-text {
    left: 0;
    top: 120%;
    transform: none;
    max-width: 90vw;
    font-size: 1em;
    padding: 10px 14px;
  }
}

.loading {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8); /* Semi-transparent background */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 5px solid #f3f3f3;
  border-top: 5px solid #007dd9; /* Blue color */
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Calendar Styles */
.calendar-container {
  width: 100%;
  max-width: 320px;
  margin: 15px auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  padding: 15px;
}

.calendar {
  width: 100%;
}

.month-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 0 5px;
}

.month-nav button {
  background: #007bff;
  color: white;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
}

.month-nav button:hover {
  background: #0056b3;
}

.month-nav span {
  font-size: 20px;
  font-weight: bold;
  color: #333;
}

.weekday-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  margin-bottom: 10px;
  padding: 0 5px;
}

.weekday-header div {
  text-align: center;
  font-weight: 500;
  color: #666;
  padding: 3px;
  font-size: 13px;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
  padding: 0 5px;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 35px;
  height: 35px;
  margin: auto;
  color: #333;
  background: transparent;
  border: 2px solid transparent;
}

.calendar-day.empty {
  background: none;
  cursor: default;
}

.calendar-day.disabled {
  background: #f0f0f0;
  color: #ccc;
  cursor: not-allowed;
  pointer-events: none;
}

.calendar-day.selectable:hover {
  background: #e6f3ff;
  color: #007bff;
}

.calendar-day.current-date {
  background-color: #e6f3ff;
  color: #007dd9;
  border: 2px solid #007dd9;
  font-weight: bold;
}

.calendar-day.selected-date {
  background-color: #007dd9 !important;
  color: white !important;
  border: 2px solid #007dd9 !important;
  transform: scale(1.05);
}

/* Add this new rule */
.calendar-day.current-date.selected-date {
  background-color: #007dd9 !important; /* Ensure selected background */
  color: white !important; /* Ensure selected text color */
  border: 2px solid #007dd9 !important; /* Ensure selected border */
  transform: scale(1.05); /* Keep the scale effect */
}
/* End of added rule */

.calendar-day:not(.disabled):hover {
  background-color: #e9ecef;
  transform: translateY(-2px);
}

/* Month and day text colors */
.selected-date .month,
.selected-date .day,
.selected-date .weekday {
  color: white !important;
}

.current-date .month,
.current-date .day,
.current-date .weekday {
  color: #007dd9;
}

.unselected-date .month,
.unselected-date .day,
.unselected-date .weekday {
  color: #333;
}

@media (max-width: 768px) {
  .calendar-container {
    padding: 12px;
    max-width: 300px;
  }

  .calendar-day {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .month-nav span {
    font-size: 18px;
  }

  .month-nav button {
    width: 28px;
    height: 28px;
    font-size: 18px;
  }
}

.right-side-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.disabled-modal-wrapper {
  display: none;
  position: fixed;
  z-index: 999;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
  overflow-y: auto;
  align-items: center;
  justify-content: center;
}
.disabled-modal-content {
  background-color: #fff;
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  padding: 24px 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: fadeIn 0.3s ease-in-out;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.disabled-modal-close {
  position: absolute;
  right: 16px;
  top: 12px;
  font-size: 24px;
  font-weight: bold;
  color: #aaa;
  cursor: pointer;
}

.disabled-modal-close:hover {
  color: #000;
}

#disabledAppointmentsForm h3 {
  color: #007dd9;
  margin-bottom: 18px;
  font-size: 1.3em;
  text-align: center;
  font-weight: bold;
}

#formDisabledAppointments {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 20px;
  align-items: center;
  justify-content: center;
}

#formDisabledAppointments label {
  min-width: 90px;
  font-weight: 500;
  color: #333;
}

#formDisabledAppointments select,
#formDisabledAppointments input[type="time"],
#formDisabledAppointments input[type="date"] {
  padding: 7px 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  min-width: 140px;
  font-size: 1em;
  background: #f8f9fa;
  transition: border-color 0.2s;
  width: 100%;
  box-sizing: border-box;
}

#formDisabledAppointments select:focus,
#formDisabledAppointments input[type="time"]:focus,
#formDisabledAppointments input[type="date"]:focus {
  border-color: #007dd9;
  outline: none;
}

#formDisabledAppointments button {
  background: #007dd9;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 10px 24px;
  font-size: 1em;
  cursor: pointer;
  margin-top: 8px;
  transition: background 0.2s;
  width: 100%;
}

#formDisabledAppointments button:hover {
  background: #005fa3;
}

@media (max-width: 900px) {
  #disabledAppointmentsForm {
    padding: 18px 12px;
    max-width: 95%;
  }
  #formDisabledAppointments label,
  #formDisabledAppointments select,
  #formDisabledAppointments input[type="time"],
  #formDisabledAppointments input[type="date"] {
    min-width: 100px;
    font-size: 0.98em;
  }
}

@media (max-width: 600px) {
  #disabledAppointmentsForm {
    padding: 10px 4px;
    margin-top: 18px;
  }
  #formDisabledAppointments {
    flex-direction: column;
    align-items: stretch;
    gap: 8px 0;
  }
  #formDisabledAppointments label {
    min-width: unset;
    margin-bottom: 2px;
  }
  #formDisabledAppointments select,
  #formDisabledAppointments input[type="time"],
  #formDisabledAppointments input[type="date"] {
    min-width: unset;
    width: 100%;
    margin-bottom: 6px;
  }
  #formDisabledAppointments button {
    width: 100%;
    margin-top: 10px;
  }
}
#main-sections-flex {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: flex-start;
  gap: 32px;
  margin: 30px auto 0 auto;
  max-width: 1200px;
  width: 100%;
}

#clinic-section,
#disabledAppointmentsForm {
  flex: 1 1 420px;
  min-width: 320px;
  max-width: 540px;
}

@media (max-width: 1024px) {
  #main-sections-flex {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  #clinic-section,
  #disabledAppointmentsForm {
    max-width: 100%;
    min-width: 0;
  }
}
.patient-history-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.patient-history-modal-content {
  background-color: #fff;
  max-width: 90%;
  width: 1000px;
  padding: 20px;
  border-radius: 10px;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.patient-history-close-btn {
  position: fixed;
  top: 20px;
  right: 30px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
  color: #000000;
  z-index: 10000;
}

.patient-history-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}
.note-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.note-input-container {
  display: none;
  margin-top: 5px;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.note-input-container.visible-note {
  display: flex;
}

.addNote {
  background-color: #007dd9;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
}

.addNote:hover {
  background-color: #005fa3;
  transform: scale(1.02);
}

.note-text {
  padding: 6px 10px;
  font-size: 14px;
  border-radius: 5px;
  border: 1px solid #ccc;
  min-width: 180px;
  flex: 1;
  max-width: 250px;
}

.save-note-btn {
  padding: 6px 12px;
  background-color: #007dd9;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.save-note-btn:hover {
  background-color: #005fa3;
}

@media screen and (max-width: 768px) {
  .note-input-container {
    flex-direction: column;
    align-items: stretch;
  }

  .note-text,
  .save-note-btn {
    width: 100%;
    max-width: 100%;
  }

  .addNote {
    width: 100%;
    text-align: center;
  }
}

.patient-history-table th,
.patient-history-table td {
  padding: 8px;
  border: 1px solid #ccc;
  text-align: left;
}

.patient-history-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

@media screen and (max-width: 768px) {
  .patient-history-modal-content {
    width: 95%;
    padding: 15px;
  }

  .patient-history-table th,
  .patient-history-table td {
    font-size: 14px;
    padding: 6px;
  }
}
.patient-history-search-container {
  background-color: #f9f9f9;
  border-left: 4px solid #007dd9;
  padding: 12px 16px;
  border-radius: 5px;
  width: 100%;
  max-width: 480px;
  margin: 10px auto;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease-in-out;
}

.dropdown-header {
  display: none;
  align-items: center;
  justify-content: center;
  background-color: #f2f2f2;
  padding: 10px 16px;
  min-height: 50px;
  border-radius: 6px;
  width: 100%;
  max-width: 420px;
  margin: 10px auto;
  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  box-sizing: border-box;
  overflow: hidden;
}

.dropdown-header-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dropdown-text {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
}

.icon,
#dropdownArrow {
  font-size: 16px;
  flex-shrink: 0;
}

@media screen and (max-width: 600px) {
  .dropdown-header {
    padding: 8px 12px;
    max-width: 90vw;
  }

  .dropdown-header-content {
    gap: 6px;
  }

  .dropdown-text {
    font-size: 13px;
  }

  .icon,
  #dropdownArrow {
    font-size: 13px;
  }
}

.patient-history-search-container h3 {
  margin-bottom: 10px;
  color: #333;
  font-size: 18px;
  text-align: center;
}
#dropdownArrow {
  display: inline-block;
  transition: transform 0.3s ease;
}

.patient-history-search-form {
  display: flex;
  flex-direction: row;
  gap: 12px;
  justify-content: center;
  align-items: center;
}

.patient-history-search-form input[type="text"] {
  width: 300px;
  padding: 0 14px;
}
.patient-history-search-form input,
.patient-history-search-btn {
  box-sizing: border-box;
  height: 50px;
  font-size: 17px;
  border-radius: 6px;
}

.patient-history-search-btn {
  padding: 0 24px;
  background-color: #007dd9;
  color: white;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.3s ease;
}

.patient-history-search-btn:hover {
  background-color: #0066b3;
}

@media screen and (max-width: 600px) {
  .patient-history-search-form {
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .patient-history-search-form input,
  .patient-history-search-btn {
    width: 100%;
    height: 42px;
    font-size: 15px;
  }
}
.note-popup-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 10px; /* Ensures some space on very small screens */
  box-sizing: border-box;
}

.note-popup-content {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  position: relative;
  box-sizing: border-box;
  display: flex;
  flex-direction: column; /* allow vertical stacking */
}

.note-popup-content h3 {
  margin-top: 0;
  font-size: 1.2rem;
  text-align: center;
}

#noteTextArea {
  width: 100%;
  height: 150px;
  margin: 10px 0;
  padding: 10px;
  font-size: 1rem;
  box-sizing: border-box;
  resize: vertical;
}

.close-note-popup {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  cursor: pointer;
}
.saveNotePopup {
  background-color: #007dd9;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  white-space: nowrap;
}

.note-button-container {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

/* Responsive tweaks */
@media (max-width: 768px) {
  .saveNotePopup {
    background-color: #007dd9 !important;
    color: white !important;
    font-size: 14px;
    padding: 6px 14px;
  }
  .note-popup-content {
    padding: 15px;
    width: 95%;
    max-width: 95%;
  }

  #noteTextArea {
    height: 130px;
    font-size: 0.95rem;
  }

  .note-popup-content h3 {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .saveNotePopup {
    background-color: #007dd9 !important;
    color: white !important;
    font-size: 14px;
    padding: 6px 14px;
  }
  .note-popup-content {
    padding: 10px;
    border-radius: 8px;
  }

  #noteTextArea {
    height: 120px;
    font-size: 0.9rem;
  }

  .close-note-popup {
    font-size: 20px;
  }
  .note-button-container {
    justify-content: center; /* Optional: center on very small screens */
  }
}
