/******* Start custom style *******/
/* General */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: "Times New Roman", Times, serif;
  scroll-behavior: smooth;
}

html::after {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.54);
  z-index: -1;
}

body {
  font-family: Arial, sans-serif;
  direction: rtl;
  font-size: 62.5%;
  background-image: url("../images/logo.png");
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  background-attachment: fixed;
  backdrop-filter: blur(5px);
  height: 100%;
}

a {
  text-decoration: none;
  color: #000000;
  transition: all 0.3s ease-in-out;
  cursor: pointer;
}

a:hover {
  color: #c46e18;
}

i {
  font-size: 1.5rem;
}

input,
select,
option {
  font-size: 1rem;
  padding: 0.2rem;
}

button {
  cursor: pointer;
}

/******* Navbar *******/

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #ffffff69;
  padding: 1rem;
  border-radius: 0.4rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  position: static;
  width: 100%;
}

nav>div {
  display: flex;
  gap: 2rem;
}

nav>a,
nav>div>a {
  font-size: 1.5rem;
  font-weight: 500;
}

nav .menu {
  width: 100%;
}

.pdf-btn {
  margin-right: auto;
}

nav .menu a:last-child {
  margin-right: auto;
}

.menu-toggle {
  display: none;
  cursor: pointer;
}

/* Beghin Login styles */
.login-container {
  width: fit-content;
  display: flex;
  flex-direction: column;
  background-color: #ffffffa1;
  padding: 2rem;
  margin: 0 auto;
  margin-top: 5rem;
  box-shadow: 0 1px 4px #000000;
  border-radius: 0.4rem;
  gap: 1rem;
}

.login-container>h2 {
  font-size: 2rem;
}

