.video-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    z-index: 900;
}

.video-popover {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 804px;
    height: 473px;
    transform: translate(-50%, -50%);
    z-index: 1000;
    display: none;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.1);
}

.video-popover .video-countdown {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 100px;
    font-weight: bold;
    color: white;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.7);
    z-index: 1100; /* Above the video */
    display: none; /* Hidden by default */
}

@media only screen and (max-width: 768px) {
    .video-popover {
        height: 100%;
        width: 100%;
    }

    .video-popover .video-countdown {
        font-size: 180px !important;
    }
}

.video-popover .record-spinner {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
}

.video-popover .progress-circle {
    position: relative;
}

.video-popover .background-circle {
    stroke: #ddd;
}

.video-popover .progress-circle-foreground {
    stroke: #ff0000; /* Red color for progress */
    stroke-dasharray: 283; /* Circumference of the circle (2 * π * r) */
    stroke-dashoffset: 283; /* Start with no progress */
    transition: stroke-dashoffset 0.1s linear;
}

.video-popover .record-timer {
    position: absolute;
    bottom: 120%; /* Position slightly above the spinner */
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    font-weight: bold;
    color: white;
    background: rgba(0, 0, 0, 0.7); /* Semi-transparent background */
    padding: 5px 10px;
    border-radius: 12px; /* Rounded corners */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5); /* Optional shadow for better visibility */
    z-index: 1200;
    text-align: center;
    min-width: 50px; /* Ensure consistent size */
    width: 44px;
    height: 21px;
    border-radius: 16px;
    position: absolute;
    color: white;
    background-color: rgba(0, 0, 0, 0.25);
}

.video-popover .stop-btn {
    position: absolute;
    top: 46%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background-color: red; /* Red color for the stop button */
    cursor: pointer;
    z-index: 1200;
}

.video-popover .video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
}

.video-popover .rec-btn {
    position: absolute;
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 37px;
    background-color: red;
    cursor: pointer;
    z-index: 1200;
    border-radius: 50%;
}

.video-popover .foreground-layer {
    z-index: 1;
    position: relative;
    text-align: center;
    padding: 10px;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}