@import '../../styles/theme.scss';

.sidebar {
  width: 276px;
  background-color: var(--bs-body-bg);
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 2;
  transition: transform 0.3s ease;
}

/* Mobile sidebar positioning - hidden by default */
@media (max-width: 991.98px) {
  .sidebar {
    transform: translateX(-100%);
  }
  
  /* When mobile sidebar is open */
  .sidebar-mobile-open {
    transform: translateX(0);
  }
}

.sidebar-header {
  margin-left: 28px;
  margin-top: 145px;
  color: #000;
  font-size: 17px;
  
}

/* Adjust header spacing on smaller screens */
@media (max-width: 991.98px) {
  .sidebar-header {
    margin-top: 60px;
  }
}

.header-username {
  color: var(--bs-body-color);
}

.header-spacer {
  margin-top: 1.8rem;
  margin-left: 1rem;
  border-bottom: 0.5px dashed var(--bs-header-sidebar-color);
  width: 220px;
}
.sidebar-header img {
  margin-right: 1rem;
  border-radius: 50%;
  object-fit: cover;
}

.sidebar-menu-header {
  font-size: 14px;
  color: #90A3BF;
  margin-top: 28px;
  margin-left: 45px;
}

.sidebar-nav.current {
  color: #4CD964;
}

.sidebar-nav {
  color: #6A8996;
}

.sidebar-nav svg {
  margin-right: 1rem;  
}

.sidebar-nav.selected {
  color: map-get($theme-colors, 'primary');
}

.sidebar a {
  color: #000;
  text-decoration: none;
  padding: 0.5rem 1rem;
  transition: background-color 0.2s ease;
  border-radius: 4px;
}

.sidebar a:hover {
  background-color: #343a40;
  border-radius: 4px;
}

a.active {
  border-left: #4CD964 0.3rem solid;
  background: #ced6da linear-gradient(270deg, rgba(53, 99, 233, 0.36) -416.06%, rgba(53, 99, 233, 0) 94.8%);
}
