/**
 * Content Protection & Anti-Copy Stylesheet
 * Suncure Lifescience
 */

/* 1. Global Text Selection Disabling */
body {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
}

/* Allow text selection inside form controls */
input,
textarea,
select,
[contenteditable="true"] {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

/* 2. Image Dragging & Selection Prevention */
img,
figure,
picture {
    -webkit-user-drag: none !important;
    -khtml-user-drag: none !important;
    -moz-user-drag: none !important;
    -o-user-drag: none !important;
    user-drag: none !important;
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    user-select: none !important;
}

/* 3. Screen Obfuscation — instant heavy blur on window focus loss */
body.screen-blur-active > *:not(.screen-shield-overlay) {
    filter: blur(22px) grayscale(90%) brightness(0.6) !important;
    pointer-events: none !important;
    transition: filter 0.12s ease-out !important;
}

/* 4. Screen Shield Overlay */
.screen-shield-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10, 15, 30, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 2147483647;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 20px;
    user-select: none;
}

body.screen-blur-active .screen-shield-overlay {
    display: flex;
}

.screen-shield-box {
    background: rgba(255, 255, 255, 0.97);
    padding: 40px 50px;
    border-radius: 20px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    max-width: 440px;
    color: #172c45;
}

.screen-shield-box i {
    font-size: 42px;
    color: #e67817;
    margin-bottom: 16px;
    display: block;
}

.screen-shield-box h4 {
    font-size: 21px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #172c45;
}

.screen-shield-box p {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

/* 5. Print Protection — blank page on Ctrl+P / Save as PDF */
@media print {
    html, body {
        display: none !important;
        visibility: hidden !important;
        height: 0 !important;
        overflow: hidden !important;
    }
}
