/* ========================================
   IPforAgents - Data Visualization Components
   CSS-first charts, graphs, and visual elements
   ======================================== */

/* ========================================
   Donut/Pie Charts (conic-gradient)
   ======================================== */

.donut-chart {
    position: relative;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: conic-gradient(
        var(--accent-green) 0deg calc(var(--value, 75) * 3.6deg),
        var(--border) calc(var(--value, 75) * 3.6deg) 360deg
    );
    display: flex;
    align-items: center;
    justify-content: center;
}

.donut-chart::before {
    content: '';
    position: absolute;
    inset: 20%;
    background: var(--bg-card);
    border-radius: 50%;
}

.donut-chart .value {
    position: relative;
    z-index: 1;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-green);
}

/* Animated reveal */
.donut-chart.animate {
    animation: donutReveal 1.5s var(--ease-out) forwards;
}

@keyframes donutReveal {
    from {
        background: conic-gradient(
            var(--accent-green) 0deg 0deg,
            var(--border) 0deg 360deg
        );
    }
}

/* Multi-segment donut */
.donut-multi {
    background: conic-gradient(
        var(--accent-green) 0deg var(--seg1, 120deg),
        var(--accent-cyan) var(--seg1, 120deg) var(--seg2, 240deg),
        var(--accent-purple) var(--seg2, 240deg) var(--seg3, 320deg),
        var(--border) var(--seg3, 320deg) 360deg
    );
}

/* ========================================
   Bar Charts (Flexbox)
   ======================================== */

.bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    height: 120px;
    padding: 0 4px;
}

.bar-chart .bar {
    flex: 1;
    background: linear-gradient(to top, var(--accent-green), var(--accent-cyan));
    border-radius: 4px 4px 0 0;
    min-width: 12px;
    height: var(--height, 50%);
    transform-origin: bottom;
    transform: scaleY(0);
    animation: barGrow 0.6s var(--ease-out) forwards;
    animation-delay: calc(var(--i, 0) * 50ms);
    position: relative;
    transition: filter 0.2s ease;
}

.bar-chart .bar:hover {
    filter: brightness(1.2);
}

.bar-chart .bar::before {
    content: attr(data-value);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    color: var(--text-secondary);
    opacity: 0;
    transition: opacity 0.2s ease;
    padding-bottom: 4px;
}

.bar-chart .bar:hover::before {
    opacity: 1;
}

@keyframes barGrow {
    to { transform: scaleY(1); }
}

/* Horizontal bars */
.bar-chart-horizontal {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bar-chart-horizontal .bar-row {
    display: grid;
    grid-template-columns: 100px 1fr 60px;
    align-items: center;
    gap: 12px;
}

.bar-chart-horizontal .bar-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.bar-chart-horizontal .bar-track {
    height: 8px;
    background: var(--bg-secondary);
    border-radius: 4px;
    overflow: hidden;
}

.bar-chart-horizontal .bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-green), var(--accent-cyan));
    border-radius: 4px;
    width: var(--width, 0%);
    animation: barFillHorizontal 1s var(--ease-out) forwards;
}

@keyframes barFillHorizontal {
    from { width: 0%; }
    to { width: var(--width); }
}

/* ========================================
   Progress/Gauge Circles
   ======================================== */

.progress-ring {
    position: relative;
    width: 100px;
    height: 100px;
}

.progress-ring svg {
    transform: rotate(-90deg);
}

.progress-ring .bg {
    fill: none;
    stroke: var(--border);
    stroke-width: 8;
}

.progress-ring .progress {
    fill: none;
    stroke: url(#gradient-progress);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 283;
    stroke-dashoffset: calc(283 - (283 * var(--percent, 0) / 100));
    animation: progressDraw 1.5s var(--ease-out) forwards;
}

@keyframes progressDraw {
    from { stroke-dashoffset: 283; }
}

.progress-ring .label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
}

/* ========================================
   Timeline Components
   ======================================== */

.timeline {
    position: relative;
    padding-left: 2rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent-green), var(--accent-cyan), var(--accent-purple));
}

.timeline-item {
    position: relative;
    padding-bottom: 2rem;
    opacity: 0;
    transform: translateX(-20px);
    animation: timelineSlideIn 0.5s var(--ease-out) forwards;
    animation-delay: calc(var(--i, 0) * 150ms);
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 4px;
    width: 16px;
    height: 16px;
    background: var(--bg-card);
    border: 3px solid var(--accent-green);
    border-radius: 50%;
    z-index: 1;
}

