@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@700&family=Raleway:ital@1&family=Roboto&family=Roboto+Flex:opsz,wght@8..144,200&display=swap');


html {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

/* variables */
:root {
  /*--green: #04AA6D;*/
  --green: #88BED7;
  --blue: #378bb3;
  --gray: #D8DDEF;

}

.page-layout {
  display: grid;
  grid-template-columns: 100%;
  grid-template-rows: auto 1fr auto;
  grid-template-areas:
    "navbar"
    "main-content"
    "footer";
  padding: 0%;
  margin: 0%;
  min-height: 100vh;

}

/* styling by tagnames */


p {
  font-family: 'Roboto Flex', sans-serif;
  font-size: 1.2rem;
}

a {
  text-decoration: none;
  color: black;
  font-family: 'Manrope 700', sans-serif;



}

a:hover {
  color: white;
}

input:enabled {
  outline: none;
}

/* navigation bar styling */
.navbar {
  grid-area: navbar;
  background-color: #D8DDEF;
  display: flex;
  overflow: hidden;
  height: 54px;
  justify-content: space-between;
  /* Distribute space */
  align-items: center;
  /* Center items vertically */
  padding: 0 1rem;
  /* Add some padding */
  text-align: center;


}

.navbar ul {
  list-style-type: none;
  margin: 0;
  padding: 0;
  height: 100%;
  list-style: none;
  display: flex;
  align-items: center;
  /* Center items vertically */
  flex-grow: 1;
  /*flex-grow:1 to allow the ul to take available space */
}

.navbar li {
  margin: 0 1rem;
  /* Add some space between list items */
  height: 100%;
}

/* Ensure the icon is pushed to the far right */
.navbar ul li:last-child {
  margin-left: auto;
  /* Push the last element to the right */
  margin-right: 0;
  /* remove right margin to stick to the edge*/
  
}

.navbar a {
  display: block;
  text-align: center;
  height: 100%;
  padding: 14px 16px;
  text-decoration: none;
  font-family: 'Raleway', sans-serif;
  align-self: center;
}

.navbar li:not(:last-child) a:hover {
  background-color: var(--green);
}

.navbar li:last-child a:hover {
  color: var(--green);
}

.navbar i {
  /* margin-left: 1rem; Space between links and icon */
  cursor: pointer;
  /* make the icon look clickable */
  padding: 5px;



}

.navbar i:hover {
  color: var(--green);
  /* Lighter color on hover */
}




.main-content {
  grid-area: main-content;
  padding: 0.5%;
  flex-grow:1;
}

.footer {
  background-color: #88BED7;
  width: 100%;
  height: 6rem;
  padding-left: 5%;
  grid-area: footer;
  display: flex;
  justify-content: flex-start;
  flex-flow: column nowrap;
  justify-content: space-between;
}




.link-card {
  width: 200px;
  height: 200px;
  padding: 50px 0%;
  background-color: var(--green);
  border-radius: 8px;
}

.card-list- {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-around;
  margin: 10% 20%;
  height: auto;
}

.section-title {
  font-family: 'Raleway', sans-serif;
  text-align: center;
}

.info-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;


}

.text-container {
  padding: 1rem;
  background-color: var(--green);

  border-radius: 8px;
  margin: 1%;
}

/* buttons styling */
.btn {
  padding: 1rem;
  margin: 1rem;
  width: max-content;
  background-color: var(--green);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Roboto', sans-serif;
  font-size: 20px;
}


.btn:hover {
  background-color: var(--blue);
  color: white;

}

.login {
  height: 100vh;
  margin: 0;
  padding: 0;

}

.login img {
  width: 90%;
  height: auto;
  margin: 1rem;
}

.login:enabled {
  color: blue;
}

.input {
  display: block;
  width: 95%;
  height: 40px;
  border-color: var(--green);
  border-radius: 16px;
  margin: 10px;
  padding-left: 12px;
}


