
/* ------------------------------------------------------------------------------------------------ elementy blokowe **/
.schowaj{
    display: none;
}

/* ----------------------------------------------------------------------------------------------------------- fonty **/
.font-11{
    font-size: 11px !important;
}.font-12{
    font-size: 12px !important;
}
.font-13{
    font-size: 13px !important;
}
.font-14{
    font-size: 14px !important;
}
.font-16{
    font-size: 16px !important;
}
.font-24{
    font-size: 24px !important;
}
.font-32{
    font-size: 32px !important;
}
.font-52{
    font-size: 52px !important;
}

.lh-1-5{
    line-height: 1.4em !important;
}
.stroke-text{
    text-decoration-line: line-through;
    text-decoration-thickness: 2px;
    text-decoration-color: rgba(0,0,0,.45);
    text-decoration-skip-ink: none;
}


/* ---------------------------------------------------------------------------------------------------------- tabele **/
.table th, .table td {
    vertical-align: middle !important;
}
/* ---------------------------------------------------------------------------------------------------------- obrazy **/
img.thumbnail {
    height: 80px;              /* stała wysokość */
    width: auto;               /* szerokość automatyczna */
    max-width: 100%;           /* nigdy nie wyjdzie poza kontener */
    border-radius: 10px;       /* zaokrąglenie rogów */
    border: 2px solid #ddd;    /* subtelna ramka */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1); /* delikatny cień */
    object-fit: cover;         /* lepsze dopasowanie gdy obraz jest większy */
    display: block;            /* usuwa ewentualne przerwy przy inline */
    margin: auto;
}
img.thumbnail-small {
    height: 60px !important;   /* stała wysokość */
}
    .dark-mode img.thumbnail{
        border-color: #7e95c4;
    }
.nk-file-icon{
    overflow: hidden !important;
    max-width: 100px;
}
.img-z-border{
    border:1px solid #29347a;
    border-radius: 3px;
}
.dm-invert-img{

}
    .dark-mode .dm-invert-img{
        filter: invert();
    }

/* -------------------------------------------------------------------------------------------------------- nagłówek **/
/* miganie tła */
.blink-bg {
    animation: blink-bg 1s linear infinite;
}

/* preferencje dostępności: wyłącz miganie przy reduce-motion */
@media (prefers-reduced-motion: reduce) {
    .blink-bg { animation: none; }
}

/* sam efekt: zmiana odcienia tła */
@keyframes blink-bg {
    0%, 100% { background-color: #dc3545; }
    50%      { background-color: #ff6b6b; }
}

/* ------------------------------------------------------------------------------------------------------ formularze **/
.pole-wymagane {
    color: red;
    font-weight: bold;
}

/* -------------------------------------------------------------------------------------------------- tworzenie menu **/
.menu-item {
    background: #f8f9fa;
    border: 1px solid #ccc;
    margin-bottom: 10px;
    padding: 5px;
}
.dark-mode .menu-item{
    background: #15202f !important;
    border: 1px solid #203247;
}
.item-header {
    padding: 6px;
    cursor: move;
    font-weight: bold;
}
.submenu {
    margin-left: 30px;
    margin-top: 5px;
    padding-left: 10px;
    border-left: 2px dotted #ccc;
    min-height: 20px;
}
    .submenu .submenu{
        display: none;
        margin-bottom: 0;
    }
    .nazwa-elementu{
        padding-right: 10px;
    }
        .submenu .nazwa-elementu{
            padding-right: 5px;
        }
/* element, który czeka na upuszczenie */
.sortable-placeholder {
    border: 2px dashed #29347a;
    height: 40px;
    background-color: #9cadfd;
    margin-bottom: 5px;
    border-radius: 5px;
}

/* --------------------------------------------------------------------------------------- tworzenie menu dodatkowego */
#available, #newMenu{
    border-radius: 10px !important;
    width:100%;
    min-height:300px;

}
#menuWrapper {
    position: relative;
}
#menuOverlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #bbb;
    font-size: 16px;
    text-align: center;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 0;
}
#newMenu {
    min-height: 200px;
    border: 2px dashed #8094ae;
    padding: 10px;
    position: relative;
    z-index: 1; /* lista powyżej */
}
.item {
    padding:8px 10px;
    margin:4px;
    cursor:move;
    border-radius: 4px !important;
}
/* ------------------------------------------------------------------------------------------ upload plików na serwer */
.nk-upload-form {
    border: 2px dashed #7e95c4;
    border-radius: 8px;
    background: #ffffff;
    padding: 30px 20px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-top: 20px;
}
    .dark-mode .nk-upload-form{
        background: #15202f;
    }

.nk-upload-form:hover {
    transform: scale(1.01);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: #8094ae;
}
.nk-upload-form:active {
    transform: scale(0.98); /* lekko zmniejsza, daje wrażenie wciśnięcia */
    box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.15); /* cień do wewnątrz */
    border-color: #5c6fa0;  /* ciemniejszy kolor obramowania przy kliknięciu */
}
.dz-message{
    border:0;
    padding: 10px;
    background: transparent;
    margin: 0 !important;
    display: block !important;
}
#dropzone .dz-preview,
#dropzone .dz-progress,
#dropzone .dz-success-mark,
#dropzone .dz-error-mark,
#dropzone .dz-details {
    display: none !important;
}
.upload-zone{
    background: #f5f5f5;
    min-height: 70px;
    border-radius: 10px;
}
.progress-bar-uploadu .progress-bar{
    transition: width .2s ease-in-out;
}
/* Okno z listą wgranych plików */
.okno-uploadu-plikow {
    max-height: 600px;       /* limit wysokości */
    overflow-y: auto;        /* przewijanie w pionie, gdy potrzeba */
    overflow-x: hidden;      /* brak poziomego scrolla */
    overscroll-behavior: contain; /* nie „przebija” scrolla do body */
    -webkit-overflow-scrolling: touch; /* płynne przewijanie na iOS */
}

/* Styl scrollbara: Chrome/Edge/Safari */
.okno-uploadu-plikow::-webkit-scrollbar {
    width: 10px;
}
.okno-uploadu-plikow::-webkit-scrollbar-track {
    background: transparent;
}
.okno-uploadu-plikow::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,.22);
    border-radius: 8px;
    border: 2px solid transparent;
    background-clip: padding-box;
}
.okno-uploadu-plikow::-webkit-scrollbar-thumb:hover {
    background-color: rgba(0,0,0,.34);
}

