/* Simple and effective fix for copy/text selection issues */

/* 
 * Strategy: Keep third-party libraries intact, but ensure text content 
 * outside of their interactive elements remains selectable
 */

/* Allow text selection on all content areas */
body,
.m-container,
.block,
p,
div:not(.jstree-wholerow):not(.jstree-anchor),
span,
pre,
code {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

/* Ensure ACE editor content remains selectable for right-click/mobile */
.ace_content,
.ace_text-layer,
.ace_line {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

/* Keep UI controls non-selectable */
button,
.button,
select,
.select,
.navbar,
.toolbar,
.mid-toolbar {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

/* Allow text selection in text inputs */
input[type="text"],
input[type="search"],
input[type="password"],
textarea {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}