.sidebar {
    width: 260px;
    background-color: #2c3e50;
    color: #ffffff;
    height: calc(100vh - 70px);
    position: fixed;
    top: 70px;
    left: 0;
    overflow-y: auto;
    transition: width 0.3s ease, left 0.3s ease, background-color 0.3s ease;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    &.collapsed {
        width: 80px;
        left: 0px;
        transition: width 0.3s ease, left 0.3s ease;
    }
    ul {
        list-style: none;
        padding: 0;
        margin: 0;
        li {
            margin: 0;
            padding: 15px 20px;
            transition: background-color 0.3s ease, padding-left 0.3s ease;
            &.active {
                a {
                    color: #ffffff;
                }
                &::before {
                    content: '';
                    position: absolute;
                    left: 0;
                    top: 0;
                    height: 100%;
                    width: 5px;
                    background-color: #1abc9c;
                    transition: width 0.3s ease;
                }
            }
            &:hover {
                background-color: #34495e;
                padding-left: 25px;
                &::before {
                    width: 5px;
                }
                a {
                    color: #1abc9c;
                }
            }
            a {
                text-decoration: none;
                color: #ffffff;
                display: block;
                font-size: 16px;
                position: relative;
                display: inline-block;
                transition: color 0.3s ease, padding-left 0.3s ease;
            }
            &.collapsed {
                padding-left: 15px;
                text-align: center;
                /* Center text/icons when collapsed */
                a {
                    text-align: center;
                }
            }
        }
    }
}