/* Styl scrollbara: Firefox */
.okno-uploadu-plikow {
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,.34) transparent;
}
/* ------------------------------------------------------------------------------------ wyświetlanie plików na liście */
.plik-meta{
    text-align: left;
    font-weight: normal;
}
    .plik-meta li{
        margin: 3px 0 4px;
        font-size: 85%;
    }
        .plik-meta li em{
            margin-right: 6px;
        }

/* --------------------------------------------------------------- okno wstawiania elementów do treści, wstaw element */
/* Kontener listy z maks. wysokością i przewijaniem */
.modal-body .lista-elementow-w-oknie {
    max-height: 60vh;           /* 60% wysokości ekranu */
    overflow-y: auto;           /* pionowy scroll */
    overflow-x: hidden;
    padding-right: 6px;         /* minimalny odstęp od scrolla */
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch; /* płynne na iOS */
}

/* (opcjonalnie) dopasuj body, żeby nie tworzył własnego scrolla */
.modal-body {
    overflow: visible;
}

/* ===== Wyraźny pasek przewijania (Chromium/Edge/Safari) ===== */
.modal-body .lista-elementow-w-oknie::-webkit-scrollbar {
    width: 14px;                /* GRUBY scroll */
}
.modal-body .lista-elementow-w-oknie::-webkit-scrollbar-track {
    background: #f2f4f7;        /* jasne tło toru */
    border-left: 1px solid #e5e7eb;
}
.modal-body .lista-elementow-w-oknie::-webkit-scrollbar-thumb {
    background: #b7c0cd;        /* kciuk */
    border-radius: 10px;
    border: 3px solid #f2f4f7;  /* „rowek” dookoła kciuka */
}
.modal-body .lista-elementow-w-oknie::-webkit-scrollbar-thumb:hover {
    background: #98a3b3;
}

/* ===== Firefox ===== */
@supports (scrollbar-color: auto) {
    .modal-body .lista-elementow-w-oknie {
        scrollbar-width: auto;              /* grubszy niż thin */
        scrollbar-color: #98a3b3 #f2f4f7;   /* kciuk | tło toru */
    }
}

/* (opcjonalnie) tryb ciemny */
@media (prefers-color-scheme: dark) {
    .modal-body .lista-elementow-w-oknie::-webkit-scrollbar-track {
        background: #111827;
        border-left-color: #1f2937;
    }
    .modal-body .lista-elementow-w-oknie::-webkit-scrollbar-thumb {
        background: #4b5563;
        border-color: #111827;
    }
    @supports (scrollbar-color: auto) {
        .modal-body .lista-elementow-w-oknie {
            scrollbar-color: #4b5563 #111827;
        }
    }
}
/* podświetlenie pasujących wyników */
.filter-hit {
    border: 2px solid #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37,99,235,.15) !important;
    border-radius: 10px; /* ładniej na kartach */
}
.form-clear-right {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    line-height: 1;
    padding: 0.25rem 0.4rem;
}
/* ---- plik na karcie / do wyboru ---- */
.lista-kart {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 12px;                 /* odstęp między kafelkami */
    align-items: start;
}

/* Pojedynczy kafelek */
.karta-wyboru-elementu {
    box-sizing: border-box;
    width: 33.33%;
    min-width: 290px;          /* żądana szerokość „kafla” */
    padding: 10px;             /* wewnętrzny odstęp */
        /* szara ramka 1px */
    border: 1px solid #dbdfea;    /* szara ramka 1px */
    border-radius: 8px;        /* opcjonalnie: zaokrąglenie rogów */
    background: #fff;

    /* wyśrodkowanie zawartości */
    display: flex;
    flex-direction: column;    /* elementy jeden pod drugim */
    align-items: center;       /* wyśrodkowanie w poziomie (dla bloków, img itd.) */
    text-align: center;        /* wyśrodkowanie tekstu i elementów inline */
    gap: 8px;                  /* odstęp między elementami (opcjonalnie) */
}
    .dark-mode .karta-wyboru-elementu{
        border: 1px solid #203247;
        background: #15202f;
    }
@media (max-width: 991.98px) { /* Bootstrap: do < lg */
    .karta-wyboru-elementu {
        width: 100%;
        max-width: 100%;
    }
}
/* Drobny efekt na hover (opcjonalnie) */
.karta-wyboru-elementu:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.btn-wstawiono {
    position: relative;
    transition: transform .15s ease, background-color .2s ease, color .2s ease;
    animation: pulse-insert .5s ease;
}

@keyframes pulse-insert {
    0%   { transform: scale(1); }
    50%  { transform: scale(.96); }
    100% { transform: scale(1); }
}

/* opcjonalnie subtelny blask */
.btn-wstawiono::after {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: .5rem;
    box-shadow: 0 0 0 0 rgba(25, 135, 84, .45);
    animation: glow-insert .6s ease;
    pointer-events: none;
}

@keyframes glow-insert {
    0%   { box-shadow: 0 0 0 .5rem rgba(25,135,84,.0); }
    50%  { box-shadow: 0 0 0 .5rem rgba(25,135,84,.25); }
    100% { box-shadow: 0 0 0 .5rem rgba(25,135,84,.0); }
}

/* Na bardzo wąskich ekranach – jedna kolumna */
@media (max-width: 480px) {
    .lista-kart {
        grid-template-columns: 1fr;
    }
}
/* ---- zmiana overlay dla okno modalne / lightbox ---*/
.mfp-wrap,
.mfp-bg,
.lightbox,
.lightbox-overlay {
    z-index: 1060 !important; /* lub większy niż modal Bootstrapa (1050) */
}
/* ---------------------------------------------------------------------------------------------------- galerie zdjęć */
.galeria-maks-wysokosc-zdjecia-galerii{
    max-height: 320px;
    overflow: hidden;
    width: min(100%, 600px);
}
.galeria-maks-wysokosc-zdjecia {
    height: 120px;               /* docelowa wysokość */
    aspect-ratio: 16 / 9;        /* szerokość ~ 675px przy 380px wysokości */
    width: min(100%, 200px);     /* nie szersze niż 720px i nie więcej niż 100% rodzica */
    overflow: hidden;
    margin: 0;                   /* możesz dać auto, by centrować: margin: 0 auto; */
    display: block;
}

.galeria-maks-wysokosc-zdjecia img {
    width: 100%;
    height: 100%;
    object-fit: cover;           /* kadrowanie bez rozciągania */
    object-position: center;
    display: block;
}
.galeria-miniaturka{
    height: 80px;
    border-radius: 10px;
    border:1px solid #a1b0c3;
    padding: 1px;
}
/* stooltip z nazwą pliku w galeriach */
.js-filename {
    white-space: nowrap;
    vertical-align: middle;
}

