﻿
.header-account-content {
    padding: 1rem 3rem;
    height: 86px;
    box-shadow: rgba(17, 17, 26, 0.1) 0px 0px 16px;
    display: flex;
    align-items: center;
    gap: 1rem;
    background-color: #fff;
}

.header-account-content--mobile {
    display: none;
}

.header-account-content .arrow {
    height: 20px;
    width: 20px;
}

.header--toggle-button {
    box-shadow: unset !important;
    background: unset !important;
    margin: 0;
    transition: all 0.4s ease;
}

    .header--toggle-button.close {
        transform: rotate(180deg);
        transition: all 0.4s ease;
    }

.header-account-content--user {
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 100%;
    flex-grow: 1;
    position: relative;
}

    .header-account-content--user:hover {
        border-radius: 1rem;
    }

.header--user-avatar {
    height: 100%;
    width: auto;
    aspect-ratio: 1/1;
}

.header--user-information {
    display: flex;
    flex-direction: column;
    cursor: pointer;
    z-index: 99;
}

.header--user-welcome {
    display: flex;
    font-size: .9rem;
    gap: .5rem;
}

.header--user-text {
    display: flex;
}

    .header--user-text .sub-menu {
        position: absolute;
        width: 260px;
        padding: 0;
        box-shadow: rgba(0, 0, 0, 0.15) 0px 15px 25px, rgba(0, 0, 0, 0.05) 0px 5px 10px;
        background: #fff;
        top: 62px;
        left: 0;
        z-index: 999;
        border-radius: 1rem;
        display: none;
    }

    .header--user-text.show .sub-menu {
        display: inline-block;
    }

    .header--user-text.show .header--user_fullname .arrow {
        transform: rotate(180deg);
        transition: all 0.2s ease;
    }

    .header--user-text .sub-menu li:not(.dismiss) {
        list-style: none;
        line-height: 30px;
        padding: .5rem 1rem;
    }

    .header--user-text .sub-menu li.dismiss {
        display: flex;
        border-bottom: 1px solid #cccccc5e;
        padding: 1rem;
        gap: .5rem;
    }

    .header--user-text .sub-menu li:not(.dismiss):hover {
        background-color: aliceblue;
    }

    .header--user-text .sub-menu li:not(.dismiss) a {
        color: #000;
        display: flex;
        align-items: center;
        gap: .5rem;
    }

.header--user_fullname {
    font-size: 1.2rem;
    display: flex;
    flex-direction: row;
    gap: 1rem;
}

.header-account-content--finance {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    border-radius: 1rem;
    align-items: center;
    padding: 1rem 0;
}

.header--user-balance {
    display: flex;
    align-items: center;
    font-size: 1.2rem;
    gap: .5rem;
    border-radius: 2rem;
    background: aliceblue;
    padding: 1rem 1rem 1rem 1.5rem;
    cursor: pointer;
}

    .header--user-balance span {
        font-size: 1rem;
    }

.header-account-content--finance {
    height: 100%;
    position: relative;
}

    .header-account-content--finance .sub-menu {
        position: absolute;
        width: auto;
        padding: 0.5rem 0;
        box-shadow: rgba(0, 0, 0, 0.15) 0px 15px 25px, rgba(0, 0, 0, 0.05) 0px 5px 10px;
        background: #fff;
        top: 62px;
        left: 0rem;
        z-index: 999;
        border-radius: 1rem;
        display: none;
    }

    .header-account-content--finance.show .sub-menu {
        display: inline-block;
    }

    .header-account-content--finance.show .arrow {
        transform: rotate(180deg);
        transition: all 0.2s ease;
    }

    .header-account-content--finance.show li {
        list-style: none;
        line-height: 30px;
        padding: .5rem 1rem;
        display: flex;
        justify-content: space-between;
        gap: 4rem;
    }

.header--user-notification {
    cursor: pointer;
}

/* Notification CSS */

.header-account-content--notification {
    position: relative;
    height: 100%;
    display: flex;
    align-items: center;
}

