﻿/* Oculto por defecto */
#components-reconnect-modal {
    display: none;
}

/* Caso 1: Blazor pone la clase en el BODY */
body.components-reconnect-show #components-reconnect-modal {
    display: flex;
}

/* Caso 2: Blazor pone la clase en el MODAL (tu caso real) */
#components-reconnect-modal.components-reconnect-show {
    display: flex;
}

/* Overlay full-screen */
.balino-reconnect {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(255,255,255,.82);
    backdrop-filter: blur(6px);
    z-index: 99999;
}

/* Card */
.balino-card {
    width: min(520px, 92vw);
    background: #fff;
    border: 1px solid rgba(0,0,0,.08);
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(0,0,0,.14);
    padding: 18px 18px 14px;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    color: #111;
}

.balino-header {
    display: flex;
    gap: 14px;
    align-items: center;
}

.balino-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: var(--bgservicio);
}

    .balino-icon svg {
        fill: var(--primary-color);
        animation: balinoSpin 1.1s linear infinite;
    }

@keyframes balinoSpin {
    to {
        transform: rotate(360deg);
    }
}

.balino-title {
    font-size: 18px;
    font-weight: 750;
    letter-spacing: .1px;
}

.balino-subtitle {
    margin-top: 2px;
    font-size: 14px;
    color: rgba(0,0,0,.68);
    line-height: 1.35;
}

.balino-state {
    margin-top: 14px;
    display: none;
}


.balino-small {
    font-size: 13px;
    color: rgba(0,0,0,.68);
    margin-top: 6px;
}

.balino-btn {
    margin-top: 12px;
    width: 100%;
    border: 0;
    border-radius: 12px;
    padding: 10px 12px;
    font-weight: 700;
    cursor: pointer;
    background: var(--primary-color);
    color: #fff;
}

    .balino-btn:hover {
        filter: brightness(.97);
    }

.balino-footer {
    margin-top: 14px;
    display: flex;
    gap: 10px;
    align-items: center;
    color: rgba(0,0,0,.55);
    font-size: 12px;
}

.balino-pill {
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--bgservicio);
    color: var(--primary-color);
}

.balino-muted {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Dots animados */
.balino-dots {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}

    .balino-dots span {
        width: 8px;
        height: 8px;
        border-radius: 999px;
        background: var(--primary-color);
        animation: balinoBounce 1s infinite ease-in-out;
    }

        .balino-dots span:nth-child(2) {
            animation-delay: .15s;
        }

        .balino-dots span:nth-child(3) {
            animation-delay: .30s;
        }

@keyframes balinoBounce {
    0%, 80%, 100% {
        transform: translateY(0);
        opacity: .55;
    }

    40% {
        transform: translateY(-6px);
        opacity: 1;
    }
}