/* dymek z pełną nazwą, absolutnie pozycjonowany nad dokumentem */
.filename-tooltip {
    position: absolute;
    z-index: 99999;
    display: none;
    max-width: min(80vw, 640px);
    padding: 6px 10px;
    border-radius: 6px;
    background: rgba(17,17,17,.95);
    color: #fff;
    box-shadow: 0 6px 24px rgba(0,0,0,.18);
    font-size: 12px;
    line-height: 1.35;
    pointer-events: none;        /* nie łap kursora, żeby hover nie migał */
    white-space: normal;
    word-break: break-all;       /* bardzo długie ciągi bez spacji też się złamią */
}
.filename-tooltip::after {
    content: "";
    position: absolute;
    top: -6px;
    left: 12px;
    border: 6px solid transparent;
    border-bottom-color: rgba(17,17,17,.95);
}
/* sortable */
.drag-cell { white-space: nowrap; }
.sort-handle { cursor: grab; padding: 4px 6px; }
.sort-handle:active { cursor: grabbing; }
#galeria-tbody .ui-sortable-placeholder {
    outline: 2px dashed rgba(14,165,233,.8);
    visibility: visible !important;
}
#galeria-tbody .ui-sortable-helper {
    background: #fff;
    box-shadow: 0 6px 24px rgba(0,0,0,.12);
}
/* uchwyt */
.sort-handle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,.12);
    cursor: grab;
    user-select: none;
    -webkit-user-drag: none;
    touch-action: none;
    margin-right: 6px;
}
.sort-handle:active { cursor: grabbing; }

/* placeholder MUSI być table-row w <tbody> */
#galeria-tbody .ui-sortable-placeholder {
    display: table-row !important;
    outline: 2px dashed rgba(14,165,233,.9);
    visibility: visible !important;
}
#galeria-tbody .ui-sortable-helper {
    display: table; /* stabilne szerokości */
    background: #fff;
    box-shadow: 0 6px 24px rgba(0,0,0,.12);
}
/* ---------------------------------------------------------------------------------------------------------- foldery */
.tutaj-pliki-folderu{
    display: block;
    width: 100%;
    margin: 20px 0;
    border:2px dashed #ddd;
    border-radius: 14px;
    padding: 20px;
    text-align: center;
    background: #f5f5f5;
}
.dark-mode .tutaj-pliki-folderu{
    background: #29384c;
    border-color: #9cadfd;
    color: #9cadfd;
}
#basicLeft {
    /* jeśli masz h-100, nadpisz wysokość */
    height: auto !important;

    max-height: 600px;     /* limit wysokości */
    overflow-y: auto;      /* pionowy pasek przewijania, gdy potrzeba */
    overflow-x: hidden;    /* bez przewijania w poziomie */
    -webkit-overflow-scrolling: touch; /* płynne przewijanie na iOS */
}
/* Kolor możesz zmienić na swój brand: #1d4ed8 = niebieski (Bootstrap ~primary) */
:root {
    --match-hl-color: #1d4ed8;
}

.match-highlight {
    position: relative;
    outline: 3px solid var(--match-hl-color);   /* nie zmienia rozmiaru boxa */
    outline-offset: 2px;
    border-radius: .75rem;

    /* lekki tint tła i poświata */
    background-image: linear-gradient(0deg, rgba(29, 78, 216, .08), rgba(29, 78, 216, .08));
    box-shadow:
            0 0 0 4px rgba(29, 78, 216, .12),
            0 10px 24px rgba(29, 78, 216, .20);

    transition: box-shadow .2s ease, outline-color .2s ease, background-color .2s ease;
}

/* Subtelna wewnętrzna krawędź (estetyka + kontrast) */
.match-highlight::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.25);
}

/* Jednorazowy „blink” po podświetleniu (wyłączany dla ograniczeń ruchu) */
@media (prefers-reduced-motion: no-preference) {
    .match-highlight {
        animation: matchPulse .6s ease-out 1;
    }
    @keyframes matchPulse {
        0%   { box-shadow: 0 0 0 0 rgba(29, 78, 216, .25); }
        100% { box-shadow:
                0 0 0 4px rgba(29, 78, 216, .12),
                0 10px 24px rgba(29, 78, 216, .20); }
    }
}
/* ---------------------------------------------------------------------------------------- notatka - głównie podgląd */
/* Kontener podglądu */
.podglad-notatki{
    --preview-font: system-ui,-apple-system,"Segoe UI",Roboto,Ubuntu,"Noto Sans",Arial,sans-serif;
    --preview-color: #212529;
    --preview-link: #6576ff;
    font: 400 16px/1.6 var(--preview-font);
    background: #fff;
    border-radius: .5rem;
    padding: 1rem 1.25rem;
    overflow: auto;
}

/* reset – NIE dotyczy .btn-w-oknie */
.podglad-notatki :where(p, ul, ol, li, a:not(.btn-w-oknie), em, strong, b, i, u, blockquote, h1, h2, h3, h4, h5, h6, hr, img){
    all: revert;
}

/* odstępy itd. (bez zmian) */
.podglad-notatki :where(p, ul, ol, blockquote){ margin: 0 0 1rem; }
.podglad-notatki :where(h1,h2,h3,h4,h5,h6){ margin: 0 0 .75rem; line-height: 1.25; font-weight: 600; }
.podglad-notatki :where(ul){ padding-left: 1.25rem; list-style: disc; }
.podglad-notatki :where(ol){ padding-left: 1.25rem; list-style: decimal; }
.podglad-notatki :where(li){ margin: .25rem 0; }

