/* =========================================================
   xdirecttchat
   Header / Menu
   ========================================================= */

.main-header {

    position: sticky;

    top: 0;

    z-index: 1000;

    width: 100%;

    background:
        rgba(255, 255, 255, 0.96);

    border-bottom:
        1px solid #e4e7ec;

    backdrop-filter:
        blur(12px);
}


.header-inner {

    width: 100%;

    max-width:
        1200px;

    min-height: 70px;

    margin: 0 auto;

    padding:
        0 20px;

    display: flex;

    align-items: center;

    gap: 30px;
}


/* =========================================================
   Logo
   ========================================================= */

.site-logo {

    display: inline-flex;

    align-items: center;

    gap: 9px;

    flex-shrink: 0;

    font-size: 21px;

    font-weight: 750;

    color:
        #172033;
}

.logo-mark {

    width: 34px;

    height: 34px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 10px;

    color: white;

    background:
        linear-gradient(
            135deg,
            #6d6de5,
            #4f46c9
        );

    font-size: 20px;

    font-weight: 800;

    box-shadow:
        0 4px 12px
        rgba(91, 91, 214, .20);		
}

.logo-text {
	font-family: 'New Rocker';
}

.logo-text span {

    color:
        #5b5bd6;
}


/* =========================================================
   Navigation
   ========================================================= */

.main-navigation {

    display: flex;

    align-items: center;

    gap: 5px;

    flex: 1;
}

.main-navigation a {

    position: relative;

    display: flex;

    align-items: center;

    gap: 7px;

    padding:
        9px 6px;

    color:
        #667085;

    font-size: 14px;

    font-weight: 600;

    border-radius:
        8px;
}

.main-navigation a:hover {

    color:
        #172033;

    background:
        #f5f6fa;
}

.main-navigation a.active {

    color:
        #4f46c9;

    background:
        #eeeeff;
}


/* =========================================================
   Notifications
   ========================================================= */

.menu-notification,
.mobile-notification {

    min-width: 20px;

    height: 20px;

    padding:
        0 5px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    border-radius: 20px;

    background:
        #dc2626;

    color: white;

    font-size: 11px;

    font-weight: 700;
}


/* =========================================================
   Actions
   ========================================================= */

.header-actions {

    display: flex;

    align-items: center;

    gap: 10px;
}

.header-icon-button {

    position: relative;

    width: 40px;

    height: 40px;

    display: flex;

    align-items: center;

    justify-content: center;

    border:
        1px solid #e4e7ec;

    border-radius:
        10px;

    background:
        #ffffff;
}

.header-icon-button:hover {

    background:
        #f8f9fc;

    border-color:
        #d7dbe2;
}

.header-icon {

    font-size: 17px;
}

.header-notification {

    position: absolute;

    top: -5px;

    right: -5px;

    min-width: 18px;

    height: 18px;

    padding: 0 4px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 20px;

    background:
        #dc2626;

    color: white;

    font-size: 10px;

    font-weight: 700;

    border:
        2px solid white;
}


/* =========================================================
   Profil
   ========================================================= */

.user-menu {

    display: flex;

    align-items: center;

    gap: 9px;

    padding:
        5px 9px 5px 5px;

    border:
        1px solid #e4e7ec;

    border-radius:
        11px;

    background:
        #ffffff;
}

.user-menu:hover {

    background:
        #f8f9fc;
}

.user-avatar {

    width: 32px;

    height: 32px;

    object-fit: cover;

    border-radius: 50%;

    background:
        #eef0f4;
}

.user-name {

    max-width: 130px;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

    font-size: 13px;

    font-weight: 600;
}

.user-arrow {

    color:
        #98a2b3;

    font-size: 12px;
}


/* =========================================================
   Connexion / inscription
   ========================================================= */

.header-login {

    padding:
        9px 13px;

    color:
        #667085;

    font-size: 14px;

    font-weight: 600;
}

.header-login:hover {

    color:
        #4f46c9;
}

.header-register {

    padding:
        9px 15px;

    color:
        white;

    background:
        #5b5bd6;

    border-radius:
        9px;

    font-size: 14px;

    font-weight: 650;

    box-shadow:
        0 3px 8px
        rgba(91, 91, 214, .18);
}

.header-register:hover {

    background:
        #4848b8;

    transform:
        translateY(-1px);
}


/* =========================================================
   Mobile
   ========================================================= */

.mobile-menu-button {

    display: none;

    width: 42px;

    height: 42px;

    margin-left: auto;

    padding: 9px;

    border:
        1px solid #e4e7ec;

    border-radius:
        10px;

    background:
        #ffffff;
}

.mobile-menu-button span {

    display: block;

    width: 100%;

    height: 2px;

    margin: 5px 0;

    background:
        #344054;

    border-radius: 2px;

    transition:
        transform .2s ease,
        opacity .2s ease;
}

.mobile-menu-button.open span:nth-child(1) {

    transform:
        translateY(7px)
        rotate(45deg);
}

.mobile-menu-button.open span:nth-child(2) {

    opacity: 0;
}

.mobile-menu-button.open span:nth-child(3) {

    transform:
        translateY(-7px)
        rotate(-45deg);
}


.mobile-navigation {

    display: none;

    border-top:
        1px solid #eef0f3;

    background:
        #ffffff;

    padding:
        10px 14px 16px;
}

.mobile-navigation.open {

    display: block;
}

.mobile-navigation a {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding:
        12px 10px;

    border-radius:
        8px;

    color:
        #475467;

    font-weight: 600;
}

.mobile-navigation a:hover {

    background:
        #f5f6fa;

    color:
        #4f46c9;
}


/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 850px) {

    .main-navigation {

        display: none;
    }

    .header-actions {

        display: none;
    }

    .mobile-menu-button {

        display: block;
    }

    .header-inner {

        min-height:
            62px;

        padding:
            0 14px;
    }

    .site-logo {

        font-size:
            19px;
    }

    .logo-mark {

        width: 32px;

        height: 32px;
    }
}