#network-attack-monitor {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, rgba(0, 20, 40, 0.98) 0%, rgba(0, 10, 25, 0.99) 100%);
    z-index: 9999;
    font-family: 'Courier New', monospace;
    overflow: hidden;
    transition: all 0.3s ease;
}


#network-attack-monitor::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url(/wp-content/plugins/network-attack-mon/assets/world_bg.jpg) -71px -294px no-repeat;
    background-size: 109.8808%;
    background-blend-mode: multiply;
    filter: contrast(2.0) brightness(0.15) saturate(0.2) hue-rotate(220deg) invert(0.1);
    opacity: 0.7;
    mix-blend-mode: screen;
    z-index: 1;
}

.nam-title {
    content: 'NETWORK ATTACK MONITOR - GLOBAL THREAT VISUALIZATION';
    position: absolute;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(0, 255, 255, 0.9);
    font-size: 18px;
    font-weight: bold;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
    z-index: 25;
    pointer-events: none;
}

#nam-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: transparent;
    cursor: crosshair;
    z-index: 10;
}

#nam-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    height: 45px;
    width: 300px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 30, 60, 0.8);
    border: 2px solid rgba(0, 255, 255, 0.4);
    border-radius: 25px;
    padding: 0 20px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
    z-index: 15;
}

#nam-toggle {
    background: linear-gradient(135deg, rgba(255, 0, 0, 0.8) 0%, rgba(200, 0, 50, 0.9) 100%);
    border: 1px solid rgba(255, 100, 100, 0.5);
    border-radius: 50%;
    width: 28px;
    height: 28px;
    color: white;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(255, 0, 0, 0.3);
}

#nam-toggle:hover {
    background: linear-gradient(135deg, rgba(255, 50, 50, 0.9) 0%, rgba(255, 0, 0, 1) 100%);
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.6);
    transform: scale(1.1);
}

#nam-toggle:active {
    transform: scale(0.95);
}

#nam-stats {
    display: flex;
    align-items: center;
    gap: 5px;
    color: rgba(0, 255, 255, 0.9);
    font-size: 12px;
    font-weight: bold;
}

#nam-attack-count {
    color: #ff6b6b;
    font-size: 16px;
    text-shadow: 0 0 5px rgba(255, 107, 107, 0.5);
    min-width: 30px;
    text-align: center;
}

.nam-pulse {
    animation: namPulse 2s ease-in-out infinite;
}

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

.nam-attack-indicator {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #ff0000;
    border-radius: 50%;
    box-shadow: 0 0 6px #ff0000;
    animation: namBlink 1s ease-in-out infinite;
}

@keyframes namBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.nam-explosion-effect {
    position: absolute;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 0, 0.8) 0%, rgba(255, 100, 0, 0.6) 50%, transparent 100%);
    animation: namExplode 0.5s ease-out forwards;
    pointer-events: none;
}

@keyframes namExplode {
    0% {
        transform: scale(0);
        opacity: 1;
    }
    100% {
        transform: scale(3);
        opacity: 0;
    }
}

.nam-laser-beam {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 0, 0, 0.3) 20%, 
        rgba(255, 255, 255, 0.9) 50%, 
        rgba(255, 0, 0, 0.3) 80%, 
        transparent 100%);
    transform-origin: left center;
    animation: namLaserGlow 0.1s ease-in-out infinite alternate;
    pointer-events: none;
}

@keyframes namLaserGlow {
    0% {
        filter: brightness(1) blur(0px);
    }
    100% {
        filter: brightness(1.3) blur(0.5px);
    }
}

.nam-severity-1 { filter: hue-rotate(0deg); }
.nam-severity-2 { filter: hue-rotate(30deg); }
.nam-severity-3 { filter: hue-rotate(60deg); }
.nam-severity-4 { filter: hue-rotate(120deg); }
.nam-severity-5 { filter: hue-rotate(180deg); }

.nam-fullscreen-hint {
    position: absolute;
    top: 70px;
    right: 30px;
    color: rgba(0, 255, 255, 0.7);
    font-size: 12px;
    animation: namFadeInOut 3s ease-in-out infinite;
}

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

