:root{
    /* ===== Colors ===== */
    --body-color: #E4E9F7;
    --sidebar-color: #4F2AE7;
    --primary-color: #695CFE;
    --primary-color-light: #F6F5FF;
    --toggle-color: #DDD;
    --text-color: #707070;

    /* ====== Transition ====== */
    --tran-03: all 0.2s ease;
    --tran-03: all 0.3s ease;
    --tran-04: all 0.3s ease;
    --tran-05: all 0.3s ease;
}

::selection{
    background-color: var(--primary-color);
    color: #fff;
}

/* ===== Sidebar ===== */
 .__sidebar{
    position: fixed;
    top: 70px;
    left: 0;
    height: 100%;
    width: 250px;
    padding: 10px 14px;
    background: var(--sidebar-color);
    transition: var(--tran-05);
    z-index: 100;  
}
.__sidebar.__close{
    width: 88px;
}

/* ===== Reusable code - Here ===== */
.__sidebar li{
    height: 50px;
    list-style: none;
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.__sidebar header .__image{
    min-width: 60px;
    border-radius: 6px;
}

.__sidebar .__text {
    color: var(--text-color);
    transition: var(--tran-03);
}

.__sidebar .__text{
    font-size: 17px;
    font-weight: 500;
    white-space: nowrap;
    opacity: 1;
}
.__sidebar.__close .__text{
    opacity: 0;
}
/* =========================== */

.__sidebar header{
    position: relative;
}

.__sidebar header .__image_text{
    display: flex;
    align-items: center;
}
.__sidebar header .__logo_text{
    display: flex;
    flex-direction: column;
}
header .__image_text .__name {
    margin-top: 2px;
    font-size: 18px;
    font-weight: 600;
}

header .__image_text .__profession{
    font-size: 16px;
    margin-top: -2px;
    display: block;
}

.__sidebar header .__image{
    display: flex;
    align-items: center;
    justify-content: center;
}

.__sidebar header .__image img{
    width: 40px;
    border-radius: 6px;
}

.__sidebar header .__toggle{
    position: absolute;
    top: 50%;
    right: -25px;
    transform: translateY(-50%) rotate(180deg);
    height: 25px;
    width: 25px;
    background-color: var(--primary-color);
    color: var(--sidebar-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    transition: var(--tran-05);
}

.__sidebar.__close .__toggle{
    transform: translateY(-50%) rotate(0deg);
}

.__sidebar .__menu{
    margin-top: 40px;
}

.__sidebar li a{
    list-style: none;
    height: 100%;
    background-color: transparent;
    display: flex;
    align-items: center;
    height: 100%;
    width: 100%;
    border-radius: 6px;
    text-decoration: none;
    transition: var(--tran-03);
}

.__sidebar li a:hover{
    background-color: var(--primary-color);
}
.__sidebar li a:hover .icon,
.__sidebar li a:hover .text{
    color: var(--sidebar-color);
}

.__sidebar .__menu_bar{
    height: calc(100% - 55px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-y: scroll;
}
.__menu_bar::-webkit-scrollbar{
    display: none;
}
.__sidebar.close ~ #main{
    left: 78px;
    height: 100vh;
    width: calc(100% - 78px);
}
