﻿.hc-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(6px);
    z-index: 9999;
}

.hc-card {
    background: #fff;
    border-radius: 20px;
    padding: 2.5rem 3rem;
    text-align: center;
    box-shadow: 0 8px 40px rgba(0,0,0,0.18);
    min-width: 380px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

    .hc-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 300px;
        height: 120px;
        background: radial-gradient(ellipse, rgba(25,118,210,0.10) 0%, transparent 70%);
        pointer-events: none;
    }

/* Pulse ring */
.hc-pulse-wrap {
    position: relative;
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hc-pulse-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid rgba(25,118,210,0.25);
    animation: hc-pulse 1.8s ease-out infinite;
}

    .hc-pulse-ring:nth-child(2) {
        animation-delay: 0.6s;
    }

    .hc-pulse-ring:nth-child(3) {
        animation-delay: 1.2s;
    }

@keyframes hc-pulse {
    0% {
        transform: scale(0.7);
        opacity: 0.8;
    }

    100% {
        transform: scale(1.9);
        opacity: 0;
    }
}

.hc-pulse-core {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e3f2fd;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    font-size: 1.4rem;
}

.hc-icon-err {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #ffebee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    animation: hc-shake 0.5s ease-in-out;
}

@keyframes hc-shake {
    0%, 100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-6px);
    }

    40% {
        transform: translateX(6px);
    }

    60% {
        transform: translateX(-4px);
    }

    80% {
        transform: translateX(4px);
    }
}

/* Node chain */
.hc-chain {
    display: flex;
    align-items: center;
}

.hc-node {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1.5px solid #e0e0e0;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    position: relative;
    z-index: 2;
    transition: background 0.3s, border-color 0.3s;
}

    .hc-node.hc-active {
        background: #e3f2fd;
        border-color: #90caf9;
    }

    .hc-node.hc-done {
        background: #e8f5e9;
        border-color: #a5d6a7;
    }

    .hc-node.hc-failed {
        background: #ffebee;
        border-color: #ef9a9a;
    }

.hc-edge {
    width: 80px;
    height: 2px;
    background: #e0e0e0;
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.hc-edge-fill {
    position: absolute;
    top: 0;
    left: -100%;
    height: 100%;
    width: 100%;
    background: #66bb6a;
    transition: left 0.5s ease;
}

    .hc-edge-fill.hc-filled {
        left: 0;
    }

    .hc-edge-fill.hc-active-flow {
        background: #42a5f5;
        animation: hc-flow 1.2s linear infinite;
    }

@keyframes hc-flow {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

.hc-step-labels {
    display: flex;
    align-items: center;
    font-size: 11px;
    color: #bdbdbd;
}

.hc-sl {
    width: 30px;
    text-align: center;
}

.hc-sl-gap {
    width: 80px;
}

.hc-title {
    font-size: 1rem;
    font-weight: 600;
    color: #212121;
    margin: 0;
}

    .hc-title.hc-danger {
        color: #c62828;
    }

.hc-sub {
    font-size: 0.85rem;
    color: #757575;
    margin: 0;
    line-height: 1.6;
}

.hc-dots::after {
    content: '';
    display: inline-block;
    animation: hc-dot-cycle 1.5s steps(4, end) infinite;
}

@keyframes hc-dot-cycle {
    0% {
        content: '';
    }

    25% {
        content: '.';
    }

    50% {
        content: '..';
    }

    75% {
        content: '...';
    }

    100% {
        content: '';
    }
}

.hc-bar-track {
    width: 100%;
    height: 4px;
    background: #e0e0e0;
    border-radius: 99px;
    overflow: hidden;
}

.hc-bar-fill {
    height: 100%;
    border-radius: 99px;
    background: #1976d2;
    width: 0%;
    transition: width 1s linear;
}

    .hc-bar-fill.hc-danger {
        background: #c62828;
        transition: none;
    }

.hc-btn {
    margin-top: 0.25rem;
    padding: 0.45rem 1.4rem;
    background: transparent;
    color: #1976d2;
    border: 1.5px solid #90caf9;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: background 0.2s, border-color 0.2s;
}

    .hc-btn:hover {
        background: #e3f2fd;
        border-color: #42a5f5;
    }

    .hc-btn:active {
        transform: scale(0.97);
    }
