.navbar{
    background:var(--surface);
    border-bottom:1px solid var(--border);
    position:sticky;
    top:0;
    z-index:100;
}

.nav-content{
    height:75px;
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.logo{
    font-size:22px;
    font-weight:700;
    color:var(--primary);
}

.nav-menu{
    display:flex;
    align-items:center;
    gap:28px;
}

.nav-link{
    position:relative;
    display:flex;
    align-items:center;
    height:75px;
    color:var(--text-light);
    font-weight:500;
    transition:var(--transition);
}

.nav-link:hover{
    color:var(--primary);
}

.nav-link.active{

    color:var(--primary);

    font-weight:600;
}

.nav-link.active::after{

    content:"";

    position:absolute;

    left:0;
    bottom:0;

    width:100%;
    height:3px;

    border-radius:999px;

    background:var(--primary);
}

.user-wrapper{
    position:relative;
    width:max-content;
}

.user-profile{
    display:flex;
    align-items:center;
    gap:12px;
    background:var(--surface);
    border:1px solid var(--border);
    padding:8px 14px 8px 8px;
    border-radius:999px;
    cursor:pointer;
    transition:var(--transition);
}

.user-profile:hover{

    border-color:#bfdbfe;

    transform:translateY(-2px);
}

.user-avatar{

    width:42px;
    height:42px;

    border-radius:50%;

    object-fit:cover;
}

.user-info{

    display:flex;
    flex-direction:column;
}

.user-name{

    font-size:14px;

    font-weight:600;
}

.user-role{

    font-size:12px;

    color:var(--text-light);
}

.user-dropdown{

    position:absolute;

    top:75px;
    right:0;

    width:280px;

    background:var(--surface);

    border:1px solid var(--border);

    border-radius:var(--radius-md);

    box-shadow:var(--shadow);

    overflow:hidden;

    opacity:0;

    visibility:hidden;

    transform:translateY(10px);

    transition:var(--transition);
}

.user-dropdown.show{

    opacity:1;

    visibility:visible;

    transform:
        translateY(0);
}

.dropdown-header{

    padding:24px;

    border-bottom:1px solid var(--border);

    text-align:center;
}

.dropdown-avatar{

    width:72px;
    height:72px;

    border-radius:50%;

    object-fit:cover;

    margin-bottom:14px;
}

.dropdown-name{

    font-size:18px;

    font-weight:700;

    margin-bottom:4px;
}

.dropdown-email{

    font-size:13px;

    color:var(--text-light);
}

.dropdown-menu{

    padding:10px;
}

.dropdown-item{

    display:flex;
    align-items:center;

    gap:12px;

    padding:14px;

    border-radius:var(--radius-sm);

    color:var(--text-light);

    font-size:14px;

    font-weight:500;

    transition:var(--transition);
}

.dropdown-item:hover{

    background:#f8fafc;

    color:var(--primary);

    transform:translateX(3px);
}

.dropdown-item.logout{

    color:#dc2626;
}

.dropdown-item.logout:hover{

    background:#fef2f2;

    color:#dc2626;
}

.user-avatar--initials{
    display:flex;
    align-items:center;
    justify-content:center;
    background:var(--primary);
    color:#fff;
    font-size:15px;
    font-weight:700;
    letter-spacing:.3px;
}

.dropdown-avatar--initials{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:var(--primary);
    color:#fff;
    font-size:24px;
    font-weight:700;
    letter-spacing:.3px;
}

@media(max-width:500px){

    body{
        padding:20px;
    }

    .user-dropdown{

        width:260px;

        right:0;
    }

}