/* linki – NIE dotyczy .btn-w-oknie */
.podglad-notatki :where(a:not(.btn-w-oknie)){ color: var(--preview-link); text-decoration: underline; }
.podglad-notatki :where(img){ max-width: 100%; height: auto; border: 0; }
.podglad-notatki :where(hr){ border: 0; border-top: 1px solid #dee2e6; margin: 1rem 0; }

/* box-sizing (może zostać globalnie) */
.podglad-notatki *{ box-sizing: border-box; }

/* Fallback dla przeglądarek bez all: revert */
@supports not (all: revert){
    .podglad-notatki p,
    .podglad-notatki ul,
    .podglad-notatki ol,
    .podglad-notatki li,
    .podglad-notatki em,
    .podglad-notatki strong,
    .podglad-notatki b,
    .podglad-notatki i,
    .podglad-notatki u,
    .podglad-notatki blockquote,
    .podglad-notatki h1,
    .podglad-notatki h2,
    .podglad-notatki h3,
    .podglad-notatki h4,
    .podglad-notatki h5,
    .podglad-notatki h6,
    .podglad-notatki hr,
    .podglad-notatki img{
        all: initial;
        font: inherit;
        color: inherit;
    }
    .podglad-notatki p{ display:block; margin:0 0 1rem; }
    .podglad-notatki ul{ display:block; margin:0 0 1rem; padding-left:1.25rem; list-style:disc; }
    .podglad-notatki ol{ display:block; margin:0 0 1rem; padding-left:1.25rem; list-style:decimal; }
    .podglad-notatki li{ display:list-item; margin:.25rem 0; }
    /* linki – NIE dotyczy .btn-w-oknie */
    .podglad-notatki a:not(.btn-w-oknie){ color: var(--preview-link); text-decoration: underline; }
    .podglad-notatki img{ max-width:100%; height:auto; border:0; }
    .podglad-notatki hr{ border:0; border-top:1px solid #dee2e6; margin:1rem 0; }
}

/* Twoje dodatkowe reguły dla linków – WYKLUCZ przyciski */
.podglad-notatki .card-title{ font-weight: bold; font-size: 120%; }
.podglad-notatki a:not(.btn-w-oknie){ font-weight: bolder; text-decoration: none; }
.podglad-notatki a:not(.btn-w-oknie):hover{ border-bottom: 1px solid var(--preview-link); }

.podglad-notatki .wstep{
    font-weight: bold;
}

/* ---- okno jest wyśrodkowane --- */
.podglad-okna{
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}
.przyciski-okna{
    display: flex;
    justify-content: center; /* wyśrodkuj w poziomie */
    align-items: center;     /* wyrównaj w pionie */
    flex-wrap: wrap;         /* pozwól zawijać do kolejnych linii */
    gap: .5rem;              /* odstęp między przyciskami */
    width: auto;
    margin: 0 auto;
    text-align: center;      /* fallback dla starych przeglądarek */
}

/* Upewnij się, że <a class="btn"> nie rozciąga się na całą szerokość */
.przyciski-okna .btn{
    display: inline-block;   /* Bootstrap i tak tak robi, ale na wszelki wypadek */
    margin: 0;               /* polegamy na gap zamiast marginesów */
}
/*--- miniaturka obrazu w newsach, banerach itp --- */
.podglad-miniaturki{
    margin: 10px;
    width:100%;
    max-width: 220px;
    border:1px solid #dbdfea;
    background: #fff;
    padding: 4px;
    border-radius: 10px;
}
    .podglad-miniaturki img{
        max-width: 100%;
        border-radius: 10px;
    }
    .dark-mode .podglad-miniaturki{
        border: 1px solid #9cadfd;
        background: #15202f;
    }

/* ----------------------------------------------------------------------------------------------------------- banery */
/* Uchwyt przeciągania */
.drag-handle{
    cursor: grab;
    user-select: none;
    font: 700 18px/1 monospace;
    opacity: .7;
    display: inline-block;
    margin-right: .25rem;
}
.drag-handle:active{ cursor: grabbing; }

/* Wygląd klonowanego wiersza (helper) */
tr.drag-helper{
    background: #fff;
    box-shadow: 0 10px 28px rgba(0,0,0,.15);
}
tr.drag-helper td{
    background: inherit;
}

/* Placeholder – wyraźna, wysoka „przerwa” */
tr.row-placeholder td{
    padding: 0 !important;
    height: 48px; /* bazowa wysokość – i tak nadpisujemy dynamicznie */
    background: repeating-linear-gradient(
            -45deg,
            rgba(101,118,255,.10) 0,
            rgba(101,118,255,.10) 6px,
            rgba(101,118,255,.18) 6px,
            rgba(101,118,255,.18) 12px
    );
    border-top: 2px dashed #6576ff !important;
    border-bottom: 2px dashed #6576ff !important;
}

/* Podczas przeciągania: lekko „wyłącz” tabelę dla przypadkowych klików */
.table.tabela-kolejnosci-banerow.dragging{
    cursor: grabbing;
}
.table.tabela-kolejnosci-banerow.dragging td,
.table.tabela-kolejnosci-banerow.dragging th{
    pointer-events: none;
}

/* Płynniejsze przejścia wizualne przy rearrange (opcjonalne) */
.tabela-kolejnosci-banerow tbody tr{
    transition: transform .12s ease, background-color .12s ease;
}
tr.drag-helper{
    background:#fff;
    box-shadow:0 10px 28px rgba(0,0,0,.15);
}
    .dark-mode tr.drag-helper{
        background: #8092a8;
    }
tr.drag-helper td{ background:inherit; }

/* placeholder – wyraźna przerwa */
tr.row-placeholder td{
    padding:0 !important;
    height:56px; /* i tak nadpisujemy w JS */
    background:repeating-linear-gradient(
            -45deg,
            rgba(101,118,255,.10) 0,
            rgba(101,118,255,.10) 6px,
            rgba(101,118,255,.18) 6px,
            rgba(101,118,255,.18) 12px
    );
    border-top:2px dashed #6576ff !important;
    border-bottom:2px dashed #6576ff !important;
}

/* spacer na końcu – duża pusta strefa dropu */
tr.sort-spacer td{
    height:72px;
    background:transparent;
    border:0;
}

.table-responsive.dragging,
.card.dragging,
.nk-content.dragging { overflow: visible !important; }

/* ---- BLOG ----------------------------------------------------------------------------------------------------------*/
.blog-art h1,
.blog-art h2,
.blog-art h3,
.blog-art h4{
    margin: 10px 0 8px;
}
.blog-art .blog-wstep{
    font-weight: bolder;
    font-size: 105%;
    margin-top: 20px;
    margin-bottom: 15px;
    margin-left: -10px;
    margin-right: -10px;
    border-top:1px solid #dbdfea;
    border-bottom:1px solid #dbdfea;
    padding: 10px;
    background: #f5f6fa;
    border-radius: 5px;
}
    .dark-mode .blog-art .blog-wstep{
        background: #15202f;
        border-color: #8094ae !important;
    }
.blog-art blockquote{
    margin: 22px 0;
    display: block;
    background: #f5f6fa;
    border-left: 5px solid #8094ae;
    padding: 20px;
    border-radius: 5px;
    font-size: 105%;
}
    .blog-art blockquote footer,.blog-art blockquote cite{
        font-weight: bolder;
        font-style: oblique;
    }
    .dark-mode .blog-art blockquote{
        background: #15202f;
    }
.blog-art ul {
    margin: 1rem 0 2rem;
    padding-inline-start: 1.25rem; /* odstęp na znacznik */
    overflow: hidden;
}

/* Odstępy i czytelność elementów */
.blog-art ul li {
    margin: .35rem 0;
    line-height: 1.6;
}

/* Check jako znacznik listy – nowoczesny sposób */
.blog-art ul li::marker {
    content: "✔︎  ";
    font-size: 0.95em;
    font-weight: 700;
    color: #16a34a; /* zielony; zmień wg motywu */
}

/* Wyrównanie tekstu i elementów złożonych (np. ikonki inline) */
.blog-art ul li > * {
    vertical-align: middle;
}

.blog-fontbar{
    display:flex; align-items:center; justify-content:center; gap:.75rem;
    padding:.5rem .75rem;
    margin-top:2rem;
    margin-bottom:2rem;
    border:1px solid #e5e7eb; border-radius:9999px; background:#fff;
}
.blog-fontbar .blog-font-label{ opacity:.8; }
.blog-fontbar input[type="range"]{ width:280px; }
/* ---- AKTUALNOŚCI --------------------------------------------------------------------------------------------------*/

/* gradient dla miniatur */
.img-vignette-round {
    position: relative;
    overflow: hidden;
}
.img-vignette-round img {
    display: block;
    width: 100%;
    height: auto;
}
.img-vignette-round::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    /* środek transparent → narożniki ciemne */
    background: radial-gradient(circle at center,
    rgba(150,150,150,0) 75%,
    rgba(150,150,150,0.35) 90%,
    rgba(150,150,150,0.55) 100%
    );
}
.dark-mode .img-vignette-round::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    /* środek transparent → narożniki ciemne */
    background: radial-gradient(circle at center,
    rgba(16,25,36,0) 75%,
    rgba(16,25,36,0.35) 90%,
    rgba(16,25,36,0.55) 100%
    );
}

