/*------------------------- SIDE NAVIGATION -------------------------*/

/*--- SIDEBAR ---*/
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  width: 60%;
  height: 100%;
  background-color: var(--color-text-light);
  box-shadow: 0 4px 6px rgba(23, 62, 98, 0.15);
  overflow: auto;
  transform: translateX(-100%);
  transition: all 0.3s ease-in-out;
}

@media only screen and (max-width: 27.5em) {
  .sidebar {
    width: 75%;
  }
}

/*--- SIDEBAR OVERLAY ---*/
.sidebar__overlay {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 998;
  display: block;
  width: 100%;
  height: 100%;
  background-color: rgba(42, 43, 42, 0.7);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease 0.1s;
}

/*--- SIDEBAR HEADER ---*/
.sidebar__header {
  font-family: var(--font-secondary);
  font-weight: 500;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5rem 3.5rem;
  color: var(--color-primary);
}

@media only screen and (max-width: 27.5em) {
  .sidebar__header {
    font-size: 3rem;
  }
}

/*--- SIDE NAVIGATION LIST ---*/
.sidenav__item {
  border-bottom: 1px solid rgba(153, 214, 221, 0.5);
  overflow: hidden;
  transition: all 0.3s;
}

.sidenav__link:link,
.sidenav__link:visited {
  font-family: inherit;
  font-size: 1.625rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  padding: 2rem 3rem;
  text-transform: capitalize;
  text-decoration: none;
  color: var(--color-secondary);

  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2.5rem;
}

.sidenav__item:has(.sidenav__dropdown-menu) > .sidenav__link::after {
  content: "";
  display: block;
  width: 1.75rem;
  height: 1.75rem;
  background-image: url("../../assets/icons/down-arrow_32.png");
  background-size: contain;
  margin-left: auto;
  transition: transform 0.3s;
}

.sidenav__item--active > .sidenav__link::after {
  transform: rotate(-180deg);
}

.sidenav__icon {
  width: 4rem;
  height: 4rem;
  fill: var(--color-secondary);
}

@media only screen and (max-width: 27.5em) {
  .sidenav__icon {
    width: 3rem;
    height: 3rem;
  }
}

/*--- DROPDOWN MENU LIST ---*/
.sidenav__dropdown-menu {
  padding-left: 7rem;
  max-height: 0;
  transition: all 0.3s;
}

/* .sidenav__item--active > .sidenav__dropdown-menu {
  max-height: max-content;
} */

.sidenav__dropdown-link:link,
.sidenav__dropdown-link:visited {
  font-family: inherit;
  font-weight: 500;
  color: var(--color-secondary);
  letter-spacing: 0.3px;
  padding: 2rem 0 2rem 2.5rem;
  text-transform: capitalize;
  text-decoration: none;
  transition: all 0.3s;

  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2.5rem;
  position: relative;
}

.sidenav__dropdown-link:hover {
  color: var(--color-secondary);
}

.sidenav__dropdown-link:focus {
  color: var(--color-white);
}

.sidenav__dropdown-link::after {
  content: "";
  display: block;
  width: 0;
  height: 100%;
  background-color: var(--color-secondary);
  position: absolute;
  top: 0;
  right: 0;
  z-index: -1;
  transition: all 0.3s;
}

.sidenav__dropdown-link:hover::after {
  width: 5px;
}

.sidenav__dropdown-link:focus::after {
  width: 100%;
}

/*------------------------- SIDE NAVIGATION -------------------------*/
