/**
 * Bharat Sampark — PWA Standalone & Offline Styling
 */

@media all and (display-mode: standalone) {
	/* iPhone notch safe area support */
	.bs-mobile-header {
		padding-top: env(safe-area-inset-top);
	}
	.bs-mobile-bottom-nav {
		padding-bottom: env(safe-area-inset-bottom);
		height: calc(56px + env(safe-area-inset-bottom));
	}
}

/* Offline Page Styling */
.bs-offline-main {
	min-height: 60vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 50px 0;
}
.bs-offline-card {
	background: #ffffff;
	border: 1px solid var(--bs-border);
	border-radius: var(--bs-radius-lg);
	padding: 40px 30px;
	text-align: center;
	max-width: 500px;
	margin: 0 auto;
	box-shadow: var(--bs-shadow);
}
.bs-offline-icon {
	font-size: 50px;
	display: block;
	margin-bottom: 16px;
}
.bs-offline-title {
	font-size: 22px;
	font-weight: 800;
	color: var(--bs-secondary);
	margin-bottom: 12px;
}
.bs-offline-desc {
	font-size: 15px;
	color: #64748b;
	line-height: 1.6;
	margin-bottom: 24px;
}
.bs-offline-actions {
	display: flex;
	gap: 12px;
	justify-content: center;
	flex-wrap: wrap;
}
.bs-btn-retry,
.bs-btn-home {
	background: var(--bs-primary) !important;
	color: #ffffff !important;
	border: none !important;
	padding: 10px 20px !important;
	border-radius: 6px !important;
	font-weight: 700 !important;
	cursor: pointer;
}

/* 404 Page Styling */
.bs-404-main {
	min-height: 60vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 60px 0;
}
.bs-404-box {
	background: #ffffff;
	border: 1px solid var(--bs-border);
	border-radius: var(--bs-radius-lg);
	padding: 50px 30px;
	text-align: center;
	max-width: 550px;
	margin: 0 auto;
	box-shadow: var(--bs-shadow);
}
.bs-404-code {
	font-size: 70px;
	font-weight: 900;
	color: var(--bs-primary);
	line-height: 1;
	display: block;
	margin-bottom: 10px;
}
.bs-404-title {
	font-size: 24px;
	font-weight: 800;
	margin-bottom: 12px;
}
.bs-404-desc {
	font-size: 15px;
	color: var(--bs-text-muted);
	margin-bottom: 24px;
}
.bs-404-search-box {
	margin-bottom: 24px;
}
.bs-404-search-box form {
	display: flex;
	gap: 8px;
}
.bs-404-search-box input[type="search"] {
	flex: 1;
	padding: 8px 12px;
	border: 1px solid var(--bs-border);
	border-radius: 4px;
}
.bs-404-search-box button {
	background: var(--bs-secondary);
	color: #ffffff;
	border: none;
	padding: 8px 16px;
	border-radius: 4px;
	cursor: pointer;
}
