:root {
	--bg-color: #050505;
	--surface: #121212;
	--surface-glass: rgba(255, 255, 255, 0.05);
	--border-glass: rgba(255, 255, 255, 0.1);
	--primary: #6366f1;
	--primary-hover: #4f46e5;
	--danger: #ef4444;
	--danger-hover: #dc2626;
	--text: #f8fafc;
	--text-muted: #94a3b8;
	--success: #10b981;
	--radius-lg: 24px;
	--radius-md: 16px;
	--radius-sm: 8px;
	--shadow-glow: 0 0 20px rgba(99, 102, 241, 0.3);
}
* {
	box-sizing: border-box;
	margin: 0px;
	padding: 0px;
}
body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
	background-color: var(--bg-color);
	color: var(--text);
	height: 100vh;
	overflow-x: hidden;
	display: flex;
	flex-direction: column;
}
h1 {
	font-size: 2rem;
	font-weight: 700;
	margin-bottom: 0.5rem;
}
h2 {
	font-size: 1.5rem;
	font-weight: 600;
	margin-bottom: 0.5rem;
}
.subtitle {
	color: var(--text-muted);
	margin-bottom: 2rem;
}
.app-container {
	display: flex;
	flex-direction: column;
	height: 100%;
	width: 100%;
	max-width: 1200px;
	margin: 0px auto;
	position: relative;
}
.app-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 1.5rem 2rem;
	z-index: 10;
}
.logo {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	font-weight: 700;
	font-size: 1.25rem;
	letter-spacing: -0.025em;
}
.logo i {
	color: var(--primary);
}
.status-badge {
	padding: 0.4rem 1rem;
	border-radius: 99px;
	font-size: 0.875rem;
	font-weight: 500;
	display: flex;
	align-items: center;
	gap: 0.5rem;
	background: var(--surface-glass);
	border: 1px solid var(--border-glass);
	transition: 0.3s;
}
.status-badge::before {
	content: "";
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background-color: var(--text-muted);
}
.status-badge.connected {
	color: var(--success);
	border-color: rgba(16, 185, 129, 0.2);
	background: rgba(16, 185, 129, 0.1);
}
.status-badge.connected::before {
	background-color: var(--success);
	box-shadow: 0 0 8px var(--success);
}
.main-content {
	flex: 1 1 0%;
	position: relative;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 1rem;
}
.view {
	display: none;
	width: 100%;
	height: 100%;
	animation: 0.4s ease 0s 1 normal none running fadeIn;
}
.view.active {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
}
@keyframes fadeIn {
	0% {
		opacity: 0;
		transform: translateY(10px);
	}
	100% {
		opacity: 1;
		transform: translateY(0px);
	}
}
.glass-card {
	background: var(--surface-glass);
	backdrop-filter: blur(12px);
	border: 1px solid var(--border-glass);
	border-radius: var(--radius-lg);
	padding: 3rem;
	width: 100%;
	max-width: 500px;
	text-align: center;
}
.glass-panel {
	background: var(--surface-glass);
	backdrop-filter: blur(12px);
	border: 1px solid var(--border-glass);
	box-shadow: rgba(0, 0, 0, 0.2) 0px 8px 32px;
}
.mode-buttons {
	display: flex;
	flex-direction: column;
	gap: 1rem;
}
button {
	cursor: pointer;
	font-family: inherit;
	transition: 0.2s;
}
.primary-btn,
.secondary-btn {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	padding: 1.5rem;
	border-radius: var(--radius-md);
	border: 1px solid transparent;
	width: 100%;
	text-align: left;
}
.primary-btn {
	background: linear-gradient(135deg, var(--primary), var(--primary-hover));
	color: white;
	box-shadow: var(--shadow-glow);
}
.primary-btn:hover {
	transform: translateY(-2px);
	box-shadow: rgba(99, 102, 241, 0.5) 0px 0px 25px;
}
.secondary-btn {
	background: rgba(255, 255, 255, 0.03);
	border: 1px solid var(--border-glass);
	color: var(--text);
}
.secondary-btn:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.2);
}
.btn-text {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
}
.btn-text strong {
	font-size: 1.125rem;
}
.btn-text span {
	font-size: 0.875rem;
	color: rgba(255, 255, 255, 0.7);
}
.video-container {
	position: relative;
	width: 100%;
	height: 100%;
	max-height: 70vh;
	border-radius: var(--radius-lg);
	overflow: hidden;
	background: rgb(0, 0, 0);
	box-shadow: rgba(0, 0, 0, 0.5) 0px 25px 50px -12px;
}
video {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.video-overlay {
	position: absolute;
	top: 1rem;
	left: 1rem;
	right: 1rem;
	display: flex;
	justify-content: center;
	z-index: 5;
}
.pairing-info {
	padding: 1rem 1.5rem;
	border-radius: 99px;
	display: flex;
	align-items: center;
	gap: 1rem;
}
.code-display {
	font-family: monospace;
	font-size: 1.5rem;
	letter-spacing: 2px;
	color: var(--primary);
	background: rgba(0, 0, 0, 0.3);
	padding: 0.25rem 0.75rem;
	border-radius: var(--radius-sm);
}
.icon-btn {
	background: transparent;
	border: none;
	color: var(--text-muted);
	padding: 0.5rem;
	border-radius: 50%;
}
.icon-btn:hover {
	color: var(--text);
	background: rgba(255, 255, 255, 0.1);
}
.controls-bar {
	position: absolute;
	bottom: 2rem;
	left: 50%;
	transform: translateX(-50%);
	display: flex;
	gap: 1rem;
	padding: 1rem;
	border-radius: 99px;
	z-index: 10;
}
.control-btn {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	border: none;
	background: rgba(255, 255, 255, 0.1);
	color: white;
	display: flex;
	justify-content: center;
	align-items: center;
}
.control-btn:hover {
	background: rgba(255, 255, 255, 0.2);
	transform: scale(1.05);
}
.control-btn.active {
	background: var(--text);
	color: var(--bg-color);
}
.control-btn.danger {
	background: var(--danger);
}
.control-btn.danger:hover {
	background: var(--danger-hover);
}
.input-group {
	display: flex;
	margin-top: 2rem;
	gap: 0.5rem;
}
input[type="text"] {
	flex: 1 1 0%;
	padding: 1rem 1.5rem;
	border-radius: var(--radius-md);
	border: 1px solid var(--border-glass);
	background: rgba(0, 0, 0, 0.5);
	color: white;
	font-size: 1.125rem;
	font-family: monospace;
	outline: none;
	transition: border-color 0.2s;
}
input[type="text"]:focus {
	border-color: var(--primary);
}
.input-group .primary-btn {
	width: auto;
	padding: 1rem 2rem;
}
.hidden {
	display: none !important;
}
#toast-container {
	position: fixed;
	bottom: 2rem;
	right: 2rem;
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	z-index: 100;
}
.toast {
	background: var(--surface);
	border: 1px solid var(--border-glass);
	color: white;
	padding: 1rem 1.5rem;
	border-radius: var(--radius-md);
	box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px;
	animation: 0.3s ease 0s 1 normal none running slideIn;
}
@keyframes slideIn {
	0% {
		transform: translateX(100%);
		opacity: 0;
	}
	100% {
		transform: translateX(0px);
		opacity: 1;
	}
}
@media (max-width: 768px) {
	.glass-card {
		padding: 2rem 1.5rem;
	}
	.pairing-info {
		flex-direction: column;
		text-align: center;
		border-radius: var(--radius-md);
	}
	.video-container {
		border-radius: 0px;
		max-height: 100vh;
		position: fixed;
		top: 0px;
		left: 0px;
		z-index: 1;
	}
	.video-overlay,
	.controls-bar {
		z-index: 2;
	}
	.app-header {
		z-index: 3;
		position: relative;
	}
	.app-container {
		max-width: 100%;
		margin: 0px;
	}
}
