/* Theme Boarding Pass */
body.boarding-pass-theme {
	margin: 0;
	padding: 0;
	width: 100vw;
	height: 100vh;
	overflow: hidden;
	background: #0d1b2a;
	color: #fff;
	font-family: 'Inter', sans-serif;
}

#kp-preloader {
	position: fixed;
	top: 0; left: 0; width: 100%; height: 100%;
	background: #0d1b2a;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	z-index: 9999;
	transition: opacity 1s ease;
}

.radar {
	width: 150px;
	height: 150px;
	border: 4px solid rgba(0, 210, 255, 0.5);
	border-radius: 50%;
	position: relative;
	overflow: hidden;
	margin-bottom: 20px;
}

.radar::before {
	content: '';
	position: absolute;
	top: 50%; left: 50%;
	width: 50%; height: 4px;
	background: #00d2ff;
	transform-origin: 0 50%;
	animation: scan 2s linear infinite;
	box-shadow: 0 0 10px rgba(0, 210, 255, 0.8);
}

@keyframes scan {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

#kp-canvas-container {
	position: absolute;
	top: 0; left: 0; width: 100%; height: 100%;
	z-index: 1;
}

/* --- COCKPIT HUD --- */
.hud-overlay {
	position: absolute;
	top: 0; left: 0; width: 100%; height: 100%;
	pointer-events: none;
	z-index: 15;
	display: flex;
	justify-content: space-between;
	padding: 20px;
	box-sizing: border-box;
	text-shadow: 0 0 10px #00ff00;
	color: #00ff00;
	font-family: 'Courier New', Courier, monospace;
	font-weight: bold;
}

.hud-top-left {
	display: flex;
	flex-direction: column;
}

.hud-logo {
	max-height: 80px;
	filter: drop-shadow(0 0 10px #00ff00);
}

.hud-top-center {
	display: flex;
	flex-direction: column;
	align-items: center;
	margin-top: -10px;
}

.digital-clock {
	font-size: 3rem;
	letter-spacing: 5px;
	background: rgba(0,255,0,0.1);
	padding: 10px 20px;
	border: 2px solid #00ff00;
	border-radius: 10px;
	box-shadow: inset 0 0 15px rgba(0,255,0,0.5);
}

.hud-label {
	font-size: 0.9rem;
	letter-spacing: 2px;
	margin-top: 5px;
}

.hud-top-right {
	text-align: right;
	font-size: 1.5rem;
	line-height: 1.5;
}

/* Radar Scan inside Map Container */
.radar-scan {
	position: absolute;
	top: 50%; left: 50%;
	width: 100%; height: 100%;
	transform: translate(-50%, -50%);
	pointer-events: none;
	background: conic-gradient(from 0deg, transparent 70%, rgba(0, 255, 0, 0.4) 100%);
	animation: scan 4s linear infinite;
	border-radius: 50%;
}


/* --- MAIN UI --- */
#kp-ui-wrapper {
	position: absolute;
	top: 0; left: 0; width: 100%; height: 100%;
	z-index: 10;
	display: flex;
	justify-content: center;
	align-items: center;
	padding: 20px;
	pointer-events: none; 
	padding-top: 120px; /* Space for HUD */
}

.boarding-pass-container {
	pointer-events: auto;
	width: 95%;
	max-width: 1200px;
	height: 85%;
	background: linear-gradient(135deg, rgba(13, 27, 42, 0.8) 0%, rgba(27, 38, 59, 0.8) 100%);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 8px solid #c0c0c0; /* Silver border */
	border-radius: 15px;
	box-shadow: 0 0 30px rgba(0, 0, 0, 0.8), inset 0 0 10px rgba(255, 255, 255, 0.2);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.bp-header {
	background: #c0c0c0; 
	color: #0d1b2a;
	padding: 15px 30px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.bp-header h1 {
	font-family: 'Oswald', sans-serif;
	margin: 0;
	font-size: 2rem;
	font-weight: 700;
	letter-spacing: 2px;
}

.bp-body {
	flex: 1;
	overflow: hidden;
}

.bp-sidebar {
	width: 250px;
	background: rgba(0, 0, 0, 0.3);
	border-right: 2px solid rgba(255, 255, 255, 0.1);
	padding: 20px;
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.btn-menu {
	background: rgba(255, 255, 255, 0.05);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.2);
	text-align: left;
	padding: 12px 20px;
	font-family: 'Oswald', sans-serif;
	text-transform: uppercase;
	letter-spacing: 1px;
	transition: all 0.3s;
}

.btn-menu:hover, .btn-menu.active {
	background: #00d2ff;
	color: #0d1b2a;
	transform: translateX(5px);
	box-shadow: 0 0 15px #00d2ff;
}

.bp-content {
	padding: 30px;
	overflow-y: auto;
}

.hud-title {
	color: #00ff00;
	text-shadow: 0 0 10px #00ff00;
	font-family: 'Courier New', Courier, monospace;
	text-transform: uppercase;
}

.kp-table {
	position: absolute;
	padding: 10px 20px;
	border-radius: 30px;
	color: #000;
	font-weight: bold;
	cursor: pointer;
	box-shadow: 0 4px 10px rgba(0,0,0,0.5);
	transition: transform 0.2s;
	text-align: center;
	transform: translate(-50%, -50%);
}

.kp-table:hover {
	transform: translate(-50%, -50%) scale(1.1);
	box-shadow: 0 0 20px #fff;
}

.bp-footer {
	background: rgba(0, 0, 0, 0.5);
	padding: 10px 30px;
	text-align: center;
	font-family: 'Oswald', sans-serif;
	letter-spacing: 2px;
	border-top: 2px solid rgba(255, 255, 255, 0.1);
}

.timeline-item {
	background: rgba(255,255,255,0.05);
	border-left: 4px solid #00d2ff;
	padding: 15px;
	margin-bottom: 20px;
	border-radius: 0 8px 8px 0;
}

/* --- ANIMATIONS & 3D ELEMENTS --- */
.floating-plane {
	position: absolute;
	left: -100px;
	z-index: 5;
	opacity: 0.8;
	pointer-events: none;
	animation: flyAcross linear infinite;
	filter: drop-shadow(0 10px 10px rgba(0,0,0,0.5));
}

@keyframes flyAcross {
	0% { transform: translateX(-100px) translateY(0) rotate(5deg); }
	50% { transform: translateX(50vw) translateY(-50px) rotate(0deg); }
	100% { transform: translateX(110vw) translateY(-20px) rotate(-5deg); }
}

/* --- MOBILE OPTIMIZATION --- */
@media (max-width: 768px) {
	#kp-ui-wrapper {
		padding-top: 150px;
	}
	
	.hud-top-left, .hud-top-right {
		display: none; /* Hide complex stats on small screens */
	}
	
	.hud-top-center {
		width: 100%;
		text-align: center;
		margin-top: 20px;
	}
	
	.digital-clock {
		font-size: 1.8rem;
		padding: 5px 10px;
	}
	
	.bp-header h1 {
		font-size: 1.2rem;
	}
	
	.boarding-pass-container {
		flex-direction: column;
		height: 90%;
		width: 100%;
		border-width: 4px;
	}
	
	.bp-sidebar {
		width: 100%;
		flex-direction: row;
		flex-wrap: wrap;
		border-right: none;
		border-bottom: 2px solid rgba(255, 255, 255, 0.1);
		padding: 10px;
		gap: 5px;
	}
	
	.btn-menu {
		flex: 1 1 45%;
		font-size: 0.8rem;
		padding: 8px;
		text-align: center;
	}
	
	.bp-content {
		padding: 15px;
	}
}
