/* Side Drawer Styles */
#sideDrawer {
  position: fixed;
  top: 0;
  left: -270px;
  width: 270px;
  height: 100%;
  background-color: #090933;
  transition: 0.3s;
  z-index: 1050;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
}

#sideDrawer.open {
  left: 0;
}

#sideDrawer a {
  color: white;
  text-decoration: none;
  display: block;
  padding: 15px;
  font-size: 18px;
  transition: background-color 0.3s ease;
}

#sideDrawer a:hover {
  background-color: #262c83;
  color: white;
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  z-index: 1040;
}

.overlay.show {
  display: block;
}

/* Accordion styles for side drawer */
#sideDrawer .accordion-button::after {
  color: white !important;
  filter: brightness(0) invert(1);
}

.accordion-button {
  background-color: transparent !important;
  color: white !important;
  border: none !important;
  box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
  background-color: #262c83 !important;
  color: white !important;
}

.accordion-button.collapsed {
  background-color: transparent !important;
  color: white !important;
}

.accordion-button:active,
.accordion-button:focus {
  background-color: #262c83 !important;
  color: white !important;
  box-shadow: none !important;
}

.accordion-button:hover {
  background-color: #262c83 !important;
  color: white !important;
}

.accordion-item {
  background-color: transparent !important;
  border: none !important;
}

.accordion-collapse {
  border: none !important;
}

/* Side Drawer Footer */
#sideDrawer hr {
  border: none;
  height: 3px;
  background-color: white;
  margin: 0 10px;
}

.drawer-footer {
  margin-top: auto;
  padding: 1rem;
  font-size: 0.78rem;
}

/* Responsive drawer adjustments */
@media (max-width: 576px) {
  #sideDrawer {
    width: 250px;
    left: -250px;
  }
  
  #sideDrawer a {
    font-size: 16px;
    padding: 12px;
  }
}