html, body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--global-text-color);
}

:root {
    --button-background-color-transition: background-color 0.3s ease-in-out;
    --button-border-radius: 5px;
    --button-text-color: #fff;
    --global-text-color: #666;
    --primary-color: #4ba1e1;
    --primary-color-disabled: #a9daef;
    --primary-color-hover: #2b7ccd;
    --primary-color-light: #e9f6fb;
    --table-header-underline: var(--primary-color);
    --text-color-dark: #666;
    --text-color-light: #fff;
    --text-menu: #666;
    --widget-box-background: #fff;
    --widget-box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.20);
    --widget-box-shadow-hover: 0px 4px 10px rgb(0, 0, 0, 0.25);
    --widget-box-text: #666;
    --card: #111827;
    --muted: #4ba1e1;
}

h3 {
    font-size: 1.2rem;
    margin: 0 auto .5rem;
    font-weight: 200;
    letter-spacing: .05rem;
    color: var(--text-color-dark);
    text-transform: uppercase;
}

a, .btn-link {
    color: none;
    text-decoration: none;
}

.menu-header {
    color: #808080;
    font-size: .9rem;
}

.menu-link {
    color: var(--text-color-dark);
    font-size: .9rem;
}

.menu-link:hover {
    color: var(--primary-color-hover);
}


.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.1rem var(--primary-color);
}

.btn:active {
    box-shadow: none;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

/* PRZYCISKI */

.button-w100,
.button-widget,
.button-multi,
.button-widget-hw-szczegoly,
.button-widget-hw-dokumenty,
.button-szczegoly, .button-square-rl,
.button-square-rotate,
.button-square-usun,
.button-przelogowanie {
    color: var(--text-color-light);
    font-size: 1rem;
    background-color: var(--primary-color);
    border-radius: var(--button-border-radius);
    overflow: hidden;
    justify-content: center;
    border: none;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.20);
    transition: var(--button-background-color-transition);
}

    .button-w100:hover,
    .button-widget:hover,
    .button-multi:hover,
    .button-widget-hw-szczegoly:hover,
    .button-widget-hw-dokumenty:hover,
    .button-szczegoly:hover,
    .button-square-rl:hover,
    .button-square-rotate:hover,
    .button-przelogowanie:hover {
        background-color: var(--primary-color-hover);
    }

    .button-w100:focus {
        box-shadow: 0 0 0 .1rem white, 0 0 0 .25rem var(--primary-color-hover);
    }

    .button-widget:disabled {
        background-color: var(--primary-color-disabled);
    }

.button-square-rotate {
    font-size: 15px;
    width: 24px;
    height: 24px;
    padding: 0px;
}

.button-szczegoly {
    width: 28px;
    height: 28px;
    margin-right: auto;
    margin-left: auto;
    display: flex;
    align-items: center;
    position: relative;
}

.button-widget {
    padding: .45rem;
    margin: 0;
}

.button-ewindykacja {
    color: var(--text-color-light);
    font-size: .9rem;
    padding: .3rem 1.5rem;
    background-color: var(--primary-color);
    border-radius: var(--button-border-radius);
    overflow: hidden;
    justify-content: center;
    border: none;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.20);
    transition: var(--button-background-color-transition);
}

    .button-ewindykacja:hover {
        background-color: var(--primary-color-hover);
    }

    .button-ewindykacja:active {
        box-shadow: none;
    }

.nav-link {
    color: var(--global-text-color);
}

.nav-link:hover {
    color: var(--primary-color);
}

    .nav-link:focus,
    .nav-link:visited,
    .nav-link:active {
        color: var(--text-color-dark);
        background-color: var(--text-color-light);
    }

.buttonlink-menu {
    background: none;
    color: var(--text-menu);
    font-size: .9rem;
    border: none;
    padding: 0.2rem;
    margin: 0;
    transition: color 180ms ease-in-out;
}

    .buttonlink-menu:hover {
        color: var(--primary-color-hover);
    }

.button-close-modal {
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    opacity: 0.9;
    font-weight: bolder;
    filter: invert(1);
    padding: 7px;
    border-radius: 10px;
    border-width: 1px;
    border-style: solid;
    border-color: black;
}

    .button-close-modal:focus {
        outline: none;
        box-shadow: none;
    }

