@import url('https://fonts.googleapis.com/css?family=Open+Sans:wght:@400;500;600;700&display=swap');

* {
    font-family: 'Roboto', sans-serif;

    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root{
    --grey: #F1F0F6;
    --dark-grey: #8D8D8D;
    --light: #FFFFFF;
    --dark: #000000;
    --green: #81D43A;
    --light-green: #E3FFCB;
    --blue: #1775F1;
    --light-blue: #D0E4FF;
    --dark-blue: #0C5FCD;
    --red: #FC3B56;
}
body{
    background-color: var(--grey);
}
a{
    text-decoration: none;
    color: var(--dark);
}
li{
    list-style: none;
}
#sidebar{
    position: fixed;
    top: 0;
    left: 0;
    max-width: 260px;
    width: 100%;
    height: 100vh;
    background-color: var(--light);
    overflow-y: auto;
    scrollbar-width: none;
    transition: all 0.3s ease;
    z-index: 200;

}
#sidebar.hide{
    max-width: 60px;
}
#sidebar.hide:hover{
    max-width: 260px;
}
#sidebar::-webkit-scrollbar{
    display: none;
}
#sidebar .brand{
    font-size: 24px;
    display: flex;
    align-items: center;
    height: 64px;
    font-weight: 700;
    color: #ff214f;
    position:sticky;
    top: 0;
    left: 0;
    z-index: 100;
    background: var(--light);
    transition: all 0.3s ease;
    padding: 0 9px;
}


#sidebar .icon {
    min-width: 48px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 6px;
}
#sidebar .icon-right{
    margin-left: auto;
    transition: all 0.3s ease;
} 
#sidebar .side-menu{
    margin: 36px 0;
    padding: 0 20px;
    transition: all 0.3s ease;
}
#sidebar.hide .side-menu{
    padding:0 6px;
}

#sidebar .side-menu a{
    display: flex;
    align-items: center;
    font-size: 14px;
    color: var(--dark);
    padding: 12px 16px 12px 0;
    transition: all 0.3s ease;
    border-radius: 10px;
    margin: 4px 0;
    grid-gap: 6px;
}
#sidebar .side-menu  a:hover{
    background: var(--grey);
}
#sidebar .side-menu > li > a.active .icon-right{
    transform: rotate(90deg);
}

#sidebar .side-menu > li > a.active,
#sidebar .side-menu > li > a.active:hover {
    background: var(--dark-grey);
    color: var(--light);
}
#sidebar .divider{
    margin-top: 24px;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--dark-grey);
    transition: all 0.3s ease;
}
#sidebar.hide .divider{
    text-align: center;
}
#sidebar .side-dropdown{
    padding-left: 48px;
    max-height: 0;
    overflow-y: hidden;
    transition: all .15s ease;
}
#sidebar .side-dropdown.show{
    max-height: 1000px;
}
#sidebar .side-dropdown a:hover{
    color: var(--blue);
}
#sidebar .ads {
    width: 100%;
    height: 20px;
    padding: 15px;
}
#sidebar.hide .ads{
    display: none;
}
#sidebar .ads .wrapper{
    background-color: var(--grey);
    padding: 20px;
    border-radius: 10px;
}
#sidebar .btn-upgrade {
    font-size: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px 0;
    color: var(--light);
    background:#ff214f;
    transition: all .3s ease;
    border-radius: 5px;
    font-weight: 600;
    margin-bottom: 12px;
}
#sidebar .btn-upgrade:hover{
    background:#b81536;;
}
#sidebar .ads .wrapper p {
    font-size: 12px;
    color: var(--dark-grey);
    text-align: center;
}
nav{
    background: var(--light);
    height: 44px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    grid-gap: 28px;
}
nav .toggle-sidebar{
    font-size: 18px;
    cursor: pointer;
}
nav form {
    max-width: 400px;
    width: 100%;
    margin-right: auto;
}
nav .form-group{
    position: relative;
}
nav .form-group input{
    width: 100%;
    background: var(--grey);
    border: none;
    border-radius: 5px;
    outline: none;
    padding: 10px 36px 10px 16px;
    transition: all 0.3s ease;
}
nav .form-group input:focus{
    box-shadow: 0 0 0 2px var(--blue);
}

nav .form-group .icon{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 16px;
    color: var(--dark-grey);
}
nav .nav-link{
    position: relative;
}
nav .nav-link .icon{
    font-size: 18px;
    color: var(--dark-grey);
}

nav .nav-link .badge{
    position: absolute;
    top: -3px;
    right: 0px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid var(--light);
    background: var(--red);
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--light);
    font-size: 10px;
    font-weight: 700;
}
nav .divider{
    width: 1px;
    background: var(--dark-grey);
    height: 12px;
    display:block;
}
nav .profile{
    position: relative;
}
nav .profile img{
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
}
nav .profile .profile-link{
    position: absolute;
    top:calc(100% + 10px);
    right: 0;
    background: var(--light);
    padding: 10px 0;
    box-shadow: 4px 4px 16px rgba(0,0,0,0.1);
    border-radius: 10px;
    width: 160px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    z-index: 20;
}
nav .profile .profile-link.show{
    opacity: 1;
    pointer-events: visible;
    top: 100%;
}

nav .profile .profile-link a{
    padding: 10px 16px;
    display: flex;
    align-items: center;
    color: var(--dark);
    grid-gap: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}
nav .profile .profile-link a:hover{
    background: var(--grey);
}

#content{
    position: relative;
    width: calc(100% - 260px);
    left: 260px;
    transition: all 0.3s ease;
}
#sidebar.hide + #content{
    width: calc(100% - 60px);
    left: 60px;
}
