/* Remote UI host panel and client connect screen */

#remote-ui {
	font-family: system-ui, sans-serif;
}

.remote-peer-section {
	margin: 12px 0;
	text-align: left;
}

.remote-peer-section h4 {
	margin: 0 0 8px;
}

.remote-peer-section p {
	margin: 0 0 12px;
}

body.remote-connect-body {
	background: #111827;
	color: #f8fafc;
}

#remote-connect-screen {
	box-sizing: border-box;
	width: 100%;
	margin: auto;
	max-width: 600px;
}

#remote-connect-ui {
	box-sizing: border-box;
	width: 100%;
	text-align: center;
}

#remote-connect-ui #skia-logo {
	display: block;
	width: 72px;
	height: 72px;
	object-fit: contain;
	margin: 0 auto 18px;
}

#remote-connect-ui h1 {
	margin: 0 0 18px;
	font-size: 18px;
	line-height: 1.2;
	text-align: center;
}

#remote-connect-ui .form-group {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

#remote-connect-ui .form-group > label {
	font-weight: 700;
}

#remote-connect-peer-id {
	box-sizing: border-box;
	width: 100%;
	padding: 12px;
	border: 1px solid #cbd5e1;
	border-radius: 6px;
	font: inherit;
	text-align: center;
}

#remote-connect-button {
	width: 100%;
	margin-top: 4px;
	padding: 12px;
	border: 0;
	border-radius: 6px;
	background: #2563eb;
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

#remote-connect-button:hover {
	background: #1d4ed8;
}

#remote-connect-status {
	min-height: 20px;
	margin: 12px 0 0;
	text-align: center;
	font-size: 0.9em;
	text-transform: capitalize;
}

.remote-recent-title {
	margin: 22px 0 8px;
}

.remote-recent-peer {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 10px 0;
}

.remote-recent-peer code {
	word-break: break-all;
}

.remote-recent-peer code.connected-peer {
	color: #22c55e;
	font-weight: 700;
}

.remote-recent-peer .btn {
	padding: 9px 14px;
	border: 0;
	border-radius: 6px;
	background: #e2e8f0;
	color: #111827;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
	margin-bottom: 12px;
}

.remote-recent-peer .btn:hover {
	background: #cbd5e1;
}

#camera-container {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	min-height: 300px;
	border-radius: 8px;
	overflow: hidden;
	margin-bottom: 12px;
}

#camera-scanner,
#camera-scanner > div,
#camera-scanner video,
#camera-scanner canvas {
	width: 100% !important;
	height: 100% !important;
}

#camera-scanner video {
	object-fit: cover;
}

#camera-frame-overlay {
	position: absolute;
	inset: 6px;
	border-radius: 8px;
	box-sizing: border-box;
	pointer-events: none;
	z-index: 10;
	background:
		linear-gradient(#fff, #fff) top left / 68px 6px no-repeat,
		linear-gradient(#fff, #fff) top left / 6px 68px no-repeat,
		linear-gradient(#fff, #fff) top right / 68px 6px no-repeat,
		linear-gradient(#fff, #fff) top right / 6px 68px no-repeat,
		linear-gradient(#fff, #fff) bottom left / 68px 6px no-repeat,
		linear-gradient(#fff, #fff) bottom left / 6px 68px no-repeat,
		linear-gradient(#fff, #fff) bottom right / 68px 6px no-repeat,
		linear-gradient(#fff, #fff) bottom right / 6px 68px no-repeat;
}