.image-nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(2px);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    z-index: 10;
}

    .image-nav-button:hover:not(:disabled) {
        background-color: var(--primary-color-hover);
    }

    .image-nav-button:disabled {
        cursor: not-allowed;
        opacity: 0.3;
    }

.image-nav-prev {
    left: 12px;
}

.image-nav-next {
    right: 12px;
}

.arrow-left,
.arrow-right {
    width: 0;
    height: 0;
    border-style: solid;
}

.arrow-left {
    border-width: 8px 12px 8px 0;
    border-color: transparent white transparent transparent;
    position: relative;
    left: -2px;
}

.arrow-right {
    border-width: 8px 0 8px 12px;
    border-color: transparent transparent transparent white;
    position: relative;
    left: 2px;
}

/*    IKONY BI    -------------------------------------------------------------------*/

.bi-search {
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="white" stroke="white" stroke-width="1" class="bi bi-search" viewBox="0 0 16 16"><path d="M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001q.044.06.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1 1 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0" stroke="white" stroke-width="1"/></svg>');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 16px 16px;
    width: 16px;
    height: 16px;
    display: inline-block;
}

/*     USTAWIENIA ZDJÊÆ   */

.jpg-display {
    position: relative;
    overflow: hidden;
    background: #fff;
    border-radius: 5px;
}

.image-tools-panel {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 9;
}


/*     SMARTPANEL    */

.homepage-container {
    min-height: calc(100vh - 8.1rem);
    background-color: var(--primary-color-light);
    padding: 20px;
    margin: 0;
    border-radius: 10px;
}

.homepage-box {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    width: 100%;
}

.widget-box {
    height: 175px;
    width: 100%;
    min-width: 0;
    padding: 15px;
    border-radius: 10px;
    background-color: var(--primary-color);
    box-shadow: var(--widget-box-shadow);
    transition: box-shadow 0.3s;
}

    .widget-box:hover {
        box-shadow: var(--widget-box-shadow-hover);
    }

    .widget-box p {
        font-size: .9rem;
        font-weight: 500;
        color: var(--text-color-light);
        border-bottom: 1px solid #d9d9d9;
        padding-bottom: 5px;
    }

    .widget-box h1 {
        font-size: 2.75rem;
        font-weight: 700;
        flex: 1 1 auto;
        color: var(--text-color-light);
        text-align: right;
    }

.widget-content-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    margin-top: 60px;
}

.widget-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: transparent;
    color: var(--text-color-light);
    flex: 0 0 40px;
}

.homepage-footer {
    height: 105px;
    flex: 1;
    margin-top: 25px;
    border-radius: 10px;
    background-color: var(--primary-color);
    box-shadow: var(--widget-box-shadow);
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: start;
}

    .homepage-footer p {
        font-size: .9rem;
        font-weight: 500;
        color: var(--text-color-light);
        border-bottom: 1px solid #d9d9d9;
        padding-bottom: 5px;
    }


/* SORTOWANIE I SZUKANIE */

.search-container {
    user-select: none;
    background-color: var(--primary-color-light);
    flex-grow: 1;
    padding: 20px;
    margin: 15px 0;
    border-radius: 10px;
    display: grid;
    grid-template-columns: 1fr 3fr;
    gap: 25px;
    align-items: start;
}

.sortowanie-box {
    width: 100%;
    padding: 15px;
    border-radius: 10px;
    background-color: var(--widget-box-background);
    box-shadow: var(--widget-box-shadow);
    display: flex;
    flex-direction: row;
}

    .sortowanie-box:hover {
        box-shadow: var(--widget-box-shadow-hover);
        color: var(--primary-color);
    }

.search-box-aktualne,
.search-box-historia{
    padding: 15px;
    border-radius: 10px;
    background-color: var(--widget-box-background);
    box-shadow: var(--widget-box-shadow);
    display: grid;
    gap: 25px;
    align-items: end;
}

    .search-box-aktualne:hover,
    .search-box-historia:hover {
        box-shadow: var(--widget-box-shadow-hover);
        color: var(--primary-color);
    }

