/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* .appbar-tall/.appbar-wordmark-title/.appbar-wordmark-subtitle/.drawer-version target
   MudAppBar/MudText's own rendered root elements, which — confirmed via curl'd rendered
   HTML, not a guess — carry no Blazor CSS-isolation scope attribute (same gotcha already
   documented for MudDataGrid below). Those rules live in global wwwroot/app.css instead.
   .appbar-wordmark is a plain <div> authored directly in this file, so it IS scoped
   correctly and stays here. */
.appbar-wordmark[b-0bempjiekf] {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.15;
}

/* Lets .drawer-version's mt-auto (see MainLayout.razor) push it to the bottom of the
   drawer regardless of how many nav links are above it. */
.drawer-fill[b-0bempjiekf] {
    height: 100%;
}

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

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

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


#components-reconnect-modal[b-p8ztl8f0z6] {
    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-p8ztl8f0z6 0.5s both;
    &[open]

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

}

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

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

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

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

    100% {
        opacity: 1;
    }
}

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

    100% {
        opacity: 0;
    }
}

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

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

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

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

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

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

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

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

@keyframes components-rejoining-animation-b-p8ztl8f0z6 {
    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;
    }
}
/* /Components/Pages/AnimalPhotoCapture.razor.rz.scp.css */
/* Mug-shot hero banner (issue #4 / ADR 0014, variant B). These rules target plain <div>s
   authored directly in the .razor, so Blazor's CSS-isolation scope reaches them reliably
   (the known gotcha only bites rules aimed at a MudBlazor component's own rendered markup —
   see CLAUDE.md). Aspect ratio is the one thing that changes by breakpoint: 4:3 on a phone
   (taller, more of the animal's face), 16:9 on desktop. */

.mugshot[b-wa5q3581tu] {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background-color: var(--mud-palette-background-gray);
    border-radius: var(--mud-default-borderradius);
    overflow: hidden;
}

/* md and up (matches MudBlazor's 960px breakpoint / the forms' xs->md switch). */
@media (min-width: 960px) {
    .mugshot[b-wa5q3581tu] {
        aspect-ratio: 16 / 9;
    }
}

.mugshot-img[b-wa5q3581tu] {
    display: block;
    width: 100%;
    height: 100%;
    /* contain, NOT cover: show the WHOLE photo scaled to fit inside the banner frame, with the
       muted .mugshot background filling any leftover space. cover filled the frame edge-to-edge
       but cropped whatever didn't match the frame's aspect ratio, which read as "zoomed in" and
       could clip the very markings the mug shot exists to show. Identification beats a tidy crop. */
    object-fit: contain;
}

.mugshot-empty[b-wa5q3581tu] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 8px;
    color: var(--mud-palette-text-secondary);
}

.mugshot-overlay-tags[b-wa5q3581tu] {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    gap: 4px;
}

.mugshot-actions[b-wa5q3581tu] {
    position: absolute;
    top: 4px;
    right: 4px;
}

.mugshot-busy[b-wa5q3581tu] {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.35);
}
