/* Terminal Console & Real-time HUD */
.terminal-console {
    background-color: #0b1120;
    color: #38bdf8;
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.85rem;
    border-radius: 8px;
    padding: 16px;
    height: 220px;
    overflow-y: auto;
    border: 1px solid #1e293b;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}

.terminal-line {
    margin-bottom: 4px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.terminal-timestamp {
    color: #64748b;
}

.stepper-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 6px;
    margin-bottom: 6px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.stepper-item.active {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #1d4ed8;
    font-weight: 600;
}

.stepper-item.completed {
    background: #f0fdf4;
    border-color: #86efac;
    color: #15803d;
}

.pulse-radar {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #3b82f6;
    box-shadow: 0 0 0 rgba(59, 130, 246, 0.4);
    animation: pulseRadar 1.5s infinite;
}

@keyframes pulseRadar {
    0% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(59, 130, 246, 0); }
    100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

/* Scanner Mode Selection Radio Cards */
.scan-mode-card,
.mode-card {
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: 2px solid var(--jtr-card-border, #e2e8f0) !important;
    border-radius: 12px;
    background-color: #ffffff;
    user-select: none;
    position: relative;
    overflow: hidden;
}

.scan-mode-card:hover,
.mode-card:hover {
    border-color: var(--jtr-primary, #3b82f6) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.12);
}

.scan-mode-card:has(input:checked),
.scan-mode-card.active,
.mode-card:has(input[type="radio"]:checked),
.mode-card.active {
    border-color: var(--jtr-primary, #3b82f6) !important;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.04) 0%, rgba(99, 102, 241, 0.08) 100%) !important;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.18) !important;
}

.scan-mode-card input[type="radio"],
.mode-card input[type="radio"] {
    cursor: pointer;
}

.mode-card h6 {
    word-break: normal;
}

/* Code Evidence Box */
.code-evidence {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace !important;
    font-size: 12px !important;
    background: #0f172a !important;
    color: #38bdf8 !important;
    padding: 10px 14px !important;
    border-radius: 8px !important;
    border: 1px solid #1e293b !important;
    overflow-x: auto !important;
    white-space: pre-wrap !important;
    word-break: break-word !important;
    line-height: 1.5 !important;
    text-align: left !important;
    display: block !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Paint Test & Core Web Vitals Metric Cards */
.paint-metric-card {
    border-radius: 10px;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid var(--jtr-card-border, #e2e8f0);
    transition: all 0.2s ease;
}

.paint-metric-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

/* OWASP Matrix Cards */
.owasp-card {
    transition: all 0.2s ease;
}

.owasp-card:hover {
    box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

/* Live Scanning Animation */
.pulse-scan {
    animation: pulseAnimation 2s infinite;
}

@keyframes pulseAnimation {
    0% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(59, 130, 246, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(59, 130, 246, 0);
    }
}
