/**
 * Website Content Protection Stylesheet
 * Protects website content from casual text selection and image dragging
 * while fully preserving forms, interactive controls, and accessibility.
 */

/* 1. Global Non-Selection on Protected Content */
body,
.content-protected,
[data-protected="true"] {
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
  -webkit-touch-callout: none !important; /* iOS Safari touch callout */
}

/* 2. Prevent Casual Image & Media Dragging */
img,
video,
svg {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
}

/* 3. Explicit Exclusions: Input fields, textareas, code, and excluded sections MUST allow normal selection */
input,
textarea,
select,
option,
optgroup,
[contenteditable="true"],
.allow-select,
.no-protect,
[data-protected="false"],
.ref-code,
#confirmRefCode,
.code-box,
pre,
code {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
  -webkit-touch-callout: default !important;
}

/* 4. Interactive controls keep normal pointer cursor and accessibility */
a,
button,
input[type="button"],
input[type="submit"],
input[type="reset"],
input[type="checkbox"],
input[type="radio"],
input[type="file"],
[role="button"] {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  cursor: pointer;
}