/* upload nowych zdjęć i plików */
.nowe-zdjecia { display:flex; flex-direction:column; gap:8px; }
.nowy-plik { display:flex; align-items:center; gap:12px; padding:10px 12px; border:1px solid #e5e7eb; border-radius:8px; background:#f5f6fa; }
.dark-mode .nowy-plik{
    background: #15202f;
    border-color: #203247;
}
.nowy-plik .ikona { width:36px; height:36px; display:flex; align-items:center; justify-content:center; border-radius:6px; background:#f3f4f6; font-size:18px; }
.nowy-plik .meta { min-width:0; flex:1; text-align: start }
.nowy-plik .nazwa { font-weight:600; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; text-align: start }
.nowy-plik .opis { color:#6b7280; font-size:12px; text-align: start }

/* Kontener podglądu */
.podglad-tresci{
    --preview-font: system-ui,-apple-system,"Segoe UI",Roboto,Ubuntu,"Noto Sans",Arial,sans-serif;
    --preview-color: #212529;
    --preview-link: #6576ff;
    font: 400 16px/1.6 var(--preview-font);
    background: #fff;
    border-radius: .5rem;
    padding: 1rem 1.25rem;
    overflow: auto;
}

/* reset – NIE dotyczy .btn-w-oknie */
.podglad-tresci :where(p, ul, ol, li, a:not(.btn-w-oknie), em, strong, b, i, u, blockquote, h1, h2, h3, h4, h5, h6, hr, img){
    all: revert;
}

/* odstępy itd. (bez zmian) */
.podglad-tresci :where(p, ul, ol, blockquote){ margin: 0 0 1rem; }
.podglad-tresci :where(h1,h2,h3,h4,h5,h6){ margin: 0 0 .75rem; line-height: 1.25; font-weight: 600; }
.podglad-tresci :where(ul){ padding-left: 1.25rem; list-style: disc; }
.podglad-tresci :where(ol){ padding-left: 1.25rem; list-style: decimal; }
.podglad-tresci :where(li){ margin: .25rem 0; }

/* linki – NIE dotyczy .btn-w-oknie */
.podglad-tresci :where(a:not(.btn-w-oknie)){ color: var(--preview-link); text-decoration: underline; }
.podglad-tresci :where(img){ max-width: 100%; height: auto; border: 0; }
.podglad-tresci :where(hr){ border: 0; border-top: 1px solid #dee2e6; margin: 1rem 0; }

/* box-sizing (może zostać globalnie) */
.podglad-tresci *{ box-sizing: border-box; }

/* Fallback dla przeglądarek bez all: revert */
@supports not (all: revert){
    .podglad-tresci p,
    .podglad-tresci ul,
    .podglad-tresci ol,
    .podglad-tresci li,
    .podglad-tresci em,
    .podglad-tresci strong,
    .podglad-tresci b,
    .podglad-tresci i,
    .podglad-tresci u,
    .podglad-tresci blockquote,
    .podglad-tresci h1,
    .podglad-tresci h2,
    .podglad-tresci h3,
    .podglad-tresci h4,
    .podglad-tresci h5,
    .podglad-tresci h6,
    .podglad-tresci hr,
    .podglad-tresci img{
        all: initial;
        font: inherit;
        color: inherit;
    }
    .podglad-tresci p{ display:block; margin:0 0 1rem; }
    .podglad-tresci ul{ display:block; margin:0 0 1rem; padding-left:1.25rem; list-style:disc; }
    .podglad-tresci ol{ display:block; margin:0 0 1rem; padding-left:1.25rem; list-style:decimal; }
    .podglad-tresci li{ display:list-item; margin:.25rem 0; }
    /* linki – NIE dotyczy .btn-w-oknie */
    .podglad-tresci a:not(.btn-w-oknie){ color: var(--preview-link); text-decoration: underline; }
    .podglad-tresci img{ max-width:100%; height:auto; border:0; }
    .podglad-tresci hr{ border:0; border-top:1px solid #dee2e6; margin:1rem 0; }
}

/* Twoje dodatkowe reguły dla linków – WYKLUCZ przyciski */
.podglad-tresci .card-title{ font-weight: bold; font-size: 120%; }
.podglad-tresci a:not(.btn-w-oknie){ font-weight: bolder; text-decoration: none; }
.podglad-tresci a:not(.btn-w-oknie):hover{ border-bottom: 1px solid var(--preview-link); }

.podglad-tresci {
    padding: 40px;
}

.podglad-tresci h1,
.podglad-tresci h2,
.podglad-tresci h3{
    font-weight: bold !important;
}

.podglad-tresci h1{
    font-size: 200% !important;
}
.podglad-tresci h2{
    font-size: 160% !important;
}
.podglad-tresci h3{
    font-size: 140% !important;
}

.podglad-tresci .wstep{
    font-weight: bold;
    border-top: 1px solid #6e82a5;
    border-bottom: 1px solid #6e82a5;
    padding-top: 20px;
    padding-bottom: 20px;
    border-radius: 10px;
}
.podglad-tresci blockquote{
    margin: 1.25rem 0;
    padding: 1rem 1.25rem;
    background: #f5f5f5;           /* tło */
    border-left: 4px solid #bdbdbd;/* szara ramka z lewej */
    border-radius: 6px;
    line-height: 1.6;
    font-size: 1.05rem;
}
/* CENTROWANIE starym atrybutem align */
.podglad-tresci p[align="center"]   { text-align: center; }
.podglad-tresci p[align="right"]    { text-align: right; }
.podglad-tresci p[align="left"]     { text-align: left; }
.podglad-tresci p[align="justify"]  { text-align: justify; }

/* (opcjonalnie) ujednolicenie różnych form, które może zwrócić edytor */
.podglad-tresci p.text-center,
.podglad-tresci p[style*="text-align:center"] { text-align: center; }

.podglad-tresci table{
    margin-bottom: 30px !important;
}

.dark-mode .podglad-tresci{
    background: #101924;
    color: #b1c0dd;
}
    .dark-mode .podglad-tresci h1,
    .dark-mode .podglad-tresci h2,
    .dark-mode .podglad-tresci h3{
        color: #6574a9;
    }
    .dark-mode .podglad-tresci p{
        color: #b1c0dd;
    }
    .dark-mode .podglad-tresci p a,
    .dark-mode .podglad-tresci li a{
        color: #ff5fc5;
        border-color: #ff5fc5 !important;
    }
    .dark-mode .podglad-tresci blockquote{
        background: #15202f;
        border-color: #404f63;
    }
/* ---- STRONY ------------------------------------------------------------------------------------------------------ */
mark.js-hi{ background:#ffe08a !important; color:inherit !important; }

/* === LIGHT / DEFAULT === */

/* Kontener listy załączników */
#dodatkoweZalaczniki {
    display: block;
    margin-top: 0.5rem;
}

/* Pojedynczy wiersz załącznika */
.dodatkowy-zalacznik {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.3rem 0.75rem;
    margin: 0 0 0.8rem 0;
    width: 100%;

    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.dodatkowy-zalacznik:hover,
.dodatkowy-zalacznik:focus-within {
    border-color: #cbd5e1;
    box-shadow: 0 2px 6px rgba(0,0,0,.06);
}

/* Nazwa pliku */
.dodatkowy-zalacznik .nazwa-zalacznika {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Przycisk „×” */
.dodatkowy-zalacznik .zalacznik-close {
    flex: 0 0 auto;
    line-height: 1;
    padding: 0.25rem 0.5rem;
    border: 1px solid #ef4444;
    background: #fff;
    color: #ef4444;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.dodatkowy-zalacznik .zalacznik-close:hover,
.dodatkowy-zalacznik .zalacznik-close:focus {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #dc2626;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, .15);
    outline: none;
}

/* Placeholder pustej listy */
#dodatkoweZalaczniki .text-muted.small {
    display: block;
    padding: 0.75rem 0.5rem;
    color: #6b7280;
    font-size: 0.875rem;
    border: 1px dashed #e5e7eb;
    border-radius: 10px;
    background: #fafafa;
}

/* Kompakt na małych ekranach */
@media (max-width: 576px) {
    .dodatkowy-zalacznik {
        padding: 0.5rem 0.6rem;
        gap: 0.5rem;
    }
    .dodatkowy-zalacznik .nazwa-zalacznika {
        font-size: 0.9rem;
    }
    .dodatkowy-zalacznik .zalacznik-close {
        padding: 0.2rem 0.45rem;
        border-radius: 6px;
    }
}

/* === DARK MODE przez klasę na body === */
body.dark-mode .dodatkowy-zalacznik {
    background: #0f172a;          /* slate-900 / ciemne tło */
    border-color: #273449;        /* chłodna ramka */
    box-shadow: 0 1px 2px rgba(0,0,0,.25);
}

body.dark-mode .dodatkowy-zalacznik:hover,
body.dark-mode .dodatkowy-zalacznik:focus-within {
    border-color: #3a4a66;
    box-shadow: 0 2px 8px rgba(0,0,0,.35);
}

body.dark-mode .dodatkowy-zalacznik .nazwa-zalacznika {
    color: #e5e7eb;               /* jasny tekst */
}

body.dark-mode .dodatkowy-zalacznik .zalacznik-close {
    background: #0f172a;
    border-color: #f87171;
    color: #f87171;
}

body.dark-mode .dodatkowy-zalacznik .zalacznik-close:hover,
body.dark-mode .dodatkowy-zalacznik .zalacznik-close:focus {
    background: #1f2937;          /* ciemniejszy hover */
    color: #fecaca;
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(248, 113, 113, .2);
}

body.dark-mode #dodatkoweZalaczniki .text-muted.small {
    background: #0b1220;
    border-color: #273449;
    color: #94a3b8;
}

/* kursor i gładkie wrażenia */
#dodatkoweZalaczniki .dodatkowy-zalacznik {
    cursor: grab;
    user-select: none;
}
#dodatkoweZalaczniki .dodatkowy-zalacznik.dragging,
#dodatkoweZalaczniki .ui-sortable-helper {
    cursor: grabbing;
    opacity: .95;
    box-shadow: 0 6px 18px rgba(0,0,0,.10);
}

/* miejsce-wstawienia podczas przeciągania */
#dodatkoweZalaczniki .zalacznik-placeholder {
    border: 2px dashed #cbd5e1;
    background: #f8fafc;
    border-radius: 10px;
    margin: 0 0 .5rem 0;
}

/* dark-mode (jeśli używasz) */
body.dark-mode #dodatkoweZalaczniki .zalacznik-placeholder {
    border-color: #3a4a66;
    background: #0f172a;
}

.dodatkowy-zalacznik .border {
    border: 0 !important;
    box-shadow: none !important;
}
.dodatkowy-zalacznik .nk-file-icon img{
    height: 50px !important;
}
/* ---- sortowanie stron ---- *
/* Uchwyt: kursory na ikonie przenoszenia */
#tabela-sortowania-stron .ni-move {
    cursor: grab;
    user-select: none;
}
#tabela-sortowania-stron tr.dragging .ni-move,
#tabela-sortowania-stron .ui-sortable-helper .ni-move {
    cursor: grabbing;
}

