.container {
	position: relative;
	width: 100%;
	height: 100%;
	text-align: left;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	justify-content: stretch;
	overflow: hidden;
	border-radius: 0.5rem;
	background: linear-gradient(135deg, #4b5563 0%, #1f2937 100%);
	background-size: 400% 400%;
	animation: gradient 15s ease infinite;
}

/* Remove responsive aspect ratio changes */

.errorContainer {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(248, 250, 252, 0.08);
	color: white;
	height: 100%;
	font-size: 1.5rem;
	font-weight: 600;
	text-align: center;
}

.videoContainer {
	position: relative;
	z-index: 5;
	width: 100%;
	height: 100%;
	flex: 1;
	min-height: 0;
}

/* Discovery Mode: 2-participant layout (original behavior) */
.videoContainer.discoveryMode {
	position: relative;
}

/* Presentation Mode: 3-participant layout with fullscreen slides */
.videoContainer.presentationMode {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
}

.footer {
	display: none;
}

.footerControls {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 16px;
}

.leaveButton {
	background: linear-gradient(135deg, #ff6b6b 0%, #ee5a52 100%);
	color: white;
	border: none;
	font-size: 16px;
	cursor: pointer;
	transition: all 0.3s ease;
	height: 3rem;
	width: 3rem;
	border-radius: 9999px;
	background-color: #ef4444;
	display: flex;
	align-items: center;
	justify-content: center;
}

.leaveButton:hover {
	opacity: 0.8;
}

.leaveButtonIcon {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ReplicaVideo styles */
.mainVideoContainer {
	background: transparent;
	width: 100%;
	height: 100%;
	position: relative;
}

.mainVideoContainerScreenSharing {
	display: flex;
	align-items: center;
	justify-content: center;
}

.mainVideo {
	position: absolute;
	inset: 0;
	object-position: center;
	object-fit: cover !important;
	height: 100% !important;
	width: 100% !important;
	min-height: 100% !important;
	min-width: 100% !important;
	transition: all 0.3s ease;
}

.mainVideoScreenSharing {
	object-fit: contain !important;
}

.mainVideoHidden {
	display: none;
}

/* PreviewVideo styles */
.previewVideoContainer {
	position: relative;
	background: rgba(2, 6, 23, 0.3);
	aspect-ratio: 16/9;
	width: 11rem;
	border-radius: 1rem;
	overflow: hidden;
	max-height: 120px;
	z-index: 10;
}

@media (min-width: 768px) {
	.previewVideoContainer {
		max-height: 100%;
	}
}

@media (min-width: 1024px) {
	.previewVideoContainer {
		width: 17.875rem;
	}
}

.previewVideoContainerVertical {
	height: 40.5rem;
	width: 6rem;
}

.previewVideoContainerHidden {
	background: transparent;
	display: none;
}

.previewVideoContainerCompact {
	width: 8rem;
	max-height: 80px;
}

@media (min-width: 768px) {
	.previewVideoContainerCompact {
		width: 12rem;
		max-height: 90px;
	}
}

.previewVideo {
	width: 100%;
	height: auto;
	max-height: 120px;
}

@media (min-width: 768px) {
	.previewVideo {
		max-height: 100%;
	}
}

.previewVideoVertical {
	height: 40.5rem;
	width: 6rem;
	object-fit: cover;
}

.previewVideoHidden {
	display: none;
}

.previewVideoCompact {
	max-height: 80px;
}

@media (min-width: 768px) {
	.previewVideoCompact {
		max-height: 90px;
	}
}

/* Main video container */
.mainVideoContainer {
	width: 100%;
	height: 100%;
	min-width: 100%;
	min-height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	overflow: hidden;
}

/* Self view container - hidden in widget mode */
.selfViewContainer {
	display: none;
}

@media (min-width: 768px) {
	.selfViewContainer {
		bottom: 1rem;
	}
}

/* Waiting message container */
/* Start of Selection */
.waitingContainer {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: rgba(0, 0, 0, 0.8);
	color: white;
	height: 100%;
	font-size: 1.5rem;
	font-weight: 600;
	padding: 2rem;
	text-align: center;
}

.waitingContainer p {
	margin: 0 0 1rem 0;
	font-size: 1.2rem;
	opacity: 0.9;
}

/* HairCheck container styling */
.hairCheckContainer {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 1rem;
	background: linear-gradient(135deg, #4b5563 0%, #1f2937 100%);
}

.hairCheckContainer > div {
	width: 100%;
	max-width: 400px;
	background: rgba(255, 255, 255, 0.1);
	border-radius: 12px;
	padding: 1.5rem;
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Remove Daily.co device selection styling - let Tavus handle device selection */

@keyframes gradient {
	0% {
		background-position: 0% 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0% 50%;
	}
}
/* End of Selection */

.audioWaveContainer {
	position: absolute;
	bottom: 0.5rem;
	right: 0.5rem;
}

/* Presentation Mode: Thumbnail container */
.presentationThumbnails {
	position: absolute;
	bottom: 1.5rem;
	right: 1.5rem;
	display: flex;
	gap: 1rem;
	z-index: 20;
}

/* Avatar thumbnail in presentation mode */
.avatarThumbnail {
	position: relative;
	width: 240px;
	height: 180px;
	border-radius: 0.75rem;
	overflow: hidden;
	background: rgba(0, 0, 0, 0.5);
	border: 2px solid rgba(255, 255, 255, 0.2);
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
	transition: all 0.3s ease;
}

.avatarThumbnail:hover {
	transform: scale(1.05);
	border-color: rgba(255, 255, 255, 0.4);
}

/* Customer thumbnail in presentation mode */
.customerThumbnail {
	position: relative;
	width: 240px;
	height: 180px;
	border-radius: 0.75rem;
	overflow: hidden;
	background: rgba(0, 0, 0, 0.5);
	border: 2px solid rgba(255, 255, 255, 0.2);
	box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
	transition: all 0.3s ease;
}

.customerThumbnail:hover {
	transform: scale(1.05);
	border-color: rgba(255, 255, 255, 0.4);
}

/* Video inside thumbnails */
.thumbnailVideo {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Mobile responsive design for presentation mode */
@media (max-width: 768px) {
	.presentationThumbnails {
		bottom: 1rem;
		right: 1rem;
		gap: 0.5rem;
		flex-direction: column;
	}

	.avatarThumbnail,
	.customerThumbnail {
		width: 120px;
		height: 90px;
		border-radius: 0.5rem;
	}
}

/* Tablet responsive design */
@media (min-width: 768px) and (max-width: 1024px) {
	.avatarThumbnail,
	.customerThumbnail {
		width: 180px;
		height: 135px;
	}
}

/* Large desktop design */
@media (min-width: 1440px) {
	.avatarThumbnail,
	.customerThumbnail {
		width: 280px;
		height: 210px;
	}

	.presentationThumbnails {
		bottom: 2rem;
		right: 2rem;
		gap: 1.5rem;
	}
}
