.visualization-container {
    flex-wrap: nowrap;
    flex-direction: column;
}

.traffic-source {
    margin-bottom: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.balancer {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0.75rem;
    z-index: 10;
}

.balancer .viz-badge,
.server .viz-badge {
    width: 60px;
    height: 60px;
    border-radius: 16px;
}

.balancer .viz-badge svg,
.server .viz-badge svg {
    width: 30px;
    height: 30px;
}

.hub-bus {
    width: 240px;
    margin: 0 auto 1rem;
}

.server-pool {
    display: flex;
    gap: 1rem;
    justify-content: center;
    width: 100%;
}

.server {
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 0.75rem;
    padding-top: 1.5rem;
    border-radius: 8px;
    text-align: center;
    width: 100px;
    transition: transform 0.15s;
}

.visualization-container .controls {
    margin-top: 0.75rem;
}

.server::before {
    content: "";
    position: absolute;
    top: -14px;
    left: 50%;
    width: 2px;
    height: 14px;
    background: color-mix(in srgb, #22C55E 45%, transparent);
    transform: translateX(-50%);
}

.server.active {
    border-color: #22c55e;
    transform: scale(1.05);
}

.server.active .viz-badge {
    transform: scale(1.08);
    box-shadow: 0 0 30px color-mix(in srgb, #22C55E 55%, transparent);
}

.load-bar {
    width: 100%;
    height: 6px;
    background: #334155;
    border-radius: 3px;
    margin-top: 10px;
    overflow: hidden;
}

.fill {
    height: 100%;
    background: #22c55e;
    transition: width 0.3s;
}

/* Flying Packet */
.request-packet {
    position: fixed;
    /* Easier to animate across containers */
    width: 20px;
    height: 20px;
    background: #f59e0b;
    border-radius: 50%;
    z-index: 20;
    pointer-events: none;
    box-shadow: 0 0 10px #f59e0b;
}