
/* =========================================
   JustFace - Blazor Reconnect Overlay
   ========================================= */

/* Hide modal by default */
#components-reconnect-modal {
    display: none;
}

    /* Show modal when connection is interrupted */
    #components-reconnect-modal.active {
        display: flex;
        position: fixed;
        inset: 0;
        z-index: 999999;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }

    /* Background overlay */
    #components-reconnect-modal .crm-underlay {
        position: absolute;
        inset: 0;
        background: rgba(0, 0, 0, 0.65);
    }

    /* Dialog container */
    #components-reconnect-modal .update-box {
        position: relative;
        z-index: 1002;
        width: 100%;
        max-width: 420px;
        padding: 30px;
        background: #fff;
        border-radius: 10px;
        box-shadow: 0 5px 30px rgba(0, 0, 0, 0.25);
        text-align: center;
    }

        /* JustFace logo */
        #components-reconnect-modal .update-box img {
            display: block;
            width: 180px;
            max-width: 100%;
            height: auto;
            margin: 0 auto 20px;
        }

/* Connection content */
.jf-connection-content {
    text-align: center;
    padding: 20px 10px;
}

    .jf-connection-content h4 {
        margin: 15px 0 10px;
        font-size: 20px;
        font-weight: 600;
        color: #333;
    }

    .jf-connection-content p {
        margin: 0;
        font-size: 14px;
        line-height: 1.5;
        color: #666;
    }

/* Loading spinner */
.jf-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #ddd;
    border-top-color: #007bff;
    border-radius: 50%;
    animation: jf-spin 0.8s linear infinite;
    margin: 0 auto 15px;
}

@keyframes jf-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Reload button */
#components-reconnect-modal button {
    display: none;
    margin: 15px auto 0;
    padding: 10px 24px;
    border: none;
    border-radius: 5px;
    background: #212529;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
}

    #components-reconnect-modal button:hover {
        background: #343a40;
    }

    #components-reconnect-modal button:focus {
        outline: 2px solid #007bff;
        outline-offset: 3px;
    }

/* Mobile adjustments */
@media (max-width: 480px) {
    #components-reconnect-modal .update-box {
        padding: 25px 20px;
    }

    .jf-connection-content {
        padding: 15px 5px;
    }
}