.login-container>form {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.login-container>form>label {
  font-size: 1rem;
  color: #000000d2;
  margin-right: 0.5rem;
}

.login-container>form>input {
  border: 1px solid #000000a4;
  padding: 8px 12px;
  outline: none;
  border-radius: 4px;
  transition: border-color 0.3s ease;
}

.login-container>form>input:focus {
  border-color: #008e98;
  animation: pulse 1s infinite alternate;
}

.login-container>form>button {
  font-size: 1rem;
  font-weight: 600;
  padding: 1rem 2rem;
  margin-top: 2rem;
  background-color: #bed7eb;
  color: #000000;
  border: none;
  border-radius: 0.4rem;
  transition: all 0.3s;
  animation: pulse 1s infinite alternate;
}

.login-container>form>button:hover {
  background-color: #9fc5e5;
  scale: 1.05;
}

/* booking > Navbar Styling */
.nav-list {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
}

.nav-item {
  margin: 0 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.nav-item img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.nav-link {
  color: #000000;
  text-decoration: none;
  font-size: 1.6rem;
  font-weight: bold;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: #008e98;
}

/* Popup Styling */
.popup-container {
  display: none;
  /* Hidden by default */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  justify-content: center;
  align-items: center;
  z-index: 999;
}

.popup-content {
  background-color: white;
  padding: 20px 30px;
  border-radius: 8px;
  max-width: 600px;
  width: 90%;
  position: relative;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.7);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 24px;
  font-weight: bold;
  color: #333;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-btn:hover {
  color: red;
}

.popup-title {
  font-size: 24px;
  margin-bottom: 15px;
  text-align: center;
  color: #333;
  font-family: 'Tajawal', 'Cairo', 'Amiri', Arial, sans-serif;

}

.doctor-image {
  display: block;
  margin: 0 auto;
  width: 150px;
  height: 150px;
  border-radius: 1rem;
  object-fit: cover;
  border: 4px solid #ffcc00;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.popup-text {
  font-size: 1.2rem;
  text-align: justify;
  margin-top: 20px;
  padding: 1rem;
  line-height: 1.8;
  opacity: 0;
  transform: translateX(50px);
  animation: slideInText 1.5s ease forwards;
  font-family: 'Tajawal', 'Cairo', 'Amiri', Arial, sans-serif;
}

.popup-text li {
  font-family: inherit;
}

.popup-text p {
  margin-bottom: 10px;
}

/* Responsive Design */
@media (max-width: 600px) {
  .nav-link {
    font-size: 16px;
  }

  .popup-content {
    padding: 15px;
  }

  .popup-title {
    font-size: 20px;
  }

  .popup-text {
    font-size: 14px;
  }
}

@keyframes slideInText {
  from {
    opacity: 0;
    /* Start transparent and off-screen */
    transform: translateX(50px);
    /* Start position (off-screen to the right) */
  }

  to {
    opacity: 1;
    /* End fully visible */
    transform: translateX(0);
    /* End position (in place) */
  }
}

/* Beghin Login styles */
/* ********************* */
/* Beghin Booking styles */
.aside-handel {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 1rem;
  padding-bottom: 1rem;
}

.book-container {
  display: flex;
  flex-direction: column;
  width: 25rem;
  height: fit-content;
  padding: 1rem;
  margin: 0 auto;
  box-shadow: 0 0 5px 1px #0000007b;
  border-radius: 0.8rem;
  margin-top: 2rem;
  gap: 1rem;
  background-color: #ffffff81;
}

.form-con {
  display: flex;
  flex-direction: column;
}

.appoint-title {
  text-align: center;
  font-size: 2rem;
}

.form-con>label {
  font-weight: 600;
  text-align: right;
  font-size: 1.5rem;
  margin-bottom: 0.2rem;
  margin-right: 0.5rem;
}

.clinic-select,
.day-select,
.time-select {
  text-align: center;
  font-size: 1rem;
  margin-bottom: 1rem;
  padding: 0.5rem;
  border-radius: 0.3rem;
  border: 1px solid #000000;
}

.select::placeholder {
  text-align: right;
}

.patient-name,
.phone-number-input,
.date-input {
  text-align: right;
  font-size: 1rem;
  padding: 0.5rem;
  margin-bottom: 1rem;
  border-radius: 0.3rem;
  border: 1px solid #000000;
}

.button {
  font-size: 1.5rem;
  padding: 1rem 2rem;
  font-weight: 600;
  background-color: #bed7eb;
  border-radius: 0.8rem;
  transition: all 0.3s;
  border: none;
}

.button:hover {
  scale: 1.02;
  background-color: #9fc5e5;
}

.date-plan {
  width: 100%;
  height: 100%;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  justify-content: space-around;
  background-color: #9fc5e588;
  border-bottom-right-radius: 0.8rem;
}

.date-plan>div {
  padding: 1rem;
  margin: 0 0.1rem;
  margin-top: 1rem;
  background-color: #ffffff86;
  border-radius: 0.8rem;
  width: 95%;
}

.date-plan>div>p {
  padding-right: 0.5rem;
  margin-top: 0.5rem;
  font-size: 1.1rem;
}

.date-plan>div>p>span {
  font-weight: 600;
}

/* End Booking styles */
/* ****************** */
/* Beghin dashboard styles */
.dashboard-container {
  width: fit-content;
  margin: 0 auto;
  padding: 2rem;
  margin-top: 3rem;
  background-color: #ffffffaf;
  border-radius: 0.4rem;
  position: relative;
  overflow-x: scroll;
}

.dashboard-container>h1 {
  margin-top: 1rem;
}

::-webkit-scrollbar {
  display: none;
}

.add-clinic {
  position: absolute;
  top: 0;
  right: 0;
  padding: 0.5rem 1rem;
  background-color: #28a745;
  border-bottom-left-radius: 0.4rem;
  transition: all 0.3s;
  cursor: pointer;
}

.add-clinic:hover {
  scale: 1.05;
}

.add-clinic-button {
  font-size: 1.2rem;
  text-decoration: none;
  color: #ffffff;
}

.add-clinic-button:hover {
  color: #000000;
}

table {
  width: 100%;
  /* border-collapse: collapse; */
  margin-top: 20px;
}

th,
td {
  padding: 10px;
  border: 1px solid #0000008f;
  text-align: center;
  font-size: 1rem;
  min-width: 8rem;
}

th {
  background-color: #bed7eb;
}

.del-button,
.prov-button {
  padding: 0.5rem 1rem;
  color: white;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin: 0.5rem;
  display: inline-block;
  transition: all 0.3s;
}

.del-button:hover,
.prov-button:hover {
  scale: 1.1;
}

.approve {
  background-color: #28a745;
  /* لون الأخضر */
}

.delete {
  background-color: #dc3545;
  /* لون الأحمر */
}

.approve:active,
.delete:active {
  scale: 1;
}

.actions_handler {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.1rem;
}

.btn-edit {
  padding: 0.5rem 1rem;
  color: white;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin: 0.5rem;
  display: inline-block;
  transition: all 0.3s;
  background-color: #007bff;
  /* Blue color */
}

.btn-edit:hover {
  scale: 1.1;
  background-color: #0056b3;
  /* Darker blue on hover */
}

.btn-delete {
  padding: 0.5rem 1rem;
  color: white;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin: 0.5rem;
  display: inline-block;
  transition: all 0.3s;
  background-color: #dc3545;
  /* Red color */
}

.btn-delete:hover {
  scale: 1.1;
  background-color: #a71d2a;
  /* Darker red on hover */
}

.btn-save {
  padding: 0.5rem 1rem;
  color: white;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin: 0.5rem;
  display: inline-block;
  transition: all 0.3s;
  background-color: #28a745;
  /* Green color */
}

.btn-save:hover {
  scale: 1.1;
  background-color: #1e7e34;
  /* Darker green on hover */
}

/* END dashboard styles */
/* ****************** */
/* Beghin Add Clinic styles */
.manage-clinic-container {
  display: grid;
  grid-template-columns: auto;
  padding: 2rem;
}

.clinics-table-container {
  width: 100%;
  margin-top: 1rem;
  padding: 1rem;
  background-color: #ffffff9e;
  border-radius: 0.4rem;
  box-shadow: 0 0 5px 1px #00000096;
}

.add-clinic-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 2rem 1rem;
  margin-top: 1rem;
  background-color: #ffffff9e;
  border-radius: 0.4rem;
  box-shadow: 0 0 5px 1px #00000096;
}

