/**
 * Eitaa Smart Bar CSS
 * Styles for the fixed bottom bar in the frontend.
 */

#eitaa-smart-bar {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	width: 100%;
	max-width: 100%;
	height: 60px; /* Standard height for bottom navigation */
	z-index: 99999; /* Ensure it's above most content */
	box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
	display: flex; /* Overridden by JS, but good default */
	align-items: center;
	justify-content: center;
	padding: 0;
	margin: 0;
	/* The background color is set inline in PHP */
}

.esb-nav {
	display: flex;
	width: 100%;
	height: 100%;
	justify-content: space-around;
	align-items: center;
	padding: 0;
	margin: 0;
	list-style: none;
}

.esb-nav-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-decoration: none;
	flex-grow: 1;
	height: 100%;
	padding: 5px 0;
	transition: background-color 0.2s ease;
}

.esb-nav-item:hover {
	background-color: rgba(255, 255, 255, 0.1);
}

.esb-icon {
	font-size: 1.2rem;
	line-height: 1;
	margin-bottom: 3px;
	/* Icon color is set inline in PHP */
}

.esb-text {
	font-size: 0.7rem;
	line-height: 1;
	/* Text color is set inline in PHP */
}

/* Ensure the body content is not hidden by the bar */
body.eitaa-smart-bar-active {
	padding-bottom: 60px;
}

/* Hide the bar on non-mobile devices or when not in Eitaa App */
/* This is primarily handled by the 'display: none;' inline style and JS */
@media (min-width: 768px) {
	/* You might want to hide it on larger screens even if the JS shows it */
	/* #eitaa-smart-bar {
		display: none !important;
	} */
}

