html {
  font-family: Poppins, "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;

}


.logopng{
    position: absolute; top: 20px; left:55px;
    display: flex;
    opacity: 90%;
    max-height: 110px;
    max-width: 110px; 
    overflow: hidden;
    border-color: #3e3e41;
}

.logo{
    font-size: 20px;
    font-weight:600;
    margin-top: 60px;
    left: 0px;
    text-align: center;
    justify-content: center;
}

#sidebar{
    box-sizing: border-box;
    height: 100vh;
    width: 250px;
    padding: 5px 1em;
    background-color: var(--sidebar-clr);
    border-right:  1px solid var(--line-clr);
    box-shadow: 10px 0 10px -8px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    align-self: start;
    transition: 300ms ease-in-out;
    overflow: hidden;
    text-wrap: nowrap;
    z-index: 1000;
}
#sidebar.close{
    padding: 5px;
    width: 60px;
}

#sidebar.close .logo{
    opacity: 0;
    transition: opacity 300ms ease-out;
}

#sidebar.close .logopng{
    opacity: 0;
    transition: opacity 300ms ease-out;
}

#sidebar ul{
    list-style: none;
}
#sidebar > ul > li:first-child{
    display: flex;
    justify-content: flex-end;
    margin-bottom: 16px;
    .logo{
        font-weight: 600;
    }
}
#sidebar ul li.active a{
    
    color: var(--accent-clr);

    svg{
        fill: var(--accent-clr)
    }
}



#sidebar a, #sidebar .dropdown-btn, #sidebar .logo{
    border-radius: 0.8em;
    padding: .85em;
    text-decoration: none;
    color: var(--text-clr);
    display: flex;
    align-items: center;
    gap: 1em;
}
.dropdown-btn{
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    font: inherit;
    cursor: pointer;

}

#sidebar svg{
    flex-shrink: 0;
    fill: var(--text-clr)
}
#sidebar a span, #sidebar .dropdown-btn span{
    flex-grow: 1;
}
#sidebar a:hover, #sidebar .dropdown-btn:hover{
    background-color: var(--hover-clr);
    color: var(--texthover-clr);
    svg{
        fill: var(--texthover-clr)
    }
    
}
.rotate svg:last-child{
    rotate: 180deg;
}

#toggle-btn{
    margin-left: auto;
    padding: 0.81em;
    border: none;
    border-radius: 0.8em;
    background: none;
    cursor: pointer;

    svg{
        transition: rotate 150ms ease;
    }
    
  
}
#toggle-btn:hover{
    background-color: var(--texthover-clr);

}

/*-----------------SMARTPHONE-----------------*/

@media(max-width: 768px){
    #sidebar{
        height: 60px;
        width: 100%;
        border-right: none;
        border-top: 1px solid var(--line-clr);
        padding: 0;
        position: fixed;
        top: unset;
        bottom: 0;
        z-index: 1000;

        >ul{
            padding: 0;
            display: grid;
            grid-auto-columns: 60px;
            grid-auto-flow: column;
            align-items: center;
            overflow-x: scroll;
        }
        ul li{
            height: 100%;
        }
        ul a, ul .dropdown-btn{
            width: 60px;
            height: 60px;
            padding: 0;
            border-radius: 0;
            justify-content: center;
        }

        ul li span, ul li:first-child,.dropdown-btn svg:last-child,.logopng,.logo,#toggle-btn{
            display: none;
        }
    }
}