/* Overlay - Menu */
#overlay {
    width: 100vw;
    height: 100vh;
    position: fixed;
    z-index: 4;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0, 0.3);
    visibility: hidden;
    opacity: 0;  
    pointer-events: auto;
    transition: all ease-in 0.3s;
}

#overlay.menu--show {
    visibility: visible;
    opacity: 1;  
}

#menu {
    z-index: 5;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 75vw;
    background-color: #fff;
    border-right: 1px solid #ccc;
    transform: translateX(-100%);
    transition: all linear 0.3s;
}

#menu.menu--show {
    transform: translateX(0);
}

.menu__header {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border-bottom: 1px solid #ccc;
}

.menu__close-btn {
    color: #000;
    font-size: 30px;
    margin-left: 16px;
}

.menu__body {
    padding: 10px 20px;
}

.menu__nav-list {
    padding-left: 0;
    margin-top: 10px;
}

.menu__nav-item {
    margin: 10px 0;
    padding: 12px;
    border-radius: 7px;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.menu__nav-item.menu__nav-item--seperate {
    color: #ed4337;
}

.menu__nav-item.menu__nav-item--active  {
    background-color: var(--secondary-color);
}

.menu__nav-link {
    width: 100%;
    border-radius: 7px;
    display: flex;
    align-items: center;
}

.menu_nav-icon {
    width: 32px;
    font-size: 20px ;
}

.menu__search {
    position: relative;
    flex: 1;
}

.menu__search-input {
    width: 100%;
    padding: 10px 20px;
    border-radius: 10px;
    border: 1px solid #ccc;
    margin-right: 20px;
    transition: all ease-in 0.2s;
}

.menu__search-icon {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
}

.menu__nav-auth {
    display: flex;
    align-items: center;
}

.menu__user {
    display: flex;
    align-items: center;
}

.menu__user-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 50%;
}

.menu__user-name {
    color: #333;
    margin-left: 14px;
    font-weight: 600;
    margin-bottom: 0;
}

/* Search menu  */

.menu__result-search {
    position: absolute;
    width: 100%;
    max-height: 400px;
    overflow-y: scroll;
    left: 0;
    top: calc(100% + 10px);
    background-color: #fff;
    margin-bottom: 0;
    border-radius: 7px;
    padding-left: 0;
    padding: 10px;
    box-shadow: 0 0 12px -6px #666;
    display: none;
}

.menu__result-search.show {
    display: block;
}

.menu__result-search.hide {
    display: none;
}

.menu__result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 5px;
}

.menu__result-title {
    margin-bottom: 0;
    font-size: 17px;
    color: #6c757d;
}

.menu__resule-close-btn {
    line-height: 0;
    font-size: 24px;
}

/* low screen */
@media (min-width: 992px) {
    #menu,
    #overlay {
        display: none;
    }
}