@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap");

body {
  min-height: 100vh;
  width: 100%;
  margin: 0 !important;
  padding: 0;
  background-color: #ececec;
  font-family: "Poppins", sans-serif;
}

* {
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: inherit;
}

.hidden {
  display: none !important;
}

/*  --------------   Welcome Page  -------------   */

.welcome_page {
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-image: linear-gradient(
      to top,
      rgba(20, 3, 50, 0.7),
      rgba(0, 0, 255, 0) 50%
    ),
    url(./images/login-image.jpg);
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  max-width: 550px;
  justify-self: center;
}

.welcome_page > img {
  width: 90px;
  height: fit-content;
}

.welcome_page > h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  margin-top: 1rem;
  font-family: "Franklin Gothic Medium", "Arial Narrow", Arial, sans-serif;
}

.welcome_page > button {
  padding: 1rem;
  margin-bottom: 1.3rem;
  font-size: 1.25rem;
  font-weight: 600;
  border: 2px solid white;
  border-radius: 50px;
  position: relative;
}

#login_btn {
  background-color: #140332;
  color: white;
  margin: auto;
  margin-bottom: 1rem !important;
}

.welcome_page > button::after {
  content: "\f061";
  font-family: "Font Awesome 5 Free";
  font-weight: 600;
  margin-left: auto;
  display: inline-block;
  vertical-align: middle;
  position: absolute;
  right: 20;
}

/* ----------------  feedback page ----------- */
.feedback_page {
  display: flex;
  flex-direction: column;
  background-color: #ffffff;
}

.feedback_page > h1,
.navhead {
  padding: 1.2rem 1rem;
  font-size: 1.7rem;
  margin: 0;
  background-color: #060053;
  color: white;
  text-align: center;
  position: sticky;
  top: 0;
}

.feedback_page > h1 > a,
.navhead > i {
  position: absolute;
  left: 1.5rem;
}

.feedback_page > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
}