/* Placeholder wiersza podczas przeciągania */
#tabela-sortowania-stron .row-placeholder td {
    background: #f1f5f9;          /* jasny szary */
    border-top: 2px dashed #cbd5e1;
    border-bottom: 2px dashed #cbd5e1;
}

/* Podczas przeciągania: delikatny cień, by było widać ruch */
#tabela-sortowania-stron .ui-sortable-helper {
    box-shadow: 0 6px 18px rgba(0,0,0,.10);
}

/* Dark mode (jeśli używasz body.dark-mode) */
body.dark-mode #tabela-sortowania-stron .row-placeholder td {
    background: #0f172a;
    border-top-color: #3a4a66;
    border-bottom-color: #3a4a66;
}
/* ---- SUMMER NOTCE SS edytor style -------------------------------------------------------------------------------- */
/* Ten sam zestaw styli dla edytora i dla frontu */
.note-editor .note-editable,
.article-content {
    font-family: Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: #111827;
}

/* Odstępy akapitów */
.note-editor .note-editable p,
.article-content p {
    margin: 0 0 1em;
}

/* Nagłówki */
.note-editor .note-editable h1,
.article-content h1 { font-size: 2rem; line-height: 1.2; margin: 1.2em 0 .5em; font-weight: 700; }
.note-editor .note-editable h2,
.article-content h2 { font-size: 1.6rem; line-height: 1.25; margin: 1.1em 0 .5em; font-weight: 700; }
.note-editor .note-editable h3,
.article-content h3 { font-size: 1.3rem; line-height: 1.3;  margin: 1em 0 .5em;   font-weight: 600; }
.note-editor .note-editable h4,
.article-content h4 { font-size: 1.1rem; margin: .9em 0 .5em; font-weight: 600; }

