* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #1a1a2e;
    color: #333;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

.container {
    background: #16213e;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

header {
    background: linear-gradient(135deg, #0f3460 0%, #1a1a2e 100%);
    color: white;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 10;
    flex-shrink: 0;
}

header h1 {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
}

/* Row 1: Brand + Actions — SINGLE LINE */
.header-row-1 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px 10px;
    gap: 8px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-wrap: nowrap;
    overflow-x: auto;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.header-stats {
    display: flex;
    gap: 4px;
    align-items: center;
}

.header-stats span {
    background: rgba(255, 255, 255, 0.12);
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 11px;
    white-space: nowrap;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
    flex-shrink: 0;
}

.btn-group {
    display: flex;
    gap: 1px;
    background: rgba(255,255,255,0.06);
    border-radius: 6px;
    padding: 2px;
}

.btn-group .menu-btn {
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 4px;
    background: rgba(255,255,255,0.08);
    border: none;
    color: white;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    font-weight: 500;
}

.btn-group .menu-btn:hover {
    background: rgba(255,255,255,0.22);
    transform: none;
    box-shadow: none;
}

.btn-group .menu-btn.capture-btn { background: rgba(220, 50, 50, 0.3); }
.btn-group .menu-btn.capture-btn:hover { background: rgba(220, 50, 50, 0.5); }
.btn-group .menu-btn.report-btn { background: rgba(100, 180, 50, 0.3); }
.btn-group .menu-btn.report-btn:hover { background: rgba(100, 180, 50, 0.5); }
.btn-group .menu-btn.audit-btn { background: rgba(46, 116, 181, 0.4); }
.btn-group .menu-btn.audit-btn:hover { background: rgba(46, 116, 181, 0.6); }
.btn-group .menu-btn.shadow-btn { background: rgba(139, 0, 0, 0.35); }
.btn-group .menu-btn.shadow-btn:hover { background: rgba(139, 0, 0, 0.55); }
.btn-group .menu-btn.danger { background: rgba(244, 67, 54, 0.25); }
.btn-group .menu-btn.danger:hover { background: rgba(244, 67, 54, 0.5); }

/* Row 2: Filters — compact strip */
.header-row-2 {
    display: flex;
    align-items: center;
    padding: 3px 10px;
    background: rgba(0,0,0,0.18);
    overflow-x: auto;
}

.filter-label {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255,255,255,0.4);
    margin-right: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}


.toggle-label {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
    cursor: pointer;
    user-select: none;
}

.toggle-label input[type="checkbox"] {
    cursor: pointer;
    width: 16px;
    height: 16px;
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 6px;
    align-items: center;
}

.filter-cb {
    display: flex;
    align-items: center;
    gap: 3px;
    cursor: pointer;
    user-select: none;
    font-size: 11px;
    padding: 2px 5px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    transition: background 0.15s;
}

.filter-cb:hover {
    background: rgba(255, 255, 255, 0.18);
}

.filter-cb input[type="checkbox"] {
    cursor: pointer;
    width: 13px;
    height: 13px;
    margin: 0;
}

.filter-cb span {
    white-space: nowrap;
}

.fc-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.fc-cnt {
    font-size: 9px;
    font-weight: 700;
    background: rgba(255,255,255,0.15);
    padding: 0 4px;
    border-radius: 6px;
    min-width: 14px;
    text-align: center;
    line-height: 14px;
    color: rgba(255,255,255,0.7);
}
button {
    background: #7CB342;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
}

button:hover {
    background: #8BC34A;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

button:active {
    transform: translateY(0);
}

.main-content {
    flex: 1;
    display: flex;
    position: relative;
    overflow: hidden;
    background: #0d1b2a;
}

#network {
    flex: 1;
    background: radial-gradient(ellipse at center, #1b2838 0%, #0d1b2a 100%);
    cursor: grab;
}

#network:active {
    cursor: grabbing;
}

.device-list-panel {
    width: 280px;
    background: #16213e;
    border-left: 1px solid #0f3460;
    display: flex;
    flex-direction: column;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.3);
    z-index: 5;
}

.device-list-panel h3 {
    padding: 12px 15px;
    margin: 0;
    background: #0f3460;
    border-bottom: 1px solid #1a4a7a;
    font-size: 14px;
    color: #e0e0e0;
}

#deviceSearch {
    margin: 10px;
    padding: 10px;
    border: 1px solid #0f3460;
    border-radius: 6px;
    font-size: 14px;
    outline: none;
    background: #0d1b2a;
    color: #e0e0e0;
}

