﻿header {
    border-bottom: none;
    /*position: fixed;*/
    position: sticky;
    top: 0;
    z-index: 999;
    width: 100%;
}

.header-narbar {
    align-items: center;
    display: flex;
    justify-content: space-between;
    padding: 14px 24px;
    /*position: relative;*/
    background-color: rgb(244 244 244 / 80%);
}

.narbar-item {
    align-items: center;
    display: flex;
    flex: 1;
    gap: 24px;
    justify-content: flex-start;
}

    .narbar-item ul {
        align-items: center;
        display: flex;
        justify-content: flex-start;
        margin-bottom: 0px;
    }

        .narbar-item ul li {
            position: relative;
            padding: 8px 12px;
            display: inline;
            margin-right: 15px;
        }

            .narbar-item ul li a {
                color: #070606;
            }

                .narbar-item ul li a:hover {
                    color: #363f73;
                    text-decoration: none;
                }

            .narbar-item ul li span {
                font-size: 18px;
                font-weight: 600;
            }

    .narbar-item img {
        max-width: 75%;
    }

.narbar-item-right {
    justify-content: flex-end;
}

.user-menu {
    align-items: center;
    background-color: #cceae7;
    border: 1px solid rgba(55,89,123,.03);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    gap: 4px;
    height: 48px;
    justify-content: center;
    overflow: hidden;
    width: 48px;
    margin-right: 10px;
    font-size: 18px;
    cursor: pointer;
}

    .user-menu:hover {
        background-color: #b6c5c5;
    }

.login-btn {
    background: #5a6a8c;
    border: 1px solid #7e7f81;
    border-radius: 5px;
    box-shadow: 0 4px 32px -16px rgba(31,33,35,.24);
    left: auto !important;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    right: 16px !important;
    top: 64px !important;
    /*transition: all .5s ease-in-out;*/
    z-index: 23;
    padding: 7px 14px;
    color: #fff;
}

    .login-btn:hover {
        color: #fff;
        text-decoration: none;
    }

.logout-btn {
    background: #5a6a8c;
    border: 1px solid #7e7f81;
    border-radius: 5px;
    box-shadow: 0 4px 32px -16px rgba(31,33,35,.24);
    left: auto !important;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    right: 16px !important;
    top: 64px !important;
    z-index: 23;
    padding: 7px 14px;
    color: #fff;
}

    .logout-btn:hover {
        color: #fff;
        text-decoration: none;
    }

.box-menu {
    display: none;
}

.management-menu {
    -webkit-overflow-scrolling: touch;
    background: #fff;
    border: 1px solid #e1e3e5;
    border-radius: 16px;
    box-shadow: 0 4px 32px -16px rgba(31,33,35,.24);
    display: none;
    left: auto !important;
    max-height: calc(100vh - 96px);
    opacity: 0;
    overflow-y: auto;
    position: absolute;
    right: 16px !important;
    top: 64px !important;
    transition: all .5s ease-in-out;
    width: 250px;
    z-index: 23;
}

.management-list {
    padding: 8px;
}

    .management-list a {
        align-items: center;
        border-radius: 12px;
        display: flex;
        gap: 16px;
        justify-content: space-between;
        margin-bottom: 2px;
        padding: 12px;
        color: #1f2123;
    }

        .management-list a:hover {
            background: #f9fafb;
            text-decoration: none;
            color: #1f2123;
        }

.management-list-icon {
    background: #f1f3f5;
    border-radius: 20px;
    padding: 6px 10px;
    font-size: 16px;
    width: 4vh;
    text-align: center;
}

.management-list-item {
    align-items: flex-start;
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: flex-start;
    font-weight: 600;
}

@media(max-width: 768px) {
    .header-narbar ul {
        display: none;
    }

    .login-btn {
        display: none;
    }

    .logout-btn {
        display: none;
    }

    .box-menu {
        display: flex;
        font-size: 18px;
        transition: 0.4s;
    }

        .box-menu.active .bar:nth-child(1) {
            transform: rotate(-45deg) translate(-5px, 6px);
        }

    .menu-list {
        position: static;
        right: 0;
        width: 100%;
        height: 100vh;
        background-color: #f5f5f5;
        color: #fff;
        display: none;
        animation: slide-down 0.5s;
        padding: 15px 30px;
        z-index: 100;
    }

        .menu-list a {
            color: black;
            font-size: 18px;
            font-weight: 600;
            line-height: 60px;
        }

            .menu-list a:hover {
                color: #363f73;
                text-decoration: none;
            }

            .menu-list a i {
                background: #dcddde;
                border-radius: 10px;
                padding: 6px 10px;
                margin-right: 8px;
            }

    @keyframes slide-down {
        from {
            transform: translateY(-10px);
            opacity: 0;
        }

        to {
            transform: translateY(0);
            opacity: 1;
        }
    }

    .menu-show {
        opacity: 1;
    }

    menu-close {
        opacity: 0;
    }

    .setting-item {
        margin-right: 10px;
    }
}