/* Text Selection Styling - Custom Green Accent Color */

/* Standard text selection */
::selection {
    background-color: rgba(170, 255, 0, 0.3) !important;
    color: #ffffff !important;
    text-shadow: 0 0 4px rgba(170, 255, 0, 0.5) !important;
}

/* WebKit browsers (Chrome, Safari, Edge) */
::-webkit-selection {
    background-color: rgba(170, 255, 0, 0.3) !important;
    color: #ffffff !important;
    text-shadow: 0 0 4px rgba(170, 255, 0, 0.5) !important;
}

/* Mozilla Firefox */
::-moz-selection {
    background-color: rgba(170, 255, 0, 0.3) !important;
    color: #ffffff !important;
    text-shadow: 0 0 4px rgba(170, 255, 0, 0.5) !important;
}

/* For input fields and textareas */
input::selection,
textarea::selection {
    background-color: rgba(170, 255, 0, 0.3) !important;
    color: #ffffff !important;
    text-shadow: 0 0 4px rgba(170, 255, 0, 0.5) !important;
}

input::-webkit-selection,
textarea::-webkit-selection {
    background-color: rgba(170, 255, 0, 0.3) !important;
    color: #ffffff !important;
    text-shadow: 0 0 4px rgba(170, 255, 0, 0.5) !important;
}

input::-moz-selection,
textarea::-moz-selection {
    background-color: rgba(170, 255, 0, 0.3) !important;
    color: #ffffff !important;
    text-shadow: 0 0 4px rgba(170, 255, 0, 0.5) !important;
}

/* For code blocks and pre elements */
code::selection,
pre::selection {
    background-color: rgba(170, 255, 0, 0.4) !important;
    color: #ffffff !important;
    text-shadow: 0 0 6px rgba(170, 255, 0, 0.6) !important;
}

code::-webkit-selection,
pre::-webkit-selection {
    background-color: rgba(170, 255, 0, 0.4) !important;
    color: #ffffff !important;
    text-shadow: 0 0 6px rgba(170, 255, 0, 0.6) !important;
}

code::-moz-selection,
pre::-moz-selection {
    background-color: rgba(170, 255, 0, 0.4) !important;
    color: #ffffff !important;
    text-shadow: 0 0 6px rgba(170, 255, 0, 0.6) !important;
}

/* For links when selected */
a::selection {
    background-color: rgba(170, 255, 0, 0.35) !important;
    color: #ffffff !important;
    text-shadow: 0 0 5px rgba(170, 255, 0, 0.6) !important;
}

a::-webkit-selection {
    background-color: rgba(170, 255, 0, 0.35) !important;
    color: #ffffff !important;
    text-shadow: 0 0 5px rgba(170, 255, 0, 0.6) !important;
}

a::-moz-selection {
    background-color: rgba(170, 255, 0, 0.35) !important;
    color: #ffffff !important;
    text-shadow: 0 0 5px rgba(170, 255, 0, 0.6) !important;
}

/* For headings */
h1::selection,
h2::selection,
h3::selection,
h4::selection,
h5::selection,
h6::selection {
    background-color: rgba(170, 255, 0, 0.35) !important;
    color: #ffffff !important;
    text-shadow: 0 0 6px rgba(170, 255, 0, 0.6) !important;
}

h1::-webkit-selection,
h2::-webkit-selection,
h3::-webkit-selection,
h4::-webkit-selection,
h5::-webkit-selection,
h6::-webkit-selection {
    background-color: rgba(170, 255, 0, 0.35) !important;
    color: #ffffff !important;
    text-shadow: 0 0 6px rgba(170, 255, 0, 0.6) !important;
}

h1::-moz-selection,
h2::-moz-selection,
h3::-moz-selection,
h4::-moz-selection,
h5::-moz-selection,
h6::-moz-selection {
    background-color: rgba(170, 255, 0, 0.35) !important;
    color: #ffffff !important;
    text-shadow: 0 0 6px rgba(170, 255, 0, 0.6) !important;
}

/* Disable selection for certain elements (optional) */
.no-select {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

/* Disable image selection */
img {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-user-drag: none !important;
    -khtml-user-drag: none !important;
    -moz-user-drag: none !important;
    -o-user-drag: none !important;
    pointer-events: auto !important;
}

/* Disable selection for SVG images */
svg {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    pointer-events: auto !important;
}

/* Disable selection for background images and decorative elements */
.elementor-widget-image img,
.elementor-image img,
.wp-image,
.attachment-full,
.size-full {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-user-drag: none !important;
    -khtml-user-drag: none !important;
    -moz-user-drag: none !important;
    -o-user-drag: none !important;
}

/* Custom selection for specific classes */
.highlight-selection::selection {
    background-color: rgba(170, 255, 0, 0.5) !important;
    color: #000000 !important;
    text-shadow: 0 0 8px rgba(170, 255, 0, 0.8) !important;
}

.highlight-selection::-webkit-selection {
    background-color: rgba(170, 255, 0, 0.5) !important;
    color: #000000 !important;
    text-shadow: 0 0 8px rgba(170, 255, 0, 0.8) !important;
}

.highlight-selection::-moz-selection {
    background-color: rgba(170, 255, 0, 0.5) !important;
    color: #000000 !important;
    text-shadow: 0 0 8px rgba(170, 255, 0, 0.8) !important;
}
