/* Severity color system */
.severity-critical { background-color: rgba(220, 53, 69, 0.15); border: 1px solid rgba(220, 53, 69, 0.4); color: #f87171; }
.severity-high     { background-color: rgba(253, 126, 20, 0.15); border: 1px solid rgba(253, 126, 20, 0.4); color: #fb923c; }
.severity-medium   { background-color: rgba(255, 193, 7, 0.15);  border: 1px solid rgba(255, 193, 7, 0.4);  color: #facc15; }
.severity-low      { background-color: rgba(13, 202, 240, 0.15); border: 1px solid rgba(13, 202, 240, 0.4); color: #38bdf8; }
.severity-info     { background-color: rgba(108, 117, 125, 0.15);border: 1px solid rgba(108, 117, 125, 0.4);color: #9ca3af; }

/* Severity badges */
.severity-badge-critical { background-color: #dc3545; color: white; padding: 3px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: 600; }
.severity-badge-high     { background-color: #fd7e14; color: white; padding: 3px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: 600; }
.severity-badge-medium   { background-color: #ffc107; color: #1a1a2e; padding: 3px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: 600; }
.severity-badge-low      { background-color: #0dcaf0; color: #1a1a2e; padding: 3px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: 600; }
.severity-badge-info     { background-color: #6c757d; color: white; padding: 3px 8px; border-radius: 4px; font-size: 0.75rem; font-weight: 600; }

/* Evidence block */
.evidence-pre {
    background-color: #0d0d0d;
    border: 1px solid #333;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 0.78rem;
    color: #a8d8a8;
    white-space: pre-wrap;
    word-break: break-all;
    margin-bottom: 0;
}

/* Finding card entrance animation */
@keyframes slideIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.finding-animate {
    animation: slideIn 0.25s ease forwards;
}

/* Print styles */
@media print {
    .navbar, footer, #print-btn, a[href="/"], .btn { display: none !important; }
    body { background: white !important; color: black !important; }
    .card { border: 1px solid #ccc !important; background: white !important; break-inside: avoid; }
    .card-body { color: black !important; }
    .text-secondary { color: #555 !important; }
    .evidence-pre { background: #f5f5f5 !important; color: #2d6a2d !important; border: 1px solid #ccc !important; }
    .severity-critical { background-color: #fde8e8 !important; color: #c00 !important; }
    .severity-high     { background-color: #fef0e0 !important; color: #c60 !important; }
    .severity-medium   { background-color: #fffbe0 !important; color: #960 !important; }
    .severity-low      { background-color: #e0f7ff !important; color: #069 !important; }
    .severity-info     { background-color: #f0f0f0 !important; color: #555 !important; }
    .severity-badge-critical, .severity-badge-high, .severity-badge-medium,
    .severity-badge-low, .severity-badge-info { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
