@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap");

footer {
  background-color: var(--primary);
}

.sidebar {
  position: fixed;
  display: flex;
  gap: 2rem;
  flex-direction: column;
  justify-content: start;
  top: 0;
  left: 0;
  background: var(--light);
  width: 230px;
  height: 100%;
  z-index: 2000;
  overflow-x: hidden;
  scrollbar-width: none;
  transition: width 0.3s ease;
  padding-top: 1rem;
  padding-bottom: 2rem;
}

#t-default .header__row span {
  font-size: 16px !important;
  font-weight: 400;
}

.sidebar::-webkit-scrollbar {
  display: none;
  position: static;
}

.sidebar__top {
  width: 100%;
  padding-inline: 1rem;
}

.sidebar__top--session {
  padding-inline: 0.3rem;
}

.sidebar.close {
  width: 0;
  opacity: 0;
  transition: width 0.3s ease;
}

.header__row .logo {
  width: 15%;
  text-align: right;
}

.header__row i,
.header__row--back_phone {
  width: 30%;
}

.header__row--off_canvas {
  display: none;
}

.header__row--back_phone i {
  color: white;
}

.header__row span {
  width: 40%;
  text-align: center;
  font-size: 18px;
  font-family: var(--heading-font);
}

header .logo img {
  width: 70px;
}

.header__row span,
.header__row .bx.bx-menu::before {
  color: white;
}

.header__row.student_name {
  justify-content: center;
}

.logo-name {
  color: white;
}

.sidebar .logo .bx {
  min-width: 60px;
  display: flex;
  justify-content: center;
}

.side-menu-cont {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 90%;
}