#deviceSearch:focus {
    border-color: #4A90E2;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.3);
}

#deviceSearch::placeholder {
    color: #6c757d;
}

#deviceList {
    flex: 1;
    overflow-y: auto;
    padding: 5px;
}

.device-item {
    padding: 10px 12px;
    margin: 4px;
    background: #0d1b2a;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.device-item:hover {
    background: #1a3a5c;
    border-left-color: #4A90E2;
    transform: translateX(3px);
}

.device-item .device-name {
    font-weight: 600;
    color: #e0e0e0;
    font-size: 12px;
    margin-bottom: 3px;
}

.device-item .device-ip {
    font-size: 11px;
    color: #8a9bae;
}

.node {
    cursor: pointer;
    transition: all 0.2s ease;
}

.node:hover {
    stroke-width: 5px;
    filter: brightness(1.3) drop-shadow(0 0 8px rgba(255, 255, 255, 0.3));
}

.link {
    pointer-events: none;
}

.link-label {
    pointer-events: none;
    fill: #8a9bae;
    text-shadow: 0 0 4px #0d1b2a, 0 0 4px #0d1b2a;
}

.node-label {
    pointer-events: none;
    fill: #e0e0e0;
    text-shadow: 0 0 4px #0d1b2a, 0 0 4px #0d1b2a;
}

#loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(22, 33, 62, 0.95);
    padding: 30px 50px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    font-size: 18px;
    color: #4A90E2;
    font-weight: 500;
    z-index: 100;
    border: 1px solid #0f3460;
}

#error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #f44336;
    color: white;
    padding: 20px 40px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    font-size: 16px;
    max-width: 500px;
    text-align: center;
    z-index: 100;
}

.legend {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(22, 33, 62, 0.95);
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    border: 1px solid #0f3460;
    z-index: 10;
}

.legend h3 {
    font-size: 12px;
    margin-bottom: 8px;
    color: #e0e0e0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
    font-size: 11px;
    color: #b0b0b0;
}

.legend-color {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.legend-color.switch {
    background: #4A90E2;
}

.legend-color.router {
    background: #E24A4A;
}

.legend-color.hub {
    background: #FF9800;
}

.legend-color.endpoint {
    background: #8BC34A;
}

.legend-color.unknown {
    background: #9E9E9E;
}

/* Context Menu */
.context-menu {
    position: fixed;
    background: #16213e;
    border: 1px solid #0f3460;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
    z-index: 10000;
    min-width: 200px;
}

.context-menu-item {
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.2s;
    border-bottom: 1px solid #0f3460;
    color: #e0e0e0;
}

.context-menu-item:last-child {
    border-bottom: none;
}

.context-menu-item:hover {
    background: #1a3a5c;
}

.context-menu-divider {
    height: 1px;
    background: #0f3460;
    margin: 4px 0;
}

.context-menu-item.checkbox-item {
    padding: 8px 16px;
}

.context-menu-item.checkbox-item:hover {
    background: transparent;
}

.context-menu-item.checkbox-item label {
    color: #b0b0b0;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.context-menu-item.checkbox-item input[type="checkbox"] {
    cursor: pointer;
}

/* Info Panel - Click to view device details */
.info-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #16213e;
    border: 1px solid #0f3460;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    z-index: 10001;
    min-width: 380px;
    max-width: 500px;
    max-height: 80vh;
    overflow: hidden;
    animation: slideIn 0.2s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -48%);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

.info-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #0f3460;
    border-bottom: 1px solid #1a4a7a;
}

.info-panel-header h3 {
    margin: 0;
    color: #e0e0e0;
    font-size: 16px;
    font-weight: 600;
}

.close-btn {
    background: transparent;
    border: none;
    color: #8a9bae;
    font-size: 18px;
    cursor: pointer;
    padding: 5px 10px;
    border-radius: 4px;
    transition: all 0.2s;
}

.close-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}

.info-panel-content {
    padding: 15px 20px;
    max-height: 60vh;
    overflow-y: auto;
}

.info-section {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.info-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.info-label {
    font-size: 11px;
    color: #6c8ab0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.info-value {
    font-size: 14px;
    color: #e0e0e0;
    font-weight: 500;
    word-break: break-all;
}

.info-section.full-width {
    margin-top: 15px;
}

.info-list {
    max-height: 150px;
    overflow-y: auto;
}

.info-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    background: #0d1b2a;
    border-radius: 6px;
    margin-bottom: 6px;
    font-size: 12px;
}

