/*
=========================================================
MASTER BRIDGE — DASHBOARD PROFILE / LOGOUT MENU
=========================================================
Only styles the existing MB profile area and its dropdown.
No dashboard layout, CRM, or page-builder styles are changed.
=========================================================
*/

.profile-menu-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.profile-menu-wrap .profile {
    border: 0;
    cursor: pointer;
    font: inherit;
}

.profile-menu-wrap .profile:focus-visible {
    outline: 2px solid #2563EB;
    outline-offset: 2px;
}

.profile-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 230px;
    padding: 8px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.14);
    z-index: 9999;

    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition:
        opacity 0.16s ease,
        transform 0.16s ease,
        visibility 0.16s ease;
}

.profile-menu.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-menu-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 8px;
}

.profile-menu-avatar {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #EFF6FF;
    color: #2563EB;
    font-size: 11px;
    font-weight: 800;
}

.profile-menu-user-text {
    min-width: 0;
}

.profile-menu-name {
    color: #0F172A;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-menu-email {
    margin-top: 2px;
    color: #64748B;
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-menu-divider {
    height: 1px;
    margin: 4px 0;
    background: #E2E8F0;
}

.profile-menu-item {
    width: 100%;
    min-height: 38px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 9px 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #334155;
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.profile-menu-item:hover {
    background: #F8FAFC;
}

.profile-menu-item.logout {
    color: #B91C1C;
}

.profile-menu-item.logout:hover {
    background: #FEF2F2;
}

.profile-menu-item svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.profile-menu-item:disabled {
    opacity: 0.65;
    cursor: wait;
}