@media (max-width: 768px) {
    #network-attack-monitor::after {
        font-size: 14px;
        top: 15px;
    }
    
    #nam-controls {
        width: 250px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    #network-attack-monitor::after {
        font-size: 12px;
        top: 10px;
    }
    
    #nam-controls {
        width: 200px;
        height: 35px;
    }
    
    #nam-toggle {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }
    
    #nam-stats {
        font-size: 10px;
    }
    
    #nam-attack-count {
        font-size: 12px;
    }
}

.nam-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(0, 255, 255, 0.8);
    font-size: 16px;
    text-align: center;
}

.nam-error {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: rgba(255, 100, 100, 0.8);
    font-size: 14px;
    text-align: center;
}

.nam-performance-info {
    position: absolute;
    top: 20px;
    left: 20px;
    color: rgba(0, 255, 255, 0.6);
    font-size: 10px;
    font-family: 'Courier New', monospace;
    z-index: 20;
}

.nam-map-hint {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: rgba(0, 255, 255, 0.4);
    font-size: 12px;
    font-family: 'Courier New', monospace;
    z-index: 2;
    pointer-events: none;
}

.nam-map-hint p {
    margin: 5px 0;
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
    animation: namTextPulse 4s ease-in-out infinite;
}

@keyframes namTextPulse {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

.nam-trajectory-info {
    position: absolute;
    top: 120px;
    right: 30px;
    color: rgba(255, 255, 255, 0.6);
    font-size: 10px;
    font-family: 'Courier New', monospace;
    z-index: 20;
    text-align: right;
}

.nam-trajectory-info .status-active {
    color: #00ff00;
    text-shadow: 0 0 5px #00ff00;
}

.nam-trajectory-info .status-warning {
    color: #ffaa00;
    text-shadow: 0 0 5px #ffaa00;
}

.nam-trajectory-info .status-critical {
    color: #ff0000;
    text-shadow: 0 0 5px #ff0000;
    animation: namBlink 1s ease-in-out infinite;
}

.nam-grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 255, 0.08) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
    opacity: 0.15;
}


.nam-city-node {
    animation: namCityPulse 3s ease-in-out infinite;
}

@keyframes namCityPulse {
    0%, 100% {
        opacity: 0.4;
        r: 4;
    }
    50% {
        opacity: 0.9;
        r: 6;
    }
}

.nam-missile-trail {
    position: absolute;
    pointer-events: none;
    z-index: 5;
}

.nam-ballistic-path {
    stroke: #ff4444;
    stroke-width: 2;
    fill: none;
    filter: drop-shadow(0 0 5px #ff4444);
    animation: namTrailGlow 0.5s ease-in-out infinite alternate;
}

@keyframes namTrailGlow {
    0% {
        stroke-opacity: 0.6;
        filter: drop-shadow(0 0 3px #ff4444);
    }
    100% {
        stroke-opacity: 1;
        filter: drop-shadow(0 0 8px #ff4444);
    }
}

.nam-impact-wave {
    position: absolute;
    border-radius: 50%;
    border: 2px solid #ff6600;
    animation: namShockwave 1s ease-out forwards;
    pointer-events: none;
}

@keyframes namShockwave {
    0% {
        width: 0;
        height: 0;
        opacity: 1;
    }
    100% {
        width: 200px;
        height: 200px;
        opacity: 0;
    }
}

#network-attack-monitor:fullscreen {
    background: linear-gradient(135deg, rgba(0, 20, 40, 0.99) 0%, rgba(0, 10, 25, 0.995) 100%);
}

.nam-ambient-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(0, 100, 200, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(0, 200, 100, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 50% 20%, rgba(100, 0, 200, 0.06) 0%, transparent 30%);
    z-index: 1;
    pointer-events: none;
    animation: namAmbientGlow 8s ease-in-out infinite alternate;
}

@keyframes namAmbientGlow {
    0% { opacity: 0.3; }
    100% { opacity: 0.6; }
}

#network-attack-monitor:fullscreen::before {
    background: 
        url('https://as1.ftcdn.net/jpg/04/87/39/36/1000_F_487393684_MUk3suthOoEp1F3xKdLVXcDolEpCdKZ7.jpg') center/cover no-repeat;
    background-blend-mode: multiply;
    filter: contrast(2.2) brightness(0.12) saturate(0.15) hue-rotate(220deg) invert(0.1);
    opacity: 0.8;
    mix-blend-mode: screen;
}

#nam-control-panel {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    background: rgba(0, 20, 40, 0.95);
    border: 2px solid rgba(0, 255, 255, 0.4);
    border-radius: 12px;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.3);
    font-family: 'Courier New', monospace;
    z-index: 40;
    backdrop-filter: blur(10px);
}