.info-list-item:last-child {
    margin-bottom: 0;
}

.info-list-item .neighbor-name {
    color: #4A90E2;
    font-weight: 500;
}

.info-list-item .neighbor-port {
    color: #8a9bae;
    font-size: 11px;
}

/* Panel backdrop */
.info-panel-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
}

/* Menu Bar */
.menu-bar {
    display: flex;
    gap: 10px;
    margin-left: 20px;
}

.menu-btn {
    background: rgba(255, 255, 255, 0.15);
    color: #e0e0e0;
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.menu-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

.menu-btn.danger {
    background: rgba(244, 67, 54, 0.3);
    border-color: rgba(244, 67, 54, 0.5);
}

.menu-btn.danger:hover {
    background: rgba(244, 67, 54, 0.5);
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    z-index: 20000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: #16213e;
    border: 1px solid #0f3460;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    min-width: 450px;
    max-width: 550px;
    animation: slideIn 0.2s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #0f3460;
    border-bottom: 1px solid #1a4a7a;
    border-radius: 12px 12px 0 0;
}

.modal-header h2 {
    margin: 0;
    color: #e0e0e0;
    font-size: 18px;
    font-weight: 600;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.2);
    border-top: 1px solid #0f3460;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    border-radius: 0 0 12px 12px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 12px;
    color: #8a9bae;
    margin-bottom: 6px;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    background: #0d1b2a;
    border: 1px solid #0f3460;
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: #4A90E2;
}

.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.checkbox-label input {
    width: auto !important;
}

.btn-primary {
    background: #4A90E2;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
}

.btn-primary:hover {
    background: #5AA0F2;
}

.btn-secondary {
    background: transparent;
    color: #8a9bae;
    border: 1px solid #0f3460;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #e0e0e0;
}

/* Separator in menu */
.separator {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.2);
    margin: 0 5px;
}

/* Capture Buttons */
.capture-btn {
    background: #FF5722;
    border-color: #E64A19;
}

.capture-btn:hover {
    background: #FF7043;
}

.report-btn {
    background: #00BCD4;
    border-color: #0097A7;
}

.report-btn:hover {
    background: #26C6DA;
}

.danger {
    background: #D32F2F;
}

.danger:hover {
    background: #F44336;
}

/* Mermaid Export Modal */
.mermaid-modal-content {
    min-width: 700px;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

.mermaid-modal-content .modal-body {
    flex: 1;
    overflow-y: auto;
    max-height: 70vh;
}

.mermaid-diagram-area {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    min-height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: auto;
}

.mermaid-diagram-area svg {
    max-width: 100%;
    height: auto;
}

.mermaid-raw-code {
    background: #0d1b2a;
    padding: 12px;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #4A90E2;
    max-height: 200px;
    overflow-y: auto;
    white-space: pre-wrap;
    margin-top: 8px;
    border: 1px solid #0f3460;
}

/* ===== Events Panel ===== */

.events-panel {
    width: 280px;
    min-width: 280px;
    background: rgba(13, 27, 42, 0.95);
    border-right: 1px solid #0f3460;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.events-panel h3 {
    padding: 12px 16px;
    margin: 0;
    font-size: 14px;
    color: #E0E0E0;
    border-bottom: 1px solid #0f3460;
    background: rgba(15, 52, 96, 0.3);
    cursor: pointer;
    user-select: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.events-panel h3:hover {
    background: rgba(15, 52, 96, 0.5);
}

#eventsToggle {
    font-size: 10px;
    color: #888;
    transition: transform 0.2s;
}

.events-panel.collapsed {
    width: 40px;
    min-width: 40px;
}

.events-panel.collapsed h3 {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    padding: 16px 10px;
    border-bottom: none;
    border-right: 1px solid #0f3460;
    font-size: 13px;
    justify-content: flex-start;
    gap: 8px;
}

.events-panel.collapsed #eventsList {
    display: none;
}

.events-panel {
    transition: width 0.3s, min-width 0.3s;
}

#eventsList {
    flex: 1;
    overflow-y: auto;
    padding: 4px;
}

.event-empty {
    padding: 20px;
    text-align: center;
    color: #555;
    font-size: 13px;
}

.event-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 6px;
    margin-bottom: 2px;
    font-size: 11px;
    line-height: 1.3;
    border-left: 3px solid transparent;
}

.event-item.event-good {
    border-left-color: #4CAF50;
    background: rgba(76, 175, 80, 0.06);
}

.event-item.event-bad {
    border-left-color: #E24A4A;
    background: rgba(226, 74, 74, 0.06);
}

