.hidden {
    display: none;
}

/* SIDE NAVIGATION BAR */
.sidebarMenu {
    width: 100%;
    background-color: white;
    position: relative;
    overflow-y: auto;
}

.sidebarHeader {
    padding-bottom: 2rem;
    text-align: center;
}

.nav-menu {
    padding: 1rem;
}

.sidenav-item {
    max-width: 20.75rem;
    width: 100%;
    box-sizing: border-box;
    background: none;
    border: none;
    border-radius: 8px;
    text-align: left;
    margin: auto;
    padding: 8px 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: block;
}

.sidenav-item p {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sidenav-item a {
    text-decoration: none;
    color: var(--text-bold);
}

.sidenav-item.regular {
    background-color: var(--bg-default);
    color: var(--text-bold);
}

.sidenav-item.regular:hover {
    background-color: var(--bg-gray-subtler-hover);
}

.sidenav-item.regular.active {
    background-color: var(--bg-brand-blue);
    color: var(--text-display);
}

.sidenav-item.regular.active:hover {
    background-color: var(--bg-brand-blue-hover);
}

.sidenav-item.regular.active:active {
    background-color: var(--bg-brand-blue-active);
}

.sidenav-item.sub {
    background-color: var(--bg-subtle);
    color: var(--text-bold);
    padding-left: 24px;
    padding-right: 16px;
    padding-top: 0;
    padding-bottom: 0;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1),
        padding 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    max-width: 20.75rem;
}

.sidenav-item.sub p {
    white-space: normal;
    overflow-wrap: break-word;
    width: 100%;
}

.sidenav-item.sub a {
    text-decoration: none;
    color: var(--text-bold);
}

.sidenav-item.sub.show {
    max-height: 120px;
    opacity: 1;
    padding-top: .5rem;
    padding-bottom: .5rem;
}

.sidenav-item.sub:hover {
    background-color: var(--bg-gray-subtler-hover);
    color: var(--text-bold);
}

.sidenav-item.sub:active {
    background-color: var(--bg-gray-subtler-active);
    color: var(--text-bold);
}

.sidenav-item.sub.active {
    background-color: var(--bg-gray-subtler-active);
    color: var(--text-bold);
}

.icon24 {
    font-size: 16px;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    width: 16px;
    height: 16px;
}

.icon24.expanded {
    transform: rotate(180deg);
}

/* Fallback arrow styles if icons don't load */
.dropdown-arrow {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-left: 8px;
}

.dropdown-arrow.expanded {
    transform: rotate(180deg);
}

.content-area {
    padding: 2rem;
    width: 100%;
}

.content-section {
    clear: right;
}

.content-section.hidden {
    display: none;
}

.content-section h2 {
    margin-top: 0;
    color: #1f2937;
}





/* MOBILE SIDE NAV */
#mobileNavToggle {
    position: fixed;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    background-color: var(--bg-brand-yellow);
    color: var(--text-brand-blue);
    border: none;
    border-radius: 0 8px 8px 0;
    padding: 12px 10px;
    cursor: pointer;
    z-index: 200;
    font-size: 1.25rem;
}

#mobileNavOverlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 300;
}

#mobileNavPanel {
    position: fixed;
    top: 0;
    left: -100%;
    width: 300px;
    height: 100%;
    background: white;
    z-index: 400;
    overflow-y: auto;
    transition: left 0.3s ease;
    box-shadow: 4px 0 16px rgba(0, 0, 0, 0.15);
}

#mobileNavPanel.open {
    left: 1rem;
}

#mobileNavOverlay.open {
    display: block;
}

@media (min-width: 604px) {

    #mobileNavToggle,
    #mobileNavOverlay,
    #mobileNavPanel {
        display: none !important;
    }
}


@media (max-width: 605px) {
    #desktopSidebar {
        display: none !important;
    }

    #mobileNavPanel {
        top: 8rem;
    }
}