/* Listy */
.note-editor .note-editable ul,
.note-editor .note-editable ol,
.article-content ul,
.article-content ol {
    padding-left: 1.25em;
    margin: 0 0 1em;
    font-size: 105% !important;
}
.note-editor .note-editable li + li,
.article-content li + li {
    margin-top: .25em;
}

/* Linki */
.note-editor .note-editable a,
.article-content a {
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 2px;
    font-weight: bold !important;
}
.note-editor .note-editable a:hover,
.article-content a:hover { color: #1e40af; }

/* Cytaty */
.note-editor .note-editable blockquote,
.article-content blockquote {
    margin: 1em 0;
    padding: .75em 1em;
    border-left: 4px solid #e5e7eb;
    background: #f8fafc;
    color: #334155;
}

/* Kod */
.note-editor .note-editable pre,
.article-content pre {
    background: #0f172a;
    color: #e5e7eb;
    padding: .75em 1em;
    border-radius: 8px;
    overflow: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.95em;
}
.note-editor .note-editable code,
.article-content code {
    background: #f1f5f9;
    padding: .1em .3em;
    border-radius: 4px;
}

/* Obrazy */
.note-editor .note-editable img,
.article-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

/* Tabele */
.note-editor .note-editable table,
.article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1em 0;
    font-size: 0.95em;
}
.note-editor .note-editable th,
.note-editor .note-editable td,
.article-content th,
.article-content td {
    border: 1px solid #e5e7eb;
    padding: .5em .6em;
}
.note-editor .note-editable th,
.article-content th {
    background: #f8fafc;
    font-weight: 600;
}

/* Tryb dark sterowany klasą na body (jak u Ciebie) */
body.dark-mode .note-editor .note-editable,
body.dark-mode .article-content {
    color: #e5e7eb;
}
body.dark-mode .note-editor .note-editable a,
body.dark-mode .article-content a {
    color: #93c5fd;
}
body.dark-mode .note-editor .note-editable blockquote,
body.dark-mode .article-content blockquote {
    border-left-color: #334155;
    background: #0b1220;
    color: #cbd5e1;
}
body.dark-mode .note-editor .note-editable code,
body.dark-mode .article-content code {
    background: #111827;
}
body.dark-mode .note-editor .note-editable pre,
body.dark-mode .article-content pre {
    background: #0b1220;
    color: #e5e7eb;
}
body.dark-mode .note-editor .note-editable th,
body.dark-mode .article-content th {
    background: #0b1220;
}
body.dark-mode .note-editor .note-editable th,
body.dark-mode .note-editor .note-editable td,
body.dark-mode .article-content th,
body.dark-mode .article-content td {
    border-color: #273449;
}
/* ---- stopka BIP  ------------------------------------------------------------------------------------------------- */
/* 2 kafelki w wierszu, kolejne do następnych wierszy */
.kontener-z-ktorego-sie-wybiera {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    grid-template-rows:  auto;
    column-gap: 12px;
    row-gap: 5px;
    align-items: stretch;
    align-content: stretch;
}

/* Kafelki wypełniają komórki siatki */
.kontener-z-ktorego-sie-wybiera > div {
    width: 100% !important;
    min-width: 0;
    box-sizing: border-box;
}

/* Na wąskich ekranach – 1 na wiersz (opcjonalnie) */
@media (max-width: 576px) {
    .kontener-z-ktorego-sie-wybiera {
        grid-template-columns: 1fr;
    }
}

/* (opcjonalnie) na bardzo wąskich ekranach: 1 w rzędzie */
@media (max-width: 575.98px) {
    .kontener-z-ktorego-sie-wybiera {
        grid-template-columns: 1fr;
    }
}
.info-przeciagnij-tutaj{
    border:2px dashed #ccc;
    padding: 14px;
    border-radius: 8px;
}
.dark-mode .info-przeciagnij-tutaj{
    border-color: #33475e;
}

.kontener-do-ktorego-sie-wstawia div{
    margin-top: 10px;
}
/* --------------------------------------------------------------------------------------------------- ustawienia BIP */
.dz-message {
    font-size: 0.95rem;
    color:#555;
    border:2px dashed #ccc;
    border-radius: 14px;
    padding: 50px 0;
}
    .dark-mode .dz-message{
        color: #eee;
        border-color: #eee;
    }
    .dz-message:hover{
        -webkit-box-shadow: 1px -3px 24px -15px rgba(66, 68, 90, 1);
        -moz-box-shadow: 1px -3px 24px -15px rgba(66, 68, 90, 1);
        box-shadow: 1px -3px 24px -15px rgba(66, 68, 90, 1);
    }
.btn { cursor:pointer; }
.gap-2 { gap: .5rem; }

/* Kadr zawsze na szerokość modala, z proporcją 1000:220 */
#cropFrame {
    width: 100%;
    max-width: 100%;          /* nigdy nie wyjdzie poza body modala */
    aspect-ratio: 1000 / 220; /* automatycznie liczy wysokość */
    border: 2px dashed #999;
    overflow: hidden;
    position: relative;
    background: #f8f9fa;
}

/* Podgląd zapisanego nagłówka też responsywny, ale z ratio */
#finalPreview {
    width: 100%;
    max-width: 1000px;        /* nie rośnie powyżej natywnego */
    aspect-ratio: 1000 / 220;
    height: auto;             /* z aspect-ratio to zbędne, ale nie szkodzi */
    object-fit: cover;
}

