:root {
    --bg-nav-color: #2b343b;
    --bg-act-color:  #4187f6;
    --nav-max-width: 250px;
}

.navigation {    
    position: relative;
    height: 100%;
    width: 70px;
    background: var(--bg-act-color); 
    box-shadow: 10px 0 0 var(--bg-nav-color); 
    border-left: 10px solid var(--bg-act-color); 
    overflow-x: hidden;
    transition: width 0.5s;
}
.navigation:hover {
    width: var(--nav-max-width);
}

.navigation ul {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    padding-left: 5px;
    padding-top: 40px;
}

.navigation ul li {
    position: relative;
    list-style: none;
    width: 100%;    
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}

.navigation ul li.active {
    background: var(--bg-nav-color); 
}

.navigation ul li a {
    position: relative;
    display: block;
    width: 100%;
    display: flex;
    text-decoration: none;
    color: #fff;    
}

.navigation ul li.active a::before {
    content: '';
    position: absolute;
    top: -30px;
    right: 0;
    width: 30px;
    height: 30px;
    background: transparent;
    border-radius: 50%;
    box-shadow: 15px 15px 0 var(--bg-nav-color);   
}

.navigation ul li.active a::after {
    content: '';
    position: absolute;
    bottom: -30px;
    right: 0;
    width: 30px;
    height: 30px;
    background: transparent;
    border-radius: 50%;    
    box-shadow: 15px -15px 0 var(--bg-nav-color);
}


.navigation ul li .icon {
    position: relative;
    display: block;
    min-width: 60px;
    height: 60px;
    line-height: 70px;
    text-align: center;
}

.navigation ul li .icon ion-icon {
    position: relative;
    font-size: 1.5em;
    z-index: 1;    
}

.navigation ul li .title {
    position: relative;
    display: block;
    padding-left: 10px;
    height: 60px;
    line-height: 60px;
    white-space: nowrap;
}

span.icon img {
    filter:invert(1);
    position:absolute;
    left: 5px;
    top: 10px;
    height: 35px;
    width: 35px;
}

@media screen and (max-height: 786px) {

    .navigation {    
        position: relative;
        height: 100%;
        width: 50px;        
    }
    .navigation ul li {
        position: relative;
        list-style: none;
        width: 100%;    
        border-top-left-radius: 10px;
        border-bottom-left-radius: 10px;
    }
    
    .navigation ul li.active a::before {
        content: '';
        position: absolute;
        top: -30px;
        right: 0;
        width: 30px;
        height: 30px;
        background: transparent;
        border-radius: 50%;
        box-shadow: 15px 15px 0 var(--bg-nav-color);   
    }
    
    .navigation ul li.active a::after {
        content: '';
        position: absolute;
        bottom: -30px;
        right: 0;
        width: 30px;
        height: 30px;
        background: transparent;
        border-radius: 50%;    
        box-shadow: 15px -15px 0 var(--bg-nav-color);
    }
    
    
    .navigation ul li .icon {
        position: relative;
        display: block;
        min-width: 30px;
        height: 30px;
        line-height: 35px;
        text-align: center;
    }

    .navigation ul li .title {
        position: relative;
        display: block;
        padding-left: 15px;
        height: 30px;
        line-height: 30px;
        white-space: nowrap;
    }
    
    span.icon img {
        filter:invert(1);
        position:absolute;
        left: 5px;
        top: 5px;
        height: 20px;
        width: 20px;
    }
}