/* Beyond Error Styles */

.screen {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.incident-card {
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    background-color: var(--bg-card); /* Ensure card background is dark */
    border: 1px solid var(--border-glass);
}
.incident-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 240, 255, 0.1) !important;
    border-color: var(--accent);
}

.incident-card .card-body h4,
.incident-card .card-body .display-4 {
    color: var(--text-primary);
}

.incident-card .card-body p {
    color: var(--text-secondary); /* Use the lighter secondary from style.css */
}

.investigation-panel {
    cursor: pointer;
    transition: background-color 0.2s;
    border: 2px dashed var(--border-glass);
    background-color: rgba(255, 255, 255, 0.02); /* Slight background for visibility */
}
.investigation-panel:hover {
    background-color: rgba(0, 240, 255, 0.05); /* Cyan tint on hover */
    border-color: var(--accent);
}

/* STRONG OVERRIDES for visibility on dark theme */
.investigation-panel .card-body {
    color: var(--text-primary) !important;
}

.investigation-panel .display-6,
.investigation-panel .display-6 i {
    color: var(--accent) !important; /* Make icons pop with cyan */
}

.investigation-panel h5 {
    color: var(--text-primary) !important;
    font-weight: 600;
}

.investigation-panel p,
.investigation-panel .text-secondary {
    color: #cbd5e1 !important; /* Light grey/blue for readability, overriding Bootstrap text-secondary */
}

.evidence-box {
    margin-top: 1rem;
    text-align: left;
    font-size: 0.85rem;
}
.evidence-item {
    background-color: rgba(0, 240, 255, 0.1);
    color: var(--text-primary);
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 8px;
    border-left: 3px solid var(--accent);
}

#balance-bar {
    transition: width 0.5s ease-in-out, background-color 0.5s;
}

.outcome-good {
    border-left: 5px solid #2ecc71;
    background-color: rgba(46, 204, 113, 0.1);
    color: var(--text-primary);
    padding: 20px;
}
.outcome-bad {
    border-left: 5px solid #e74c3c;
    background-color: rgba(231, 76, 60, 0.1);
    color: var(--text-primary);
    padding: 20px;
}