.feedback_page .details {
  width: 100%;
  display: flex;
  flex-direction: column;
  padding: 1rem;
  background-image: linear-gradient(225deg, #d9d9e3, #fff5f5);
  border: 1px solid lightgray;
  border-radius: 20px;
  margin-top: 1rem;
}

.feedback_page .details > p {
  display: flex;
  margin: 0;
}

.feedback_page .details > p > span:nth-child(1) {
  font-size: 0.8rem;
  font-weight: 600;
  flex-shrink: 0;
}

.feedback_page .details > p > span:not(:first-child) {
  font-weight: 400;
  margin-left: 0.3rem;
  font-size: 0.8rem;
}

.feedback_page > div > h3 {
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  width: 100%;
  margin-top: 3rem;
}

.feedback_box {
  background-image: linear-gradient(359deg, #d9d9e3, #ffffff);
  padding: 1rem;
  border: 1px solid lightgray;
  border-radius: 16px;
  width: 100%;
  margin: 0.7rem 0;
  -webkit-border-radius: 16px;
  -moz-border-radius: 16px;
  -ms-border-radius: 16px;
  -o-border-radius: 16px;
}

.form-check-input:checked {
  background-image: url("data:image/svg+xml,%3Csvg xmlns%3D%22http://www.w3.org/2000/svg%22 viewBox%3D%220 0 16 16%22 fill%3D%22blue%22%3E%3Cpath d%3D%22M10.97 4.97a.75.75 0 0 1 1.06 1.06L7.477 10.59a.75.75 0 0 1-1.06 0L4.47 8.647a.75.75 0 1 1 1.06-1.06l1.646 1.647 3.788-3.788z%22/%3E%3C/svg%3E") !important;
  background-color: white !important;
  border-color: blue;
}

.attendance > p {
  font-size: 0.85rem;
  font-weight: 500;
}

.attendance > div {
  display: flex;
  gap: 0.5rem;
  cursor: pointer;
}

.attendance > div > button {
  padding: 0.25rem 0.5rem;
  border-radius: 5px;
  border: 1px solid #282828;
  font-size: 0.7rem;
  background-color: #f1f1f1;
}

.selected_attendance {
  color: white;
  background-color: #282828 !important;
}

.feed_ques {
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 0.7rem;
  margin-top: 0.2rem;
}

.feed_opt_box {
  display: flex;
  gap: 0.37rem;
  flex-wrap: wrap;
}

.feed_opt_box > button {
  padding: 0.25rem 0.5rem;
  border-radius: 5px;
  border: 1px solid #8d8d8d;
  font-size: 0.6rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.2rem;
  background-color: #f1f1f1;
}

.feed_opt_box > button > input {
  width: 0.6rem;
  margin-top: 0;
}

.feed_opt_box > button > input[type="checkbox"]:checked {
  background-color: #282828;
}

.feed_text_box > textarea {
  width: 100%;
  border-radius: 0.5rem;
  border: 1px solid #8d8d8d;
  font-size: 0.85rem;
  color: #616060;
  padding: 0.4rem 0.7rem;
}

/*---------------------------- home.php - Your courses---------------- */
.your_courses {
  background-color: white;
}
/* courses head / navbar  */
.courses_head {
  padding: 1.5rem 1rem;
  background-color: #060053;
  color: white;
  display: flex;
  align-items: flex-start;
}

/* left portion courses_head */
.courses_head > div:nth-child(1) {
  width: 80%;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.1rem;
}

.courses_head > div:nth-child(1) > h3 {
  font-size: 1.2rem;
  margin: 0;
}

.courses_head > div:nth-child(1) > p {
  font-size: 0.7rem;
  color: honeydew;
  margin: 0;
}

.courses_head > div:nth-child(1) > h6 {
  font-size: 0.8rem;
  margin: 0;
}

/* right portion courses_head */
.courses_head > div:nth-child(2) {
  max-width: 100px;
  flex-direction: column;
  justify-content: end;
  align-items: center;
}

/* student image  */
.courses_head > div:nth-child(2) > div {
  border-radius: 50%;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.courses_container {
  padding: 1rem;
  background-color: white;
}

.courses_container > div > h1 {
  font-size: 1.3rem;
  margin: 1rem 0;
  font-weight: 800;
}
/* Select Courses btn */
.courses_container > div > h2 {
  font-size: 0.875rem;
  margin: 1rem 0;
  color: #3c4739;
  box-shadow: 0px 0px 15px 1px #beb1b1;
  border-radius: 0.5rem;
}

/* // home.php  (Your Courses) */
.custom_grid_container {
  width: 100%;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 1.3%;
}

.custom_grid_2 {
  width: 24%;
  margin-bottom: 1rem;
}

/* course card  */
.course_card {
  border-radius: 0.7rem;
  overflow: hidden;
  padding-top: 0.7rem;
  background-color: #e4e4e4;
  font-size: 1.6rem;
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.course_card > .fullname {
  width: 100%;
  font-size: 0.55em;
  text-align: center;
  margin: 0.4rem 0;
  font-weight: 500;
  padding: 0 0.65rem;
}

.course_card > .semester {
  font-size: 0.5em;
  text-align: center;
  margin: 0.4rem 0;
  margin-top: auto;
}

.course_card > .feedback {
  font-size: 0.45em;
  text-align: center;
  color: white;
  padding: 0.5rem;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.3rem;
}

/* ------------------- Session Page -----------------------  */

.session-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding: 1rem;
}

.session-card {
  width: 100%;
  background-color: #cff2e2;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.3rem;
  border-radius: 0.4rem;
  position: relative;
  cursor: pointer;
  border: 1px solid #cdcdcd;
}

.session-card > h3,
p,
h6 {
  margin: 0;
}

.session-card > h3 {
  font-size: 1rem;
  font-weight: 600;
}

.session-card > h6 {
  font-size: 0.7rem;
  font-weight: 100;
}

.session-card > p {
  font-size: 0.65rem;
  font-weight: 600;
}

.session-card::after {
  content: "\f061";
  font-family: "Font Awesome 5 Free";
  font-weight: 600;
  font-size: 1.5rem;
  margin-left: auto;
  display: inline-block;
  vertical-align: middle;
  position: absolute;
  right: 20;
}

/* ------------------- Courses Page (courses.php)-----------------------  */

.course_selection_container {
  padding: 1.3rem;
  background-color: #ffffff;
}

.course_selection_container > h1 {
  width: 100%;
  font-size: 1.3rem;
  margin: 1rem 0;
  font-weight: 800;
}

.course_list_container {
  gap: 0 1%;
}

.course_selection_card {
  width: 24%;
  margin-top: 1rem;
  padding: 1.3rem 0.8rem;
  background-color: #e8e8e8;
  text-align: center;
  border-radius: 0.4rem;
  font-size: 0.875rem;
  -webkit-border-radius: 0.4rem;
  -moz-border-radius: 0.4rem;
  -ms-border-radius: 0.4rem;
  -o-border-radius: 0.4rem;
  transition: 0.4s;
  -webkit-transition: 0.4s;
  -moz-transition: 0.4s;
  -ms-transition: 0.4s;
  -o-transition: 0.4s;
  cursor: pointer;
}

.uncheckedCourse {
  background-color: #e8e8e8; /* Light green */
  color: black; /* Dark green border */
}

.checkedCourse {
  background-color: black; /* Light red */
  color: white; /* Dark red border */
}

.accordion-button {
  font-size: 1rem !important;
  font-weight: 700;
}

/* mid screen responsive  */

@media (max-width: 1200px) {
  .course_list_container {
    gap: 0 4%;
  }

  .course_selection_card {
    width: 48%;
    margin-top: 1rem;
  }

  /* // home.php  (Your Courses) */
  .custom_grid_container {
    gap: 3%;
  }

  .custom_grid_2 {
    width: 48%;
    margin-bottom: 1rem;
  }
}

/* mobile responsive  */

@media (max-width: 420px) {
  .course_card {
    font-size: 1.3rem;
  }
  .course_selection_container {
    padding: 1.3rem 0.8rem;
  }
  .course_selection_card {
    font-size: 0.7rem;
    padding: 0.9rem 0.4rem;
  }
  .accordion-button {
    font-size: 0.875rem !important;
  }
}

@media (max-width: 360px) {
  .course_card {
    font-size: 1.2rem;
  }
}

/* ultra thin mobile  */

@media (max-width: 335px) {
  .course_card {
    font-size: 1.1rem;
  }
}