.timeline-item.major::before {
    width: 20px;
    height: 20px;
    left: calc(-2rem - 2px);
    animation: majorPulse 2s ease-in-out infinite;
}

@keyframes majorPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.4); }
    50% { box-shadow: 0 0 0 8px rgba(0, 255, 136, 0); }
}

@keyframes timelineSlideIn {
    to { opacity: 1; transform: translateX(0); }
}

/* Alternating timeline */
.timeline-alternating {
    padding-left: 0;
    max-width: 800px;
    margin: 0 auto;
}

.timeline-alternating::before {
    left: 50%;
    transform: translateX(-50%);
}

.timeline-alternating .timeline-item {
    width: 45%;
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.timeline-alternating .timeline-item:nth-child(odd) {
    margin-left: 0;
    transform: translateX(20px);
}

.timeline-alternating .timeline-item:nth-child(even) {
    margin-left: 55%;
    transform: translateX(-20px);
}

.timeline-alternating .timeline-item::before {
    left: auto;
    right: -2.5rem;
}

.timeline-alternating .timeline-item:nth-child(even)::before {
    right: auto;
    left: -2.5rem;
}

/* ========================================
   Sparkline Mini Charts
   ======================================== */

.sparkline {
    position: relative;
    height: 40px;
    width: 100%;
}

.sparkline-fill {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 255, 136, 0.3), transparent);
    clip-path: polygon(
        0% 100%,
        0% 80%,
        10% 60%,
        20% 70%,
        30% 50%,
        40% 55%,
        50% 40%,
        60% 45%,
        70% 30%,
        80% 35%,
        90% 20%,
        100% 25%,
        100% 100%
    );
    animation: sparklineReveal 1s var(--ease-out);
}

.sparkline-line {
    position: absolute;
    inset: 0;
    border-bottom: 2px solid var(--accent-green);
    clip-path: polygon(
        0% 80%,
        10% 60%,
        20% 70%,
        30% 50%,
        40% 55%,
        50% 40%,
        60% 45%,
        70% 30%,
        80% 35%,
        90% 20%,
        100% 25%,
        100% 27%,
        90% 22%,
        80% 37%,
        70% 32%,
        60% 47%,
        50% 42%,
        40% 57%,
        30% 52%,
        20% 72%,
        10% 62%,
        0% 82%
    );
}

@keyframes sparklineReveal {
    from { clip-path: polygon(0% 100%, 0% 100%, 10% 100%, 20% 100%, 30% 100%, 40% 100%, 50% 100%, 60% 100%, 70% 100%, 80% 100%, 90% 100%, 100% 100%, 100% 100%); }
}

/* ========================================
   Liquid Fill Effect
   ======================================== */

.liquid-fill {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--bg-secondary);
    border: 3px solid var(--border);
    overflow: hidden;
}

.liquid-fill-inner {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--fill, 0%);
    background: linear-gradient(to top, var(--accent-green), var(--accent-cyan));
    animation: liquidRise 1.5s var(--ease-out) forwards;
}

.liquid-fill-inner::before {
    content: '';
    position: absolute;
    top: -10px;
    left: -50%;
    width: 200%;
    height: 20px;
    background: radial-gradient(ellipse at center, rgba(0, 255, 136, 0.8) 0%, transparent 70%);
    animation: waveMotion 3s ease-in-out infinite;
}

@keyframes liquidRise {
    from { height: 0%; }
    to { height: var(--fill); }
}

@keyframes waveMotion {
    0%, 100% { transform: translateX(0) rotate(0deg); }
    50% { transform: translateX(-25%) rotate(5deg); }
}

.liquid-fill-label {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    z-index: 2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

/* ========================================
   Network Node Visualization
   ======================================== */

.node-network {
    position: relative;
    width: 100%;
    aspect-ratio: 2;
    background: var(--bg-secondary);
    border-radius: 16px;
    overflow: hidden;
}

.network-node {
    position: absolute;
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    border: 2px solid var(--accent-cyan);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    z-index: 2;
    animation: nodeAppear 0.5s var(--ease-out) forwards;
    animation-delay: var(--delay, 0ms);
    opacity: 0;
    transform: scale(0.5);
}

.network-node:hover {
    transform: scale(1.15);
    border-color: var(--accent-green);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.3);
}

