/* Navbar Toggle */

.navbar-toggler, .navbar-toggler:focus, .navbar-toggler:active, .navbar-toggler-icon:focus {
  outline: none;
  box-shadow: none;
  border: 0;
  position: relative;
}

.toggler-icon {
  display: block;
  position: absolute;
  height: 3.5px;
  width: 100%;
  border-radius: 1px;
  opacity: 1;
  left: 0;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

.middle-bar {
  margin-top: 0px;
}

/* State when the navbar is collapsed */

.navbar-toggler.collapsed .top-bar {
  position: absolute;
  top: 0px;
  transform: rotate(0deg);
}

.navbar-toggler.collapsed .middle-bar {
  opacity: 1;
  position: absolute;
  top: 10px;
  filter: alpha(opacity=100);
}

.navbar-toggler.collapsed .bottom-bar {
  position: absolute;
  top: 20px;
  transform: rotate(0deg);
}

/* when navigation is clicked */

.navbar-toggler .top-bar {
  top: inherit;
  transform: rotate(135deg);
}

.navbar-toggler .middle-bar {
  opacity: 0;
  top: inherit;
  filter: alpha(opacity=0);
}

.navbar-toggler .bottom-bar {
  top: inherit;
  transform: rotate(-135deg);
}

/* End */

/* Sidebar styling */

#sidebar {
  background-color: var(--bs-body-bg);
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 250px;
  transition: transform 0.3s ease, margin-left 0.3s ease;
  transform: translateX(-100%);
  z-index: 2000;
  overflow-y: auto;
}

#sidebar.active {
  transform: translateX(0);
}

#sidebar .sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

#sidebar .sidebar-header h3 {
  margin: 0;
  font-size: 1.5rem;
}

#sidebar .sidebar-header .close-btn {
  font-size: 1.5rem;
  cursor: pointer;
}

#sidebar .nav-link {
  color: var(--bs-body-color);
  font-size: 1rem;
  padding: 10px 10px;
  display: flex;
  align-items: center;
  transition: background 0.3s, color 0.3s;
  gap: 1rem;
}

#sidebar .nav-link.active, #sidebar .nav-link:hover {
  background-color: var(--bs-gray-200);
  transition: ease-in .2s;
  border-radius: 8px;
}

#sidebar .nav-link .fa {
  margin-right: 15px;
}

#sidebar .submenu {
  padding-left: 2.4rem;
  list-style-type: initial;
}

#sidebar .submenu a {
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* Overlay styling */

#overlay {
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  width: 100vw;
  background-color: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 1500;
}

#overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Main content styling */

#content {
  transition: margin-left 0.3s ease;
  overflow: auto;
}

/* Sidebar always visible on LG and above */

@media (min-width: 992px) {
  #sidebar {
    transform: translateX(0);
    margin-left: 0;
  }
}

@media (min-width: 992px) {
  #content {
    margin-left: 250px;
  }
}

@media (min-width: 992px) {
  #sidebar.active {
    transform: translateX(-250px);
  }
}

@media (min-width: 992px) {
  #overlay {
    display: none;
  }
}

#sidebar {
  overflow-y: auto;
}

.card {
  box-shadow: none;
}

.nav-item {
  padding: 0.1rem 0.5rem;
  border-radius: 12px;
  overflow: hidden;
}

#usersSubmenu li {
  padding: .2rem 0;
}

.class-desc, .class-title {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.post-card:hover {
  box-shadow: 0px 0px 10px rgba(0,0,0,0.15);
  transform: translateY(-5px);
}

.post-card {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.shadows {
  box-shadow: 0px 0px 10px rgba(0,0,0,0.1);
}

.class-banner {
  height: 200px;
}

@media (max-width: 990px) {
  .class-banner {
    height: 120px;
  }
}

.btn-light:active, .btn-light:hover, .btn-outline-light:active, .btn-outline-light:hover {
  background-color: var(--bs-gray-200);
  border-color: var(--bs-gray-200);
}

.btn-light, .btn-outline-light {
  border-color: var(--bs-gray-200);
}

.form-control:focus {
  color: var(--bs-body-color);
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.pagination {
  --bs-pagination-active-bg: var(--bs-primary);
  --bs-pagination-active-border-color: var(--bs-primary);
}

#baguetteBox-overlay {
  display: none;
  opacity: 0;
  position: fixed;
  overflow: hidden;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000000;
  background-color: #222;
  background-color: rgba(0,0,0,.8);
  -webkit-transition: opacity .5s ease;
  transition: opacity .5s ease;
}

#baguetteBox-overlay.visible {
  opacity: 1;
}

#baguetteBox-overlay .full-image {
  display: inline-block;
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
}

