.user-menu {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
}

.user-menu-button {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 46px;
    height: 46px;
    padding: 0;

    background: #ffffff;
    color: #475569;

    border: none;
    border-radius: 12px;

    font-size: 1.25rem;
    cursor: pointer;

    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.user-menu-button:hover,
.user-menu-button:focus {
    background: #eff6ff;
    color: #2563eb;
    transform: translateY(-2px);
    outline: none;
}

.user-menu-dropdown {
    position: absolute;
    top: 56px;
    right: 0;

    display: none;
    flex-direction: column;

    width: 220px;
    padding: 8px;

    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;

    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15);
}

.user-menu-dropdown.open {
    display: flex;
}

.user-menu-item {
    display: flex;
    align-items: center;
    gap: 12px;

    width: 100%;
    min-height: 44px;
    padding: 10px 12px;

    background: transparent;
    color: #334155;

    border: none;
    border-radius: 8px;

    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    text-align: left;
    text-decoration: none;

    cursor: pointer;

    transition:
        background-color 0.2s ease,
        color 0.2s ease;
}

.user-menu-item i {
    width: 20px;
    text-align: center;
    color: #64748b;
}

.user-menu-item:hover,
.user-menu-item:focus {
    background: #eff6ff;
    color: #2563eb;
    outline: none;
}

.user-menu-item:hover i,
.user-menu-item:focus i {
    color: #2563eb;
}

.logout-menu-item {
    color: #dc2626;
}

.logout-menu-item i {
    color: #dc2626;
}

.logout-menu-item:hover,
.logout-menu-item:focus {
    background: #fef2f2;
    color: #b91c1c;
}

.logout-menu-item:hover i,
.logout-menu-item:focus i {
    color: #b91c1c;
}

@media (max-width: 768px) {
    .user-menu {
        /* top: 10px;
        right: 10px; */
    }

    .user-menu-button {
        width: 42px;
        height: 42px;
    }

    .user-menu-dropdown {
        top: 50px;
        width: 210px;
    }
}