.search-box-aktualne {
    grid-template-columns: 2fr 2fr 1fr 1fr;
}

.search-box-historia {
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
}


    .label-form {
        margin: 0px;
        padding: 0px;
        width: 100%;
    }

.label {
    font-size: .8rem;
    color: #777;
    margin: -8px 0 3px 2px;
    letter-spacing: .5px;
}

/* KONTROLKI */

.dot-gray {
    position: relative;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
    background: radial-gradient( circle at 70% 30%, #f2f2f2 0%, #c0c0c0 45%, #8f8f8f 100% );
    border: 1px solid #8a8a8a;
    box-shadow: 0 0 2px rgba(128, 128, 128, 0.15), inset 0 -1px 2px rgba(0, 0, 0, 0.20);
}

    .dot-gray::after {
        content: "";
        position: absolute;
        top: 1px;
        right: 2px;
        width: 3px;
        height: 1px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.20);
        transform: rotate(20deg);
    }

.dot-red {
    position: relative;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
    background: radial-gradient( circle at 70% 30%, #ff9c9c 0%, #ff5c5c 45%, #d83b3b 100% );
    border: 1px solid #e33e41;
    box-shadow: 0 0 3px rgba(255, 92, 92, 0.25), inset 0 -1px 2px rgba(0, 0, 0, 0.25);
}

    .dot-red::after {
        content: "";
        position: absolute;
        top: 1px;
        right: 2px;
        width: 3px;
        height: 1px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.25);
        transform: rotate(20deg);
    }

.dot-green {
    position: relative;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
    background: radial-gradient( circle at 70% 30%, #5cff9c 0%, #00ca56 45%, #00953f 100% );
    border: 1px solid #0b8e39;
    box-shadow: 0 0 3px rgba(0, 202, 86, 0.25), inset 0 -1px 2px rgba(0, 0, 0, 0.25);
}

    .dot-green::after {
        content: "";
        position: absolute;
        top: 1px;
        right: 2px;
        width: 3px;
        height: 1px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.25);
        transform: rotate(20deg);
    }

.dot-orange {
    position: relative;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
    background: radial-gradient( circle at 70% 30%, #ffd580 0%, #ffa500 45%, #cc8400 100% );
    border: 1px solid #b37400;
    box-shadow: 0 0 3px rgba(255, 165, 0, 0.25), inset 0 -1px 2px rgba(0, 0, 0, 0.25);
}

    .dot-orange::after {
        content: "";
        position: absolute;
        top: 1px;
        right: 2px;
        width: 3px;
        height: 1px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.25);
        transform: rotate(20deg);
    }

/* TABELE */

.table-container {
    height: calc(100vh - 15.7rem);
    background-color: var(--primary-color-light);
    padding: 20px;
    margin: 0;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}