.add-clinic-container-header {
  display: flex;
  justify-content: space-between;
}

.add-clinic-container>form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.add-clinic-container form input,
.add-clinic-container form select {
  width: 100%;
  font-size: 1.2rem;
  padding: 0.8rem 1rem;
  border-radius: 0.3rem;
  border: 1px solid #000000a4;
  margin-bottom: 0.5rem;
  box-sizing: border-box;
}

.add-clinic-container label {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  text-align: right;
}

.add-clinic-container-title {
  font-size: 3rem;
  text-align: center;
  margin-bottom: 1rem;
  color: #000000d2;
  font-family: 'Tajawal', 'Cairo', 'Amiri', Arial, sans-serif;
}

.add-clinic-btn {
  font-size: 1.2rem;
  font-weight: 600;
  padding: 1rem 2rem;
  margin-top: 1.5rem;
  background-color: #bed7eb;
  color: #000000;
  border: none;
  border-radius: 0.4rem;
  transition: all 0.3s;
  animation: pulse 1s infinite alternate;
  width: 100%;
}

@media (max-width: 600px) {
  .add-clinic-container {
    width: 100%;
    padding: 1rem 0.5rem;
  }

  .add-clinic-btn {
    font-size: 1rem;
    padding: 0.8rem 1rem;
  }

  .add-clinic-container input,
  .add-clinic-container select {
    font-size: 1rem;
    padding: 0.6rem 0.8rem;
  }
}

/* Responsive grid */
@media (max-width: 900px) {
  .manage-clinic-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .manage-clinic-container {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 450px) {
  .manage-clinic-container {
    grid-template-columns: 1fr;
  }
}

/* END Add Clinic styles */
/* ****************** */
/* Responsive */
@media (max-width: 1250px) {
  .aside-handel {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 1100px) {

  table,
  thead,
  tbody,
  th,
  td,
  tr {
    display: block;
  }

  thead tr {
    display: none;
  }

  tbody tr {
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
  }

  tbody td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: right;
    padding: 10px;
    border: none;
    border-bottom: 1px solid #ddd;
  }

  tbody td:last-child {
    border-bottom: none;
  }

  tbody td:before {
    content: attr(data-label);
    flex: 1;
    font-weight: bold;
    padding: 0 1rem 0 1rem;
  }
}

@media (max-width: 900px) {
  .aside-handel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  nav div {
    display: none;
    flex-direction: column;
    width: 100%;
  }

  nav div.active {
    display: flex;
  }

  nav a {
    margin: 10px 0;
  }

  .pdf-btn {
    margin-right: 0;
  }

  nav .menu a:last-child {
    margin-right: 0;
  }
}

@media (max-width: 600px) {
  .book-container {
    width: 70%;
    margin-top: 1rem;
  }

  .add-clinic-container {
    width: 90%;
  }
}

@media (max-width: 450px) {
  .book-container {
    width: 90%;
    margin-top: 1rem;
  }

  .close-btn{
    top: 5px;
    right: 10px;
  }
}

/* Animations */
@keyframes pulse {
  0% {
    box-shadow: 0 0 4px rgba(0, 142, 152, 0.5);
  }

  100% {
    box-shadow: 0 0 8px rgba(0, 142, 152, 0.8);
  }
}

.work-days-checkbox {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem 0.5rem;
  background: #f7fafc;
  padding: 1rem;
  border-radius: 0.4rem;
  margin-bottom: 1rem;
  box-shadow: 0 1px 4px #00000014;
}

.work-days-checkbox > div {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.2rem;
  border-radius: 0.2rem;
  transition: background 0.2s;
}

.work-days-checkbox > div:hover {
  background: #e6f7ff;
}

.work-days-checkbox label {
  font-size: 1rem;
  font-weight: 500;
  color: #333;
  cursor: pointer;
}

.work-days-checkbox input[type="checkbox"] {
  width: 1.2rem;
  height: 1.2rem;
  accent-color: #008e98;
  cursor: pointer;
}

@media (max-width: 600px) {
  .work-days-checkbox {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.7rem 0.3rem;
    padding: 0.7rem;
  }
  .work-days-checkbox label {
    font-size: 0.95rem;
  }
  .work-days-checkbox input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
  }
}