/* Abstract Cybernetic & Neural UI Elements */

/* Glowing HUD telemetry panels */
.hud-panel {
    background: radial-gradient(circle at top right, rgba(6, 182, 212, 0.08), transparent 60%),
                rgba(13, 18, 29, 0.75);
    border: 1px solid rgba(6, 182, 212, 0.25);
    border-radius: var(--radius-lg);
    position: relative;
    padding: 1.25rem;
}

.hud-panel::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    border-top: 2px solid var(--primary-cyan);
    border-left: 2px solid var(--primary-cyan);
    border-top-left-radius: var(--radius-lg);
}

.hud-panel::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 24px;
    height: 24px;
    border-bottom: 2px solid var(--accent-indigo);
    border-right: 2px solid var(--accent-indigo);
    border-bottom-right-radius: var(--radius-lg);
}

/* Digital Employee Cards */
.agent-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 1.1rem;
}

.agent-card {
    background: linear-gradient(145deg, rgba(19, 27, 46, 0.9), rgba(13, 18, 29, 0.85));
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 1.1rem;
    position: relative;
    transition: var(--transition-smooth);
    cursor: pointer;
    overflow: hidden;
}

.agent-card:hover {
    border-color: var(--primary-cyan);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(6, 182, 212, 0.18);
}

.agent-card.active-pulse::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-cyan), transparent);
    animation: scanBar 3s infinite linear;
}

@keyframes scanBar {
    0% { left: -100%; }
    100% { left: 100%; }
}

.agent-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.75rem;
}

.agent-avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid rgba(6, 182, 212, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
}

.agent-info h4 {
    font-size: 0.92rem;
    font-weight: 700;
    color: #fff;
}

.agent-info span {
    font-size: 0.72rem;
    color: var(--primary-cyan);
    font-weight: 500;
}

.agent-stats {
    display: flex;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.3);
    padding: 0.45rem 0.65rem;
    border-radius: var(--radius-sm);
    margin: 0.6rem 0;
    font-size: 0.72rem;
}

.agent-stats-val {
    font-weight: 700;
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-cyan);
}

.agent-current-task {
    font-size: 0.74rem;
    color: var(--text-muted);
    line-height: 1.35;
    background: rgba(255, 255, 255, 0.02);
    border-left: 2px solid var(--accent-indigo);
    padding: 0.4rem 0.6rem;
    border-radius: 0 6px 6px 0;
}

/* Neural Confidence Gauge Ring */
.gauge-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 140px;
    height: 140px;
}

.gauge-svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
}

.gauge-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 8;
}

.gauge-progress {
    fill: none;
    stroke: url(#cyanGradient);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 380;
    stroke-dashoffset: 45;
    transition: stroke-dashoffset 1s ease-in-out;
}

.gauge-center-text {
    position: absolute;
    text-align: center;
}

.gauge-num {
    font-size: 1.4rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    color: #fff;
}

.gauge-label {
    font-size: 0.68rem;
    color: var(--primary-cyan);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Real-Time Event Stream Ticker */
.event-ticker {
    max-height: 380px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.event-log-item {
    background: rgba(13, 18, 29, 0.6);
    border-left: 3px solid var(--primary-cyan);
    padding: 0.65rem 0.85rem;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 0.78rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    transition: var(--transition-smooth);
    animation: slideInEvent 0.3s ease-out;
}

@keyframes slideInEvent {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

.event-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.7rem;
    color: var(--text-dim);
}

.event-agent-tag {
    color: var(--text-cyan);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.event-content {
    color: var(--text-main);
    line-height: 1.35;
}

/* Warehouse Rack Visual Grid */
.warehouse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1.25rem;
}

.rack-card {
    background: rgba(19, 27, 46, 0.7);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    padding: 1rem;
    position: relative;
    border-top: 3px solid var(--primary-cyan);
}

.rack-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.6rem;
    font-weight: 700;
    font-size: 0.85rem;
}

.rack-progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
    margin: 0.6rem 0;
}

.rack-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-cyan), var(--accent-emerald));
    border-radius: 4px;
}

/* Audio-wave & Neural Pulse Line */
.pulse-line {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    height: 16px;
}

.pulse-bar {
    width: 3px;
    height: 100%;
    background: var(--primary-cyan);
    border-radius: 2px;
    animation: soundWave 1.2s infinite ease-in-out;
}
.pulse-bar:nth-child(2) { animation-delay: 0.2s; }
.pulse-bar:nth-child(3) { animation-delay: 0.4s; }
.pulse-bar:nth-child(4) { animation-delay: 0.1s; }

@keyframes soundWave {
    0%, 100% { height: 4px; }
    50% { height: 16px; }
}
