/* Global base styles for the Mobility admin panel. */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, sans-serif;
    color: #1a1626;
    background: #ffffff;
}

a {
    color: #a05aff;
    text-decoration: none;
}

a:hover {
    color: #8236e8;
}

/* Blazor error UI. */
#blazor-error-ui {
    color: #1a1626;
    background: #fff4d6;
    border-top: 1px solid #f0d98a;
    bottom: 0;
    box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.1);
    display: none;
    left: 0;
    padding: 0.9rem 1.2rem 0.9rem 1.2rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.9rem;
        top: 0.6rem;
    }

/* Blazor reconnection modal (shown while an Interactive Server circuit reconnects). */
#components-reconnect-modal.reconnect-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(26, 4, 50, 0.4);
    backdrop-filter: blur(3px);
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

#components-reconnect-modal.components-reconnect-show,
#components-reconnect-modal.components-reconnect-failed,
#components-reconnect-modal.components-reconnect-rejected {
    display: flex;
    animation: reconnect-fade 0.2s ease;
}

@keyframes reconnect-fade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.reconnect-card {
    width: 100%;
    max-width: 340px;
    background: #fff;
    border-radius: 18px;
    padding: 34px 30px 30px;
    text-align: center;
    box-shadow: 0 30px 70px -20px rgba(26, 4, 50, 0.5);
    animation: reconnect-pop 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes reconnect-pop {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.reconnect-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 22px;
}

.reconnect-dots span {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: linear-gradient(150deg, #a05aff, #6d28d9);
    box-shadow: 0 4px 10px -2px rgba(160, 90, 255, 0.5);
    animation: reconnect-bounce 1.1s ease-in-out infinite;
}

.reconnect-dots span:nth-child(2) {
    animation-delay: 0.16s;
}

.reconnect-dots span:nth-child(3) {
    animation-delay: 0.32s;
}

@keyframes reconnect-bounce {
    0%, 75%, 100% {
        transform: translateY(0) scale(0.65);
        opacity: 0.45;
    }

    35% {
        transform: translateY(-15px) scale(1);
        opacity: 1;
    }
}

.reconnect-title {
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #1a1626;
    margin-bottom: 6px;
}

.reconnect-text {
    font-size: 13.5px;
    line-height: 1.55;
    color: #6b6478;
    margin: 0;
}

.reconnect-btn {
    margin-top: 18px;
    padding: 10px 20px;
    border: none;
    border-radius: 11px;
    background: #a05aff;
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px -6px rgba(160, 90, 255, 0.5);
}

.reconnect-btn:hover {
    background: #8f43f5;
}

/* Show the connecting view while retrying (show/failed); the rejected view only when
   the server refused the circuit (needs a reload). */
.reconnect-view {
    display: none;
}

#components-reconnect-modal.components-reconnect-show:not(.components-reconnect-rejected) .reconnect-view-connecting,
#components-reconnect-modal.components-reconnect-failed:not(.components-reconnect-rejected) .reconnect-view-connecting {
    display: block;
}

#components-reconnect-modal.components-reconnect-rejected .reconnect-view-rejected {
    display: block;
}
