/* Shown while live study session webcam is active (monitor.js) */

.camera-active-indicator {
    position: fixed;
    top: calc(env(safe-area-inset-top, 0px) + 56px);
    right: max(12px, env(safe-area-inset-right, 0px));
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.88);
    border: 1px solid rgba(61, 214, 140, 0.5);
    color: #3dd68c;
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.4),
        0 4px 24px rgba(61, 214, 140, 0.15);
    pointer-events: none;
}

.camera-active-indicator.hidden {
    display: none !important;
}

.camera-active-indicator__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #f87171;
    box-shadow: 0 0 10px rgba(248, 113, 113, 0.8);
    animation: camera-active-pulse 1.1s ease-in-out infinite;
}

@keyframes camera-active-pulse {
    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.65;
        transform: scale(0.88);
    }
}

body.study-session-page .camera-active-indicator {
    top: calc(env(safe-area-inset-top, 0px) + 64px);
}