.icon-button {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    outline: none;
    cursor: pointer;
    background-color: #fff;
    height: 22px;
}

.icon-button__badge {
    position: absolute;
    top: -9px;
    right: -4px;
    width: 20px;
    height: 20px;
    background: #DB2828;
    color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 1rem;
    font-size: 12px;
}

.header-account-content--notification .header--user-notification .tab-container {
    display: none;
    z-index: 1000;
    background: white;
    width: 520px !important;
    box-shadow: rgba(0, 0, 0, 0.15) 0px 15px 25px, rgba(0, 0, 0, 0.05) 0px 5px 10px;
    overflow: hidden auto;
    border-radius: 8px;
    position: absolute;
    top: 62px;
    right: 0;
    margin: 1rem 0;
    border-radius: 1rem;
    padding: .5rem 0 ;
}

.header-account-content--notification .tab-panel::-webkit-scrollbar {
    width: 4px;
}

.header-account-content--notification .tab-title {
    font-weight: 600;
}

.header-account-content--notification .tab-content {
    border-radius: 4px;
    margin-top: 10px;
    height: 100%;
}

.header-account-content--notification .tab-panel-noti {
    /*display: none;*/
    overflow: hidden auto;
    max-height: 550px;
    padding: .5rem 1rem .5rem .5rem;
}

    .header-account-content--notification .tab-panel-noti.active {
        display: block;
    }

.header-account-content--notification .tab-button.active {
    color: #000;
    border-bottom: 2px solid #4CAF50;
    font-weight: 600;
}

.header-account-content--notification .tab-button {
    background: none;
    border: none;
    padding: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    color: #555;
    border-bottom: 2px solid transparent;
    display: flex;
    gap: 4px;
}

.header-account-content--notification .saved-post {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: .5rem;
    border: 1px solid #ddd;
    border-radius: 1rem;
    background-color: var(--background-main);
    gap: .5rem;
}

.header-account-content--notification .post-thumbnail-noti {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    margin-right: 12px;
    object-fit: cover;
}

.header-account-content--notification .post-details {
    flex: 1;
}

.header-account-content--notification .text-truncate-1 {
    display: -webkit-box !important;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: normal !important;
}

.header-account-content--notification .post-title {
    font-size: 13px;
    font-weight: 600;
    /*margin: 0 0 4px;*/
    color: #333;
    /* white-space: nowrap; */
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-account-content--notification .post-info {
    font-size: 12px;
    color: #888;
    margin: 0 0 4px;
}

.header-account-content--notification .opacity-noti {
    opacity: 0.6;
}

.header-account-content--notification .view-all {
    display: block;
    text-align: center;
    color: var(--text-primary);
}

/* Notification CSS */
#more-dropdown .button {
    flex-grow: 1;
    padding: 0.78571429em 0.5em 0.78571429em;
}
.btn-noti{
    align-items:center;
}
.opacity-noti {
    opacity: 0.6;
}
.empty-state {
    text-align: center;
}
@media screen and (max-width: 992px) {
    .header-account-container {
        position: fixed;
        z-index: 999;
    }

    .header-account-content {
        display: none;
    }

    .header-account-content--mobile {
        box-shadow: rgba(17, 17, 26, 0.1) 0px 0px 16px;
        position: relative;
        display: flex;
        flex-direction: row;
        padding: 1rem;
        gap: .5rem;
        align-items: center;
        height: 54px;
        width: 100vw;
        background: #fff;
    }

    .header-mobile--nav {
        display: flex;
        flex-direction: row;
        gap: .5rem;
        align-items: center;
        color: var(--primary-color);
    }

    .header-mobile--nav-toggle, .header-mobile--post-saved {
        width: 22px;
        height: 22px;
    }

        .header-mobile--nav-toggle .button {
            background: none;
            color: #00436b;
            margin-bottom: 10px;
            padding-right: 0;
            padding-left: 0;
            margin: 0;
        }

    .header-mobile--logo {
        position: absolute;
        left: 58%;
        transform: translate(-50%, 0);
    }
}
