/* Network Infrastructure Visualization Styles */

/* Danger button style */
.danger {
    background-color: #c93840 !important;
}

/* Network capture visualization styles */
.network-capture-animation {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 300px;
    height: 150px;
    background-color: rgba(0, 0, 0, 0.7);
    border: 1px solid #3a6fc4;
    border-radius: 5px;
    display: none;
}

/* Traffic visualization elements */
.traffic-pulse {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(0);
    animation: pulse 2s ease-out infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    80% {
        transform: scale(3);
        opacity: 0.3;
    }
    100% {
        transform: scale(4);
        opacity: 0;
    }
}

/* Network path visualization */
.network-path {
    stroke-dasharray: 10;
    animation: dash 30s linear infinite;
    stroke-width: 2;
}

@keyframes dash {
    to {
        stroke-dashoffset: 1000;
    }
}

/* Network detail panels */
.network-detail-panel {
    background-color: rgba(25, 35, 60, 0.85);
    border: 1px solid #3a6fc4;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 10px;
}

.network-detail-panel h4 {
    color: #aaddff;
    font-size: 14px;
    margin-top: 0;
    margin-bottom: 10px;
    border-bottom: 1px solid rgba(58, 111, 196, 0.3);
    padding-bottom: 5px;
}

.network-analysis-container {
    background-color: rgba(42, 157, 58, 0.1);
    border-radius: 5px;
    border-left: 3px solid #2a9d3a;
    padding: 10px;
    margin-top: 10px;
}

.network-analysis-container h3 {
    font-size: 14px;
    margin-top: 0;
    color: #2a9d3a;
}

.network-violation-container {
    background-color: rgba(201, 56, 64, 0.1);
    border-radius: 5px;
    border-left: 3px solid #c93840;
    padding: 10px;
    margin-top: 10px;
}

.network-violation-container h3 {
    font-size: 14px;
    margin-top: 0;
    color: #c93840;
}

/* Packet visualization */
.packet {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background-color: #3a6fc4;
    opacity: 0.8;
    transform: translate(-50%, -50%);
}

.packet.violation {
    background-color: #c93840;
}

.packet-trail {
    position: absolute;
    height: 2px;
    background: linear-gradient(to right, rgba(58, 111, 196, 0), rgba(58, 111, 196, 0.8));
    transform-origin: left center;
}

.packet-trail.violation {
    background: linear-gradient(to right, rgba(201, 56, 64, 0), rgba(201, 56, 64, 0.8));
}

/* Tooltip styles */
.network-tooltip {
    position: absolute;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 5px 10px;
    border-radius: 3px;
    font-size: 12px;
    pointer-events: none;
    transform: translate(-50%, -100%);
    margin-top: -10px;
    z-index: 1000;
    white-space: nowrap;
}

.network-tooltip:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid rgba(0, 0, 0, 0.8);
}