.nam-panel-header {
    background: rgba(0, 50, 100, 0.8);
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nam-panel-header h3 {
    margin: 0;
    color: rgba(0, 255, 255, 0.9);
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 1px;
}

#nam-panel-close {
    background: rgba(220, 53, 69, 0.8);
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#nam-panel-close:hover {
    background: rgba(220, 53, 69, 1);
    transform: scale(1.1);
}

.nam-panel-content {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.nam-control-group {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.nam-control-group label {
    color: rgba(0, 255, 255, 0.8);
    font-size: 12px;
    font-weight: bold;
    width: 35%;
    text-shadow: 0 0 5px rgba(0, 255, 255, 0.3);
}

.nam-control-group input[type="range"] {
    width: 45%;
    height: 6px;
    background: rgba(0, 100, 200, 0.3);
    border-radius: 3px;
    outline: none;
    -webkit-appearance: none;
}

.nam-control-group input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: rgba(0, 255, 255, 0.9);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.nam-control-group input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: rgba(0, 255, 255, 0.9);
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

.nam-control-group input[type="color"] {
    width: 60%;
    height: 35px;
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 6px;
    background: transparent;
    cursor: pointer;
}

.nam-control-group select {
    width: 60%;
    height: 35px;
    background: rgba(0, 50, 100, 0.8);
    border: 2px solid rgba(0, 255, 255, 0.3);
    border-radius: 6px;
    color: rgba(0, 255, 255, 0.9);
    font-family: 'Courier New', monospace;
    font-size: 12px;
    cursor: pointer;
    outline: none;
}

.nam-control-group select option {
    background: rgba(0, 20, 40, 0.95);
    color: rgba(0, 255, 255, 0.9);
}

.nam-control-group span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
    min-width: 15%;
    text-align: right;
    text-shadow: 0 0 3px rgba(255, 255, 255, 0.3);
}

.nam-panel-footer {
    padding: 15px 20px;
    border-top: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 0 0 10px 10px;
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.nam-apply-btn,
.nam-reset-btn {
    flex: 1;
    height: 40px;
    border: none;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.nam-apply-btn {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.8) 0%, rgba(25, 135, 84, 0.9) 100%);
    color: white;
    box-shadow: 0 0 15px rgba(40, 167, 69, 0.4);
}

.nam-apply-btn:hover {
    background: linear-gradient(135deg, rgba(40, 167, 69, 1) 0%, rgba(25, 135, 84, 1) 100%);
    box-shadow: 0 0 25px rgba(40, 167, 69, 0.6);
    transform: translateY(-2px);
}

.nam-reset-btn {
    background: linear-gradient(135deg, rgba(108, 117, 125, 0.8) 0%, rgba(73, 80, 87, 0.9) 100%);
    color: white;
    box-shadow: 0 0 15px rgba(108, 117, 125, 0.4);
}

.nam-reset-btn:hover {
    background: linear-gradient(135deg, rgba(108, 117, 125, 1) 0%, rgba(73, 80, 87, 1) 100%);
    box-shadow: 0 0 25px rgba(108, 117, 125, 0.6);
    transform: translateY(-2px);
}

.nam-panel-content::-webkit-scrollbar {
    width: 6px;
}

.nam-panel-content::-webkit-scrollbar-track {
    background: rgba(0, 50, 100, 0.3);
    border-radius: 3px;
}

.nam-panel-content::-webkit-scrollbar-thumb {
    background: rgba(0, 255, 255, 0.5);
    border-radius: 3px;
}

.nam-panel-content::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 255, 0.7);
}

#nam-control-panel.show {
    animation: namPanelSlideIn 0.3s ease-out forwards;
}

@keyframes namPanelSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}