.bootstrap-sidebar {
    position: fixed;
    top: 56px; /* height of navbar */
    bottom: 0;
    left: 0;
    width: 60px;
    background-color: #f8f9fa;
    overflow-y: auto;
    z-index: 1030;
    transition: width 0.16s ease;
}

.bootstrap-sidebar .nav-link {
    color: #0d6efd;
    display: flex;
    align-items: center;
    padding: 10px;
    transition: background-color 0.2s ease;
    text-decoration: none;
}

.bootstrap-sidebar .nav-link:hover {
    background-color: #e9ecef;
}

.bootstrap-sidebar .nav-text {
    display: inline-block;
    margin-left: 10px;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-width 0.16s ease, opacity 0.12s ease;
    white-space: nowrap;
}

.bootstrap-sidebar:hover {
    width: 200px;
}

.bootstrap-sidebar:hover .nav-text {
    max-width: 130px;
    opacity: 1;
}

.bootstrap-sidebar .locked {
    color: gray;
    cursor: not-allowed;
}

@media (max-width: 767px) {
    .bootstrap-sidebar {
        bottom: 0;
        flex-direction: row !important;
        height: 64px;
        left: 0;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0 0.35rem !important;
        right: 0;
        top: auto;
        width: 100%;
    }

    .bootstrap-sidebar:hover {
        width: 100%;
    }

    .bootstrap-sidebar .nav-link {
        align-items: center;
        flex: 0 0 4.7rem;
        flex-direction: column;
        font-size: 0.72rem;
        justify-content: center;
        min-height: 64px;
        padding: 0.35rem 0.25rem;
        text-align: center;
    }

    .bootstrap-sidebar .nav-link i {
        font-size: 1.15rem;
        line-height: 1;
    }

    .bootstrap-sidebar .nav-text,
    .bootstrap-sidebar:hover .nav-text {
        display: block;
        margin-left: 0;
        max-width: 4.4rem;
        opacity: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
}
