html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body {
    display: flex;
    flex-direction: column;
}

.video-container {
    flex: 1;
    position: relative;
    background-color: #000;
    overflow: hidden;
    height: 0; /* This forces the container to take only the available space */
}

#remoteVideo {
    width: 100%;
    height: 100%;
    object-fit: contain; /* This ensures the video is fully contained */
    max-height: 100vh; /* Ensure video doesn't exceed viewport height */
}

.agent-info {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
}

/* Auto-scaling overlay styles */
#autoscalingOverlay {
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

#autoscalingOverlay .spinner-border {
    border-width: 4px;
}

#autoscalingOverlay .progress {
    border-radius: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

#autoscalingOverlay .progress-bar {
    border-radius: 15px;
    font-weight: 500;
    transition: width 0.3s ease;
}

#autoscalingOverlay h4 {
    font-weight: 600;
}

#autoscalingOverlay .btn {
    border-radius: 25px;
    padding: 8px 24px;
    font-weight: 500;
}

/* Pulsing animation for the startup icon */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

#autoscalingOverlay .bi-cloud-arrow-up {
    animation: pulse 2s infinite;
}