/* /Components/Layout/MainLayout.razor.rz.scp.css */
.ms-page[b-pq8qai1ek6] {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.ms-main[b-pq8qai1ek6] {
    flex: 1 0 auto;
}

/* Cieľ odkazu „preskočiť na obsah" nesmie po skoku kresliť rámček — zameranie tam dostane
   len preto, aby čítačka obrazovky vedela, kam sa presunula. */
.ms-main:focus[b-pq8qai1ek6] {
    outline: none;
}

/* ---------- preskočiť na obsah ----------
   Odkaz je v toku stránky prvý, ale mimo obrazovky. Ukáže sa až po zameraní tabulátorom. */

.ms-skip-link[b-pq8qai1ek6] {
    /* fixed, nie absolute: odkaz musí byť vidieť aj vtedy, keď je stránka odskrolovaná. */
    position: fixed;
    left: -9999px;
    top: 0;
    z-index: 2000;
    background: var(--ms-accent);
    color: #fff;
    padding: 0.6rem 1rem;
    border-radius: 0 0 9px 0;
    text-decoration: none;
    font-weight: 600;
}

.ms-skip-link:focus[b-pq8qai1ek6] {
    left: 0;
}

/* ---------- horné menu ---------- */

.ms-header[b-pq8qai1ek6] {
    background: #fff;
    border-bottom: 1px solid #e6edf0;
    position: sticky;
    top: 0;
    z-index: 1040;
}

.ms-nav[b-pq8qai1ek6] {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-height: 62px;
}

.ms-brand[b-pq8qai1ek6] {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--ms-accent);
    text-decoration: none;
}

.ms-brand:hover[b-pq8qai1ek6] {
    color: var(--ms-accent-dark);
}

.ms-nav-links[b-pq8qai1ek6] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    margin-left: auto;
}

.ms-nav-links[b-pq8qai1ek6]  a {
    color: var(--ms-ink);
    text-decoration: none;
    padding: 0.45rem 0.85rem;
    border-radius: 9px;
    font-weight: 500;
}

/* Výnimka pre tlačidlo „Report lokality": je to tlačidlo, nie položka menu.
   Kým sa naň tieto dve pravidlá vzťahovali, prebili tmavé pozadie z .btn-primary
   svetlým (sú špecifickejšie) a biele písmo na ňom zmizlo — pri prejdení myšou
   tlačidlo zbelelo. Farby aj stmavnutie pri myši si takto rieši .btn-primary sám. */
.ms-nav-links[b-pq8qai1ek6]  a:not(.ms-nav-cta):hover {
    background: var(--ms-bg-soft);
}

.ms-nav-links[b-pq8qai1ek6]  a:not(.ms-nav-cta).active {
    background: var(--ms-accent-light);
    color: var(--ms-accent);
}

.ms-nav-links[b-pq8qai1ek6]  a.ms-nav-cta {
    color: #fff;
    margin-left: 0.5rem;
    font-weight: 600;
}

.ms-nav-toggle[b-pq8qai1ek6],
.ms-nav-burger[b-pq8qai1ek6] {
    display: none;
}

/* mobil: hamburger + rozbaľovacie menu (čisté CSS, bez JS knižníc) */
@media (max-width: 767.98px) {
    .ms-nav[b-pq8qai1ek6] {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    /* Prepínač musí zostať v strome zameriteľných prvkov, inak sa menu nedá otvoriť
       tabulátorom ani čítačkou obrazovky. Preto nie display:none, ale políčko veľkosti
       bodky mimo toku — vidieť ho nie je, zamerať sa naň dá. Ovládač, ktorý človek
       vidí a myšou naň klikne, je menovka s ikonou hneď vedľa. */
    .ms-nav-toggle[b-pq8qai1ek6] {
        display: block;
        position: absolute;
        width: 1px;
        height: 1px;
        margin: 0;
        opacity: 0;
        pointer-events: none;
    }

    .ms-nav-burger[b-pq8qai1ek6] {
        display: inline-flex;
        margin-left: auto;
        cursor: pointer;
        color: var(--ms-ink);
        padding: 0.35rem;
        border-radius: 9px;
    }

    /* Zameranie je na neviditeľnom políčku, rámček sa preto musí kresliť na ikone. */
    .ms-nav-toggle:focus-visible + .ms-nav-burger[b-pq8qai1ek6] {
        outline: 3px solid var(--ms-accent);
        outline-offset: 2px;
    }

    .ms-nav-links[b-pq8qai1ek6] {
        display: none;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        padding-bottom: 0.75rem;
        margin-left: 0;
    }

    .ms-nav-toggle:checked ~ .ms-nav-links[b-pq8qai1ek6] {
        display: flex;
    }

    .ms-nav-links[b-pq8qai1ek6]  a.ms-nav-cta {
        margin-left: 0;
        text-align: center;
    }
}

/* ---------- pätička ---------- */

.ms-footer[b-pq8qai1ek6] {
    background: var(--ms-accent-dark);
    color: rgba(255, 255, 255, 0.85);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
    font-size: 0.95rem;
}

.ms-footer h6[b-pq8qai1ek6] {
    color: #fff;
    font-weight: 600;
    margin-bottom: 0.9rem;
}

.ms-footer ul[b-pq8qai1ek6] {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ms-footer li[b-pq8qai1ek6] {
    margin-bottom: 0.45rem;
}

.ms-footer a[b-pq8qai1ek6] {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
}

.ms-footer a:hover[b-pq8qai1ek6] {
    color: #fff;
    text-decoration: underline;
}

.ms-footer-bottom[b-pq8qai1ek6] {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.65);
}

.ms-footer-bottom a[b-pq8qai1ek6] {
    color: rgba(255, 255, 255, 0.8);
}

/* ---------- chybová lišta Blazoru (skrytá, kým nenastane chyba) ---------- */

#blazor-error-ui[b-pq8qai1ek6] {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 2000;
}

#blazor-error-ui .dismiss[b-pq8qai1ek6] {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-szfpyj3jxh],
.components-reconnect-repeated-attempt-visible[b-szfpyj3jxh],
.components-reconnect-failed-visible[b-szfpyj3jxh],
.components-pause-visible[b-szfpyj3jxh],
.components-resume-failed-visible[b-szfpyj3jxh],
.components-rejoining-animation[b-szfpyj3jxh] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-szfpyj3jxh],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-szfpyj3jxh],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-szfpyj3jxh],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-szfpyj3jxh],
#components-reconnect-modal.components-reconnect-retrying[b-szfpyj3jxh],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-szfpyj3jxh],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-szfpyj3jxh],
#components-reconnect-modal.components-reconnect-failed[b-szfpyj3jxh],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-szfpyj3jxh] {
    display: block;
}


#components-reconnect-modal[b-szfpyj3jxh] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-szfpyj3jxh 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-szfpyj3jxh 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-szfpyj3jxh 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-szfpyj3jxh]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-szfpyj3jxh 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-szfpyj3jxh {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-szfpyj3jxh {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-szfpyj3jxh {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-szfpyj3jxh] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-szfpyj3jxh] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-szfpyj3jxh] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-szfpyj3jxh] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-szfpyj3jxh] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-szfpyj3jxh] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-szfpyj3jxh] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-szfpyj3jxh 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-szfpyj3jxh] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-szfpyj3jxh {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