.network-node.primary {
    width: 70px;
    height: 70px;
    border-color: var(--accent-green);
    background: linear-gradient(135deg, rgba(0, 255, 136, 0.1), var(--bg-card));
}

@keyframes nodeAppear {
    to { opacity: 1; transform: scale(1); }
}

/* Connection lines between nodes */
.network-connection {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-cyan), transparent);
    transform-origin: left center;
    opacity: 0.5;
    z-index: 1;
}

.network-connection.animated {
    background: linear-gradient(90deg, var(--accent-green), var(--accent-cyan), transparent);
    animation: connectionFlow 2s linear infinite;
    background-size: 200% 100%;
}

@keyframes connectionFlow {
    from { background-position: 200% 0; }
    to { background-position: -200% 0; }
}

/* ========================================
   Starfield Background
   ======================================== */

.starfield {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.starfield::before,
.starfield::after {
    content: '';
    position: absolute;
    inset: 0;
}

.starfield::before {
    background-image:
        radial-gradient(2px 2px at 20px 30px, rgba(255,255,255,0.8), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.6), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(255,255,255,0.9), transparent),
        radial-gradient(2px 2px at 130px 80px, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 160px 120px, rgba(255,255,255,0.7), transparent),
        radial-gradient(2px 2px at 200px 50px, rgba(255,255,255,0.6), transparent);
    background-size: 250px 150px;
    animation: starTwinkle 4s ease-in-out infinite alternate;
}

.starfield::after {
    background-image:
        radial-gradient(1px 1px at 50px 100px, rgba(255,255,255,0.5), transparent),
        radial-gradient(1px 1px at 100px 20px, rgba(255,255,255,0.6), transparent),
        radial-gradient(2px 2px at 150px 90px, rgba(255,255,255,0.4), transparent),
        radial-gradient(1px 1px at 180px 140px, rgba(255,255,255,0.7), transparent);
    background-size: 200px 180px;
    animation: starTwinkle 3s ease-in-out infinite alternate-reverse;
}

@keyframes starTwinkle {
    from { opacity: 0.4; }
    to { opacity: 0.8; }
}

/* ========================================
   Version Orb (for changelog)
   ======================================== */

.version-orb {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--accent-green), var(--accent-cyan));
    box-shadow:
        0 0 20px rgba(0, 255, 136, 0.4),
        0 0 40px rgba(0, 255, 136, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    animation: orbFloat 4s ease-in-out infinite;
}

.version-orb.latest {
    width: 80px;
    height: 80px;
    font-size: 1.1rem;
    animation: orbPulseGlow 2s ease-in-out infinite;
}

@keyframes orbFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes orbPulseGlow {
    0%, 100% {
        box-shadow:
            0 0 30px rgba(0, 255, 136, 0.5),
            0 0 60px rgba(0, 255, 136, 0.3),
            0 0 90px rgba(0, 212, 255, 0.2);
        transform: scale(1);
    }
    50% {
        box-shadow:
            0 0 50px rgba(0, 255, 136, 0.7),
            0 0 100px rgba(0, 255, 136, 0.4),
            0 0 150px rgba(0, 212, 255, 0.3);
        transform: scale(1.05);
    }
}

/* ========================================
   Category/Tag Badges
   ======================================== */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-new {
    background: rgba(0, 255, 136, 0.15);
    color: var(--accent-green);
}

.badge-fix {
    background: rgba(0, 212, 255, 0.15);
    color: var(--accent-cyan);
}

.badge-improved {
    background: rgba(168, 85, 247, 0.15);
    color: var(--accent-purple);
}

.badge-breaking {
    background: rgba(255, 68, 68, 0.15);
    color: var(--accent-red);
}

/* Animated badge */
.badge.animated {
    position: relative;
    overflow: hidden;
}

.badge.animated::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
    animation: badgeShine 3s ease-in-out infinite;
}

@keyframes badgeShine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

/* ========================================
   Holographic Seal (for legal pages)
   ======================================== */

.holo-seal {
    position: relative;
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.holo-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid transparent;
    background:
        linear-gradient(var(--bg-primary), var(--bg-primary)) padding-box,
        conic-gradient(from 0deg, var(--accent-green), var(--accent-cyan), var(--accent-purple), var(--accent-green)) border-box;
}

.holo-ring:nth-child(1) {
    inset: 0;
    animation: sealSpin 10s linear infinite;
}

