/* _content/Ayva.Network.Topology/Components/NocDashboard.razor.rz.scp.css */
/* NOC Dashboard - Blazor CSS Isolation */

/* ===== Entry Animation ===== */
[b-yalkpicu78] .animate-panel-enter {
    animation: fadeInUp-b-yalkpicu78 0.4s ease-out;
}

@keyframes fadeInUp-b-yalkpicu78 {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Stagger animations for cards */
[b-yalkpicu78] .stagger-1 { animation-delay: 0.05s; }
[b-yalkpicu78] .stagger-2 { animation-delay: 0.1s; }
[b-yalkpicu78] .stagger-3 { animation-delay: 0.15s; }
[b-yalkpicu78] .stagger-4 { animation-delay: 0.2s; }
[b-yalkpicu78] .stagger-5 { animation-delay: 0.25s; }
[b-yalkpicu78] .stagger-6 { animation-delay: 0.3s; }
[b-yalkpicu78] .stagger-7 { animation-delay: 0.35s; }
[b-yalkpicu78] .stagger-8 { animation-delay: 0.4s; }
[b-yalkpicu78] .stagger-9 { animation-delay: 0.45s; }
[b-yalkpicu78] .stagger-10 { animation-delay: 0.5s; }
[b-yalkpicu78] .stagger-11 { animation-delay: 0.55s; }
[b-yalkpicu78] .stagger-12 { animation-delay: 0.6s; }
[b-yalkpicu78] .stagger-13 { animation-delay: 0.65s; }
[b-yalkpicu78] .stagger-14 { animation-delay: 0.7s; }
[b-yalkpicu78] .stagger-15 { animation-delay: 0.75s; }
[b-yalkpicu78] .stagger-16 { animation-delay: 0.8s; }
[b-yalkpicu78] .stagger-17 { animation-delay: 0.85s; }
[b-yalkpicu78] .stagger-18 { animation-delay: 0.9s; }
[b-yalkpicu78] .stagger-19 { animation-delay: 0.95s; }
[b-yalkpicu78] .stagger-20 { animation-delay: 1.0s; }

/* ===== Dashboard Container ===== */
[b-yalkpicu78] .noc-dashboard {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    padding: var(--space-md);
    height: 100%;
    overflow-y: auto;
}

/* ===== TOP STATUS BAR ===== */
[b-yalkpicu78] .noc-status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-md);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    flex-shrink: 0;
}

