﻿
.components-reconnect-first-attempt-visible,
.components-reconnect-repeated-attempt-visible,
.components-reconnect-failed-visible,
.components-pause-visible,
.components-resume-failed-visible,
.components-rejoining-animation {
    display: none;
}

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

#components-reconnect-modal {
    position: fixed;
    margin: 20vh auto;
    z-index: 10000;
    padding: 0;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    animation: modalSlideIn 0.3s ease-out;
}

    #components-reconnect-modal::backdrop {
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        animation: backdropFadeIn 0.3s ease-out;
    }

.components-reconnect-container {
    padding: 32px 40px;
    min-width: 320px;
    max-width: 420px;
    text-align: center;
    color: #ffffff;
}

.components-rejoining-animation {
    display: flex !important;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    height: 40px;
    align-items: center;
}

    .components-rejoining-animation div {
        width: 12px;
        height: 12px;
        background: #ffffff;
        border-radius: 50%;
        animation: bounce 1.4s infinite ease-in-out both;
    }

        .components-rejoining-animation div:nth-child(1) {
            animation-delay: -0.32s;
        }

        .components-rejoining-animation div:nth-child(2) {
            animation-delay: -0.16s;
        }

@keyframes bounce {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.5;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.components-reconnect-container p {
    margin: 16px 0;
    font-size: 16px;
    line-height: 1.5;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

p.components-reconnect-first-attempt-visible {
    font-size: 18px;
    font-weight: 600;
}

    p.components-reconnect-first-attempt-visible::before {
        content: '🧭';
        display: block;
        font-size: 88px;
        animation: float 2s ease-in-out infinite;
    }

p.components-reconnect-failed-visible::before {
    content: '⚠️';
    display: block;
    font-size: 88px;
}

p.components-pause-visible::before {
    content: '⏸️';
    display: block;
    font-size: 88px;
}

#components-seconds-to-next-attempt {
    display: inline-block;
    min-width: 20px;
    font-weight: 700;
    color: #ffd93d;
}

#components-reconnect-button,
#components-resume-button {
    margin: auto;
    padding: 12px 24px;
    background: #ffffff;
    color: #313f7f;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

    #components-reconnect-button:hover,
    #components-resume-button:hover {
        background: #f0f0f0;
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    }

    #components-reconnect-button:active,
    #components-resume-button:active {
        transform: translateY(0);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    }

button::before,
button::after {
    content: none !important;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -48%) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes backdropFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg) rotateZ(-15deg);
    }

    50% {
        transform: translateY(-20px) rotate(10deg) rotateZ(8deg);
    }
}

@media (max-width: 480px) {
    .components-reconnect-container {
        padding: 24px 28px;
        min-width: 280px;
    }

        .components-reconnect-container p {
            font-size: 15px;
        }
}

.invalid {
    outline: 1px solid #e50000;
}

.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TkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}
