/* threats.css */
.page-hero {
    text-align: center;
    margin-bottom: 3rem;
    padding: 2rem 0;
}

.hero-subtitle {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-top: 1rem;
}

.threat-filters {
    background: rgba(21, 21, 43, 0.6);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 2rem;
}

.filter-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.filter-group {
    margin-bottom: 1rem;
}

.filter-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.filter-group select, .filter-group input {
    width: 100%;
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: var(--font-main);
}

.threat-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(21, 21, 43, 0.8);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: var(--font-mono);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.threats-table-container {
    background: rgba(21, 21, 43, 0.6);
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 3rem;
    overflow: hidden;
}

.table-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-tertiary);
}

.table-header h2 {
    color: var(--text-primary);
    font-size: 1.2rem;
}

.table-actions {
    display: flex;
    gap: 1rem;
}

.threats-table {
    width: 100%;
    border-collapse: collapse;
}

.threats-table th {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
}

.threats-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
}

.threats-table tr:last-child td {
    border-bottom: none;
}

.threats-table tr:hover {
    background: rgba(0, 102, 255, 0.1);
}

.severity-high {
    color: var(--danger-color);
    font-weight: 600;
}

.severity-medium {
    color: var(--warning-color);
    font-weight: 600;
}

.severity-low {
    color: var(--info-color);
    font-weight: 600;
}

.threat-detail {
    background: rgba(21, 21, 43, 0.6);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    margin-bottom: 3rem;
}

.detail-header {
    margin-bottom: 2rem;
}

.detail-header h2 {
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.threat-meta {
    display: flex;
    gap: 2rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.detail-section {
    margin-bottom: 1.5rem;
}

.detail-section h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.detail-section p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.remediation-steps {
    background: rgba(35, 209, 96, 0.1);
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid var(--success-color);
}

.remediation-steps h3 {
    color: var(--success-color);
    margin-bottom: 1rem;
}

.remediation-steps ol {
    margin-left: 1.5rem;
}

.remediation-steps li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .detail-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .filter-grid {
        grid-template-columns: 1fr;
    }
    
    .threat-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .threats-table {
        display: block;
        overflow-x: auto;
    }
    
    .table-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .table-actions {
        width: 100%;
        justify-content: space-between;
    }
}

@media (max-width: 480px) {
    .threat-stats {
        grid-template-columns: 1fr;
    }
    
    .threat-meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}