
.sidebar{
    display: flex;
    flex-direction:column;

    width: var(--sidebar-width);
    height: 100vh;

    position:fixed;
    left: 0;
    top: 0;

    z-index: 1000;

    padding:2rem 0;

    background: #2b2b2e;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar::before{
    content: "MENU";
    font-size: 0.75rem;
    letter-spacing: 0.12rem;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 1.5rem;
    margin-left: 1.5rem;
    display: block;
}

.sidebar a{
    display: block;
    /* This is making the link fill sidebar width */

    padding: 0.6rem 1.5rem;
    /* padding: 0.8rem 1.2rem; */
    width: 100%;
    white-space: nowrap;
    /* to make sure text wont wrap awkwardly */

    box-sizing: border-box;

    margin-bottom: 0.4rem;

    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    font-size: 1rem;
    border-radius: 6px;

    transition: background 0.2s ease, color 0.2s ease;
}

.sidebar a:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
}

.sidebar a.active{
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-weight: 500;
}

.sidebar{
    box-shadow: inset -8px 0 16px rgba(0, 0, 0, 0.35);
}

/* body.light-mode .sidebar{
    display: flex;
    flex-direction: row;
    position: fixed;
    padding: 1rem;
    margin: 10px;
} */

.sidebar a:nth-child(5){
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar a.active{
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    font-weight: 500;
}

#theme-toggle{
    z-index: 1001;
}
