/**
 * ceASAP Live Geo-Location Attendance — Styles
 * Copyright (C) 2026 ceASAP LTD. All Rights Reserved.
 *
 * PROPRIETARY AND CONFIDENTIAL
 * Unauthorized copying or distribution of this file is strictly prohibited.
 * https://ceasap.com
 */
.ceasap-kiosk-wrap * { box-sizing: border-box; }

/* ── Screens ──────────────────────────────────────────────────────────── */

.kiosk-screen { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }

/* ── PIN screen ───────────────────────────────────────────────────────── */

#kiosk-pin-screen {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 80vh;
	background: #f0f4f8;
}

.kiosk-pin-card {
	background: #fff;
	border-radius: 20px;
	padding: 40px 36px;
	width: 340px;
	text-align: center;
	box-shadow: 0 4px 32px rgba(0,0,0,.1);
}

.kiosk-logo {
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: #1e73be;
	margin-bottom: 10px;
}

.kiosk-pin-card h2 {
	font-size: 18px;
	font-weight: 600;
	color: #1a1a1a;
	margin: 0 0 4px;
}

.kiosk-pin-card p {
	font-size: 13px;
	color: #888;
	margin: 0 0 24px;
}

.kiosk-pin-display {
	display: flex;
	justify-content: center;
	gap: 14px;
	margin-bottom: 8px;
}

.kiosk-pin-dot {
	width: 16px;
	height: 16px;
	border-radius: 50%;
	border: 2px solid #1e73be;
	background: transparent;
	transition: background .1s;
}

.kiosk-pin-dot.filled { background: #1e73be; }

.kiosk-pin-error {
	font-size: 12px;
	color: #c62828;
	margin-bottom: 12px;
	min-height: 18px;
}

.kiosk-numpad {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
	margin-top: 20px;
}

.kiosk-numpad-btn {
	height: 60px;
	font-size: 22px;
	font-weight: 500;
	border: 1px solid #e0e0e0;
	border-radius: 10px;
	background: #fafafa;
	cursor: pointer;
	color: #1a1a1a;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
	transition: background .1s, transform .08s;
}

.kiosk-numpad-btn:active { background: #e8f2fc; transform: scale(.95); }

/* ── Main check-in screen ─────────────────────────────────────────────── */

.kiosk-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	background: #1e73be;
	padding: 14px 20px;
	flex-wrap: wrap;
	gap: 8px;
}

.kiosk-header-info { display: flex; flex-direction: column; gap: 2px; }

.kiosk-session-label {
	font-size: 16px;
	font-weight: 700;
	color: #fff;
}

.kiosk-course-name {
	font-size: 12px;
	color: rgba(255,255,255,.8);
}

.kiosk-header-right {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.kiosk-countdown {
	font-size: 13px;
	font-weight: 600;
	color: #ffe082;
	font-variant-numeric: tabular-nums;
	min-width: 110px;
}

.kiosk-search {
	padding: 8px 12px;
	border: none;
	border-radius: 20px;
	font-size: 14px;
	width: 200px;
	outline: none;
}

.kiosk-lock-btn {
	padding: 8px 14px;
	background: rgba(255,255,255,.18);
	border: 1px solid rgba(255,255,255,.35);
	border-radius: 20px;
	color: #fff;
	font-size: 13px;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}

.kiosk-lock-btn:hover { background: rgba(255,255,255,.28); }

/* ── No session ───────────────────────────────────────────────────────── */

.kiosk-no-session {
	text-align: center;
	padding: 60px 20px;
	color: #888;
}

.kiosk-no-session-icon { font-size: 48px; margin-bottom: 16px; }
.kiosk-no-session h3   { font-size: 18px; color: #555; margin-bottom: 8px; }
.kiosk-no-session p    { font-size: 13px; }

/* ── Student grid ─────────────────────────────────────────────────────── */

.kiosk-student-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 10px;
	padding: 16px;
	max-height: calc(100vh - 130px);
	overflow-y: auto;
}

.kiosk-student-btn {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 80px;
	padding: 14px 10px;
	background: #fff;
	border: 1.5px solid #dcdcde;
	border-radius: 12px;
	cursor: pointer;
	font-size: 15px;
	font-weight: 500;
	color: #1a1a1a;
	transition: background .12s, border-color .12s, transform .08s;
	-webkit-tap-highlight-color: transparent;
	touch-action: manipulation;
}

.kiosk-student-btn:active:not(.checked) { transform: scale(.97); background: #e8f2fc; }

.kiosk-student-btn:not(.checked):hover {
	border-color: #1e73be;
	background: #f0f7ff;
}

.kiosk-student-btn.checked {
	background: #edfaef;
	border-color: #a5d6a7;
	color: #2e7d32;
	cursor: default;
}

.kiosk-student-btn.checking {
	opacity: .6;
	cursor: wait;
}

.kiosk-student-name  { font-size: 15px; font-weight: 500; }
.kiosk-student-check { font-size: 11px; color: #2e7d32; margin-top: 4px; }
.kiosk-empty         { padding: 20px; color: #aaa; text-align: center; grid-column: 1/-1; }

/* ── Confirmation overlay ──────────────────────────────────────────────── */

.kiosk-confirmation {
	position: fixed;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: rgba(46,125,50,.92);
	z-index: 9999;
	pointer-events: none;
}

.kiosk-confirm-icon {
	font-size: 72px;
	color: #fff;
	margin-bottom: 16px;
}

.kiosk-confirm-name {
	font-size: 32px;
	font-weight: 700;
	color: #fff;
	margin-bottom: 8px;
}

.kiosk-confirm-sub {
	font-size: 18px;
	color: rgba(255,255,255,.85);
}

/* ── Tablet/phone polish ──────────────────────────────────────────────── */

@media screen and (max-width: 600px) {
	.kiosk-search { width: 140px; }
	.kiosk-student-grid { grid-template-columns: repeat(2, 1fr); padding: 10px; }
	.kiosk-student-btn  { min-height: 64px; font-size: 13px; }
}

/* ── Kiosk disabled screen ───────────────────────────────────────────── */
.ceasap-kiosk-disabled {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 60vh;
	text-align: center;
	padding: 40px 20px;
	color: #888;
}
.ceasap-kiosk-disabled-icon {
	font-size: 64px;
	margin-bottom: 20px;
}
.ceasap-kiosk-disabled h3 {
	font-size: 22px;
	color: #555;
	margin-bottom: 10px;
}
.ceasap-kiosk-disabled p {
	font-size: 15px;
	max-width: 400px;
}

/* ── Toggle switch ───────────────────────────────────────────────────── */
.ceasap-toggle-switch {
	position: relative;
	display: inline-block;
	width: 48px;
	height: 26px;
	vertical-align: middle;
}
.ceasap-toggle-switch input { opacity: 0; width: 0; height: 0; }
.ceasap-toggle-slider {
	position: absolute;
	cursor: pointer;
	inset: 0;
	background: #ccc;
	border-radius: 26px;
	transition: .3s;
}
.ceasap-toggle-slider:before {
	content: '';
	position: absolute;
	height: 20px;
	width: 20px;
	left: 3px;
	bottom: 3px;
	background: white;
	border-radius: 50%;
	transition: .3s;
}
.ceasap-toggle-switch input:checked + .ceasap-toggle-slider { background: #1e73be; }
.ceasap-toggle-switch input:checked + .ceasap-toggle-slider:before { transform: translateX(22px); }
