*{
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
    font-family: 'Open Sans', sans-serif;
}

body {
    height: 100vh;
    background-image: url('./img/Backgroung.3jpg.avif');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

li {
    list-style: none;
}

li > a , span > a{
    text-decoration: none;
    font-size: 18px;
    padding: 10px;
}

a:hover {
    color: rgb(255, 0, 0);
    background-color: #f9f9f9;
    border-radius: 10px;
}

/* Header */
header {
    background-color: #00e1ff;
    position: relative;
    padding: 0.7rem 2rem;
}

.logo img {
    width: 40px;
}

.navbar {
    width: 100%;
    height: 60px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar .links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
}

/* DropDown Menu(No Toggle) */

.dropdown .dropbtn {
    font-size: 18px;  
    border: none;
    outline: none;
    color: black;
    padding: 14px 16px;
    background-color: inherit;
    font-family: inherit;
    margin: 0;
  }

  .dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
  }

  .dropdown-content a {
    float: none;
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
  }
  
  .dropdown:hover .dropdown-content {
    border-radius: 10px;
    display: block;
  }

  .dropdown-content a:hover {
    background-color: #ddd;
  }

  .toggle_btn {
    display: none;
    font-size: 1.4rem;
    cursor: pointer;
  }

  /* Main  */

  main {
    /* position:relative; */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    display: flex;
    height: 80vh;
  }

  .box {
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    align-items: center;
    background: rgb(255, 255, 255, 0.7);
    backdrop-filter: blur(5px);
    overflow: hidden;
    border-radius: 10px;
    padding: 1rem;
    /* width: 45rem; */
    width: 50%;
  }

  .box h1 {
    font-family: 'Bree Serif', serif;
  }

  .info {
    text-align: center;
    padding: 10px 0px;
  }

  .footer {
    margin-top: 20px;
  }

  .footer a:hover {
     background-color: aquamarine;
  }

  .copyright {
    margin-top: 10px;
  }

  /* Dropdown Toggle  */

  .toggle {
    display: none;
    position: absolute;
    right: 2rem;
    top: 90px;
    width: 200px;
    z-index: 1;
    background: rgb(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
  }

  .toggle li {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.1rem 0;
  }

  @media(max-width: 950px){
    .navbar .links {
        display: none;
    }
    .toggle_btn{
        display: block;
    }
    .box {
      width: 80%;
    }

  }

  @media(max-width: 400px){
    .toggle{
        left: 2rem;
        width: unset;
    }
    .box{
      width: 100%;
    }

  }


  /* Login Page  */

  .login-box {
    margin-top: 10px;
    border-radius: 20px;
    width: 261px;
    height: 330px;
    background: rgb(255, 255, 255, 0.5);
    backdrop-filter: blur(1px);
    overflow: hidden;
    box-shadow: rgba(6, 24, 44, 0.4) 0px 0px 0px 2px, rgba(6, 24, 44, 0.65) 0px 4px 6px -1px, rgba(255, 255, 255, 0.08) 0px 1px 0px inset;
    padding: 25px 20px;
  }

  .form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* align-items: center; */
    gap: 20px;
  }

  .loginname {
     text-align: center;
     padding-bottom: 10px;
  }

  .btn {
    display: inline;
    width: 100%;
    border-radius: 50px;
    padding: 2px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
  }

  button:hover {
    color: white;
    background-color: rgb(0, 0, 0);
  }

 .input-name {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
 }

 input[type= email] , input[type=password]{
  border: none;
  border-bottom: 2px solid black;
  width: 100%;
  outline: none;
 }

 input[type=checkbox]{
  cursor: pointer;
 }

 .remeber-forgot {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
 }

 .register {
  display: flex;
  justify-content: center;
  font-size: 0.8rem;
 }

 /* Register Css */

 .reg-alert {
     display: none;
     background-color: #a8e4ec;
     text-align: center;
     padding: 30px 30px;
     z-index: 1;
     overflow:auto;
     border-radius: 20px;
     box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px, rgba(10, 37, 64, 0.35) 0px -2px 6px 0px inset;
 }

 .reg-alert h3 {
  margin-bottom: 10px;
 }

 .register-box {
  margin-top: 10px;
  border-radius: 20px;
  width: 250px;
  height: 350px;
  background: rgb(255, 255, 255, 0.5);
  backdrop-filter: blur(1px);
  overflow: hidden;
  box-shadow: rgba(6, 24, 44, 0.4) 0px 0px 0px 2px, rgba(6, 24, 44, 0.65) 0px 4px 6px -1px, rgba(255, 255, 255, 0.08) 0px 1px 0px inset;
  padding: 25px 20px;
 }

 input[type= text] {
  border: none;
  border-bottom: 2px solid black;
  width: 100%;
  outline: none;
 }

 /* After Student Login  */

 .search-bar {
  background-color: rgb(208, 215, 215);
  box-shadow: rgba(0, 0, 0, 0.45) 0px 25px 20px -20px;
  display: flex;
  justify-content: space-around;
  padding: 15px 0px;
 }

 .logout {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
 }

 .middle {
  display: flex;
  justify-content: space-around;
 }

 #appointment-form h2 {
  text-align: center;
  padding-bottom: 20px;
}