#baguetteBox-overlay .full-image figure {
  display: inline;
  margin: 0;
  height: 100%;
}

#baguetteBox-overlay .full-image img {
  display: inline-block;
  width: auto;
  height: auto;
  max-height: 100%;
  max-width: 100%;
  vertical-align: middle;
  -webkit-box-shadow: 0 0 8px rgba(0,0,0,.6);
  -moz-box-shadow: 0 0 8px rgba(0,0,0,.6);
  box-shadow: 0 0 8px rgba(0,0,0,.6);
}

#baguetteBox-overlay .full-image figcaption {
  display: block;
  position: absolute;
  bottom: 0;
  width: 100%;
  text-align: center;
  line-height: 1.8;
  white-space: normal;
  color: #ccc;
  background-color: #000;
  background-color: rgba(0,0,0,.6);
  font-family: sans-serif;
}

#baguetteBox-overlay .full-image:before {
  content: "";
  display: inline-block;
  height: 50%;
  width: 1px;
  margin-right: -1px;
}

#baguetteBox-slider {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 100%;
  white-space: nowrap;
  -webkit-transition: left .4s ease,-webkit-transform .4s ease;
  transition: left .4s ease,-webkit-transform .4s ease;
  transition: left .4s ease,transform .4s ease;
  transition: left .4s ease,transform .4s ease,-webkit-transform .4s ease,-moz-transform .4s ease;
}

#baguetteBox-slider.bounce-from-right {
  -webkit-animation: bounceFromRight .4s ease-out;
  animation: bounceFromRight .4s ease-out;
}

#baguetteBox-slider.bounce-from-left {
  -webkit-animation: bounceFromLeft .4s ease-out;
  animation: bounceFromLeft .4s ease-out;
}

@keyframes bounceFromRight {
  0%, 100% {
    margin-left: 0;
  }
  50% {
    margin-left: -30px;
  }
}

@keyframes bounceFromLeft {
  0%, 100% {
    margin-left: 0;
  }
  50% {
    margin-left: 30px;
  }
}

.baguetteBox-button#next-button, .baguetteBox-button#previous-button {
  top: 50%;
  top: calc(50% - 30px);
  width: 44px;
  height: 60px;
}

.baguetteBox-button {
  position: absolute;
  cursor: pointer;
  outline: 0;
  padding: 0;
  margin: 0;
  border: 0;
  -moz-border-radius: 15%;
  border-radius: 15%;
  background-color: #323232;
  background-color: rgba(50,50,50,.5);
  color: #ddd;
  font: 1.6em sans-serif;
  -webkit-transition: background-color .4s ease;
  transition: background-color .4s ease;
}

.baguetteBox-button:focus, .baguetteBox-button:hover {
  background-color: rgba(50,50,50,.9);
}

.baguetteBox-button#next-button {
  right: 2%;
}

.baguetteBox-button#previous-button {
  left: 2%;
}

.baguetteBox-button#close-button {
  top: 20px;
  right: 2%;
  right: calc(2% + 6px);
  width: 30px;
  height: 30px;
}

.baguetteBox-button svg {
  position: absolute;
  left: 0;
  top: 0;
}

.baguetteBox-spinner {
  width: 40px;
  height: 40px;
  display: inline-block;
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -20px;
  margin-left: -20px;
}

.baguetteBox-double-bounce1, .baguetteBox-double-bounce2 {
  width: 100%;
  height: 100%;
  -moz-border-radius: 50%;
  border-radius: 50%;
  background-color: #fff;
  opacity: .6;
  position: absolute;
  top: 0;
  left: 0;
  -webkit-animation: bounce 2s infinite ease-in-out;
  animation: bounce 2s infinite ease-in-out;
}

.baguetteBox-double-bounce2 {
  -webkit-animation-delay: -1s;
  animation-delay: -1s;
}

@keyframes bounce {
  0%, 100% {
    -webkit-transform: scale(0);
    -moz-transform: scale(0);
    transform: scale(0);
  }
  50% {
    -webkit-transform: scale(1);
    -moz-transform: scale(1);
    transform: scale(1);
  }
}