.sidebar {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 18px;
    font-weight: 500;
    position: absolute;
    bottom: 0;
    right:0;  /* initially hidden */
    height:100%;  /* cover the entire height */
    width:0;  /* 20% of viewport width */
    background: #1c1c1f;  /* change as needed */
    transition: all 0.3s;  /* smooth transition */
    z-index: 999;  /* ensure it's on top of other elements */
    overflow: hidden;  /* allow for scrolling if the content exceeds the sidebar height */
}

.sidebar-open .sidebar-toggle i {
    color: #545455;
}

.sidebar .list-group-item {
    background: #1c1c1f;
}

.sidebar .list-group-item-m {
    font-size: 16px;
}
.sidebar .list-group-item-s {
    font-size: 12px;
}

.sidebar .button {
    text-decoration: none;
    white-space: nowrap;
    font-size: 18px;
    font-weight: 500;
    padding:0;
    margin:0;
}

.sidebar-close {
    display: none;
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    z-index: 10000; /* Making sure the button is on top of other elements */
}

/* Desktop and larger tablets */
@media (min-width: 1281px) {
    .sidebar-open .header, 
    .sidebar-open .footer, 
    .sidebar-open .content-wrapper{
        width:85%;
    }
    .sidebar-open .popup-wrapper {
        width:80%;
    }

    .sidebar-open .sidebar {
        width:15%;
    }
}

/* Mobile and smaller tablets */
@media (max-width: 1280px) {

    .sidebar-close {
        display: block; /* Show the close button on mobile */
    }

    .sidebar-open .sidebar {
        width:100%;
        z-index:9999;  /* or even width: 100%; if you want it full screen */
    }
}

.sidebar-content {
    height:100%;
    display:flex;
    flex-direction: column;
    justify-content: space-between;
}

.footer-group {
    justify-content: space-between;
    flex-direction: column;
    vertical-align: middle;
    font-size:14px;
    padding-top:1em;
    white-space: nowrap;
}

.footer-group .list-group-item {
    display: flex;
    border: none;
    justify-content: center;
    width:100%;
    font-size: 14px;
    cursor: pointer;
}

.footer-group .list-group-item:hover, .footer-group .list-group-item:hover a {
    color: #545455 !important;
    text-decoration: none;
}

