/* /Components/Layout/MainLayout.razor.rz.scp.css */
/* /Components/Layout/NavMenu.razor.rz.scp.css */
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
/* ============================================================================
   SMG FACILITY MANAGEMENT - BLAZOR RECONNECT STYLES
   ============================================================================ */

/* Reconnection State Visibility Toggles */
.components-reconnect-first-attempt-visible[b-uzqvxyqhcu],
.components-reconnect-repeated-attempt-visible[b-uzqvxyqhcu],
.components-reconnect-failed-visible[b-uzqvxyqhcu],
.components-pause-visible[b-uzqvxyqhcu],
.components-resume-failed-visible[b-uzqvxyqhcu],
.components-rejoining-animation[b-uzqvxyqhcu] {
    display: none;
}

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

/* Modal Container */
#components-reconnect-modal[b-uzqvxyqhcu] {
    background-color: var(--smg-bg-secondary);
    color: #000;
    width: 22rem;
    margin: 20vh auto;
    padding: var(--smg-space-6);
    border: 1px solid var(--smg-border-primary);
    border-radius: 0; /* SMG Sharp Edges */
    box-shadow: var(--smg-shadow-lg);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-uzqvxyqhcu 0.5s both;
}

    /* Modal Open Animation */
    #components-reconnect-modal[open][b-uzqvxyqhcu] {
        animation: components-reconnect-modal-slideUp-b-uzqvxyqhcu 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-uzqvxyqhcu 0.5s ease-in-out 0.3s;
        animation-fill-mode: both;
    }

    /* Backdrop */
    #components-reconnect-modal[b-uzqvxyqhcu]::backdrop {
        background-color: rgba(10, 10, 10, 0.9);
        backdrop-filter: blur(4px);
        animation: components-reconnect-modal-fadeInOpacity-b-uzqvxyqhcu 0.5s ease-in-out;
        opacity: 1;
    }

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

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

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

    100% {
        opacity: 1;
    }
}

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

    100% {
        opacity: 0;
    }
}

/* Inner Layout */
.components-reconnect-container[b-uzqvxyqhcu] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--smg-space-4);
}

/* Typography */
#components-reconnect-modal p[b-uzqvxyqhcu] {
    margin: 0;
    text-align: center;
    font-family: var(--smg-font-family);
    font-size: var(--smg-text-base);
    color: var(--smg-gray-100);
    letter-spacing: 0.02em;
}

/* Buttons - SMG Primary Style */
#components-reconnect-modal button[b-uzqvxyqhcu] {
    border: 1px solid var(--smg-green-light);
    background: linear-gradient(135deg, var(--smg-green-primary) 0%, var(--smg-green-dark) 100%);
    color: var(--smg-white);
    padding: 0.75rem 1.5rem;
    border-radius: 0;
    font-family: var(--smg-font-family);
    font-weight: 700;
    font-size: var(--smg-text-sm);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
    transition: all var(--smg-transition-base);
}

    #components-reconnect-modal button:hover[b-uzqvxyqhcu] {
        background: linear-gradient(135deg, var(--smg-green-light) 0%, var(--smg-green-primary) 100%);
        box-shadow: var(--smg-shadow-md);
        transform: translateY(-2px);
    }

    #components-reconnect-modal button:active[b-uzqvxyqhcu] {
        transform: translateY(0);
        box-shadow: none;
    }

/* Loading Animation - SMG Green Ripple */
.components-rejoining-animation[b-uzqvxyqhcu] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-uzqvxyqhcu] {
        position: absolute;
        border: 3px solid var(--smg-green-primary);
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-uzqvxyqhcu 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
        box-shadow: 0 0 10px rgba(22, 163, 74, 0.4); /* Glow effect */
    }

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

@keyframes components-rejoining-animation-b-uzqvxyqhcu {
    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;
    }
}
