/* Zabezpieczenia CSS - Antykopiowanie i ochrona przed analizą */

/* Wyłączenie zaznaczania dla wszystkich elementów */
* {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    -webkit-touch-callout: none !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-appearance: none !important;
}

/* Wyjątki dla elementów formularzy */
input, textarea, select, [contenteditable="true"] {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

/* Wyjątki dla ikon Font Awesome */
.fas, .far, .fab, .fal, .fad, .fa, [class*="fa-"] {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    pointer-events: auto !important;
}

/* Wyjątki dla ikon Font Awesome - pseudo elementy */
.fas::before, .far::before, .fab::before, .fal::before, .fad::before, .fa::before, [class*="fa-"]::before {
    pointer-events: auto !important;
}

/* Blokowanie przeciągania obrazów */
img {
    -webkit-user-drag: none !important;
    -khtml-user-drag: none !important;
    -moz-user-drag: none !important;
    -o-user-drag: none !important;
    user-drag: none !important;
    /* pointer-events: none - usunięte, powodowało problemy z ikonami */
}

/* Ochrona przed kopiowaniem tekstów */
body, p, h1, h2, h3, h4, h5, h6, span, div, a {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

/* Ukrycia elementów podczas drukowania */
@media print {
    * {
        display: none !important;
    }
    
    body::before {
        content: "Drukowanie jest zabronione!" !important;
        position: fixed !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        font-size: 24px !important;
        color: red !important;
        z-index: 9999 !important;
    }
}

/* Ukrycie podczas próby zapisu jako PDF */
@page {
    margin: 0 !important;
    size: 0 !important;
}

/* Ochrona przed kopiowaniem przez CSS */
::selection {
    background: transparent !important;
}

::-moz-selection {
    background: transparent !important;
}

/* Ukrycie scrollbarów */
::-webkit-scrollbar {
    width: 0px !important;
    height: 0px !important;
    background: transparent !important;
}

::-webkit-scrollbar-track {
    background: transparent !important;
}

::-webkit-scrollbar-thumb {
    background: transparent !important;
}

/* Ochrona przed narzędziami deweloperskimi */
.devtools-detector {
    position: fixed !important;
    top: -1000px !important;
    left: -1000px !important;
    width: 1px !important;
    height: 1px !important;
    z-index: -1 !important;
}

/* Ukrycie wskaźników debugowania - wyjątki dla ikon */
*::before, *::after {
    /* Usunięte - powodowało problemy z ikonami Font Awesome */
}

/* Ochrona przed narzędziami do analizy */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: -1;
    pointer-events: none;
}

/* Maskowanie zawartości podczas próby kopiowania */
.no-copy {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

/* Ochrona przed analizą struktury */
.protected-content {
    position: relative;
    overflow: hidden;
}

.protected-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1;
    pointer-events: none;
}

/* Ochrona przed prawym przyciskiem myszy */
* {
    -webkit-touch-callout: none !important;
    -webkit-user-select: none !important;
    -khtml-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

/* Ukrycie podczas analizy */
@media screen and (max-device-width: 1px) {
    body {
        display: none !important;
    }
}

/* Ochrona przed botami */
@media screen and (max-width: 1px) {
    * {
        display: none !important;
    }
}

/* Dodatkowe zabezpieczenia dla obrazów */
img::before {
    /* Usunięte - powodowało problemy z wyświetlaniem */
}

/* Ochrona przed kopiowaniem przez keyboard */
body {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

/* Ukrycie podczas przeglądania kodu źródłowego */
@media screen and (min-width: 0px) {
    body.view-source {
        display: none !important;
    }
}

/* Ochrona przed narzędziami do ekstrakcji */
* {
    -webkit-font-smoothing: antialiased !important;
    -moz-osx-font-smoothing: grayscale !important;
    text-rendering: optimizeLegibility !important;
}

/* Maskowanie zawartości podczas inspekcji */
.inspect-blocker {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.9) !important;
    z-index: 999999 !important;
    display: none !important;
}

.inspect-blocker.active {
    display: block !important;
}

/* Ochrona przed automatyzacją */
@media screen and (device-width: 1px) {
    body {
        display: none !important;
    }
}

/* Dodatkowe zabezpieczenia dla formularzy */
form {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
}

form input, form textarea, form select {
    -webkit-user-select: text !important;
    -moz-user-select: text !important;
    -ms-user-select: text !important;
    user-select: text !important;
}

/* Ochrona przed screenshot */
.no-screenshot {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    pointer-events: none !important;
}

/* Ukrycie podczas próby zapisu strony */
@media screen and (max-resolution: 1dpi) {
    * {
        display: none !important;
    }
}

/* Ochrona przed kopiowaniem przez JavaScript */
.js-protected {
    -webkit-user-select: none !important;
    -moz-user-select: none !important;
    -ms-user-select: none !important;
    user-select: none !important;
    pointer-events: none !important;
}

/* Dodatkowe zabezpieczenia */
* {
    -webkit-tap-highlight-color: transparent !important;
    -webkit-focus-ring-color: transparent !important;
    outline: none !important;
}

/* Ochrona przed analizą kolorów */
* {
    color-adjust: exact !important;
    -webkit-print-color-adjust: exact !important;
}

/* Ukrycie podczas próby eksportu */
@media screen and (orientation: portrait) and (max-width: 1px) {
    body {
        display: none !important;
    }
}

/* Finalna ochrona */
.security-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: transparent !important;
    z-index: -1 !important;
    pointer-events: none !important;
} 