/**
 * YARA Deep Scan Page Styles
 * Additional styles for the YARA scanner page
 * @since 2.1.0
 * @package VMPFence
 */

/* Main Container */
.vmpfence-yara-wrap {
    max-width: 1300px;
}

/* File browser styles */
.file-item {
    padding: 12px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    transition: background 0.2s;
}

.file-item:hover {
    background: #f8f9fa;
}

.file-item label {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    cursor: pointer;
    margin: 0;
}

.file-item .file-name {
    flex: 1;
    font-family: monospace;
    font-size: 13px;
}

.file-item .file-size {
    color: #999;
    font-size: 12px;
}

/* Scan results styles */
.scan-results {
    padding: 20px;
}

.result-header {
    margin-bottom: 30px;
}

.threat-alert,
.clean-alert {
    padding: 20px;
    border-radius: 8px;
    text-align: center;
}

.threat-alert {
    background: #fff3cd;
    border: 2px solid #ffc107;
    color: #856404;
}

.clean-alert {
    background: #d4edda;
    border: 2px solid #28a745;
    color: #155724;
}

.threat-alert h3,
.clean-alert h3 {
    margin: 10px 0 5px;
    font-size: 24px;
}

.matches-list {
    margin: 30px 0;
}

.match-item {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.1);
    border-left: 4px solid #dc3545;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
}

.match-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.match-header strong {
    font-size: 16px;
    color: #2c3e50;
}

.severity-badge {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.severity-critical {
    background: #dc3545;
    color: white;
}

.severity-high {
    background: #fd7e14;
    color: white;
}

.severity-medium {
    background: #ffc107;
    color: #000;
}

.severity-low {
    background: #007AFF;
    color: white;
}

.match-description {
    color: #555;
    margin: 10px 0;
}

.match-meta {
    font-size: 13px;
    color: #666;
    margin: 5px 0;
}

.match-recommendation {
    background: #f8f9fa;
    padding: 10px;
    border-radius: 12px;
    margin-top: 10px;
    font-size: 13px;
}

.scan-meta {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.scan-meta code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 12px;
    font-size: 12px;
}

/* Status badges */
.status-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.threat {
    background: #fff3cd;
    color: #856404;
}

.status-badge.clean {
    background: #d4edda;
    color: #155724;
}

/* Scan details */
.scan-details h3 {
    margin-top: 0;
    margin-bottom: 20px;
    color: #2c3e50;
}

.scan-details h4 {
    margin-top: 30px;
    margin-bottom: 15px;
    color: #2c3e50;
}

.threats-list {
    margin-top: 15px;
}

.threat-item {
    background: #fff;
    border: 1px solid rgba(0,0,0,0.1);
    border-left: 4px solid #dc3545;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 12px;
}

.threat-item strong {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 15px;
}

.threat-item p {
    margin: 5px 0;
    color: #555;
}

.threat-item em {
    color: #999;
    font-size: 13px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .vmpfence-yara-stats {
        grid-template-columns: 1fr;
    }
    
    .vmpfence-tab {
        padding: 10px 15px;
        font-size: 12px;
    }
    
    .upload-area {
        padding: 40px 20px;
    }
    
    .modal-content {
        width: 95%;
    }
}
