/* /Pages/Index.razor.rz.scp.css */
/* Component-scoped styles pro Index.razor.
 * Blazor automaticky bundluje do Demo.Client.styles.css; nemění index.html.
 * Žádný JS dependency, jen CSS transitions/animations. */

/* ── Progress bar smooth tick ───────────────────────────────────────── */
[b-4ww4phyuz7] .progress-bar {
    transition: width 350ms ease-out;
}

[b-4ww4phyuz7] .progress-overflow {
    background: repeating-linear-gradient(45deg,
        #fd7e14, #fd7e14 10px, #ffc107 10px, #ffc107 20px);
    transition: width 350ms ease-out;
}

/* ── Phase badge color fade ─────────────────────────────────────────── */
[b-4ww4phyuz7] .badge-phase {
    transition: background-color 250ms ease, color 250ms ease;
}

/* ── Diagnostic card flash on Converged ─────────────────────────────── */
[b-4ww4phyuz7] .diag-card {
    transition: box-shadow 250ms ease, border-color 250ms ease;
}

[b-4ww4phyuz7] .diag-card.flash {
    animation: flash-success-b-4ww4phyuz7 900ms ease-out;
}

@keyframes flash-success-b-4ww4phyuz7 {
    0%   { box-shadow: 0 0 0 0 rgba(25, 135, 84, 0.7); }
    50%  { box-shadow: 0 0 14px 6px rgba(25, 135, 84, 0.45); }
    100% { box-shadow: 0 0 0 0 rgba(25, 135, 84, 0); }
}

/* ── Peer active dot (pulse animation) ──────────────────────────────── */
[b-4ww4phyuz7] .peer-active-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #198754;
    margin-right: 6px;
    vertical-align: middle;
    animation: pulse-b-4ww4phyuz7 2s infinite;
}

[b-4ww4phyuz7] .peer-active-dot.inactive {
    background: #6c757d;
    animation: none;
}

@keyframes pulse-b-4ww4phyuz7 {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.4; transform: scale(0.85); }
}

/* ── K* hex display + Safety Number ─────────────────────────────────── */
[b-4ww4phyuz7] .kstar-hex {
    font-family: 'JetBrains Mono', Consolas, 'Courier New', monospace;
    font-size: 0.9rem;
    word-break: break-all;
    white-space: pre-wrap;
    background: rgba(25, 135, 84, 0.06);
    padding: 0.5rem;
    border-radius: 0.25rem;
}

[b-4ww4phyuz7] .safety-num {
    letter-spacing: 0.18em;
    font-size: 1.4rem;
    font-weight: 700;
    font-family: 'JetBrains Mono', Consolas, 'Courier New', monospace;
    color: #0d6efd;
}

/* ── Lobby row hover ────────────────────────────────────────────────── */
[b-4ww4phyuz7] .lobby-row {
    transition: background-color 150ms ease;
}

[b-4ww4phyuz7] .lobby-row:hover {
    background-color: rgba(13, 110, 253, 0.08);
}

/* ── Handle name styling ────────────────────────────────────────────── */
[b-4ww4phyuz7] .handle-name {
    font-family: 'JetBrains Mono', Consolas, 'Courier New', monospace;
    font-weight: 600;
    color: #0d6efd;
}

/* ── Generic fade-in for phase transitions ──────────────────────────── */
[b-4ww4phyuz7] .fade-in {
    animation: fadeIn-b-4ww4phyuz7 300ms ease-in;
}

@keyframes fadeIn-b-4ww4phyuz7 {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0); }
}