.ramka-prezentacji-zdjecia-crop-w-naglowku{
    display: block;
    width: 100%;
    border-radius: 10px;
    border:2px dashed #fff;
    padding: 6px;
    margin-top: 10px;
    background: #ededed;
}
    .dark-mode .ramka-prezentacji-zdjecia-crop-w-naglowku{
        border-color: #7e93ac;
        background: #2d3e55;
    }
    .ramka-prezentacji-zdjecia-crop-w-naglowku p{
        margin: 10px auto;
        font-style: italic;
    }
    #finalPreviewWrap img{
        max-width: 100% !important;
        border-radius: 6px !important;
    }
/* Podczas przeciągania */
#posortuj-moduly .karta-modulu { cursor: move; }
/* Miejsce docelowe podczas przeciągania */
.karta-placeholder {
    border: 2px dashed #9aa0a6;
    background: #f8f9fa;
    height: 54px;        /* dostosuj do wysokości karty */
    margin-bottom: .25rem;
    border-radius: .75rem;
}
/* Podgląd przenoszonej karty */
.ui-sortable-helper {
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
/* ----------------------------------------------------------------------------------------------------- sklep online */
/* SORTABLE: placeholder (miejsce, gdzie wpadnie element) */
.kategorie-sortable .kategorie-placeholder{
    display: block;
    min-height: 52px;              /* dopasuj do wysokości Twojego wiersza */
    height: 52px;
    border: 2px dashed #c9ced6;
    border-radius: 8px;
    background: rgba(0,0,0,0.03);
    margin: 6px 0;
}

/* jQuery UI czasem wstawia placeholder jako <div> bez treści, więc wymuszamy "pusty blok" */
.kategorie-sortable .kategorie-placeholder::before{
    content: "Upuść tutaj";
    display: block;
    padding: 14px 16px;
    font-size: 12px;
    opacity: 0.65;
}

/* Podczas przeciągania: element jest półprzezroczysty */
.kategorie-sortable .kategoria-row.ui-sortable-helper{
    opacity: 0.95;
}

/* Wiersz w trakcie przeciągania ma cień – łatwiej go śledzić */
.kategorie-sortable .kategoria-row.ui-sortable-helper{
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-radius: 10px;
    background: #fff;
}

/* Żeby placeholder zawsze miał rozmiar (ważne przy "tabelkowym" layoucie) */
.kategorie-sortable{
    position: relative;
}

/* ---------------------------------------------------------------------------------------------- formularz logowania */

/* Fullscreen canvas background */
#poly {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
    display: block;
}

/* Demo: Twoja karta/login na wierzchu */
.content-formularz-logowania {
    position: relative;
    z-index: 1;
    height: 100vh;
    display: grid;
    place-items: center;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
.card-formularz-logowania {
    width: min(520px, calc(100vw - 32px));
    background: rgba(255,255,255,0.92);
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.25);
    padding: 24px;
    backdrop-filter: blur(8px);
}
.card-formularz-logowania h1 { margin: 0 0 8px; font-size: 22px; }
.card-formularz-logowania p { margin: 0; color: #555; }


/* ----------------------------------------------------------------------------------- podgląd oraz dołączanie plików */
/* ------------------------------------------------------------------------------------------------------------------ */

/* ----------------------------------------------------------------------------------------------------- dołącz obraz */
.dolacz-obraz{
    display: inline-block;
    margin: 0 auto;
    text-align: center;
    background: #f5f5f5;
    padding: 10px;
    border-radius: 8px;
}
    .dark-mode .dolacz-obraz{
        background: #151c25;
        color:#fff;
    }
    .dolacz-obraz img{
        margin: 0 auto;
        max-width: 100%;
        border-radius: 10px;
    }
.dolacz-obraz-oplywania{
    float:left;
    width: 50%;
    max-width: 360px;
    margin: 4px 14px 14px 0;
}
    .dolacz-opis{
        font-style: italic;
        font-size: 90%;
        text-align: left;
        margin: 0;
    }

/* ------------------------------------------------------------------------------------------------------ dołącz plik */
.dolacz-plik-blok{
    display: block;
    background: #f7f8fb;
    border: 1px solid #e6eaf2;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
}
    .dark-mode .dolacz-plik-blok{
        background: #374355;
        border-color: #18202e;
    }
.dolacz-ikone-do-pliku{
    float:left;
    display: block;
    width: 32px;
    margin: 4px 6px 8px 0;
}

.dolacz-ikone-do-pliku img{
    display: block;
    width: 32px;
    height: 42px;
    object-fit: contain;
    clear: bottom;
}

/* Prawa góra: nazwa pliku */
.dolacz-nazwe-pliku{
    margin:0;
    padding: 0;
    display: block;
}

.dolacz-plik-blok a{
    color: #3542a2;
    text-decoration: none !important;
}
    .dark-mode .dolacz-plik-blok a{
        color:#7a86fe;
    }

.dolacz-nazwe-pliku a:hover{
    text-decoration: underline;
}

.dolacz-plik-meta{
    margin:0;
    padding: 0;
    display: block;
    font-size: 90%;
}


/* --------------------------------------------------------------------------------------------- dołącz galerię zdjęć */
.dolacz-galeria-zdjec{

}
.dolacz-galeria-opis{

}
.dolacz-zdjecia-do-galerii {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;

    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.dolacz-galeria-item {
    width: 100px;
    height: 100px;
}
.dolacz-galeria-link {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 10px;

    background: #fff;
    border: 3px solid #2b3375;

    box-shadow: 0 2px 6px rgba(0,0,0,0.05);

    transition: transform 0.25s ease,
    box-shadow 0.25s ease,
    border-color 0.25s ease;
}
.dolacz-galeria-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.25s ease;
}
.dolacz-galeria-link:hover {
    transform: scale(1.05);
    border-color: #6576ff;
    box-shadow: 0 6px 16px rgba(101,118,255,0.25);
    z-index: 2;
}
/* ------------------------------------------------------------------------------------------------ dołącz film video */
.dolacz-video{
    display: block;
    width:100%;
    margin: 10px auto;
}
/* ----------------------------------------------------------------------------------------------- dołącz mapę google */
.dolacz-mape{
    position:relative;padding-bottom:56.25%;height:0;overflow:hidden;
}
/* --------------------------------------------------------------------------------------------- dołącz folder plików */
.dolacz-folder{
    display: block;
    background: #ddd;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
}
    .dark-mode .dolacz-folder{
        background: #151c25;
        border-color: #151c25;
    }