
.left-menu {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 60px;
    background: var(--menu-bg);
    box-shadow: 2px 0 8px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: width 0.3s cubic-bezier(.4,2,.6,1), background 0.3s;
    z-index: 1100;
    overflow: hidden;
}

.left-menu.expanded .left-menu ul{
    width: 50% !important;
}

.left-menu.expanded {
    display: flex;
    flex-direction: row;
    width: 100vw;
    background: var(--menu-bg-expanded);
    box-shadow: 2px 0 8px rgba(0,0,0,0.2);
    pointer-events: auto;
}

.left-menu .menu-toggle {
    background: none;
    border: none;
    color: var(--menu-text);
    margin: 16px 0 24px 0;
    cursor: pointer;
    outline: none;
    font-size: 2.2em;
    align-self: flex-start;
    position: static; /* Remove absolute/fixed */
    z-index: 1200;
}

.left-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 30%;
}

.left-menu li {
    margin: 20px -15px;
    display: flex;
    justify-content: center;
}

.left-menu a {
    display: flex;
    align-items: center;
    color: var(--menu-text);
    text-decoration: none;
    font-size: 1.2em;
    padding: 10px 16px;
    border-radius: 8px;
    transition: background 0.2s;
    width: 100%;
    justify-content: flex-start;
}

.left-menu a:hover {
    background: var(--menu-hover-bg);
}

.left-menu .icon {
    font-size: 1.5em;
    margin-right: 0;
    transition: margin 0.3s;
}

.left-menu .label {
    margin-left: 16px;
    white-space: nowrap;
    font-size: 1.1em;
}




.left-menu.expanded .menu-extras {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 40vw;
    min-width: 0;
    padding: 24px 16px 0 16px;
    border-top: none;
    border-left: 1px solid var(--menu-border);
    background: transparent;
}

.menu-search {
    width: 100%;
}
.menu-search input {
    width: 90%;
    margin-bottom: 16px;
}
.menu-social {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
    align-items: center;
}

.menu-search input {
    width: 100%;
    padding: 8px 12px;
    border-radius: 6px;
    border: none;
    margin-bottom: 16px;
    font-size: 1em;
    background: var(--menu-hover-bg);
    color: var(--menu-text);
}


@media (max-width: 900px) {
    .left-menu {
        width: 60px;
    }
    .left-menu.expanded {
        width: 100vw;
        /* background: #181818ee; */
    }
}



@media (max-width: 600px) {
    .left-menu ul{
        width: 80%;
    }
    .left-menu {
        width: 0;
        min-width: 0;
        overflow: visible;
        background: transparent;
        box-shadow: none;
    }
    .left-menu .menu-toggle {
        position: fixed;
        top: 1px;
        z-index: 1200;
        display: block;
        right: 0;
    }
    .left-menu ul {
        display: none;
    }
    .left-menu.expanded {
        width: 100vw;
        min-width: 0;
        pointer-events: auto;
        box-shadow: 2px 0 8px rgba(0,0,0,0.2);
    }
    .left-menu.expanded ul {
        display: block;
        padding-top: 55px; /* Space for the toggle button */
    }
}


@media (max-width: 600px) {
    .menu-extras {
        display: none;
        padding: 24px 16px 0 16px;
        border-top: 1px solid var(--menu-border);
    }
    .left-menu.expanded {
        flex-direction: column;
        width: 100vw;
    }
    .left-menu.expanded .menu-extras {
        width: 80%;
        border-left: none;
        border-top: 1px solid var(--menu-border);
        padding: 16px 16px 24px 16px;
        align-items: flex-start;
        justify-content: flex-start;
        /* Move to bottom */
        order: 2;
    }
    
    .menu-search input {
        width: 100%;
        padding: 8px 12px;
        border-radius: 6px;
        border: none;
        margin-bottom: 16px;
        font-size: 1em;
        background: var(--menu-hover-bg);
        color: var(--menu-text);
    }
    .menu-social {
        display: flex;
        gap: 16px;
        justify-content: flex-start;
        align-items: center;
    }
    .menu-social a svg {
        fill: var(--menu-text);
        width: 24px;
        height: 24px;
        transition: fill 0.2s;
    }
    .menu-social a:hover svg {
        fill: var(--menu-social-hover);
    }
}