/* PWA App Styles */

/* Bottom Navigation Tray Styles */
.bottom-nav {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	display: none;
	background: #ffffff;
	border-top: 1px solid #e5e7eb;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
	z-index: 9999;
	padding: 8px 0 max(8px, env(safe-area-inset-bottom));
	padding-bottom: calc(8px + env(safe-area-inset-bottom));
	justify-content: space-around;
	align-items: center;
}
.bottom-nav-item {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 8px 4px;
	text-decoration: none;
	color: #6b7280;
	transition: all 0.3s ease;
	min-width: 0;
	position: relative;
}
.bottom-nav-item:active {
	background-color: #f3f4f6;
}
.bottom-nav-item.active {
	color: #0d6efd;
}
.bottom-nav-item.active .bottom-nav-icon {
	color: #0d6efd;
}
.bottom-nav-icon {
	width: 24px;
	height: 24px;
	margin-bottom: 4px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: inherit;
}
.bottom-nav-icon svg {
	width: 100%;
	height: 100%;
}
.bottom-nav-label {
	font-size: 11px;
	font-weight: 500;
	text-align: center;
	line-height: 1.2;
	color: inherit;
}
/* Hide bottom nav on desktop/tablet */
@media (min-width: 1024px) {
	.bottom-nav {
		display: none !important;
	}
}
/* Show bottom nav only on mobile */
@media (max-width: 1023px) {
	.bottom-nav {
		display: flex !important;
	}
	/* Add padding to body to prevent content from being hidden behind bottom nav */
	body.has-bottom-nav {
		padding-bottom: 80px;
	}
}

/* Menu Overlay Styles (for "More" option) */
.bottom-nav-menu-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 10000;
	display: flex;
	align-items: flex-end;
	animation: fadeIn 0.3s ease;
}
.bottom-nav-menu-content {
	width: 100%;
	background: #ffffff;
	border-radius: 20px 20px 0 0;
	max-height: 80vh;
	overflow-y: auto;
	animation: slideUp 0.3s ease;
	padding-bottom: max(20px, env(safe-area-inset-bottom));
}
.bottom-nav-menu-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 20px;
	border-bottom: 1px solid #e5e7eb;
	position: sticky;
	top: 0;
	background: #ffffff;
	z-index: 1;
}
.bottom-nav-menu-header h3 {
	margin: 0;
	font-size: 20px;
	font-weight: bold;
	color: #111827;
}
.bottom-nav-menu-close {
	background: none;
	border: none;
	padding: 8px;
	cursor: pointer;
	color: #6b7280;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.3s;
}
.bottom-nav-menu-close:hover {
	color: #111827;
}
.bottom-nav-menu-items {
	padding: 10px 0;
}
.bottom-nav-menu-item {
	display: block;
	padding: 16px 20px;
	color: #374151;
	text-decoration: none;
	border-bottom: 1px solid #f3f4f6;
	transition: background-color 0.2s;
	font-size: 16px;
}
.bottom-nav-menu-item:active {
	background-color: #f9fafb;
}
.bottom-nav-menu-item-logout {
	color: #dc2626;
	font-weight: 600;
	border-top: 2px solid #e5e7eb;
	margin-top: 10px;
}
@keyframes fadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}
@keyframes slideUp {
	from { transform: translateY(100%); }
	to { transform: translateY(0); }
}

/* PWA Update Notification Styles */
#pwa-update-notification {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	background: linear-gradient(135deg, #0d6efd 0%, #28A7DF 100%);
	color: white;
	padding: 15px 20px;
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
	z-index: 10000;
	animation: slideDown 0.3s ease-out;
}
#pwa-update-notification.show {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 15px;
}
#pwa-update-notification .update-content {
	flex: 1;
	min-width: 200px;
}
#pwa-update-notification .update-title {
	font-weight: bold;
	font-size: 16px;
	margin-bottom: 5px;
}
#pwa-update-notification .update-message {
	font-size: 14px;
	opacity: 0.9;
}
#pwa-update-notification .update-actions {
	display: flex;
	gap: 10px;
}
#pwa-update-notification .update-btn {
	padding: 10px 20px;
	border: 2px solid white;
	background: transparent;
	color: white;
	border-radius: 5px;
	cursor: pointer;
	font-weight: bold;
	transition: all 0.3s;
	font-size: 14px;
}
#pwa-update-notification .update-btn:hover {
	background: white;
	color: #0d6efd;
}
#pwa-update-notification .update-btn.secondary {
	border: none;
	opacity: 0.8;
}
#pwa-update-notification .update-btn.secondary:hover {
	opacity: 1;
	background: rgba(255,255,255,0.1);
}
@keyframes slideDown {
	from {
		transform: translateY(-100%);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}
@media (max-width: 768px) {
	#pwa-update-notification {
		padding: 12px 15px;
	}
	#pwa-update-notification .update-title {
		font-size: 14px;
	}
	#pwa-update-notification .update-message {
		font-size: 12px;
	}
	#pwa-update-notification .update-btn {
		padding: 8px 15px;
		font-size: 12px;
	}
}