.image-list {
  display: flex;
  flex-flow: row wrap;
  justify-content: center;
  align-items: stretch;
  margin: 2%;
}

.article-image {
  margin: 10px;
}


/* styles for tables */
#myInput {
  background-image: url('/css/searchicon.png');
  background-position: 10px 10px;
  background-repeat: no-repeat;
  width: 100%;
  font-size: 16px;
  padding: 12px 20px 12px 40px;
  border: 1px solid #ddd;
  margin-bottom: 12px;
}

#myTable {
  border-collapse: collapse;
  width: 100%;
  border: 0.1px solid #ddd;
  font-family: 'Raleway', sans-serif;
  font-size: 1rem;
}

#myTable th {
  text-align: left;
  padding: 12px;
}

#myTable tr {
  border-bottom: 1px solid #ddd;
}

#myTable tr.header,
#myTable tr:hover {
  background-color: #f1f1f1;
}



/*dropdown style */
.dropbtn {
  background-color: #85FFBD;
  background-image: linear-gradient(45deg, #85FFBD 0%, #FFFB7D 100%);
  color: black;
  padding: 16px;
  font-size: 16px;
  border: none;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f1f1f1;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #ddd;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown:hover .dropbtn {
  background-color: #3e8e41;
}

/* pages styling */
.admin {
  background: white;
}

/* landing page cards */
.services-container {
  background-color: #88BED7;
  padding: 20px;
}

.services-title {
  color: #fff;
  text-align: center;
}

.card-list {

  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.card-landing {
  width: calc(30% - 20px);
  /*  Adjust as needed */
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
  /* Prevent shrinking */
}

.card-title {
  color: #333;
  margin-top: 0;
}

.card-landing p {
  margin-bottom: 0;
}

/*tables */
.table-container {
  max-width: 100%; /* Or a specific max width like 1200px */
  overflow-x: auto;
}

#myTable {
  width: 100%; /* Make the table take up the container's width */
  border-collapse: collapse; /* Optional: collapse borders for cleaner look */
}

#myTable th, #myTable td {
  padding: 8px; /* Add padding for readability */
  border: 1px solid #ddd; /* Optional: add borders */
  white-space: nowrap; /* Prevent text wrapping within cells */
}
table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  border: 1px solid black;
  padding: 8px;
  text-align: left;
}

td a {
  text-decoration: none;
  display: block;
  width: 100%;
  height: 100%;
  padding: 1rem;
  font-family: 'Raleway', sans-serif;
  align-self: center;
  font-weight: bold;
}

td a:hover {
  color: var(--blue);

}

.btn-action {
  padding: 5px 10px;
  cursor: pointer;
  border: none;
  margin: 0;
}

.approuver {
  background-color: green;
  color: white;
  width: 100%;
}

.rejeter {
  background-color: red;
  color: white;
  width: 100%;
}

ul {
  font-family: 'Roboto Flex', sans-serif;
}

.nav-right {
  width: 25%;
  padding: 0%;
  margin: 0%;
  height: 80%;



}

