/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a2e;
}

::-webkit-scrollbar-thumb {
    background: #3b82f6;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #2563eb;
}

/* Animations */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(6, 182, 212, 0.3);
    }
    50% {
        box-shadow: 0 0 40px rgba(6, 182, 212, 0.6);
    }
}

@keyframes slide-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Drag & Drop Zone */
#dropZone.drag-over {
    border-color: #06b6d4 !important;
    background: rgba(6, 182, 212, 0.1) !important;
    animation: pulse-glow 2s infinite;
}

#dropZone:hover {
    border-color: #06b6d4;
    background: rgba(6, 182, 212, 0.05);
}

/* Modal Animations */
#userGuideModal.show,
#columnRefModal.show {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Column List Items */
.column-item {
    padding: 8px 12px;
    background: rgba(6, 182, 212, 0.05);
    border: 1px solid rgba(6, 182, 212, 0.2);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.column-item:hover {
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.4);
    transform: translateX(4px);
}

/* Severity Badge */
.severity-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 12px;
}

.severity-critical {
    background: rgba(239, 68, 68, 0.2);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.severity-high {
    background: rgba(251, 191, 36, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.4);
}

.severity-medium {
    background: rgba(251, 146, 60, 0.2);
    color: #fb923c;
    border: 1px solid rgba(251, 146, 60, 0.4);
}

.severity-low {
    background: rgba(34, 197, 94, 0.2);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.4);
}

/* Table Row Animation */
.table-row-animate {
    animation: slide-in 0.3s ease-out forwards;
}

/* Results Section Animation */
#resultsSection {
    animation: slide-in 0.5s ease-out;
}

/* Critical Alert Row */
.critical-row {
    background: rgba(239, 68, 68, 0.05);
    border-left: 3px solid #ef4444;
}

.critical-row:hover {
    background: rgba(239, 68, 68, 0.1);
}

/* Chart Container */
.chart-container {
    position: relative;
    height: 320px;
    width: 100%;
}

/* Neon Glow Effect */
.neon-border {
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.3),
                inset 0 0 10px rgba(6, 182, 212, 0.1);
}

/* Status Indicator */
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-right: 6px;
}

.status-dot.online {
    background: #22c55e;
    box-shadow: 0 0 10px #22c55e;
    animation: pulse-green 2s infinite;
}

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

/* Copy Notification */
.copy-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 24px;
    background: #22c55e;
    color: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: slide-up 0.3s ease-out;
    z-index: 1000;
}

@keyframes slide-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Protocol Badge */
.protocol-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    font-family: 'JetBrains Mono', monospace;
}

.protocol-tcp {
    background: rgba(59, 130, 246, 0.2);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.4);
}

.protocol-udp {
    background: rgba(168, 85, 247, 0.2);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.4);
}

.protocol-icmp {
    background: rgba(251, 146, 60, 0.2);
    color: #fb923c;
    border: 1px solid rgba(251, 146, 60, 0.4);
}

/* Responsive */
@media (max-width: 768px) {
    .column-item {
        font-size: 12px;
    }

    #dropZone {
        padding: 2rem;
    }
}
