:root {
	--primary-color: #4361ee;
	--secondary-color: #3f37c9;
	--accent-color: #4895ef;
	--danger-color: #f72585;
	--success-color: #4cc9f0;
	--dark-color: #2b2d42;
	--light-color: #f8f9fa;
	--text-color: #212529;
	--border-radius: 8px;
	--box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
	--transition: all 0.3s ease;
}

body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	margin: 0;
	padding: 0;
	background-color: #f8f9fa;
	color: var(--text-color);
	line-height: 1.6;
}

.container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 20px;
}

header {
	text-align: center;
	margin-bottom: 30px;
}

h1 {
	color: var(--dark-color);
	margin-bottom: 5px;
	font-size: 2.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
}

.subtitle {
	color: #6c757d;
	font-size: 1.1rem;
	margin-top: 0;
}

.video-container {
	position: relative;
	width: 100%;
	max-width: 1280px;
	margin: 0 auto;
	border-radius: var(--border-radius);
	overflow: hidden;
	box-shadow: var(--box-shadow);
	background-color: #000;
	aspect-ratio: 16/9;
}

.video-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10;
	color: white;
	flex-direction: column;
	transition: var(--transition);
}

.video-overlay .overlay-content {
	text-align: center;
	padding: 20px;
}

.video-overlay i {
	font-size: 3rem;
	margin-bottom: 15px;
}

video,
canvas {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}

canvas {
	position: absolute;
	top: 0;
	left: 0;
}

.controls {
	display: flex;
	justify-content: center;
	gap: 20px;
	margin: 25px 0;
	flex-wrap: wrap;
	align-items: center;
}

.control-group {
	display: flex;
	align-items: center;
	gap: 10px;
}

button {
	padding: 12px 24px;
	border: none;
	border-radius: var(--border-radius);
	cursor: pointer;
	font-size: 16px;
	transition: var(--transition);
	display: flex;
	align-items: center;
	gap: 8px;
	font-weight: 500;
}

.btn-primary {
	background-color: var(--primary-color);
	color: white;
}

.btn-primary:hover {
	background-color: var(--secondary-color);
	transform: translateY(-2px);
}

.btn-secondary {
	background-color: #6c757d;
	color: white;
}

.btn-secondary:hover {
	background-color: #5a6268;
	transform: translateY(-2px);
}

button:disabled {
	background-color: #e9ecef;
	color: #adb5bd;
	cursor: not-allowed;
	transform: none !important;
}

select {
	padding: 12px;
	border-radius: var(--border-radius);
	border: 1px solid #ced4da;
	font-size: 16px;
	min-width: 200px;
	background-color: white;
}

label {
	font-weight: 500;
	color: var(--dark-color);
}

.status-bar {
	background-color: #e9ecef;
	border-radius: var(--border-radius);
	padding: 12px 20px;
	margin: 20px 0;
	font-size: 0.9rem;
	display: flex;
	align-items: center;
	gap: 10px;
}

.status-bar i {
	font-size: 1.1rem;
}

.status-message {
	display: flex;
	align-items: center;
	gap: 8px;
}

.data-display {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin-top: 30px;
	justify-content: center;
}

.card {
	background-color: white;
	border-radius: var(--border-radius);
	box-shadow: var(--box-shadow);
	flex: 1;
	min-width: 300px;
	transition: var(--transition);
}

.card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}

.card h2 {
	color: var(--dark-color);
	padding: 15px 20px;
	margin: 0;
	border-bottom: 1px solid #e9ecef;
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 1.2rem;
}

.panel-content {
	padding: 20px;
}

.data-output {
	font-family: 'Fira Code', monospace;
	white-space: pre;
	overflow: auto;
	max-height: 200px;
	background-color: #f8f9fa;
	padding: 15px;
	border-radius: 4px;
	font-size: 0.9rem;
	line-height: 1.5;
}

.big-number {
	font-size: 4rem;
	text-align: center;
	font-weight: bold;
	color: var(--primary-color);
	margin: 20px 0;
	line-height: 1;
}

.finger-visualization {
	display: flex;
	justify-content: center;
	gap: 15px;
	margin-top: 20px;
}

.finger {
	width: 30px;
	height: 60px;
	background-color: #e9ecef;
	border-radius: 15px;
	position: relative;
	transition: var(--transition);
}

.finger::after {
	content: '';
	position: absolute;
	bottom: -10px;
	left: 50%;
	transform: translateX(-50%);
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background-color: #e9ecef;
}

.finger.active {
	background-color: var(--accent-color);
}

.finger.active::after {
	background-color: var(--accent-color);
}

.finger[data-finger="thumb"] {
	transform: rotate(-20deg);
	margin-right: -15px;
}

.gesture-preview {
	font-size: 3rem;
	text-align: center;
	margin-top: 20px;
	height: 80px;
	display: flex;
	align-items: center;
	justify-content: center;
}

@media (max-width: 768px) {
	.controls {
		flex-direction: column;
		align-items: stretch;
	}

	.control-group {
		flex-direction: column;
		align-items: stretch;
	}

	.card {
		min-width: 100%;
	}

	h1 {
		font-size: 2rem;
	}
}

/* Loading animation */
@keyframes pulse {
	0% {
		opacity: 0.6;
	}

	50% {
		opacity: 1;
	}

	100% {
		opacity: 0.6;
	}
}

.loading {
	animation: pulse 1.5s infinite;
}

/* Success and error states */
.success {
	color: var(--success-color);
}

.error {
	color: var(--danger-color);
}