.profile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.3);
    z-index: 1040;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.profile-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.profile-component {
    position: fixed;
    top: 70px;
    right: 20px;
    z-index: 1050;
    transform: translateX(calc(100% + 40px));
    transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
    backface-visibility: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}

.profile-component.open {
    transform: translateX(0);
}

.profile-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    width: 315px;
    max-width: 315px;
    padding: 12px;
    border-radius: 2px;
    background: #fff;
    box-shadow: 0 -6px 56px rgba(88, 65, 49, 0.16);
}

.profile-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    gap: 2px;
}

.profile-name {
    margin: 0;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 16px;
    color: #292929;
}

.profile-role {
    margin: 0;
    font-family: "Inter", sans-serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 15px;
    color: #717182;
}

.profile-divider {
    width: 100%;
    height: 1px;
    background: rgba(0, 0, 0, 0.10);
    align-self: stretch;
}

.profile-section {
    font-size: 0.85rem;
    color: #6c757d;
    margin: 0;
}

.profile-roles {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    align-self: stretch;
}

.profile-role-item {
    display: flex;
    width: 100%;
    min-height: 32px;
    padding: 6px 8px;
    align-items: center;
    gap: 12px;
    border-radius: 6px;
    cursor: pointer;
}

.profile-role-item.active {
    background: rgba(3, 96, 107, 0.08);
}

.profile-role-icon {
    display: flex;
    width: 16px;
    height: 16px;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.profile-role-icon i {
    font-size: 16px;
    color: #03606B;
}

.profile-role-text {
    display: flex;
    padding: 0 12px 0.5px 0;

    align-items: center;
    flex: 1 0 0;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 16px;
    color: #292929;
    white-space: normal;
    word-break: break-word;
}

.profile-role-check {
    display: flex;
    width: 16px;
    height: 16px;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.profile-role-check i {
    font-size: 16px;
    color: #FCBE00;
}

.profile-logout {
    display: flex;
    width: 100%;
    height: 32px;
    padding: 0 8px;
    align-items: center;
    gap: 12px;
    border-radius: 6px;
    cursor: pointer;
}

.profile-logout-icon {
    display: flex;
    width: 16px;
    height: 16px;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.profile-logout-icon i {
    font-size: 16px;
    color: #717182;
}

.profile-logout-text {
    display: flex;
    padding: 0 12px 0.5px 0;

    align-items: center;
    flex: 1 0 0;
    font-family: "Inter", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 16px;
    color: #292929;
}

.profile-logout:hover {
    background: #D4F3F6;
}

@media (max-width: 991px) {

    .profile-component {
        top: 56px;
        right: 5%;
    }

    .profile-box {
        width: 90vw;
    }
}