[b-yalkpicu78] .status-metrics {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

[b-yalkpicu78] .status-metric {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

[b-yalkpicu78] .metric-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

[b-yalkpicu78] .metric-icon-primary {
    background: var(--accent-color-15);
    color: var(--accent-color);
}

[b-yalkpicu78] .metric-icon-success {
    background: var(--success-bg);
    color: var(--success-color);
}

[b-yalkpicu78] .metric-icon-error {
    background: var(--error-bg);
    color: var(--error-color);
}

[b-yalkpicu78] .metric-icon-warning {
    background: var(--warning-bg);
    color: var(--warning-color);
}

[b-yalkpicu78] .metric-icon-info {
    background: var(--info-bg);
    color: var(--info-color);
}

[b-yalkpicu78] .metric-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

[b-yalkpicu78] .metric-label {
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

[b-yalkpicu78] .metric-value {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

[b-yalkpicu78] .metric-value-success { color: var(--success-color); }
[b-yalkpicu78] .metric-value-error { color: var(--error-color); }
[b-yalkpicu78] .metric-value-warning { color: var(--warning-color); }

[b-yalkpicu78] .status-controls {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    flex-shrink: 0;
}

/* ===== Loading State ===== */
[b-yalkpicu78] .noc-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

/* ===== Main Content ===== */
[b-yalkpicu78] .noc-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    flex: 1;
    min-height: 0;
}

/* ===== Section Shared ===== */
[b-yalkpicu78] .noc-section {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    animation: fadeInUp-b-yalkpicu78 0.4s ease-out both;
}

[b-yalkpicu78] .section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    flex-wrap: wrap;
}

[b-yalkpicu78] .section-head-left {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

[b-yalkpicu78] .section-head-right {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

[b-yalkpicu78] .section-title {
    font-size: var(--text-sm);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
}

[b-yalkpicu78] .noc-filter-select {
    max-width: 140px;
    min-width: 100px;
}

/* ===== DEVICE HEATMAP GRID ===== */
[b-yalkpicu78] .heatmap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-sm);
    max-height: 480px;
    overflow-y: auto;
    padding-right: var(--space-xs);
}

[b-yalkpicu78] .heatmap-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: var(--space-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    animation: fadeInUp-b-yalkpicu78 0.3s ease-out both;
}

[b-yalkpicu78] .heatmap-card:hover {
    transform: translateY(-2px);
    border-color: var(--accent-color);
    box-shadow: var(--shadow-sm);
}

[b-yalkpicu78] .heatmap-card.health-good {
    border-left: 3px solid var(--success-color);
}

[b-yalkpicu78] .heatmap-card.health-warning {
    border-left: 3px solid var(--warning-color);
}

[b-yalkpicu78] .heatmap-card.health-critical {
    border-left: 3px solid var(--error-color);
}

[b-yalkpicu78] .heatmap-card-header {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    margin-bottom: var(--space-xs);
}

[b-yalkpicu78] .device-name {
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

[b-yalkpicu78] .device-status-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    flex-shrink: 0;
}

[b-yalkpicu78] .device-status-dot.large {
    width: 12px;
    height: 12px;
}

[b-yalkpicu78] .dot-online {
    background: var(--success-color);
    box-shadow: 0 0 6px var(--success-color-40);
}

[b-yalkpicu78] .dot-degraded {
    background: var(--warning-color);
    animation: pulse-dot-b-yalkpicu78 1.5s ease-in-out infinite;
}

[b-yalkpicu78] .dot-offline {
    background: var(--error-color);
    box-shadow: 0 0 6px var(--error-color-40);
}

[b-yalkpicu78] .dot-unknown {
    background: var(--text-muted);
}

@keyframes pulse-dot-b-yalkpicu78 {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

[b-yalkpicu78] .heatmap-card-body {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

[b-yalkpicu78] .heatmap-metric {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

[b-yalkpicu78] .heatmap-metric-label {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

[b-yalkpicu78] .heatmap-metric-value {
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    font-family: var(--font-mono);
}

[b-yalkpicu78] .latency-good { color: var(--success-color); }
[b-yalkpicu78] .latency-warning { color: var(--warning-color); }
[b-yalkpicu78] .latency-critical { color: var(--error-color); }
[b-yalkpicu78] .latency-unknown { color: var(--text-muted); }

/* Heatmap Bars */
[b-yalkpicu78] .heatmap-bars {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

[b-yalkpicu78] .heatmap-bar-row {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

[b-yalkpicu78] .bar-label {
    font-size: 0.625rem;
    color: var(--text-muted);
    width: 28px;
    flex-shrink: 0;
    font-family: var(--font-mono);
}

[b-yalkpicu78] .bar-track {
    flex: 1;
    height: 4px;
    background: var(--border-color);
    border-radius: var(--radius-full);
    overflow: hidden;
}

[b-yalkpicu78] .bar-fill {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width var(--transition-normal);
}

[b-yalkpicu78] .bar-good { background: var(--success-color); }
[b-yalkpicu78] .bar-warning { background: var(--warning-color); }
[b-yalkpicu78] .bar-critical { background: var(--error-color); }
[b-yalkpicu78] .bar-unknown { background: var(--text-muted); }

[b-yalkpicu78] .bar-value {
    font-size: 0.625rem;
    color: var(--text-secondary);
    width: 28px;
    text-align: right;
    flex-shrink: 0;
    font-family: var(--font-mono);
}

/* ===== BOTTOM ROW ===== */
[b-yalkpicu78] .noc-bottom-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
    min-height: 0;
}

/* ===== BANDWIDTH SECTION ===== */
[b-yalkpicu78] .bandwidth-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

[b-yalkpicu78] .bandwidth-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: var(--space-xs) 0;
    border-bottom: 1px solid var(--border-subtle);
}

[b-yalkpicu78] .bandwidth-item:last-child {
    border-bottom: none;
}

[b-yalkpicu78] .bandwidth-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: 0;
}

[b-yalkpicu78] .bandwidth-name {
    font-size: var(--text-xs);
    font-weight: var(--font-medium);
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

[b-yalkpicu78] .bandwidth-rates {
    display: flex;
    gap: var(--space-sm);
    font-size: var(--text-xs);
    font-family: var(--font-mono);
}

[b-yalkpicu78] .rate-tx { color: var(--info-color); }
[b-yalkpicu78] .rate-rx { color: var(--success-color); }

[b-yalkpicu78] .bandwidth-bar-wrapper {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

[b-yalkpicu78] .bandwidth-bar {
    flex: 1;
    height: 6px;
    background: var(--border-color);
    border-radius: var(--radius-full);
    overflow: hidden;
}

[b-yalkpicu78] .bandwidth-bar-fill {
    height: 100%;
    border-radius: var(--radius-full);
    transition: width var(--transition-normal);
}

[b-yalkpicu78] .bandwidth-bar-fill.util-good { background: var(--success-color); }
[b-yalkpicu78] .bandwidth-bar-fill.util-warning { background: var(--warning-color); }
[b-yalkpicu78] .bandwidth-bar-fill.util-critical { background: var(--error-color); }

[b-yalkpicu78] .bandwidth-percent {
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    font-family: var(--font-mono);
    min-width: 32px;
    text-align: right;
}

[b-yalkpicu78] .util-good { color: var(--success-color); }
[b-yalkpicu78] .util-warning { color: var(--warning-color); }
[b-yalkpicu78] .util-critical { color: var(--error-color); }

/* ===== ALERT FEED ===== */
[b-yalkpicu78] .alert-feed {
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

[b-yalkpicu78] .alert-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-sm);
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

[b-yalkpicu78] .alert-item:hover {
    background: var(--bg-hover);
}

[b-yalkpicu78] .alert-icon-wrapper {
    width: 28px;
    height: 28px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

[b-yalkpicu78] .alert-icon-wrapper.severity-error {
    background: var(--error-bg);
    color: var(--error-color);
}

[b-yalkpicu78] .alert-icon-wrapper.severity-warning {
    background: var(--warning-bg);
    color: var(--warning-color);
}

[b-yalkpicu78] .alert-icon-wrapper.severity-success {
    background: var(--success-bg);
    color: var(--success-color);
}

[b-yalkpicu78] .alert-icon-wrapper.severity-info {
    background: var(--info-bg);
    color: var(--info-color);
}

[b-yalkpicu78] .alert-content {
    flex: 1;
    min-width: 0;
}

[b-yalkpicu78] .alert-description {
    font-size: var(--text-xs);
    color: var(--text-primary);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

[b-yalkpicu78] .alert-meta {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-top: 2px;
    flex-wrap: wrap;
}

[b-yalkpicu78] .alert-device {
    font-size: var(--text-xs);
    color: var(--accent-color);
    font-weight: var(--font-medium);
}

[b-yalkpicu78] .alert-time {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

[b-yalkpicu78] .alert-active-chip {
    margin: 0;
}

/* ===== Empty States ===== */
[b-yalkpicu78] .noc-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-xl);
    grid-column: 1 / -1;
}

[b-yalkpicu78] .noc-empty-small {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: var(--space-md);
}

/* ===== DEVICE DETAIL DRAWER ===== */
[b-yalkpicu78] .noc-detail-drawer {
    background: var(--bg-primary) !important;
}

[b-yalkpicu78] .drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md);
    border-bottom: 1px solid var(--border-color);
}

[b-yalkpicu78] .drawer-title-group {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

[b-yalkpicu78] .drawer-body {
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
    overflow-y: auto;
}

[b-yalkpicu78] .drawer-section {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

[b-yalkpicu78] .drawer-section-title {
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

[b-yalkpicu78] .drawer-info-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

[b-yalkpicu78] .drawer-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-xs) 0;
    border-bottom: 1px solid var(--border-subtle);
}

[b-yalkpicu78] .drawer-info-row:last-child {
    border-bottom: none;
}

[b-yalkpicu78] .info-label {
    font-size: var(--text-xs);
    color: var(--text-secondary);
}

[b-yalkpicu78] .info-value {
    font-size: var(--text-sm);
    color: var(--text-primary);
    font-weight: var(--font-medium);
}

[b-yalkpicu78] .info-value.mono {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
}

/* Drawer Events */
[b-yalkpicu78] .drawer-event {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    padding: var(--space-xs) 0;
    border-bottom: 1px solid var(--border-subtle);
}

[b-yalkpicu78] .drawer-event:last-child {
    border-bottom: none;
}

[b-yalkpicu78] .drawer-event.severity-error { color: var(--error-color); }
[b-yalkpicu78] .drawer-event.severity-warning { color: var(--warning-color); }
[b-yalkpicu78] .drawer-event.severity-success { color: var(--success-color); }
[b-yalkpicu78] .drawer-event.severity-info { color: var(--info-color); }

[b-yalkpicu78] .drawer-event-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: var(--text-xs);
    color: var(--text-primary);
}

[b-yalkpicu78] .drawer-event-time {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    [b-yalkpicu78] .noc-status-bar {
        flex-direction: column;
        align-items: stretch;
    }

    [b-yalkpicu78] .status-metrics {
        gap: var(--space-sm);
        justify-content: space-between;
    }

    [b-yalkpicu78] .status-controls {
        justify-content: flex-end;
    }

    [b-yalkpicu78] .noc-bottom-row {
        grid-template-columns: 1fr;
    }

    [b-yalkpicu78] .section-head {
        flex-direction: column;
        align-items: flex-start;
    }

    [b-yalkpicu78] .section-head-right {
        width: 100%;
    }

    [b-yalkpicu78] .noc-filter-select {
        flex: 1;
        min-width: 0;
    }

    [b-yalkpicu78] .heatmap-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }
}

@media (max-width: 640px) {
    [b-yalkpicu78] .noc-dashboard {
        padding: var(--space-sm);
    }

    [b-yalkpicu78] .status-metric {
        flex: 1;
        min-width: 80px;
    }

    [b-yalkpicu78] .heatmap-grid {
        grid-template-columns: 1fr 1fr;
        max-height: 360px;
    }

    [b-yalkpicu78] .metric-value {
        font-size: var(--text-base);
    }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    [b-yalkpicu78] .heatmap-card,
    [b-yalkpicu78] .noc-section,
    [b-yalkpicu78] .animate-panel-enter {
        animation: none !important;
    }
}
/* _content/Ayva.Network.Topology/Components/TopologyPanel.razor.rz.scp.css */
/* TopologyPanel.razor.css
 * Component-specific styles for Network Topology Map
 * See docs/UI_DESIGN.md for guidelines
 */

/* Main container layout */
[b-vtyzvphk54] .topology-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    gap: var(--space-sm);
    width: 100%;
}

/* Map container styling */
[b-vtyzvphk54] .map-container {
    flex: 1;
    position: relative;
    min-width: 0;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

/* Map controls overlay */
[b-vtyzvphk54] .map-controls {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

/* Side panel styling */
[b-vtyzvphk54] .side-panel {
    width: 20rem;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    overflow-y: auto;
}

/* Statistics card */
[b-vtyzvphk54] .stats-card {
    background: var(--bg-card-solid);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
}

[b-vtyzvphk54] .stats-card:hover {
    border-color: var(--accent-color);
}

/* Display options panel */
[b-vtyzvphk54] .display-options {
    background: var(--bg-card-solid);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
}

/* OSPF metric legend */
[b-vtyzvphk54] .ospf-legend {
    margin: var(--space-sm) 0;
    padding: var(--space-sm);
    background: var(--bg-card-solid);
    border-radius: var(--radius-sm);
}

[b-vtyzvphk54] .ospf-legend-chips {
    display: flex;
    gap: var(--space-xs);
    margin-top: var(--space-xs);
    flex-wrap: wrap;
}

/* Problem indicators */
[b-vtyzvphk54] .asymmetric-links-card {
    background: var(--warning-bg);
    border: 1px solid var(--warning-border);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
}

[b-vtyzvphk54] .disconnected-sites-card {
    background: var(--error-bg);
    border: 1px solid var(--error-border);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
}

/* Selected site/link details */
[b-vtyzvphk54] .selected-site-card {
    background: var(--info-bg);
    border: 1px solid var(--info-border);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
}

[b-vtyzvphk54] .selected-link-card {
    background: var(--success-bg);
    border: 1px solid var(--success-border);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
}

/* Clickable chips */
[b-vtyzvphk54] .clickable-chip {
    cursor: pointer;
    transition: all var(--transition-fast);
}

[b-vtyzvphk54] .clickable-chip:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-sm);
}

/* Path display */
[b-vtyzvphk54] .path-display {
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

[b-vtyzvphk54] .path-direction-ingress {
    color: var(--info-color);
}

[b-vtyzvphk54] .path-direction-egress {
    color: var(--secondary-accent);
}

[b-vtyzvphk54] .path-metric {
    color: var(--text-muted);
}

/* Loading indicator */
[b-vtyzvphk54] .map-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

/* Device chips in site details */
[b-vtyzvphk54] .device-chip {
    margin: 2px;
}

/* Timestamp display */
[b-vtyzvphk54] .timestamp-display {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    [b-vtyzvphk54] .side-panel {
        width: 16rem;
    }
}

@media (max-width: 768px) {
    [b-vtyzvphk54] .topology-container {
        flex-direction: column;
    }

    [b-vtyzvphk54] .side-panel {
        width: 100%;
        max-height: 200px;
    }
}
