/* Fix Flutter Web text selection and DevTools interaction */

/* Allow text selection for all elements including flutter-view */
body,
body *,
flutter-view,
flutter-view *,
flt-semantics-host,
flt-semantics-host * {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
}

/* Fix Flutter glass pane blocking DevTools */
flt-glass-pane {
  pointer-events: none !important;
}

/* Allow pointer events for Flutter view and semantic nodes */
flutter-view,
flt-semantics,
flt-semantics *,
flt-semantics-host,
flt-semantics-host * {
  pointer-events: auto !important;
}

/* Keep buttons and interactive elements non-selectable but clickable */
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
.btn,
[role="button"] {
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
  pointer-events: auto !important;
}

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

/* Fix for Flutter canvas renderer */
canvas {
  pointer-events: auto !important;
}

/* Additional fix for shadow DOM if used */
flt-scene-host,
flt-scene-host * {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
  pointer-events: auto !important;
}