/* UCAT Olympiad - Proctoring HUD & Anti-Cheating Visual System (Light Theme) */

/* Proctoring HUD in CBT View */
.cbt-proctor-hud {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
    box-shadow: var(--shadow-sm);
}

.hud-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hud-title {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--accent-emerald);
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.hud-title .live-pulse {
    width: 8px;
    height: 8px;
    background: #dc2626;
    border-radius: 50%;
    animation: pulseRed 1.2s infinite;
}

@keyframes pulseRed {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 10px #dc2626; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

.hud-camera-frame {
    position: relative;
    width: 100%;
    height: 145px;
    background: #0f172a;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.hud-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scaleX(-1);
}

/* Face bounding box overlay */
.face-bounding-box {
    position: absolute;
    top: 20%;
    left: 28%;
    width: 44%;
    height: 60%;
    border: 2px dashed #10b981;
    border-radius: 6px;
    pointer-events: none;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.4);
    transition: all 0.3s ease;
}

.face-landmark-dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #06b6d4;
    border-radius: 50%;
}

.hud-status-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.74rem;
    color: var(--text-muted);
}

.hud-audio-box {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    padding: 0.55rem;
    border-radius: var(--radius-sm);
}

.audio-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.audio-meter-canvas {
    width: 100%;
    height: 20px;
    background: #e2e8f0;
    border-radius: 3px;
    display: block;
}

/* Security Strike Overlay Modal */
.ucat-strike-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    padding: 1.5rem;
}

.ucat-strike-card {
    background: #ffffff;
    border: 2px solid #ef4444;
    border-radius: var(--radius-lg);
    max-width: 520px;
    width: 100%;
    padding: 2.4rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
}

.strike-icon {
    font-size: 3.5rem;
    margin-bottom: 0.85rem;
}

.strike-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #dc2626;
    margin-bottom: 0.6rem;
    letter-spacing: -0.5px;
}

.strike-desc {
    color: #7f1d1d;
    background: #fee2e2;
    padding: 0.85rem;
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.strike-meter {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.strike-badge {
    padding: 0.4rem 0.95rem;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 700;
    background: #f1f5f9;
    color: #64748b;
    border: 1px solid var(--border-color);
}

.strike-badge.active {
    background: #fef3c7;
    color: #b45309;
    border-color: #f59e0b;
}

.strike-badge.critical {
    background: #fee2e2;
    color: #b91c1c;
    border-color: #ef4444;
}

.strike-subtext {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.strike-btn {
    width: 100%;
    padding: 0.9rem;
    background: #dc2626;
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.3);
}

/* Dynamic Anti-Photo Moving Watermark */
.ucat-watermark-overlay {
    position: absolute;
    pointer-events: none;
    user-select: none;
    z-index: 10;
    opacity: 0.16;
    transform: rotate(-15deg);
    display: flex;
    flex-direction: column;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 700;
    transition: all 1.2s ease-in-out;
}

/* Admin Proctor Feed in Light Theme */
.proctor-incident-item {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.85rem;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
}

.proctor-incident-item.critical {
    border-left: 4px solid var(--accent-rose);
    background: #fff5f5;
}

.proctor-incident-item.warning {
    border-left: 4px solid var(--accent-amber);
    background: #fffbeb;
}

.incident-badge {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-sm);
}

.incident-badge.critical {
    background: #fee2e2;
    color: #b91c1c;
}

.incident-badge.warning {
    background: #fef3c7;
    color: #b45309;
}

.incident-info strong {
    font-size: 0.95rem;
    color: var(--text-primary);
}

.incident-info p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin: 0.2rem 0;
}

.incident-time {
    font-size: 0.75rem;
    color: var(--text-muted);
}
