/* sidebar design */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
    outline: none;
}
.sidebar{
    width: 300px;
    height: 100vh;
    background: #2b2b2b;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: width 0.4s;
}
.sidebar.active{
    width: 80px;
    align-items: center;
    padding: 2rem 20px;
}
.sidebar .head{
    width: 100%;
    display: flex;
    justify-content: space-between;
    color: #eee;
}
.sidebar.active .head{
    justify-content: center;
}
.sidebar.active h2{
    display: none;
}
.sidebar .head i{
    cursor: pointer;
    font-size: 1.4rem;
}
.sidebar .search-bar{
    width: 100%;
    display: flex;
    align-items: center;
    padding: 0.5rem;
    gap: 0.6rem;
    background: rgba(255,255,255,0.1);
    border-radius: 6px;
}
.sidebar.active .search-bar{
    width: 100%;
    justify-content: center;
}
.sidebar .search-bar input{
    font-size: 1.2rem;
    flex: 1;
    background: none;
    border: none;
    color: white;
}
.sidebar.active .search-bar input{
    display: none;
}
.sidebar .search-bar i{
    color: #999;
}
.sidebar .search-bar input::placeholder{
    margin-left: 1rem;
    font-size: 0.95rem;
    color: #999;
}

.navigation{
    color: #dedede;
}
.navigation ul{
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}
.navigation ul li{
    display: flex;
    gap: 0.8rem;
    width: 100%;
    padding: 0.6rem;
    border-radius: 8px;
    cursor: pointer;
}
.sidebar.active .navigation ul li .text{
        display: none;
}
.navigation ul li:hover{
    background: #00f;
    color: white;
}
.navigation h2{
    margin-bottom: 15px;
    margin-top: 10px;
    font-size: 15px;
}
.user{
    color: #dedede;
    margin-top: 20px;
    gap: 0.8rem;
     
}
.user img{
    height: 40px;
    width: 40px;
    border-radius: 10px;
}
.navigation span{
    text-align: center;
    margin-bottom: 10px;
}