.patient-card {
  margin: 20px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #f9f9f9;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Styling for filter buttons */
.filters button {
  padding: 10px 20px;
  margin: 5px;
  border: none;
  border-radius: 5px;
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.filters button:hover {
  background-color: var(--blue);
  color: white;
}

.filters button.active {
  background-color: var(--green);
  color: white;
  font-weight: bold;
}

/* Hero Section */
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  background-color: var(--blue);
  color: white;
}

.hero-content {
  max-width: 50%;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.hero-content p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.hero-content .btn {
  background-color: var(--green);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1rem;
}

.hero-content .btn:hover {
  background-color: var(--blue);
}

.hero-image img {
  max-width: 100%;
  height: auto;
}

/* About Section */
.about {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem;
  background-color: var(--gray);
}

.about-content {
  max-width: 50%;
}

.about-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.about-content p {
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.about-content ul {
  list-style: disc;
  padding-left: 1.5rem;
}

.about-content ul li {
  margin-bottom: 0.5rem;
}

.about-image img {
  max-width: 100%;
  height: auto;
}

/* Services Section */
.services {
  padding: 2rem;
  background-color: var(--green);
  color: white;
  text-align: center;
}

.services h2 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.services-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.service-card {
  background-color: white;
  color: var(--blue);
  border-radius: 8px;
  padding: 1.5rem;
  flex: 1 1 calc(33.333% - 1rem);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
}

.service-card i {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.service-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.service-card p {
  font-size: 1rem;
}

/* Call to Action Section */
.cta {
  padding: 2rem;
  background-color: var(--blue);
  color: white;
  text-align: center;
}

.cta h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.cta p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}

.cta .btn {
  background-color: var(--green);
  color: white;
  padding: 0.8rem 1.5rem;
  border-radius: 5px;
  text-decoration: none;
  font-size: 1rem;
}

.cta .btn:hover {
  background-color: white;
  color: var(--blue);
}

/* Footer */
.footer {
  background-color: var(--blue);
  color: white;
  padding: 1rem;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-content p {
  margin-bottom: 1rem;
}

.footer-content .social-icons {
  list-style: none;
  display: flex;
  gap: 1rem;
}

.footer-content .social-icons li a {
  color: white;
  font-size: 1.5rem;
  text-decoration: none;
}

.footer-content .social-icons li a:hover {
  color: var(--green);
}

/* Media query for small devices */
/* Responsive adjustments */
  
@media only screen and (max-width: 768px){


  /* services info cards on landing page */
  .card-landing {
    min-width: 48%; /* Adjust as needed */
  }
  @media screen and (max-width: 480px){
    .card-landing {
      min-width: 100%; 
    }
  }
  .navbar {
    flex-direction: column;
    /* Stack items vertically */
    align-items: flex-start;
    /* Align to the start on small screens */
    height: auto;
  }

  .navbar ul {
    flex-direction: column;
    /* Stack list items vertically */
    width: 90%;
    /* Take full width */
  }

  .navbar li {
    margin: 0;
    /* Remove margin on small screens */
    width: 100%;
    /* Take full width */
    text-align: left;
    /* Align text left */
  }

  .navbar a {
    width: 100%;
    /* Take full width */
    padding: 10px 16px;
    /* Adjust padding */
    text-align: left;
  }

  .navbar i {
    margin-left: 0;
    /* Remove left margin */
    margin-top: 10px;
    /* Add top margin for spacing */
    text-align: left;
    /* Align icon left */
  }

  .info-container {
    width: 90%;
    margin: 1rem;
  }

  .landing-img {
    width: 90%;
    margin: 1rem;
  }

}

/* Media query for medium devices */
@media only screen and (min-width: 768px) and (max-width: 991px) {
  .info-container {
    width: 90%;
    margin: 1rem;
  }

  .landing-img {
    width: 90%;
    margin: 1rem;
  }
}

/* Media query for large devices */
@media only screen and (min-width: 992px) {
  .card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "txt img";
    gap: 1rem;
  }

  .info-container {
    margin-left: 1rem;
    align-self: center;
  }

  .landing-img {
    width: 90%;
    height: 90%;
    margin: 1rem;
  }

  .img-right {
    order: 2;

  }

}

/* Styles for printed pages */
@media print {
  /* Styles for printed pages */
}

@media (hover: hover) {
  /* Styles for devices that support hover (typically mouse-based) */
}

@media (hover: none) {
  /* Styles for devices that don't support hover (typically touch-based) */
}

/* Default styles for all devices */
/*
.landing-page, .login{
  background: rgb(175, 237, 203);
  background: linear-gradient(90deg, rgba(175, 237, 203, 1) 0%, rgba(109, 109, 103, 1) 100%);
}