/* ==========================================================================
   Protection Module - Disable text selection
   ========================================================================== */

/* Disable text selection globally */
body.no-select {
    -webkit-user-select: none;  /* Safari */
    -moz-user-select: none;     /* Firefox */
    -ms-user-select: none;      /* IE10+/Edge */
    user-select: none;          /* Standard */
}

/* Allow selection in input fields and textareas */
body.no-select input,
body.no-select textarea,
body.no-select [contenteditable="true"] {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Prevent text selection on double-click */
body.no-select * {
    -webkit-tap-highlight-color: transparent;
}

/* Disable drag events */
body.no-select img,
body.no-select a {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
}

/* Override any existing selection styles (except in inputs) */
body.no-select ::selection {
    background: transparent;
    color: inherit;
}

body.no-select ::-moz-selection {
    background: transparent;
    color: inherit;
}

/* Keep selection styling in input fields */
body.no-select input::selection,
body.no-select textarea::selection {
    background: rgba(75, 255, 204, 0.5);
    color: #ffffff;
    text-shadow: 0 0 10px rgba(75, 255, 204, 0.8);
}

body.no-select input::-moz-selection,
body.no-select textarea::-moz-selection {
    background: rgba(75, 255, 204, 0.5);
    color: #ffffff;
    text-shadow: 0 0 10px rgba(75, 255, 204, 0.8);
}

/* Cursor styling */
body.no-select {
    cursor: default;
}

/* Protection message notification */
#protection-message {
    font-family: 'JetBrains Mono', monospace;
    display: none;
}

/* Prevent image dragging */
body.no-select img {
    pointer-events: none;
}

/* Re-enable pointer events for interactive elements */
body.no-select a,
body.no-select button,
body.no-select input,
body.no-select textarea,
body.no-select select,
body.no-select [role="button"],
body.no-select .btn,
body.no-select .social-link,
body.no-select .nav-link {
    pointer-events: auto;
}

/* Additional security: prevent clipboard copy in some browsers */
body.no-select {
    -webkit-touch-callout: none; /* iOS Safari */
}