.table {
    background: #fff;
    overflow: auto;
    margin: 0 !important;
    width: 100%;
}

    .table thead th,
    .table th {
        color: var(--global-text-color);
        font-weight: 400;
        font-style: normal;
        padding: 8px 10px;
        background-color: #f0f2f4;
        font-size: 1rem;
        border-bottom: 1px solid #ddd !important;
        position: sticky;
        top: -1px;
        z-index: 5
    }`

.table td {
    font-weight: 400;
    font-style: normal;
    padding: 10px 10px;
    background-color: var(--widget-box-background);
    font-size: 1rem;
    color: var(--global-text-color);
}

    .table > :not(:last-child) > :last-child > * {
        border-bottom-color: inherit;
    }

.table-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-gutter: stable;
}

    .table-scroll .table {
        margin: 0;
    }

        .table-scroll .table thead th {
            position: sticky;
            top: 0;
            background: #f0f2f4;
        }


.smooth-height {
    transition: height 0.3s ease;
}

.table-hover td {
    cursor: pointer;
}

/*  MODAL  */

.modal-overlay {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
}

    .modal-overlay::before {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,.1);
        backdrop-filter: blur(15px);
        -webkit-backdrop-filter: blur(15px);
        z-index: 0;
        pointer-events: none;
    }

.modal-content {
    position: relative;
    z-index: 1;
    background: var(--primary-color-light);
    border-radius: 15px;
    max-height: 95vw;
    min-width: auto;
    max-width: 95vw;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    animation: modal-scale-in 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #e6e6e6;
    border: 6px solid #fff;
}

.modal-header-background {
    background-color: var(--primary-color);
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    overflow: hidden;
    width: 100%;
    height: 50px;
    padding: 5px 15px;
}

.modal-header-tekst {
    color: var(--text-color-light);
    font-size: 1.6rem;
    font-weight: 400 !important;
    padding-bottom: 5px;
}

.modal-rozpatrz-prawa-lewa {
    width: 100%;
    display: grid;
    grid-template-columns: 2fr 3fr;
    gap: 25px;
}

.modal-table-header {
    color: #777;
    font-size: .9rem;
    margin: 5px 6px 1px;
}


/* T£O STRONY */

.page-background {
    min-height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    margin-left: auto;
    margin-right: auto;
    background: linear-gradient(rgba(0,0,0,0.28), rgba(0,0,0,0.18)), url('/images/background.jpg') center/cover no-repeat fixed;
    background-blend-mode: overlay;
}

.body-background {
    background-color: none;
}

/* HEADER & HOMEPAGE CONTAINER */

.header-box {
    padding: 8px 0px 24px;
    border-radius: 12px;
    background-color: none;
    width: 100%;
    text-align: center;
    margin: 0px 0 15px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

    .header-box h1 {
        font-family: "Segoe UI", "Segoe UI Variable", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial;
        font-size: 1.4rem;
        margin: 0;
        font-weight: 150;
        letter-spacing: 0.2rem;
        color: #e8f2f6;
        text-transform: uppercase;
        line-height: 1;
        padding: 0 .5rem;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        display: inline-block;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-shadow: 0 1px 0 rgba(255,255,255,0.03), 0 8px 20px rgba(16,24,40,0.05);
    }

        .header-box h1::before {
            content: "";
            position: absolute;
            left: 50%;
            bottom: -13px;
            transform: translateX(-50%);
            width: 95%;
            height: 3px;
            background: var(--primary-color);
            opacity: 0.5;
            border-radius: 3px;
            filter: blur(3px);
            z-index: 0;
            pointer-events: none;
        }

        .header-box h1::after {
            content: "";
            position: absolute;
            left: 50%;
            bottom: -13px;
            transform: translateX(-50%) scaleX(0);
            transform-origin: center;
            width: 100%;
            height: 6px;
            background: var(--primary-color);
            border-radius: 999px;
            box-shadow: 0 8px 20px rgba(16,24,40,0.06), 0 2px 6px rgba(110,193,228,0.10);
            z-index: 1;
            pointer-events: none;
            animation: underline-grow 600ms cubic-bezier(.2,.9,.2,1) 200ms both;
        }

@keyframes underline-grow {
    0% {
        transform: translateX(-50%) scaleX(0);
        opacity: 0.0;
    }

    75% {
        transform: translateX(-50%) scaleX(1.10);
        opacity: 1;
    }

    100% {
        transform: translateX(-50%) scaleX(1);
    }
}

.szyba {
    min-height: calc(100vh - 2rem);
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.08);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    background-clip: padding-box;
    border-radius: 10px;
    overflow: hidden;
    margin: 1rem;
    padding: 1rem;
}

.homepage-container {
    min-height: calc(100vh - 7.2rem);
    background-color: var(--primary-color-light);
    padding: 20px;
    margin: 0;
    border-radius: 10px;
}

.rounded-shadow {
    border-radius: 5px;
    overflow: hidden;
    box-shadow: var(--widget-box-shadow);
}

/* ZMIANY DO BOOTSTRAPA */

.text-primary {
    color: var(--primary-color-hover) !important;
}

.bg-primary {
    background-color: var(--primary-color-hover) !important;
}

.form-label {
    display: block;
    line-height: 1;
    font-size: .8rem;
    margin: 0 0 3px 0;
    padding: 0;
}

.form-check-input {
    height: 1rem;
    width: 1rem;
}

.form-check-input:checked {
    background-color: var(--primary-color);
}

.form-check-label {
    font-size: .9rem;
}

.card-title {
    font-size: .9rem
}

.card-body {
    margin: 0;
    padding: 0.65rem 1rem !important;
}

.menu-body {
    margin: 0;
    padding: 0 0.5rem;
}

/* HOMEPAGE LOGOUT */

.header-actions {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    gap: 14px;
}

.logout-button,
.accessibility-btn {
    user-select: none;
    padding: 5px;
    margin: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.0);
    border: 1px solid rgba(255, 255, 255, 0.25);
    transition: border 0.3s ease;
}

    .logout-button:hover,
    .accessibility-btn:hover {
        border: 1px solid var(--primary-color);
        box-shadow: 0 0 10px var(--primary-color);
    }

        .logout-button:hover .bi-top,
        .accessibility-btn:hover .bi-top {
            background-color: var(--primary-color);
        }

    .logout-button,
    .accessibility-btn ::deep .nav-link {
        color: #e8f2f6;
        background: none;
        border: none;
        border-radius: 4px;
        height: auto;
        display: flex;
        align-items: center;
    }

        .logout-button ::deep .nav-link:hover {
            background-color: #4ba1e1;
        }

.bi {
    display: block;
    width: 40px;
    height: 40px;
    background-color: #e8f2f6;
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    background: none;
}

.bi-top {
    display: block;
    width: 32px;
    height: 32px;
    background-color: #e8f2f6;
    mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    transition: background-color 0.3s ease;
}

.bi-accessibility-nav-menu {
    mask-size: 80%;
}

.bi-wyloguj-nav-menu {
    mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%23e8f2f6" viewBox="0 0 16 16"> <path fill-rule="evenodd" d="M10 12.5a.5.5 0 0 1-.5.5h-8a.5.5 0 0 1-.5-.5v-9a.5.5 0 0 1 .5-.5h8a.5.5 0 0 1 .5.5v2a.5.5 0 0 0 1 0v-2A1.5 1.5 0 0 0 9.5 2h-8A1.5 1.5 0 0 0 0 3.5v9A1.5 1.5 0 0 0 1.5 14h8a1.5 1.5 0 0 0 1.5-1.5v-2a.5.5 0 0 0-1 0z"/> <path fill-rule="evenodd" d="M15.854 8.354a.5.5 0 0 0 0-.708l-3-3a.5.5 0 0 0-.708.708L14.293 7.5H5.5a.5.5 0 0 0 0 1h8.793l-2.147 2.146a.5.5 0 0 0 .708.708z"/> </svg>');
    -webkit-mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%23e8f2f6" viewBox="0 0 16 16"> <path fill-rule="evenodd" d="M10 12.5a.5.5 0 0 1-.5.5h-8a.5.5 0 0 1-.5-.5v-9a.5.5 0 0 1 .5-.5h8a.5.5 0 0 1 .5.5v2a.5.5 0 0 0 1 0v-2A1.5 1.5 0 0 0 9.5 2h-8A1.5 1.5 0 0 0 0 3.5v9A1.5 1.5 0 0 0 1.5 14h8a1.5 1.5 0 0 0 1.5-1.5v-2a.5.5 0 0 0-1 0z"/> <path fill-rule="evenodd" d="M15.854 8.354a.5.5 0 0 0 0-.708l-3-3a.5.5 0 0 0-.708.708L14.293 7.5H5.5a.5.5 0 0 0 0 1h8.793l-2.147 2.146a.5.5 0 0 0 .708.708z"/> </svg>');
}

.bi-accessibility-nav-menu {
    mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%23e8f2f6" viewBox="0 0 16 16"> <path fill-rule="evenodd" d="M9.5 1.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0M6 5.5l-4.535-.442A.531.531 0 0 1 1.531 4H14.47a.531.531 0 0 1 .066 1.058L10 5.5V9l.452 6.42a.535.535 0 0 1-1.053.174L8.243 9.97c-.064-.252-.422-.252-.486 0l-1.156 5.624a.535.535 0 0 1-1.053-.174L6 9z"/> </svg>');
    -webkit-mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="%23e8f2f6" viewBox="0 0 16 16"> <path fill-rule="evenodd" d="M9.5 1.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0M6 5.5l-4.535-.442A.531.531 0 0 1 1.531 4H14.47a.531.531 0 0 1 .066 1.058L10 5.5V9l.452 6.42a.535.535 0 0 1-1.053.174L8.243 9.97c-.064-.252-.422-.252-.486 0l-1.156 5.624a.535.535 0 0 1-1.053-.174L6 9z"/> </svg>');
}

/* LANDING*/

.login-landing {
    --lg-primary: #4ba1e1;
    --lg-primary-strong: #2b7ccd;
    --lg-accent: #f6feff;
    --lg-accent-opaque: rgba(246,254,255,0.92);
    --lg-accent-medium: rgba(246,254,255,0.82);
    --lg-accent-soft: rgba(246,254,255,0.60);
    --lg-accent-glow: rgba(110,193,228,0.16);
    --lg-muted: rgba(255,255,255,0.94);
    --lg-muted-2: rgba(255,255,255,0.75);
    --lg-danger: #ff6b6b;
}

.login-landing.main-container {
    background: transparent !important;
}

.login-landing .content-box {
    width: 100%;
    padding: 28px;
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.03));
    border: 1px solid rgba(255,255,255,0.08);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    background-clip: padding-box;
    box-shadow: 0 10px 30px rgba(0,0,0,0.45);
    color: var(--lg-muted);
    position: relative;
    z-index: 1;
}
    .login-landing .login-h {
        color: var(--lg-accent-opaque);
        font-weight: 600;
        width: 360px;
        font-size: 1.25rem;
        -webkit-font-smoothing: antialiased;
        text-shadow: 0 6px 18px var(--lg-accent-glow);
        -webkit-text-stroke: 0.2px rgba(0,0,0,0.10);
        text-align: center;
        margin: 0 0 0.5rem;
    }

    .login-landing .button-logowanie {
        width: 100%;
        padding: 0.7rem;
        border-radius: 8px;
        background-color: var(--primary-color);
        color: #fff;
        border: 1px solid rgba(255,255,255,0.06);
        box-shadow: 0 8px 20px rgba(61,140,180,0.18);
        transition: background-color .18s ease, box-shadow .18s ease, transform .12s ease;
    }

        .login-landing .button-logowanie:hover,
        .login-landing .button-logowanie:focus {
            background-color: var(--primary-color-hover);
        }

    .login-landing .content-box .form-floating > .form-control,
    .login-landing .content-box .form-control,
    .login-landing .content-box input.glass-input,
    .login-landing .content-box input.form-control.glass-input {
        background: rgba(255,255,255,0.03) !important;
        border: 1px solid rgba(255,255,255,0.12) !important;
        color: rgba(255,255,255,0.94) !important;
        border-radius: 8px !important;
        box-shadow: none !important;
    }

        .login-landing .content-box .form-control:focus,
        .login-landing .content-box input.glass-input:focus {
            outline: none !important;
            border-color: #2b7ccd !important;
            box-shadow: 0 0 0 .12rem rgba(110,193,228,0.16) !important;
            background: rgba(255,255,255,0.04) !important;
        }

    .login-landing .content-box .form-floating > label,
    .login-landing .content-box .form-label {
        color: rgba(246,254,255,0.82) !important;
    }

    .login-landing .content-box .form-control::placeholder,
    .login-landing .content-box input.glass-input::placeholder {
        color: rgba(246,254,255,0.60) !important;
        opacity: 1 !important;
    }

.button-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    justify-content: center;
    align-items: stretch;
    margin-top: 1.5rem;
}

    .button-row > a,
    .button-row > .button-muted {
        width: 100%;
        font-size: 0.9rem;
        box-sizing: border-box;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0.55rem 0.8rem;
        border-radius: var(--button-border-radius);
        text-decoration: none;
        background-color: rgba(255,255,255,0.05);
        color: var(--text-color-light);
        border: 1px solid rgba(255,255,255,0.12);
        transition: color 220ms ease-in-out, background-color 180ms ease, transform 120ms ease;
    }

        .button-row > a:hover,
        .button-row > button:hover,
        .button-row > .button-muted:hover,
        .button-row > a:focus,
        .button-row > button:focus,
        .button-row > .button-muted:focus {
            color: var(--text-color-light);
            background-color: var(--primary-color);
            outline: none;
        }

.login-landing .text-danger,
.login-landing .validation-message {
    color: var(--lg-danger);
    font-weight: 600;
}

/* ACCESSIBILITY BUTTON */

.a11y-option {
    color: #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

    .a11y-option:first-child {
        margin-top: 2rem;
    }

.a11y-toggle {
    width: 42px;
    height: 36px;
    border: none;
    border-radius: 8px;
    background: #e5e7eb;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    transition: background-color 0.2s ease-in-out;
}

.a11y-toggle:hover {
    background-color: var(--primary-color);
}

.a11y-icon {
    width: 18px;
    height: 18px;
    background-color: #111827;
}

.a11y-reset {
    margin-top: 1rem;
    opacity: 0.85;
    border-bottom: 1px solid rgba(255, 255, 255, 0);
}

.a11y-spacing {
    line-height: 1.8;
    letter-spacing: 0.05em;
    word-spacing: 0.16em;
}

.a11y-underline-links a {
    text-decoration: underline !important;
}

.a11y-big-cursor,
.a11y-big-cursor * {
    cursor: url("/cursor-big.png"), auto;
}

.icon-contrast {
    mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M8 0a8 8 0 1 0 0 16z"/></svg>');
}

.icon-text {
    mask-image: url('data:image/svg+xml,\<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" stroke="black" stroke-width="1.5">\<path d="M3.5 12L8 3l4.5 9"/>\<path d="M5.5 9h5"/>\</svg>');
}

.icon-motion {
    mask-image: url('data:image/svg+xml,\<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" stroke="black" stroke-width="1.5">\<rect x="4" y="3" width="2.5" height="10" rx="0.5"/>\<rect x="9.5" y="3" width="2.5" height="10" rx="0.5"/>\</svg>');
}

.icon-dark {
    mask-image: url('data:image/svg+xml,\<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" stroke="black" stroke-width="1.5">\<path d="M10.5 1.5a6 6 0 1 0 4 9A5 5 0 0 1 10.5 1.5z"/>\</svg>');
}

.icon-spacing {
    mask-image: url('data:image/svg+xml,\<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" stroke="black" stroke-width="1.5">\<path d="M3 4h10"/>\<path d="M3 12h10"/>\<path d="M8 6v4"/>\<path d="M6.5 7.5L8 6l1.5 1.5"/>\<path d="M6.5 8.5L8 10l1.5-1.5"/>\</svg>');
}

.icon-link {
    mask-image: url('data:image/svg+xml,\<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" stroke="black" stroke-width="1.5">\<path d="M6.5 5.5l-2 2a3 3 0 0 0 4.2 4.2l2-2"/>\<path d="M9.5 10.5l2-2a3 3 0 0 0-4.2-4.2l-2 2"/>\<path d="M3 14h10"/>\</svg>');
}

.icon-cursor {
    mask-image: url('data:image/svg+xml,\<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" stroke="black" stroke-width="1.5">\<path d="M4 2l7 7-3 1 1 3-1.5.5-1-3-3 1z"/>\</svg>');
}

.icon-reset {
    mask-image: url('data:image/svg+xml,\<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" stroke="black" stroke-width="1.5">\<path d="M3 8a5 5 0 1 0 2-4"/>\<path d="M3 3v3h3"/>\</svg>');
}

.icon-close {
    width: 25px;
    height: 25px;
    background-color: #fff;
    mask-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z"/></svg>');
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
}

.overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.25);
    z-index: 900;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.side-panel {
    position: fixed;
    padding: 1rem;
    top: 0;
    right: 0;
    width: 320px;
    height: 100vh;
    background: #111;
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.5s ease;
}

    .side-panel.open {
        transform: translateX(0);
    }

.side-panel-header {
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

    .side-panel-header h4 {
        margin: 0;
        font-size: 16px;
        font-weight: 600;
    }

.side-panel-close {
    color: #fff;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

    .side-panel-close:hover {
        background: #e5e7eb;
    }

    .side-panel-close .icon-close {
        transition: background-color 0.2s ease;
    }

        .side-panel-close .icon-close:hover,
        .side-panel-close .icon-close:focus-visible {
            background-color: var(--primary-color);
        }