.holo-ring:nth-child(2) {
    inset: 20px;
    animation: sealSpin 15s linear infinite reverse;
}

.holo-ring:nth-child(3) {
    inset: 40px;
    animation: sealSpin 8s linear infinite;
}

.holo-seal .seal-text {
    text-align: center;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-secondary);
    animation: sealTextPulse 3s ease-in-out infinite;
}

@keyframes sealSpin {
    to { transform: rotate(360deg); }
}

@keyframes sealTextPulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* ========================================
   Neural Network Nodes
   ======================================== */

.neural-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 40px;
    padding: 40px;
    position: relative;
}

.neural-node {
    width: 16px;
    height: 16px;
    background: var(--accent-green);
    border-radius: 50%;
    position: relative;
    animation: neuralPulse 2s ease-in-out infinite;
    animation-delay: var(--delay, 0ms);
}

.neural-node::before {
    content: '';
    position: absolute;
    inset: -4px;
    border: 2px solid var(--accent-green);
    border-radius: 50%;
    opacity: 0;
    animation: neuralRing 2s ease-out infinite;
    animation-delay: var(--delay, 0ms);
}

@keyframes neuralPulse {
    0%, 100% { transform: scale(1); opacity: 0.7; }
    50% { transform: scale(1.2); opacity: 1; }
}

@keyframes neuralRing {
    0% { transform: scale(1); opacity: 0.5; }
    100% { transform: scale(2); opacity: 0; }
}

/* ========================================
   Responsive Breakpoints
   Tablet, Mobile, and Foldable Support
   ======================================== */

/* Tablet Portrait & Mobile (768px and below) */
@media (max-width: 768px) {
    /* Donut Chart - Fluid sizing */
    .donut-chart {
        width: var(--viz-donut, clamp(100px, 20vw, 150px));
        height: var(--viz-donut, clamp(100px, 20vw, 150px));
    }

    .donut-chart .value {
        font-size: 1.25rem;
    }

    /* Bar Charts */
    .bar-chart {
        height: var(--viz-bar-height, 100px);
        gap: 6px;
    }

    .bar-chart .bar {
        min-width: 8px;
    }

    .bar-chart .bar::before {
        font-size: 0.6rem;
    }

    /* Horizontal Bar - Compact grid */
    .bar-chart-horizontal .bar-row {
        grid-template-columns: var(--bar-label-width, 80px) 1fr 50px;
        gap: 8px;
    }

    .bar-chart-horizontal .bar-label {
        font-size: 0.75rem;
    }

    .bar-chart-horizontal .bar-track {
        height: 6px;
    }

    /* Progress Ring */
    .progress-ring {
        width: var(--viz-ring, clamp(70px, 15vw, 100px));
        height: var(--viz-ring, clamp(70px, 15vw, 100px));
    }

    .progress-ring .label {
        font-size: 1rem;
    }

    /* Timeline - Single column layout */
    .timeline {
        padding-left: 1.5rem;
    }

    .timeline-item::before {
        width: 12px;
        height: 12px;
        left: -1.5rem;
    }

    .timeline-item.major::before {
        width: 14px;
        height: 14px;
        left: calc(-1.5rem - 1px);
    }

    /* Alternating Timeline - Stack to single column */
    .timeline-alternating::before {
        left: 20px;
    }

    .timeline-alternating .timeline-item,
    .timeline-alternating .timeline-item:nth-child(odd),
    .timeline-alternating .timeline-item:nth-child(even) {
        width: calc(100% - 50px);
        margin-left: 50px;
        transform: none;
        padding: 1rem;
    }

    .timeline-alternating .timeline-item::before,
    .timeline-alternating .timeline-item:nth-child(odd)::before,
    .timeline-alternating .timeline-item:nth-child(even)::before {
        left: -2rem;
        right: auto;
    }

    /* Liquid Fill */
    .liquid-fill {
        width: var(--viz-liquid, clamp(80px, 18vw, 120px));
        height: var(--viz-liquid, clamp(80px, 18vw, 120px));
    }

    .liquid-fill-label {
        font-size: 1.25rem;
    }

    /* Network Nodes */
    .network-node {
        width: var(--viz-node, 40px);
        height: var(--viz-node, 40px);
        font-size: 0.65rem;
    }

    .network-node.primary {
        width: var(--viz-node-lg, 56px);
        height: var(--viz-node-lg, 56px);
    }

    /* Version Orbs */
    .version-orb {
        width: var(--viz-orb-md, 50px);
        height: var(--viz-orb-md, 50px);
        font-size: 0.8rem;
    }

    .version-orb.latest {
        width: var(--viz-orb-lg, 65px);
        height: var(--viz-orb-lg, 65px);
        font-size: 0.95rem;
    }

    /* Holographic Seal */
    .holo-seal {
        width: var(--holo-seal, clamp(120px, 25vw, 180px));
        height: var(--holo-seal, clamp(120px, 25vw, 180px));
    }

    .holo-seal .seal-text {
        font-size: 0.6rem;
        letter-spacing: 1px;
    }

    /* Neural Grid - 3 columns */
    .neural-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
        padding: 24px;
    }

    .neural-node {
        width: 12px;
        height: 12px;
    }

    /* Sparkline */
    .sparkline {
        height: 30px;
    }

    /* Badges */
    .badge {
        padding: 3px 10px;
        font-size: 0.7rem;
    }
}

