/* Existing Navbar Styles */
ul, li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.navbar {
    display: none;
    justify-content: space-between;
    align-items: center;
    padding:2rem 2rem 0.5rem 0;
    height: 3rem;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
    font-family: var(--text-font);
}

.navbar a {
    color: var(--text) !important;
}

.navbar.hidden {
    transform: translateY(-100%);
    opacity: 0;
}

/* Navbar Wrapper */
.igem_navbar__wrapper {
    display: flex;
    width: 100%;
    max-width: 75rem;
    margin: 0 auto;
    align-items: center;
}

/* Navbar Brand (Logo and Text) */
.navbar-brand {
    display: flex;
    align-items: center;
    margin-right:20rem;
    text-decoration:none !important;
}

.navbar-brand > img {
    width: 2rem;
    height: 2rem;
    margin-right: 0.5rem;
}

.navbar-brand .brand-name {
    font-size: 1.2rem;
    color: var(--text);
    font-weight: bold;
    text-decoration:none !important;
}

.navbar-brand > span{
    text-decoration:none !important;
}

/* Navbar Menu */
.navbar-nav {
    display: flex;
    gap: 1.5rem;
    margin-left: auto;
    list-style:none !important;
}

.navbar-nav .nav-link {
    color: var(--text);
    cursor:pointer;
    text-decoration:none !important;
    list-style: none !important;

}
.nav-item{
    list-style: none !important;
}
.navbar-nav li{
    list-style: none !important;
}
.navbar-nav .nav-link:hover {
    color: var(--main-color);
    cursor:pointer;
    text-decoration:none !important;
}

.nav-link::before, 
.nav-link::after {
    content: none !important;
}

/* Dropdown Menu */
.dropdown{
    position: relative;
    display: inline-block;
    padding:2rem;
}

.dropdown-menu {
    display: none;
    position: absolute;
    background-color: var(--background);
    min-width: 10rem;
    padding:0.5rem;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    border-radius:0.5rem;
}

.dropdown-menu a {
    color: var(--text);
    padding: 0.75rem 1rem;
    text-decoration: none;
    display: block;
}


.dropdown-menu a:hover {
    cursor:pointer;
    color: var(--shade-1);
}
.dropdown-menu.show {
    display: block;
}

@media (max-width: 48rem) {
    .navbar-brand > img {
        width: 2.5rem;
        height: 2.5rem;
    }
    
    .navbar-nav {
        gap: 1rem; /* Reduce space between links */
    }
}

/* Hamburger Icon */
.hamburger {
    display: block;
    position: fixed;
    top: 1.5rem;
    right: 2rem;
    z-index: 2000;
    cursor: pointer;
    font-size: 2rem;
    color: var(--grey);
    transition: transform 0.7s ease-in-out;
}


/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 43.75rem;
    background-color: var(--dark-background);
    z-index: 99;
    padding-top: 15rem;
    padding-left:4rem;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
}

.sidebar-content{
    display:flex;
    position:absolute;
    /* flex-direction: column; */
    left: 5rem;
    top: 17rem;
    padding-top:20rem;
}


.sidebar-menu{
    display:flex;
    flex-direction: column;
    font-size: 1.4rem;
    line-height: 1.5;
}

.sidebar-title{
    font-size: 2rem;
    font-weight: 400;
    padding-bottom:1.25rem;
}

.sidebar-title.active {
    color: var(--main-color); /* Change this to your desired color */
}
.sidebar-item{
    padding-left:2rem;
}

.sidebar.open {
    transform: translateX(0);
}

/* Push content to the left when sidebar is open */
.sidebar.open + .main-content {
    transform: translateX(-15rem);
}

.sidebar.open + .hamburger {
    display: none;
  }

.sidebar-menu {
    display: none;
}

.sidebar-menu.show {
    display: block;
    padding-top:1.5rem;
    transition: transform 0.3s ease-in-out;
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 2.5rem;
    right: 4rem;
    font-weight: 600;
    color: var(--shade-1);
    -webkit-transition: color 0.2s ease;
    transition: color 0.2s ease;
    background: none;
    border: 0;
    cursor: pointer;
    z-index: 2;
    font-size: 1.25rem;  
}

.close-btn:hover {
    color: var(--shade-3);
}

/* Sidebar Navigation Links */
.sidebar-nav {
    list-style-type: none;
    padding-left: 1rem;
    padding-top: 3rem;
    font-family: var(--text-font);
    font-size: 1.25rem;
    line-height: 1rem;
}

.sidebar-nav .nav-item a {
    text-decoration: none;
    color: var(--background);
    display: block;
    transition: color 0.3s;
}

.sidebar-nav .nav-item a:hover {
    color: var(--shade-3);
    cursor:pointer;
}

/* Show hamburger icon on scroll */
body.scrolled .hamburger {
    display: block;
}

/* Push content when sidebar is open */
.main-content {
    transition: transform 0.3s ease-in-out;
    margin-left: 0; /* Adjust margin based on your layout */
}

/* Additional Spacing Adjustment */
.sidebar-nav li:not(:first-child) {
    margin-top: 1.5rem;
}
  