.sidebar .side-menu {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.sidebar .side-menu li {
  height: 48px;
  background: transparent;
  margin-left: 6px;
  border-radius: 48px 0 0 48px;
  padding: 4px;
}

.sidebar .side-menu li.active {
  background: white;
  position: relative;
}

.sidebar .side-menu li.active::before {
  content: "";
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  top: -40px;
  right: 0;
  box-shadow: 20px 20px 0 white;
  z-index: -1;
}

.sidebar .side-menu li.active::after {
  content: "";
  position: absolute;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  bottom: -40px;
  right: 0;
  box-shadow: 20px -20px 0 white;
  z-index: -1;
}

.sidebar .side-menu li a {
  width: 100%;
  height: 100%;
  background: var(--light);
  display: flex;
  align-items: center;
  border-radius: 20px;
  font-size: 16px;
  color: var(--dark);
  white-space: nowrap;
  overflow-x: hidden;
  transition: all 0.3s ease;
}

.sidebar .side-menu li.active a {
  color: var(--primary);
}

.sidebar.close .side-menu li a {
  display: none;
  transition: all 0.3s ease;
}

.sidebar .side-menu li a .bx {
  min-width: calc(60px - ((4px + 6px) * 2));
  display: flex;
  font-size: 20px;
  justify-content: center;
}

.sidebar .side-menu li a.logout {
  color: var(--danger);
}

.sidebar:not(.close) ~ .content {
  position: relative;
  width: calc(100% - 230px);
  left: 230px;
  transition: all 0.3s ease;
  padding-bottom: 4rem;
}

.sidebar.close ~ .content {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding-inline: 1rem;
  border-radius: 0 0 20px 20px;
  background-color: white;
  margin-block: 3rem;
}

header {
  position: fixed;
  left: 230px;
  z-index: 1000;
  background-color: var(--primary);
  width: 100%;
  position: fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-inline: 0.5rem;
  border-radius: 0 0 20px 20px;
  top: 0;
}

.header_row--desktop_nav {
  display: none;
}

.sidebar.close ~ header {
  background-color: var(--primary);
  width: 100%;
  position: fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  top: 0;
  left: 0;
  z-index: 1000;
  padding-block: 10px;
  padding-inline: 32px;
}

.header__row {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.header__row--name {
  text-align: center;
  padding-inline: 10px;
  background-color: var(--primary);
  color: white;
  border: none;
  font-size: 16px;
}

header a {
  color: var(--dark);
}

header .bx.bx-menu {
  cursor: pointer;
  color: var(--dark);
  width: 15%;
}

header form {
  max-width: 400px;
  width: 100%;
  margin-right: auto;
}

header form .form-input {
  display: flex;
  align-items: center;
  height: 36px;
}

header form .form-input input {
  flex-grow: 1;
  padding: 0 16px;
  height: 100%;
  border: none;
  background: var(--grey);
  border-radius: 36px 0 0 36px;
  outline: none;
  width: 100%;
  color: var(--dark);
}

header form .form-input button {
  width: 80px;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--primary);
  color: var(--light);
  font-size: 18px;
  border: none;
  outline: none;
  border-radius: 0 36px 36px 0;
  cursor: pointer;
}

header .notif {
  font-size: 20px;
  position: relative;
}

header .notif .count {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 20px;
  height: 20px;
  background: var(--danger);
  border-radius: 50%;
  color: var(--light);
  border: 2px solid var(--light);
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

header .profile img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 50%;
}

main {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.content main .header .left h1 {
  font-size: 36px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--dark);
}

.content main .header .report {
  height: 36px;
  padding: 0 16px;
  border-radius: 36px;
  background: var(--primary);
  color: var(--light);
  display: flex;
  align-items: center;
  justify-content: center;
  grid-gap: 10px;
  font-weight: 500;
}

.content main .insights {
  display: flex;
  flex-direction: column;
  column-gap: 16px;
  margin-top: 3rem;
  flex-wrap: wrap;
  gap: 16px;
}

.insights__item {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding-block: 1rem;
  padding-inline: 1rem;
  background: var(--light);
  border-radius: 20px;
  gap: 10px;
  cursor: pointer;
  background-color: white;
  box-shadow: var(--shadow-l);
}

.insights__item--top,
.insights__item--bottom {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.insights__item--bottom img {
  width: 30%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.insights__item--top h3 {
  font-size: 24px;
  font-weight: 600;
  color: var(--dark);
}

.insights__item--top p {
  font-size: 18px;
  color: var(--dark);
  text-align: right;
  display: flex;
  justify-content: center;
  align-items: center;
}

.insights__item--top p i {
  font-size: 1rem;
  transform: rotate(-45deg);
  margin-top: 5px;
}

.insights__item--bottom__content {
  width: 70%;
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--text-I);
}

.insights__item--bottom__content p {
  font-size: 14px;
}

.insights__item--bottom.lessons {
  justify-content: space-between;
  gap: 10px;
  align-items: start;
}

.insights__item--bottom li {
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}
.insights__item--bottom li div p input {
  font-size: 16px !important;
}

.insights__item--bottom li div p {
  color: #000;
}

.insights__item--bottom li div p:hover {
  color: var(--primary);
}

.insights .insights__item:first-child .insights__item--bottom img {
    width: 100px !important
}

.header__row .student_term {
    margin-block: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 65%;
}

.header__row .student_term select {
  width: 75% !important;
  text-align: center !important;
  font-size: 14px !important;
  background-color: var(--primary-I) !important;
  padding-block: 4px !important;
}

.insights__item--bottom li div {
  display: flex;
  justify-content: start;
  align-items: center;
  gap: 4px;
}

.insights__item--bottom li div p {
  font-size: 16px;
}

.insights__item--bottom li i {
  font-size: 1rem;
  padding: 6px;
  border-radius: var(--md);
}

.insights__item--bottom.lessons li:nth-child(1) i {
  background-color: var(--light-success);
  color: var(--success);
}

.insights__item--bottom.lessons li:nth-child(2) i {
  background-color: var(--light-primary);
  color: var(--primary);
}

.insights__item--bottom.lessons li:nth-child(3) i {
  background-color: var(--light-danger);
  color: var(--danger);
}

.insights__item--content__text .bx.chevron-right {
  font-size: 1.2rem;
}

.insights__item--content--cont {
  display: flex;
  flex-direction: column;
}

.text__cont--item {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: end;
  align-items: center;
  gap: 5px;
}

.text__cont--item span {
  white-space: nowrap;
}

.text__cont--item .lesson {
  font-size: 14px;
}

.insights__item--content__text--cont {
  display: flex;
  flex-direction: row;
}

.insights__item--content p:last-child {
  font-size: 16px;
  color: var(--primary);
  text-decoration: underline;
}

.insights__item--content__icon {
  width: 30%;
  min-height: 20px;
  border-radius: 10px;
  font-size: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.insights__item--content__icon::before {
  color: red;
}

.insights__item--icon {
  width: 30%;
  min-height: 100px;
  border-radius: 10px;
  font-size: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.content main .insights a:nth-child(1) .insights__item--icon {
  background: var(--light-primary);
  color: var(--primary);
}

.content main .insights a:nth-child(2) .insights__item--icon {
  background: var(--light-warning);
  color: var(--warning);
}

.content main .insights a:nth-child(3) .insights__item--icon {
  background: var(--light-success);
  color: var(--success);
}

.content main .insights a:nth-child(4) .insights__item--icon {
  background: var(--light-danger);
  color: var(--danger);
}

.weekly_plan__cont {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.weekly_plan__heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.weekly_plan__heading h3 {
  color: var(--dark);
}

.weekly_plan--card_wrapper {
  display: flex;
  padding-block: 0.5rem;
  scrollbar-width: none;
  overflow-x: scroll;
  gap: 20px;
}

.weekly_plan--card_cont {
  display: flex;
  min-width: 230px;
  flex-direction: column;
  justify-content: space-between;
  align-items: start;
  padding: 1rem;
  background-color: var(--primary-I);
  border-radius: var(--xl);
}

.weekly_plan--card_cont h6 {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.weekly_plan--card_cont h6 .bx.bx-receipt {
  font-size: 1.1rem;
}

.weekly_plan--card_cont h5 {
  padding-top: 1.8rem;
}

.weekly_plan--card_cont__home_work {
  font-size: 14px;
  margin-top: 13px;
  color: var(--text-I);
}

.content main .bottom-data {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 24px;
  width: 100%;
  color: var(--dark);
  padding-inline: 1rem;
}

.inshights__item .header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.qa {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
  align-items: start;
  margin-bottom: 3rem;
}

.qa__card_wrapper {
  width: 100%;
  flex-wrap: wrap;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.qa__card {
  width: 100%;
  display: flex;
  border-radius: var(--md);
  background-color: white;
  box-shadow: var(--shadow-l);
}

.qa__card__content span {
  font-size: 0.9rem;
  text-align: center;
}

.qa__card i {
  font-size: 1.3rem;
  color: var(--primary);
  width: 30%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.qa__card__content {
  width: 70%;
  min-height: 80px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--light-primary);
  border-radius: var(--md) 50px var(--md) var(--md);
}

.content main .bottom-data .reminders .task-list li {
  width: 100%;
  margin-bottom: 16px;
  background: var(--grey);
  padding: 14px 10px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.subject_cont {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/*====== Start Responsive ==========*/
@media screen and (max-width: 768px) {
  .sidebar:not(.close) ~ .content {
    width: calc(100% - 60px);
    left: 230px;
  }

  .sidebar.close ~ .content {
    position: relative;
    display: flex;
    width: 100%;
    left: 0;
  }

  .inner_header .student_name span {
    font-size: 14px !important;
    font-weight: 300;
    white-space: nowrap;
    text-align: center;
  }

  .header__row span {
    font-size: 18px;
  }

  #t-1 .header__row span {
    font-size: 14px;
  }

  .sidebar.close ~ header {
    padding-inline: 24px;
  }
}

@media screen and (max-width: 576px) {
  .content form.show ~ .notif,
  .content header form.show ~ .profile {
    display: none;
  }

  .content main .insights {
    grid-template-columns: 1fr;
  }
}

@media screen and (min-width: 768px) {
  .qa__card {
    width: 48%;
  }

  .content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

 
  .header__row--back_phone {
    display: none;
  }

  .header__row--off_canvas {
    display: block;
  }

  .subject_cont {
    display: flex;
    flex-direction: row;
    justify-content: start;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
  }

  .subject_cont h3 {
    width: 100%;
    margin-bottom: 10px;
  }

  .subject__card {
    width: 32%;
  }

  .subject_cont .insights__item.subject {
    width: 100%;
  }

  main {
    width: 90%;
  }

  .content main .insights,
  .content main .bottom-data {
    flex-direction: row;
  }

  .insights__item,
  .weekly_plan--card_cont {
    width: 23%;
  }

  .insights__item.subject {
    gap: 40px;
  }

  .qa__card_wrapper {
    gap: 40px;
  }

  .qa__card__content {
    min-height: 125px;
  }
}

@media (min-width: 1200px) {
  .h3,
  h3 {
    font-size: 1.2rem !important;
  }
  footer {
    bottom: 0;
    position: absolute;
  }
}

@media (max-width: 768px) {
  footer {
    bottom: 0;
    position: absolute;
  }
}
