/* SentinelAI Threats Page Styles */

body {
    font-family: 'Inter', sans-serif;
}

code, .font-mono {
    font-family: 'JetBrains Mono', monospace;
}

/* Animated Grid Background */
.grid-bg {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(239, 68, 68, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(239, 68, 68, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridScroll 20s linear infinite;
}

@keyframes gridScroll {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

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

::-webkit-scrollbar-track {
    background: #0f172a;
}

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

::-webkit-scrollbar-thumb:hover {
    background: #475569;
}

/* Navigation Links */
.nav-link {
    color: #94a3b8;
    border: 1px solid transparent;
}
.nav-link:hover {
    color: #e2e8f0;
    background: rgba(30, 41, 59, 0.5);
}
.nav-link.active {
    color: #22d3ee;
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.2);
}

/* Stat Cards */
.stat-card {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.stat-card:hover {
    transform: translateY(-2px);
    border-color: rgba(148, 163, 184, 0.2);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
}

/* Severity Filter Buttons */
.sev-btn {
    background: rgba(15, 23, 42, 0.5);
    color: #94a3b8;
    border: 1px solid #1e293b;
}
.sev-btn:hover {
    color: #e2e8f0;
    border-color: #334155;
}
.sev-btn.active {
    background: linear-gradient(135deg, #ef4444, #f59e0b);
    color: white;
    border-color: transparent;
}

/* Status Filter Buttons */
.status-btn {
    background: rgba(15, 23, 42, 0.5);
    color: #94a3b8;
    border: 1px solid #1e293b;
}
.status-btn:hover {
    color: #e2e8f0;
    border-color: #334155;
}
.status-btn.active {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: white;
    border-color: transparent;
}

/* Severity Badges */
.badge-critical {
    background-color: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}
.badge-high {
    background-color: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}
.badge-medium {
    background-color: rgba(6, 182, 212, 0.15);
    color: #22d3ee;
    border: 1px solid rgba(6, 182, 212, 0.3);
}
.badge-low {
    background-color: rgba(100, 116, 139, 0.15);
    color: #94a3b8;
    border: 1px solid rgba(100, 116, 139, 0.3);
}

/* Status Badges */
.status-active {
    background-color: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}
.status-investigating {
    background-color: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.3);
}
.status-mitigated {
    background-color: rgba(34, 197, 94, 0.15);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

/* Table Row Hover */
#threatTableBody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid rgba(30, 41, 59, 0.5);
}
#threatTableBody tr:hover {
    background: rgba(30, 41, 59, 0.4);
}

/* Feed Items */
.feed-item {
    animation: slideInFeed 0.3s ease-out forwards;
}

@keyframes slideInFeed {
    from { opacity: 0; transform: translateX(-10px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Pulse Slow Animation */
.animate-pulse-slow {
    animation: pulseSlow 4s ease-in-out infinite;
}

.animate-pulse-slow-delayed {
    animation: pulseSlow 4s ease-in-out infinite 2s;
}

@keyframes pulseSlow {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.05); }
}

/* MITRE Bar */
.mitre-bar-bg {
    background: rgba(15, 23, 42, 0.8);
    border-radius: 4px;
    overflow: hidden;
    height: 8px;
}
.mitre-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Modal */
#threatModal.show {
    display: flex !important;
}

/* Toast */
#threatToast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .stat-card .text-2xl {
        font-size: 1.25rem;
    }
}