@import '_content/SOdonto.Shared/SOdonto.Shared.4yglc16avg.bundle.scp.css';

/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-h6sz7imthz],
.components-reconnect-repeated-attempt-visible[b-h6sz7imthz],
.components-reconnect-failed-visible[b-h6sz7imthz],
.components-pause-visible[b-h6sz7imthz],
.components-resume-failed-visible[b-h6sz7imthz],
.components-rejoining-animation[b-h6sz7imthz] {
    display: none;
}

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

/* Modal base: centralizado, responsivo e alinhado à identidade do sistema.
   Inspirado em cartão impresso 3:4: profundidade em camadas + brilho sutil de
   acabamento (apenas a ideia de sombra/acabamento — nada de conteúdo de cartão). */
#components-reconnect-modal[b-h6sz7imthz] {
    background: var(--so-white, #ffffff);
    border: 1px solid var(--so-border-soft, #dbe3f0);
    border-radius: 1.25rem;
    box-shadow: 0 1px 2px rgb(15 23 42 / 8%), 0 1rem 2.2rem rgb(15 23 42 / 18%), 0 2.5rem 6rem rgb(15 23 42 / 26%);
    color: var(--so-ink-900, #102a72);
    margin: auto;
    max-width: min(22rem, calc(100vw - 2.5rem));
    opacity: 0;
    overflow: hidden;
    padding: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-h6sz7imthz 0.5s both;
    width: 22rem;
    z-index: 2147483000;
    &[open]

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

}

/* Brilho de acabamento (sheen) no topo do cartão + selo inferior azul. */
#components-reconnect-modal[b-h6sz7imthz]::before {
    background: linear-gradient(180deg, rgb(37 133 255 / 10%), transparent 42%);
    content: "";
    height: 6rem;
    left: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
    top: 0;
}

#components-reconnect-modal[b-h6sz7imthz]::after {
    background: linear-gradient(90deg, #1d4ed8, #2563eb);
    bottom: 0;
    content: "";
    height: 4px;
    left: 0;
    pointer-events: none;
    position: absolute;
    right: 0;
}

/* Tema escuro */
html[data-theme="dark"] #components-reconnect-modal[b-h6sz7imthz] {
    background: linear-gradient(180deg, #16233b, #101a2b);
    border-color: rgb(148 163 184 / 24%);
    box-shadow: 0 1px 2px rgb(2 6 23 / 50%), 0 1rem 2.2rem rgb(2 6 23 / 45%), 0 2.5rem 6rem rgb(0 3 12 / 60%);
    color: #e2e8f0;
}

html[data-theme="dark"] #components-reconnect-modal[b-h6sz7imthz]::before {
    background: linear-gradient(180deg, rgb(96 165 250 / 10%), transparent 42%);
}

#components-reconnect-modal[b-h6sz7imthz]::backdrop {
    animation: components-reconnect-modal-fadeInOpacity-b-h6sz7imthz 0.5s ease-in-out;
    background-color: rgb(7 21 43 / 72%);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
    opacity: 1;
}

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

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

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

    100% {
        opacity: 1;
    }
}

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

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-h6sz7imthz] {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: .65rem;
    padding: 1.6rem 1.6rem 1.5rem;
    position: relative;
    text-align: center;
}

.components-reconnect-logo[b-h6sz7imthz] {
    height: auto;
    margin-bottom: .1rem;
    max-width: 9.5rem;
    object-fit: contain;
}

html[data-theme="dark"] .components-reconnect-logo[b-h6sz7imthz] {
    content: url("_content/SOdonto.Shared/images/logo-branco.png");
}

.components-reconnect-icon[b-h6sz7imthz] {
    align-items: center;
    display: flex;
    height: 4rem;
    justify-content: center;
    margin-bottom: .15rem;
    position: relative;
    width: 4rem;
}

.components-reconnecting-animation[b-h6sz7imthz] {
    height: 100%;
    position: relative;
    width: 100%;
}

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

html[data-theme="dark"] .components-reconnecting-animation div[b-h6sz7imthz] {
    border-color: #60a5fa;
}

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

@keyframes components-rejoining-animation-b-h6sz7imthz {
    0% {
        top: 2rem;
        left: 2rem;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 2rem;
        left: 2rem;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 2rem;
        left: 2rem;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0;
        left: 0;
        width: 4rem;
        height: 4rem;
        opacity: 0;
    }
}

#components-reconnect-modal p[b-h6sz7imthz] {
    margin: 0;
}

#components-reconnect-modal .components-reconnect-title[b-h6sz7imthz] {
    color: inherit;
    font-size: 1.05rem;
    font-weight: 800;
    line-height: 1.3;
}

#components-reconnect-modal .components-reconnect-subtitle[b-h6sz7imthz] {
    color: var(--so-ink-600, #475569);
    font-size: .85rem;
    line-height: 1.45;
    max-width: 18rem;
}

html[data-theme="dark"] #components-reconnect-modal .components-reconnect-subtitle[b-h6sz7imthz] {
    color: #94a3b8;
}

#components-reconnect-modal button[b-h6sz7imthz] {
    background: linear-gradient(135deg, var(--so-primary-600, #2563eb), var(--so-primary-700, #1d4ed8));
    border: 0;
    border-radius: .65rem;
    color: #fff;
    cursor: pointer;
    font-size: .88rem;
    font-weight: 800;
    margin-top: .35rem;
    padding: .65rem 1.5rem;
    transition: filter .15s ease, transform .15s ease;
}

#components-reconnect-modal button:hover[b-h6sz7imthz] {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

#components-reconnect-modal button:active[b-h6sz7imthz] {
    transform: translateY(0);
}

@media (max-width: 480px) {
    #components-reconnect-modal[b-h6sz7imthz] {
        border-radius: 1.05rem;
        width: calc(100vw - 2rem);
    }

    #components-reconnect-modal .components-reconnect-container[b-h6sz7imthz] {
        padding: 1.25rem 1.15rem 1.2rem;
    }

    #components-reconnect-modal .components-reconnect-icon[b-h6sz7imthz] {
        height: 3.5rem;
        width: 3.5rem;
    }

    .components-reconnecting-animation div[b-h6sz7imthz] {
        border-width: 2.5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #components-reconnect-modal[b-h6sz7imthz],
    #components-reconnect-modal[open][b-h6sz7imthz],
    #components-reconnect-modal[b-h6sz7imthz]::backdrop,
    .components-reconnecting-animation div[b-h6sz7imthz] {
        animation: none !important;
    }
}