#appointment-form {
  max-width: 360px;
  margin: 50px 0;
  padding: 20px;
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.appointment-form {
  display: flex;
  flex-direction: column;
  /* gap: 5px; */
}

#message-form {
  display: flex;
  flex-direction: column;
  margin: 50px 0;
  max-width: 360px;
  padding: 20px;
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

#message-form h2 {
  text-align: center;
  padding-bottom: 20px;
}

.message-form {
  display: flex;
  flex-direction: column;
}

@media(max-width: 400px){
  .search-bar {
     flex-direction: column;
     justify-content: center;
     align-items: center;
     gap: 10px;
  }
}

@media(max-width: 600px){
  .middle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
   } 
}

/* After Teacher login   */

/* .tech-box {
  display: flex;
  flex-direction: column;
} */

.teacher-body {
  display: flex;
  flex-direction: row;
  /* align-items: center; */
  justify-content: space-around;
}

.left-body , .right-body{
  display: flex;
  flex-direction: column;
  font-family: "Raleway";
  text-decoration: none;
  color: black;
  margin: 10px;
  align-items: center;
}

.schedule-form {
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;  color: black;
  border: 2px solid black;
  background-color: #c5f4fb;
  max-width: 400px;
  height: 50vh;
  margin: 0.5rem auto;
  padding: 2rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.schedule-form label {
  display: block; 
  padding: 1px;

}

.schedule-form input {
  display: block;
  width: 100%;
  padding: 5px;
  font-family: "Raleway";
  font-weight: 800;
  border-radius: 5px;
}

.manage-appo, .view-message, .view-appo {
  color:black;
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;  
  width:500px;
  background-color: #c5f4fb;
  border: 2px solid black;
  height: 160px;
  margin: 0.5rem auto;
  padding: 1rem 2rem ;
}

.teach-btn {
  display: flex;
  flex-direction: row-reverse;
  margin-right: 12.5%;
}

#schedule-submit {
  cursor: pointer;
}

#schedule-submit:hover {
  color: white;
  background-color: black;
}

#logoutBtn {
  border: solid grey;
  border-radius: 10px;
  background: rgb(54, 153, 202);
  padding: 1rem;
  color: black;
  margin: 1rem 0;
  margin-left: 15%;
  height: auto;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  transition: .3s background ease;
}

#logoutBtn:hover {
  background-color: rgb(56, 92, 154);
  color: white;
}

@media (max-width: 950px){
  .teacher-body {
    flex-direction: column;
    /* align-items: center; */
    justify-content: space-around;
  }

  .manage-appo, .view-message, .view-appo {
    width: 90%;
  }
}

/* AFter Admin Login  */

.admin-body {
  display: flex;
  /* flex-direction: column; */
  justify-content: space-around;
  text-decoration: none;
  color: rgb(235, 235, 235);
  margin: 20px;
  align-items: center;
}

#form-head {
  color: black;
  /* margin: 0.5rem 300px; */
  font-family: 'Open Sans', sans-serif;
  text-decoration: none;
  font-size: x-large;
  padding-bottom: 10px;
  text-align: center;
}

.add-teacher {
  box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;  color: black;
  border: 2px solid black;
  background-color: #c5f4fb;
  margin: 2rem auto;
  padding: 2rem 3rem;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 3px;
}

.add-teacher label {
  /* display: block;  */
  padding: 1px;
  color: black;
}
.add-teacher input {
  display: block;
  width: 130%;
  padding: 5px;
  font-family: "Raleway";
  font-weight: 800;
  border-radius: 5px;
  
}

#submitBtn {
  border: solid grey;
  background: rgb(55, 124, 194);
  padding: 0.6rem;
  color: white;
  margin: 1rem 0 0 0;
  width : 50%;
  height: auto;
  font-family: "Raleway";
  text-transform: uppercase;
  cursor: pointer;
  transition: .3s background ease;
}
#submitBtn:hover {
  background-color: rgb(15, 51, 112);
}

#update-teacher {
  margin: 20px;
  display: block;
  width: 500px;
  height: 200px;
  background-color: #c5f4fb;
  border: 2px solid black;
  font-size: 20px;
  color: black;
  padding: 10px;
}

#approve {
  margin: 20px;
  display: block;
  width: 500px;
  height: 200px;
  background-color: #c5f4fb;
  border: 2px solid black;
  font-size: 20px;
  color: black;
  padding: 10px;
}

@media(max-width: 900px){
  .admin-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
  #update-teacher {
    width: 80%;
    height: 200px;
    margin: 0;
  }
  
  #approve {
    width: 80%;
    height: 200px;
    margin: 0;
  }

  .admin-work {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
  }
}

