.rst-dashboard{
    position:relative;
    padding:1rem;
}

.rst-dashboard-toggle{
    display:flex;
    align-items:center;
    justify-content:center;
    width:48px;
    height:48px;
    margin-bottom:1rem;
    border:0;
    border-radius:8px;
    cursor:pointer;
}

.rst-dashboard-sidebar{
    position:fixed;
    top:0;
    left:0;
    width:280px;
    height:100vh;
    padding:1.5rem;
    background:#111;
    z-index:1000;

    transform:translateX(-100%);
    transition:transform .25s ease;
}

.rst-dashboard-sidebar.is-open{
    transform:translateX(0);
}

.rst-dashboard-nav{
    display:flex;
    flex-direction:column;
    gap:.5rem;
}

.rst-dashboard-nav a{
    display:block;
    padding:.75rem 1rem;
    text-decoration:none;
    border-radius:8px;
}

.rst-dashboard-nav a.is-active{
    font-weight:700;
}

.rst-dashboard-main{
    min-width:0;
}

#dashboard-content{
    transition:
        opacity .2s ease,
        transform .2s ease;
}

#dashboard-content.is-leaving{
    opacity:0;
    transform:translateX(-15px);
}

#dashboard-content.is-entering{
    opacity:0;
    transform:translateX(15px);
}

@media (min-width:992px){

    .rst-dashboard{
        display:grid;
        grid-template-columns:280px 1fr;
        gap:2rem;
        padding:2rem;
    }

    .rst-dashboard-toggle{
        display:none;
    }

    .rst-dashboard-sidebar{
        position:sticky;
        top:1rem;
        height:fit-content;
        transform:none;
        width:auto;
        border-radius:12px;
    }

    .rst-dashboard-main{
        min-width:0;
    }
}