/* Small Mobile (480px and below) */
@media (max-width: 480px) {
    /* Donut Chart */
    .donut-chart {
        width: 100px;
        height: 100px;
    }

    .donut-chart .value {
        font-size: 1rem;
    }

    /* Bar Chart */
    .bar-chart {
        height: 80px;
        gap: 4px;
    }

    .bar-chart .bar {
        min-width: 6px;
    }

    /* Horizontal Bar - Stack labels on tiny screens */
    .bar-chart-horizontal .bar-row {
        grid-template-columns: 60px 1fr 40px;
        gap: 6px;
    }

    .bar-chart-horizontal .bar-label {
        font-size: 0.7rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    /* Progress Ring */
    .progress-ring {
        width: 70px;
        height: 70px;
    }

    .progress-ring .label {
        font-size: 0.9rem;
    }

    /* Liquid Fill */
    .liquid-fill {
        width: 80px;
        height: 80px;
    }

    .liquid-fill-label {
        font-size: 1rem;
    }

    /* Neural Grid - 2 columns */
    .neural-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        padding: 16px;
    }

    .neural-node {
        width: 10px;
        height: 10px;
    }

    /* Version Orbs */
    .version-orb {
        width: 45px;
        height: 45px;
        font-size: 0.7rem;
    }

    .version-orb.latest {
        width: 58px;
        height: 58px;
        font-size: 0.85rem;
    }

    /* Holographic Seal */
    .holo-seal {
        width: 120px;
        height: 120px;
    }

    .holo-seal .seal-text {
        font-size: 0.55rem;
    }

    /* Network Nodes */
    .network-node {
        width: 35px;
        height: 35px;
        font-size: 0.6rem;
    }

    .network-node.primary {
        width: 50px;
        height: 50px;
    }

    /* Timeline items compact */
    .timeline-alternating .timeline-item {
        padding: 0.75rem;
    }
}

/* Foldable Inner Screen (400px and below) */
@media (max-width: 400px) {
    /* Donut Chart - Minimum viable */
    .donut-chart {
        width: 80px;
        height: 80px;
    }

    .donut-chart .value {
        font-size: 0.9rem;
    }

    /* Bar Chart */
    .bar-chart {
        height: 60px;
    }

    /* Progress Ring */
    .progress-ring {
        width: 60px;
        height: 60px;
    }

    .progress-ring .label {
        font-size: 0.8rem;
    }

    /* Liquid Fill */
    .liquid-fill {
        width: 70px;
        height: 70px;
    }

    .liquid-fill-label {
        font-size: 0.9rem;
    }

    /* Version Orbs */
    .version-orb {
        width: 40px;
        height: 40px;
        font-size: 0.65rem;
    }

    .version-orb.latest {
        width: 52px;
        height: 52px;
        font-size: 0.75rem;
    }

    /* Holographic Seal */
    .holo-seal {
        width: 100px;
        height: 100px;
    }

    /* Network Nodes */
    .network-node {
        width: 30px;
        height: 30px;
        font-size: 0.55rem;
    }

    .network-node.primary {
        width: 42px;
        height: 42px;
    }

    /* Neural Grid - Single row scroll */
    .neural-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        padding: 12px;
    }

    /* Horizontal bar - Stack vertically */
    .bar-chart-horizontal .bar-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .bar-chart-horizontal .bar-label {
        text-align: left;
    }

    .bar-chart-horizontal .bar-value {
        text-align: right;
    }
}