.event-icon {
    font-size: 12px;
    flex-shrink: 0;
    margin-top: 1px;
}

.event-content {
    flex: 1;
    min-width: 0;
}

.event-msg {
    color: #CCC;
    word-break: break-all;
}

.event-time {
    color: #666;
    font-size: 10px;
    margin-top: 2px;
}

/* ===== Shadow IT Modal ===== */

.shadow-switch-group {
    margin-bottom: 12px;
    border: 1px solid #0f3460;
    border-radius: 8px;
    overflow: hidden;
}

.shadow-switch-name {
    background: rgba(15, 52, 96, 0.4);
    padding: 8px 12px;
    font-size: 13px;
    font-weight: bold;
    color: #4A90E2;
}

.shadow-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    cursor: pointer;
    border-top: 1px solid rgba(15, 52, 96, 0.3);
    transition: background 0.15s;
}

.shadow-item:hover {
    background: rgba(139, 0, 0, 0.15);
}

.shadow-icon {
    font-size: 18px;
    flex-shrink: 0;
}

.shadow-info {
    flex: 1;
    min-width: 0;
}

.shadow-label {
    color: #E0E0E0;
    font-size: 12px;
    word-break: break-all;
}

.shadow-port {
    color: #888;
    font-size: 11px;
    margin-top: 2px;
}

.shadow-goto {
    color: #4A90E2;
    font-size: 16px;
    font-weight: bold;
    flex-shrink: 0;
}

/* ===== E.1 Health Score Widget ===== */

.health-widget {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: default;
    transition: background 0.3s;
}

.health-widget:hover {
    background: rgba(255, 255, 255, 0.14);
}

.health-score {
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -1px;
    color: #4CAF50;
    transition: color 0.5s;
}

.health-score.good    { color: #4CAF50; }
.health-score.warning { color: #FF9800; }
.health-score.danger  { color: #F44336; }

.health-label {
    font-size: 9px;
    color: #8a9bae;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 2px;
}

.health-bar-track {
    width: 100%;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-top: 5px;
    overflow: hidden;
}

.health-bar-fill {
    height: 100%;
    border-radius: 2px;
    background: linear-gradient(90deg, #F44336 0%, #FF9800 50%, #4CAF50 100%);
    background-size: 200% 100%;
    transition: width 0.8s ease, background-position 0.8s ease;
    width: 0%;
}

/* ===== E.2 Anomaly Glow (pulse) ===== */

@keyframes pulse-anomaly {
    0%   { box-shadow: 0 0 6px  3px rgba(244, 67, 54, 0.5);  filter: drop-shadow(0 0 6px  rgba(244, 67, 54, 0.6)); }
    50%  { box-shadow: 0 0 14px 6px rgba(244, 67, 54, 0.85); filter: drop-shadow(0 0 14px rgba(244, 67, 54, 0.9)); }
    100% { box-shadow: 0 0 6px  3px rgba(244, 67, 54, 0.5);  filter: drop-shadow(0 0 6px  rgba(244, 67, 54, 0.6)); }
}

@keyframes pulse-anomaly-shadow {
    0%   { filter: drop-shadow(0 0 6px  rgba(244, 67, 54, 0.7)); }
    50%  { filter: drop-shadow(0 0 14px rgba(244, 67, 54, 1.0)); }
    100% { filter: drop-shadow(0 0 6px  rgba(244, 67, 54, 0.7)); }
}

/* Applied via D3 class on anomaly nodes */
.node.anomaly-loopback {
    stroke: #FF5252 !important;
    stroke-width: 4px !important;
    animation: pulse-anomaly-shadow 2s infinite;
}

.node.anomaly-shadow {
    stroke: #FF9800 !important;
    stroke-width: 3px !important;
    animation: pulse-anomaly-shadow 2.5s infinite;
}

/* Legend anomaly dot animation */
.anomaly-legend .legend-color {
    animation: pulse-anomaly 2s infinite;
}

/* ===== E.5 Status Bar ===== */

.status-bar {
    background: linear-gradient(135deg, #0f3460 0%, #1a1a2e 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 5px 20px;
    font-size: 12px;
    color: #8a9bae;
    flex-shrink: 0;
    z-index: 10;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.3);
}

.status-bar span {
    white-space: nowrap;
}

.status-bar span span {
    color: #e0e0e0;
    font-weight: 600;
}

.status-bar .sb-anomaly span {
    color: #FF9800;
}

.status-bar .sb-health span {
    color: #4CAF50;
}