/* Base styles to prevent unwanted scrolling */
* {
	box-sizing: border-box;
}

html, body {
	margin: 0;
	padding: 0;
	height: 100%;
	overflow-x: hidden; /* Prevent horizontal scrolling */
}

body {
	line-height: 1.6;
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	/* Prevent initial scrolling during animations */
	overflow-y: auto;
}

.container {
	max-width: 100%;
	margin: 0 auto;
	padding: 0 1rem;
}

main {
	/* Ensure main content area contains animations properly */
	overflow: hidden;
	padding-bottom: 2rem;
}

/* Modal for mix step details on homepage */
.mix-steps-buttons {
	display: flex;
	gap: 1em;
	margin: 1.2em 0 1.2em 0;
	justify-content: center;
}
.mix-step-btn {
	background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 0.7em 1.5em;
	font-size: 1.1em;
	font-weight: 600;
	cursor: pointer;
	box-shadow: 0 4px 15px rgba(33,150,243,0.3);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
}
.mix-step-btn::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
	transition: left 0.5s;
}
.mix-step-btn:hover {
	background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
	transform: translateY(-2px) scale(1.05);
	box-shadow: 0 8px 25px rgba(33,150,243,0.4);
}
.mix-step-btn:hover::before {
	left: 100%;
}
.mix-step-btn:active {
	transform: translateY(0) scale(1.02);
}
.mix-step-modal {
	position: fixed !important;
	top: 0 !important; 
	left: 0 !important; 
	width: 100vw !important;
	height: 100vh !important;
	background: rgba(0,0,0,0.8) !important;
	z-index: 9999 !important;
	opacity: 0;
	visibility: hidden;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	backdrop-filter: blur(15px) brightness(0.7) saturate(0.6);
	-webkit-backdrop-filter: blur(15px) brightness(0.7) saturate(0.6);
	margin: 0 !important;
	padding: 0 !important;
	box-sizing: border-box !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}
.mix-step-modal.show {
	opacity: 1;
	visibility: visible;
}
.mix-step-modal-content {
	background: linear-gradient(145deg, #fff 0%, #f8f9fa 100%) !important;
	border-radius: 20px !important;
	box-shadow: 0 30px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(33,150,243,0.1) !important;
	padding: 3em 3em 3.5em 3em !important;
	min-width: 400px !important;
	max-width: 900px !important;
	width: 95vw !important;
	max-height: 80vh !important;
	overflow-y: auto !important;
	position: relative !important;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	border: 2px solid rgba(33,150,243,0.15) !important;
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	transform: scale(0.85) !important;
	margin: 0 auto !important;
}
.mix-step-modal.show .mix-step-modal-content {
	transform: scale(1) !important;
}

/* Universal scrollbar fix - target any scrollable element in modals */
* {
	scrollbar-width: thin;
	scrollbar-color: #2196f3 rgba(33,150,243,0.05);
}

*::-webkit-scrollbar {
	width: 8px;
}

*::-webkit-scrollbar-track {
	background: rgba(33,150,243,0.05);
	border-radius: 10px;
	margin: 10px 0;
}

*::-webkit-scrollbar-thumb {
	background: linear-gradient(135deg, #2196f3 0%, #21cbf3 100%);
	border-radius: 10px;
	border: 1px solid rgba(255,255,255,0.3);
	box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

*::-webkit-scrollbar-thumb:hover {
	background: linear-gradient(135deg, #1976d2 0%, #1e88e5 100%);
	box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Hide ALL scrollbar arrows universally */
*::-webkit-scrollbar-button {
	display: none !important;
	height: 0 !important;
	width: 0 !important;
	background: transparent !important;
}

*::-webkit-scrollbar-corner {
	background: transparent !important;
	display: none !important;
}

/* Ensure no double scrollbars */
#center-modal-overlay {
	overflow: hidden !important;
}

#center-modal-overlay > div {
	overflow-y: auto !important;
	overflow-x: hidden !important;
}

.mix-step-modal-close {
	position: absolute;
	top: 1em;
	right: 1em;
	font-size: 1.5em;
	color: #666;
	background: #fff;
	border: 2px solid #e0e0e0;
	border-radius: 50%;
	width: 35px;
	height: 35px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 2;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	font-weight: bold;
}
.mix-step-modal-close:hover {
	background: #f44336;
	color: #fff;
	border-color: #f44336;
	transform: scale(1.1);
	box-shadow: 0 4px 12px rgba(244,67,54,0.3);
}
/* Strongly hide dropdown arrow and gray out locked selects */
select.locked-start-select {
	background: #f0f0f0 !important;
	color: #888 !important;
	cursor: not-allowed !important;
	border: 1px solid #d0d0d0 !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	background-image: none !important;
	pointer-events: none !important;
	box-shadow: none !important;
	outline: none !important;
	min-width: 180px;
}
/* Hide dropdown arrow for locked selects */
.locked-start-select {
	background: #f0f0f0 !important;
	color: #888 !important;
	cursor: not-allowed !important;
	border: 1px solid #d0d0d0 !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	background-image: none !important;
	pointer-events: none !important;
}
/* Grayed out, no-arrow select for locked Starting Ingredient */
select.start-ingredient-select[disabled] {
	background: #f0f0f0 !important;
	color: #888 !important;
	cursor: not-allowed !important;
	border: 1px solid #d0d0d0 !important;
	appearance: none !important;
	-webkit-appearance: none !important;
	-moz-appearance: none !important;
	background-image: none !important;
}
.select2-container {
	z-index: 1000 !important;
}
.select2-dropdown {
	z-index: 2000 !important;
}
.mix-step-flex-align,
.mix-card,
#mix-steps {
	overflow: visible !important;
}
.ingredient-col .select2-container--default .select2-selection--single {
	height: 40px !important;
	min-height: 40px !important;
	display: flex;
	align-items: center;
	box-sizing: border-box;
	font-size: 1em;
	padding: 0 12px !important;
	margin: 0 !important;
	border: 1px solid #b5c9d6 !important;
	background: #fafbfc !important;
	border-radius: 6px !important;
	box-shadow: none !important;
}
.ingredient-col .select2-selection__rendered {
	line-height: 40px !important;
	padding-left: 0 !important;
	color: #333 !important;
}
.ingredient-col input[type="text"],
.ingredient-col select {
	height: 40px;
	min-height: 40px;
	box-sizing: border-box;
	font-size: 1em;
	padding: 0 12px;
	margin: 0;
	border: 1px solid #b5c9d6;
	background: #fafbfc;
	border-radius: 6px;
	box-shadow: none;
	color: #333;
}
.ingredient-col .select2-container--default .select2-selection--single {
	height: 40px !important;
	min-height: 40px !important;
	display: flex;
	align-items: center;
	box-sizing: border-box;
	font-size: 1em;
	padding: 0 12px !important;
	margin: 0 !important;
}
.ingredient-col .select2-selection__rendered {
	line-height: 40px !important;
	padding-left: 0 !important;
}
.ingredient-col input[type="text"],
.ingredient-col select {
	height: 40px;
	min-height: 40px;
	box-sizing: border-box;
	font-size: 1em;
	padding: 0 12px;
	margin: 0;
}
.ingredient-col .select2-container--default .select2-selection--single {
	height: 40px !important;
	min-height: 40px !important;
	display: flex;
	align-items: center;
	box-sizing: border-box;
	font-size: 1em;
}
.ingredient-col .select2-selection__rendered {
	line-height: 40px !important;
}
.ingredient-col input[type="text"] {
	height: 40px;
	min-height: 40px;
	box-sizing: border-box;
	font-size: 1em;
	display: flex;
	align-items: center;
}
.ingredient-col select,
.ingredient-col input[type="text"] {
	height: 40px;
	min-height: 40px;
	box-sizing: border-box;
	font-size: 1em;
}
.mix-step-flex-align {
	display: flex;
	flex-direction: row;
	gap: 2em;
	align-items: flex-end;
}
.ingredient-col {
	display: flex;
	flex-direction: column;
	flex: 1 1 0;
	min-width: 220px;
	max-width: 100%;
	gap: 0.5em;
	justify-content: flex-start;
	box-sizing: border-box;
}
.ingredient-col > .form-group,
.ingredient-col > label,
.ingredient-col > select,
.ingredient-col > input[type="text"],
.ingredient-col > .select2-container {
	margin-bottom: 0 !important;
	align-self: stretch;
}
.ingredient-col .select2-container--default .select2-selection--single {
	height: 40px !important;
	min-height: 40px !important;
	display: flex;
	align-items: center;
	box-sizing: border-box;
	font-size: 1em;
	padding: 0 12px !important;
	margin: 0 !important;
	border: 1px solid #b5c9d6 !important;
	background: #fafbfc !important;
	border-radius: 6px !important;
	box-shadow: none !important;
	vertical-align: middle !important;
}
.ingredient-col .select2-selection__rendered {
	line-height: 40px !important;
	padding-left: 0 !important;
	color: #333 !important;
	display: flex;
	align-items: center;
	height: 40px;
}
.ingredient-col input[type="text"],
.ingredient-col select {
	height: 40px;
	min-height: 40px;
	box-sizing: border-box;
	font-size: 1em;
	padding: 0 12px;
	margin: 0;
	border: 1px solid #b5c9d6;
	background: #fafbfc;
	border-radius: 6px;
	box-shadow: none;
	color: #333;
	vertical-align: middle;
	display: flex;
	align-items: center;
}
/* Mix step formula display */
.mix-steps-formula {
	display: flex;
	flex-direction: column;
	gap: 1.2em;
	margin-bottom: 1em;
}
.mix-step-formula-row {
	display: flex;
	align-items: center;
	gap: 1em;
	background: #f9fbfd;
	border-radius: 10px;
	padding: 0.8em 1.2em;
	box-shadow: 0 2px 8px #0001;
	min-width: 280px;
	overflow: hidden;
	box-sizing: border-box;
}
.mix-formula-col {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 70px;
	max-width: 90px;
	overflow: hidden;
	text-align: center;
	flex-shrink: 0;
	padding: 0.5em;
}

.mix-formula-col img {
	max-width: 100%;
	max-height: 45px;
	object-fit: contain;
	border-radius: 6px;
}

.mix-formula-col .ingredient-name {
	font-size: 12px;
	font-weight: bold;
	color: #333;
	margin-top: 4px;
	word-wrap: break-word;
	overflow-wrap: break-word;
	hyphens: auto;
	line-height: 1.2;
	max-width: 100%;
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
}
.mix-formula-plus, .mix-formula-equals {
	font-size: 2em;
	color: #2196f3;
	font-weight: bold;
	margin: 0 0.2em;
	user-select: none;
}
/* Delete mix button */
.delete-mix-btn {
	background: none;
	border: none;
	color: #e53e3e;
	cursor: pointer;
	font-size: 1.5em;
	padding: 0.2em 0.5em;
	border-radius: 50%;
	transition: background 0.2s, color 0.2s;
	margin-left: 0.5em;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.delete-mix-btn:hover {
	background: #ffeaea;
	color: #b91c1c;
}
/* Mix steps row display for homepage */
.mix-steps-row {
	display: flex;
	flex-direction: row;
	gap: 2.5em;
	margin-bottom: 1.5em;
	flex-wrap: wrap;
}
.mix-step-view {
	display: flex;
	flex-direction: row;
	gap: 1.2em;
	background: linear-gradient(135deg, #ffffff 0%, #f8fafb 100%);
	border-radius: 20px;
	padding: 5em 1.5em 1.5em 1.5em;
	box-shadow: 
		0 20px 40px rgba(0,0,0,0.08),
		0 8px 16px rgba(0,0,0,0.04),
		inset 0 1px 0 rgba(255,255,255,0.9);
	align-items: center;
	border: 1px solid rgba(33,150,243,0.08);
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
	backdrop-filter: blur(10px);
	box-sizing: border-box;
	min-height: 180px;
	max-width: 800px;
	justify-content: center;
	flex-wrap: nowrap;
	margin: 0 auto;
}

.mix-step-view .mix-step-badge {
	position: absolute !important;
	top: 55px !important;
	right: 20px !important;
	background: linear-gradient(135deg, #2196f3, #1976d2) !important;
	color: #fff !important;
	padding: 0.25em 0.6em !important;
	border-radius: 12px !important;
	font-size: 0.75em !important;
	font-weight: 700 !important;
	box-shadow: 0 2px 6px rgba(33,150,243,0.4) !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-width: 50px !important;
	z-index: 1000 !important;
}

/* Mobile step badge positioning */
.mobile-step-layout .mix-step-badge {
	position: absolute !important;
	top: 15px !important;
	right: 15px !important;
	background: linear-gradient(135deg, #2196f3, #1976d2) !important;
	color: #fff !important;
	padding: 0.25em 0.6em !important;
	border-radius: 12px !important;
	font-size: 0.75em !important;
	font-weight: 700 !important;
	box-shadow: 0 2px 6px rgba(33,150,243,0.4) !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	min-width: 50px !important;
	z-index: 1000 !important;
}

.mix-step-view::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, 
		#2196f3 0%, 
		#21cbf3 25%, 
		#4caf50 50%, 
		#21cbf3 75%, 
		#2196f3 100%);
	border-radius: 20px 20px 0 0;
	background-size: 300% 100%;
	animation: rainbow-flow 4s ease-in-out infinite;
}

@keyframes rainbow-flow {
	0%, 100% { background-position: 0% 50%; }
	50% { background-position: 100% 50%; }
}

.mix-step-view:hover {
	transform: translateY(-4px) scale(1.02);
	box-shadow: 
		0 32px 64px rgba(33,150,243,0.15),
		0 16px 32px rgba(0,0,0,0.08),
		inset 0 1px 0 rgba(255,255,255,0.9);
}

.mix-step-view::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 3px;
	background: linear-gradient(90deg, #2196f3, #21cbf3, #2196f3);
	background-size: 200% 100%;
	animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
	0%, 100% { background-position: 200% 0; }
	50% { background-position: -200% 0; }
}

.mix-step-view:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 30px rgba(33,150,243,0.15), 0 2px 8px rgba(0,0,0,0.1);
}
.mix-step-col {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 110px;
	max-width: 130px;
	padding: 1em;
	border-radius: 12px;
	background: linear-gradient(145deg, #ffffff 0%, rgba(255,255,255,0.9) 100%);
	backdrop-filter: blur(20px);
	border: 1px solid rgba(33,150,243,0.12);
	box-shadow: 
		0 4px 12px rgba(0,0,0,0.06),
		0 1px 4px rgba(0,0,0,0.03),
		inset 0 1px 0 rgba(255,255,255,0.8);
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	flex-shrink: 0;
	overflow: hidden;
	box-sizing: border-box;
}

.mix-step-col::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	border-radius: 16px;
	background: linear-gradient(135deg, rgba(33,150,243,0.03) 0%, rgba(76,175,80,0.03) 100%);
	opacity: 0;
	transition: opacity 0.3s ease;
	z-index: 0;
}

.mix-step-col:hover::before {
	opacity: 1;
}

.mix-step-col:hover {
	transform: translateY(-6px) scale(1.05);
	box-shadow: 
		0 20px 40px rgba(33,150,243,0.12),
		0 8px 16px rgba(0,0,0,0.06),
		inset 0 1px 0 rgba(255,255,255,0.9);
	border-color: rgba(33,150,243,0.2);
}

.mix-step-col > * {
	position: relative;
	z-index: 1;
}

/* Sophisticated inline separators within bounds */
.mix-step-separator {
	font-size: 1.5em;
	font-weight: 900;
	margin: 0 0.8em;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	border-radius: 50%;
	background: linear-gradient(135deg, #ffffff 0%, #f0f8ff 100%);
	border: 2px solid #2196f3;
	color: #2196f3;
	box-shadow: 
		0 4px 8px rgba(33,150,243,0.2),
		0 1px 2px rgba(0,0,0,0.1),
		inset 0 1px 0 rgba(255,255,255,0.9);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
	flex-shrink: 0;
}

.mix-step-separator::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient(45deg, rgba(33,150,243,0.1), rgba(33,203,243,0.1));
	border-radius: 50%;
	opacity: 0;
	transition: opacity 0.3s ease;
}

.mix-step-separator:hover::before {
	opacity: 1;
}

.mix-step-separator:hover {
	transform: scale(1.1) rotate(180deg);
	box-shadow: 
		0 12px 24px rgba(33,150,243,0.3),
		0 4px 8px rgba(0,0,0,0.15),
		inset 0 2px 0 rgba(255,255,255,0.9);
}

.mix-step-separator.equals {
	background: linear-gradient(135deg, #ffffff 0%, #f0fff0 100%);
	border-color: #4caf50;
	color: #4caf50;
	box-shadow: 
		0 8px 16px rgba(76,175,80,0.2),
		0 2px 4px rgba(0,0,0,0.1),
		inset 0 1px 0 rgba(255,255,255,0.9);
}

.mix-step-separator.equals::before {
	background: linear-gradient(45deg, rgba(76,175,80,0.1), rgba(139,195,74,0.1));
}

.mix-step-separator.equals:hover {
	box-shadow: 
		0 12px 24px rgba(76,175,80,0.3),
		0 4px 8px rgba(0,0,0,0.15),
		inset 0 2px 0 rgba(255,255,255,0.9);
}

/* Special styling for result columns */
.mix-step-result {
	background: rgba(76,175,80,0.1) !important;
	border: 2px solid rgba(76,175,80,0.25) !important;
}
.mix-step-label {
	font-size: 0.85em;
	color: #1565c0;
	margin-bottom: 0.4em;
	font-weight: 800;
	text-transform: uppercase;
	letter-spacing: 1px;
	text-shadow: 0 1px 2px rgba(0,0,0,0.1);
	background: linear-gradient(135deg, #1565c0 0%, #2196f3 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	text-align: center;
}
.mix-step-img {
	max-width: 65px;
	max-height: 65px;
	border-radius: 12px;
	margin-bottom: 0.6em;
	background: linear-gradient(145deg, #ffffff 0%, #f8fafb 100%);
	box-shadow: 
		0 6px 12px rgba(0,0,0,0.08),
		0 2px 4px rgba(0,0,0,0.04),
		inset 0 1px 0 rgba(255,255,255,0.9),
		inset 0 -1px 0 rgba(0,0,0,0.05);
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	border: 1px solid rgba(33,150,243,0.1);
	padding: 0.4em;
	position: relative;
	overflow: hidden;
	object-fit: contain;
}

.mix-step-img::before {
	content: '';
	position: absolute;
	top: -2px;
	left: -2px;
	right: -2px;
	bottom: -2px;
	background: linear-gradient(45deg, #2196f3, #21cbf3, #4caf50, #21cbf3, #2196f3);
	border-radius: 18px;
	opacity: 0;
	transition: opacity 0.3s ease;
	z-index: -1;
	background-size: 400% 400%;
	animation: gradient-shift 3s ease infinite;
}

@keyframes gradient-shift {
	0%, 100% { background-position: 0% 50%; }
	50% { background-position: 100% 50%; }
}

.mix-step-img:hover::before {
	opacity: 0.8;
}

.mix-step-img:hover {
	transform: scale(1.1) rotate(3deg);
	box-shadow: 
		0 20px 40px rgba(33,150,243,0.2),
		0 8px 16px rgba(0,0,0,0.1),
		inset 0 2px 0 rgba(255,255,255,0.9);
}
.mix-step-name {
	font-size: 0.9em;
	color: #1a202c;
	text-align: center;
	margin-bottom: 0.3em;
	word-break: break-word;
	overflow-wrap: break-word;
	hyphens: auto;
	font-weight: 600;
	text-shadow: 0 1px 2px rgba(0,0,0,0.05);
	line-height: 1.3;
	letter-spacing: 0.2px;
	width: 100%;
	padding: 0 0.3em;
	max-height: 2.6em;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
}
/* Make each mix step a horizontal row */
.mix-step {
	display: flex;
	flex-direction: row;
	gap: 2em;
	align-items: flex-end;
	margin-bottom: 2em;
	background: linear-gradient(135deg, #ffffff 0%, #f8fafb 100%);
	border-radius: 16px;
	padding: 1.8em 2em 1.2em 2em;
	box-shadow: 0 6px 25px rgba(0,0,0,0.08), 0 1px 3px rgba(0,0,0,0.05);
	border: 1px solid rgba(33,150,243,0.1);
	transition: all 0.3s ease;
	position: relative;
}

.mix-step:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 35px rgba(33,150,243,0.12), 0 3px 8px rgba(0,0,0,0.1);
}
.mix-step .product-fields {
	flex: 1 1 0;
	min-width: 0;
}
.mix-step .remove-step-btn {
	align-self: flex-start;
	margin-left: 0.5em;
	margin-bottom: 1.2em;
}
/* Faded class label for ingredient options */
.ingredient-class-label {
	float: right;
	color: #1565c099;
	font-size: 0.95em;
	font-style: italic;
	margin-left: 1.2em;
	opacity: 0.55;
}
/* Style for Select2 optgroup labels */
.select2-results__group {
	color: #1565c0;
	font-weight: 600;
	background: #e6f0fa;
	border-radius: 6px;
	padding: 0.4em 1em 0.4em 0.8em;
	margin: 0.2em 0 0.2em 0;
	font-size: 1em;
}
/* Style for mix ingredient select (reuse Select2 styles) */
.mix-ingredient-select {
	width: 100%;
	padding: 0.7em;
	border: 1px solid #bcdff1;
	border-radius: 8px;
	font-size: 1em;
	outline: none;
	margin-bottom: 0.2em;
	background: #f7f7f7;
	color: #222;
	transition: border 0.2s;
}
.mix-ingredient-select:focus {
	border-color: #7bb7e0;
}
/* Custom Select2 styles to match app look */
.select2-container--default .select2-selection--single {
	background: #f7f7f7;
	border: 1px solid #bcdff1;
	border-radius: 8px;
	height: 44px;
	padding: 0.5em 1em;
	font-size: 1em;
	transition: border 0.2s;
	box-shadow: none;
	outline: none;
	color: #222;
}
.select2-container--default .select2-selection--single:focus,
.select2-container--default .select2-selection--single.select2-selection--focus {
	border-color: #7bb7e0;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
	line-height: 2.2em;
	color: #222;
	padding-left: 0;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 100%;
	right: 0.7em;
}
.select2-dropdown {
	border-radius: 8px !important;
	border: 1px solid #bcdff1 !important;
	box-shadow: 0 4px 24px #0001;
	font-size: 1em;
	background: #fff;
}
.select2-results__option {
	border-radius: 6px;
	margin: 0.1em 0.2em;
	padding: 0.6em 1em;
	transition: background 0.15s;
}
.select2-results__option--highlighted {
	background: #e6f0fa !important;
	color: #1565c0 !important;
}
.select2-container--default .select2-selection--single .select2-selection__placeholder {
	color: #888;
}
.select2-container--default .select2-selection--single .select2-selection__clear {
	color: #bcdff1;
	font-size: 1.2em;
	margin-right: 0.5em;
}
/* Style for always-visible search bar (datalist input) */
.start-ingredient-input {
	width: 100%;
	padding: 0.7em;
	border: 1px solid #bcdff1;
	border-radius: 8px;
	font-size: 1em;
	outline: none;
	margin-bottom: 0.2em;
	background: #f7f7f7;
	color: #222;
	transition: border 0.2s;
}
.start-ingredient-input:focus {
	border-color: #7bb7e0;
}
/* Always show search bar as main button for Select2 */
.select2-container--default.always-show-search .select2-search--dropdown {
	display: block !important;
	margin: 0 !important;
	padding: 0 !important;
}
.select2-container--default.always-show-search .select2-search__field {
	display: block !important;
	width: 100% !important;
	border-radius: 8px !important;
	border: 1px solid #bcdff1 !important;
	padding: 0.7em 1em !important;
	font-size: 1em !important;
	background: #f7f7f7 !important;
	color: #222 !important;
	box-shadow: none !important;
	outline: none !important;
	margin-bottom: 0.5em !important;
}
.select2-container--default.always-show-search .select2-dropdown {
	padding-top: 0.5em;
}
.select2-container--default.always-show-search .select2-results__options {
	margin-top: 0 !important;
}
/* Custom Select2 styles to match app look */
.select2-container--default .select2-selection--single {
	background: #f7f7f7;
	border: 1px solid #bcdff1;
	border-radius: 8px;
	height: 44px;
	padding: 0.5em 1em;
	font-size: 1em;
	transition: border 0.2s;
	box-shadow: none;
	outline: none;
	color: #222;
}
.select2-container--default .select2-selection--single:focus,
.select2-container--default .select2-selection--single.select2-selection--focus {
	border-color: #7bb7e0;
}
.select2-container--default .select2-selection--single .select2-selection__rendered {
	line-height: 2.2em;
	color: #222;
	padding-left: 0;
}
.select2-container--default .select2-selection--single .select2-selection__arrow {
	height: 100%;
	right: 0.7em;
}
.select2-dropdown {
	border-radius: 8px !important;
	border: 1px solid #bcdff1 !important;
	box-shadow: 0 4px 24px #0001;
	font-size: 1em;
	background: #fff;
}
.select2-results__option {
	border-radius: 6px;
	margin: 0.1em 0.2em;
	padding: 0.6em 1em;
	transition: background 0.15s;
}
.select2-results__option--highlighted {
	background: #e6f0fa !important;
	color: #1565c0 !important;
}
.select2-container--default .select2-selection--single .select2-selection__placeholder {
	color: #888;
}
.select2-container--default .select2-selection--single .select2-selection__clear {
	color: #bcdff1;
	font-size: 1.2em;
	margin-right: 0.5em;
}
/* Searchable select (for select2 or similar) */
.start-ingredient-select {
	width: 100%;
	padding: 0.7em;
	border: 1px solid #bcdff1;
	border-radius: 6px;
	font-size: 1em;
	outline: none;
	margin-bottom: 0.2em;
}
/* Icon button styles */
.icon-btn {
	background: none;
	border: none;
	cursor: pointer;
	padding: 0.3em 0.5em;
	border-radius: 50%;
	transition: background 0.2s;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 1.8em;
	color: #2196f3;
}
.icon-btn:hover {
	background: rgba(33,150,243,0.1);
	color: #1565c0;
}
.icon-btn .material-icons {
	font-size: 1.5em;
}

/* Custom file input styles */
.form-group input[type="file"] {
	display: none;
}
.custom-file-label {
	display: inline-block;
	padding: 0.5em 1em;
	background: rgba(33,150,243,0.08);
	color: #1565c0;
	border-radius: 1.5em;
	cursor: pointer;
	font-size: 1em;
	border: 1px solid #2196f3;
	transition: background 0.2s, color 0.2s;
	margin-top: 0.2em;
}
.custom-file-label:hover {
	background: #2196f3;
	color: #fff;
}
.custom-file-label.selected {
	background: #1565c0;
	color: #fff;
}
.image-placeholder-align {
	display: inline-block;
	padding: 0.5em 1em;
	background: rgba(33,150,243,0.08);
	color: #1565c0;
	border-radius: 1.5em;
	font-size: 1em;
	border: 1px solid #2196f3;
	margin-top: 0.2em;
	min-height: 40px;
	height: 2.5em;
	visibility: hidden;
}
.mix-card {
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 4px 24px #0002;
	max-width: 900px;
	margin: 3em auto;
	padding: 2.5em 2em 2em 2em;
	display: flex;
	flex-direction: column;
	align-items: stretch;
}
.mix-card h2 {
	text-align: center;
	margin-bottom: 1.5em;
}
.add-product-btn {
  display: flex;
  gap: 1em;
  margin-bottom: 1.2em;
  background: #f7f7f7;
  border-radius: 8px;
  padding: 1em 0.8em 0.8em 0.8em;
  position: relative;
	margin-bottom: 1.2em;
	margin-top: 0.2em;
	align-self: flex-end;
	transition: background 0.2s;
	display: flex;
	flex-direction: column;
	gap: 0.5em;
	margin-bottom: 1.2em;
	background: #f7f7f7;
	border-radius: 8px;
	padding: 1em 0.8em 0.8em 0.8em;
	position: relative;
.product-fields {
	display: flex;
	gap: 1em;
	margin-bottom: 1em;
	align-items: flex-end;
.remove-product-btn {
	background: #e53e3e;
	color: #fff;
	border: none;
.result-fields {
  background: #e6f0fa;
}
	border-radius: 50%;
	width: 28px;
	height: 28px;
	font-size: 1.2em;
	cursor: pointer;
	position: absolute;
	top: 10px;
	right: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.2s;
}
.remove-product-btn:hover {
	background: #b91c1c;
}
}
.product-fields .form-group {
	flex: 1;
}
.new-mix-card {
	max-width: 420px;
	animation: fadeIn 1.1s 0.1s both;
}
.new-mix-card h2 {
	text-align: center;
	margin-bottom: 1.5em;
}
	align-self: flex-start;
	resize: vertical;
	min-height: 90px;
	font-size: 1em;
	padding: 0.7em;
	border-radius: 6px;
	border: 1px solid #bcdff1;
	transition: border 0.2s;
}
.new-mix-card textarea:focus {
	border-color: #7bb7e0;
}
.new-mix-card input[type="file"] {
	background: #f7f7f7;
	border: none;
	padding: 0.5em 0;
	font-size: 1em;
}
body { font-family: sans-serif; background: #f7f7f7; margin: 0; padding: 0; }
header {
	background: #222;
	color: #fff;
	padding: 1em 2em 1em 2em;
	display: flex;
	align-items: center;
	justify-content: space-between;
	position: relative;
}
header h1 {
	margin: 0;
	font-size: 2.2em;
	font-weight: 700;
}
.header-nav {
	display: flex;
	align-items: center;
	gap: 1.2em;
}
.nav-icon {
	color: #fff;
	text-decoration: none;
	position: relative;
	display: flex;
	align-items: center;
	font-size: 1.5em;
	padding: 0.5em 0.8em;
	border-radius: 12px;
	background: linear-gradient(135deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
	border: 1px solid rgba(255,255,255,0.2);
	backdrop-filter: blur(10px);
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	overflow: hidden;
	box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.nav-icon::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
	transition: left 0.6s;
}

.nav-icon:hover, .nav-icon:focus {
	background: linear-gradient(135deg, rgba(79,172,254,0.2) 0%, rgba(0,242,254,0.1) 100%);
	color: #4facfe;
	transform: translateY(-2px) scale(1.05);
	box-shadow: 0 8px 25px rgba(79,172,254,0.3);
	border-color: rgba(79,172,254,0.4);
}

.nav-icon:hover::before {
	left: 100%;
}

/* Logout button specific hover styling */
a[href="/logout"].nav-icon:hover,
a[href="/logout"].nav-icon:focus {
	background: linear-gradient(135deg, rgba(244,67,54,0.2) 0%, rgba(229,57,53,0.1) 100%) !important;
	color: #f44336 !important;
	border-color: rgba(244,67,54,0.4) !important;
	box-shadow: 0 8px 25px rgba(244,67,54,0.3) !important;
}
.material-icons {
	font-size: 1.7em;
	vertical-align: middle;
}
.nav-tooltip {
	visibility: hidden;
	opacity: 0;
	background: linear-gradient(135deg, #222 0%, #333 100%);
	color: #fff;
	text-align: center;
	border-radius: 8px;
	padding: 0.5em 1em;
	position: absolute;
	z-index: 10;
	left: 50%;
	top: 130%;
	transform: translateX(-50%) translateY(-10px);
	font-size: 0.9em;
	pointer-events: none;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	white-space: nowrap;
	box-shadow: 0 8px 25px rgba(0,0,0,0.3);
	border: 1px solid rgba(255,255,255,0.1);
	backdrop-filter: blur(10px);
}

.nav-tooltip::before {
	content: '';
	position: absolute;
	top: -4px;
	left: 50%;
	transform: translateX(-50%);
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-bottom: 5px solid #222;
}

.nav-icon:hover .nav-tooltip, .nav-icon:focus .nav-tooltip {
	visibility: visible;
	opacity: 1;
	transform: translateX(-50%) translateY(0);
}
main { 
  max-width: 700px; 
  margin: 2em auto; 
  padding: 2em; 
  background: #fff; 
  border-radius: 15px; 
  box-shadow: 0 8px 32px rgba(0,0,0,0.1); 
}

/* Enhanced Edit and Delete Buttons */
.edit-mix-btn, .delete-mix-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0.5em 0.8em;
	border-radius: 10px;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.9em;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
	border: none;
	cursor: pointer;
	box-shadow: 0 4px 12px rgba(0,0,0,0.1);
	backdrop-filter: blur(10px);
}

.edit-mix-btn {
	background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
	color: white;
	margin-right: 0.5em;
}

.edit-mix-btn::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
	transition: left 0.5s;
}

.edit-mix-btn:hover {
	background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
	transform: translateY(-2px) scale(1.05);
	box-shadow: 0 8px 20px rgba(76,175,80,0.3);
}

.edit-mix-btn:hover::before {
	left: 100%;
}

.delete-mix-btn {
	background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
	color: white;
}

.delete-mix-btn::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
	transition: left 0.5s;
}

.delete-mix-btn:hover {
	background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
	transform: translateY(-2px) scale(1.05);
	box-shadow: 0 8px 20px rgba(244,67,54,0.3);
}

.delete-mix-btn:hover::before {
	left: 100%;
}

/* Enhanced Button Container Alignment */
.mix-actions {
	display: flex;
	align-items: center;
	gap: 0.5em;
	margin-top: 0.5em;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.post { 
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  margin-bottom: 1.5em; 
  padding: 1.5em 2em; 
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(20px);
  animation: slideUpFade 0.6s ease-out forwards;
}
.post:nth-child(1) { animation-delay: 0.1s; }
.post:nth-child(2) { animation-delay: 0.2s; }
.post:nth-child(3) { animation-delay: 0.3s; }
.post:nth-child(4) { animation-delay: 0.4s; }
.post:nth-child(5) { animation-delay: 0.5s; }
.post:nth-child(6) { animation-delay: 0.6s; }
.post:nth-child(7) { animation-delay: 0.7s; }
.post:nth-child(8) { animation-delay: 0.8s; }
.post:nth-child(9) { animation-delay: 0.9s; }
.post:nth-child(10) { animation-delay: 1.0s; }

@keyframes slideUpFade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.post:hover {
  box-shadow: 0 8px 25px rgba(33,150,243,0.15);
  transform: translateY(-4px) scale(1.02);
  border-color: rgba(33,150,243,0.3);
}
.post img { display: block; margin: 1em 0; }
.meta { color: #888; font-size: 0.9em; }
.error { color: #b00; margin-bottom: 1em; text-align: center; }

/* Login page styles */
@keyframes fadeIn {
	from { opacity: 0; transform: translateY(30px); }
	to { opacity: 1; transform: translateY(0); }
}
.login-bg {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	overflow: hidden;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-bg::before {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	background: linear-gradient(45deg, 
		rgba(33,150,243,0.1) 0%, 
		rgba(33,203,243,0.1) 25%,
		rgba(76,175,80,0.1) 50%,
		rgba(33,203,243,0.1) 75%,
		rgba(33,150,243,0.1) 100%);
	background-size: 400% 400%;
	animation: gradientShift 8s ease-in-out infinite;
	z-index: 0;
}

@keyframes gradientShift {
	0%, 100% { background-position: 0% 50%; }
	50% { background-position: 100% 50%; }
}

.login-bg::after {
	content: '';
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	backdrop-filter: blur(15px) brightness(0.9) saturate(1.2);
	-webkit-backdrop-filter: blur(15px) brightness(0.9) saturate(1.2);
	z-index: 1;
}

.login-card {
	position: relative;
	z-index: 2;
	background: linear-gradient(145deg, rgba(255,255,255,0.95) 0%, rgba(248,249,250,0.9) 100%);
	border-radius: 24px;
	box-shadow: 
		0 32px 64px rgba(0,0,0,0.15),
		0 16px 32px rgba(0,0,0,0.1),
		inset 0 1px 0 rgba(255,255,255,0.9),
		0 0 0 1px rgba(255,255,255,0.3);
	min-width: 380px;
	max-width: 420px;
	width: 100%;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	padding: 3em 2.5em 2.5em 2.5em;
	backdrop-filter: blur(20px) saturate(180%);
	-webkit-backdrop-filter: blur(20px) saturate(180%);
	border: 2px solid rgba(255,255,255,0.3);
	box-sizing: border-box;
	opacity: 0;
	animation: loginCardAppear 0.8s 0.3s both;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
}

.login-card::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: linear-gradient(90deg, 
		#2196f3 0%, 
		#21cbf3 25%, 
		#4caf50 50%, 
		#21cbf3 75%, 
		#2196f3 100%);
	background-size: 300% 100%;
	animation: rainbow-flow 4s ease-in-out infinite;
}

@keyframes loginCardAppear {
	from { 
		opacity: 0; 
		transform: translateY(30px) scale(0.95);
		filter: blur(10px);
	}
	to { 
		opacity: 1; 
		transform: translateY(0) scale(1);
		filter: blur(0);
	}
}

.login-card:hover {
	transform: translateY(-5px) scale(1.02);
	box-shadow: 
		0 48px 80px rgba(0,0,0,0.2),
		0 20px 40px rgba(0,0,0,0.15),
		inset 0 1px 0 rgba(255,255,255,0.9),
		0 0 0 1px rgba(255,255,255,0.4);
}
.login-card h2 {
	margin-top: 0;
	margin-bottom: 1.5em;
	text-align: center;
	color: #1a202c;
	font-size: 2em;
	font-weight: 800;
	background: linear-gradient(135deg, #2196f3 0%, #21cbf3 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	text-shadow: 0 2px 4px rgba(0,0,0,0.1);
	letter-spacing: 0.5px;
}

.form-group {
	display: flex;
	flex-direction: column;
	margin-bottom: 1.5em;
	position: relative;
}

.form-group label {
	margin-bottom: 0.6em;
	color: #1a202c;
	font-weight: 700;
	font-size: 0.95em;
	letter-spacing: 0.3px;
}

.form-group input {
	padding: 1em 1.2em;
	border: 2px solid rgba(33,150,243,0.2);
	border-radius: 12px;
	font-size: 1em;
	outline: none;
	background: linear-gradient(145deg, #ffffff 0%, #f8fafb 100%);
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 4px 12px rgba(0,0,0,0.05);
	position: relative;
}

.form-group input:focus {
	border-color: #2196f3;
	background: #ffffff;
	box-shadow: 
		0 8px 20px rgba(33,150,243,0.15),
		0 0 0 3px rgba(33,150,243,0.1);
	transform: translateY(-2px);
}

.form-group input:hover {
	border-color: rgba(33,150,243,0.4);
	box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}

.form-remember {
	margin-bottom: 2em;
}

.form-remember label {
	display: flex;
	align-items: center;
	gap: 0.8em;
	cursor: pointer;
	font-size: 0.95em;
	margin-bottom: 0;
}

.form-remember input[type="checkbox"] {
	width: 18px;
	height: 18px;
	margin: 0;
	accent-color: #2196f3;
	cursor: pointer;
}
.login-btn {
	background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
	color: #fff;
	border: none;
	border-radius: 12px;
	padding: 1em 3em;
	font-size: 1.1em;
	font-weight: 700;
	cursor: pointer;
	margin-top: 1em;
	box-shadow: 
		0 8px 20px rgba(33,150,243,0.3),
		0 4px 12px rgba(0,0,0,0.1);
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	display: block;
	min-width: 120px;
	position: relative;
	overflow: hidden;
	letter-spacing: 0.5px;
	border: 2px solid rgba(255,255,255,0.2);
}

.login-btn::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
	transition: left 0.6s;
}

.login-btn:hover {
	background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
	transform: translateY(-3px) scale(1.05);
	box-shadow: 
		0 12px 30px rgba(33,150,243,0.4),
		0 6px 16px rgba(0,0,0,0.15);
	border-color: rgba(255,255,255,0.3);
}

.login-btn:hover::before {
	left: 100%;
}

.login-btn:active {
	transform: translateY(-1px) scale(1.02);
}

.login-btn.loading {
	background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
	color: transparent;
	cursor: not-allowed;
	pointer-events: none;
	position: relative;
	overflow: hidden;
}

.login-btn.loading::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 20px;
	height: 20px;
	margin: -10px 0 0 -10px;
	border: 2px solid rgba(255,255,255,0.3);
	border-top: 2px solid #ffffff;
	border-radius: 50%;
	animation: loginSpinner 0.8s linear infinite;
}

.login-btn.loading::before {
	display: none;
}

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

/* Error message styling */
.error {
	background: linear-gradient(135deg, rgba(244,67,54,0.1) 0%, rgba(244,67,54,0.05) 100%);
	border: 2px solid rgba(244,67,54,0.2);
	border-radius: 12px;
	color: #d32f2f;
	padding: 1em 1.2em;
	margin-bottom: 1.5em;
	font-weight: 600;
	text-align: center;
	backdrop-filter: blur(10px);
	box-shadow: 0 4px 12px rgba(244,67,54,0.1);
}

/* Mobile modal step layout styles */
.steps-container {
	display: flex;
	flex-direction: column;
	gap: 2em;
	align-items: center;
	width: 100%;
	overflow-x: hidden;
	overflow-y: auto;
}

.mobile-step-layout {
	background: linear-gradient(135deg, #f8faff 0%, #e3f2fd 100%);
	border-radius: 16px;
	padding: 2.5em 1.5em 1.5em 1.5em;
	box-shadow: 0 6px 20px rgba(33,150,243,0.15);
	border: 1px solid rgba(33,150,243,0.1);
	width: 100%;
	max-width: 400px;
	display: flex !important;
	flex-direction: column !important;
	overflow: hidden;
	box-sizing: border-box;
	position: relative;
	min-height: 120px;
}

.mobile-step-header {
	background: linear-gradient(135deg, #2196f3, #1976d2);
	color: #fff;
	padding: 0.8em 1em;
	border-radius: 12px;
	font-size: 1.1em;
	font-weight: 700;
	text-align: center;
	margin-bottom: 1.2em;
	box-shadow: 0 3px 10px rgba(33,150,243,0.4);
}

.mobile-step-section {
	margin-bottom: 1.2em;
	padding: 1em;
	background: rgba(255,255,255,0.7);
	border-radius: 10px;
	border: 1px solid rgba(33,150,243,0.1);
	display: flex !important;
	flex-direction: column !important;
	width: 100% !important;
}

.mobile-step-section.result-section {
	background: rgba(76,175,80,0.15);
	border: 1px solid rgba(76,175,80,0.25);
}

.mobile-step-label {
	font-weight: 600;
	font-size: 0.8em;
	color: #555;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 0.8em;
	text-align: center;
}

.mobile-step-item {
	display: flex !important;
	flex-direction: column !important;
	align-items: center !important;
	gap: 0.8em;
	width: 100% !important;
}

.mobile-step-img {
	width: 80px;
	height: 80px;
	object-fit: cover;
	border-radius: 12px;
	box-shadow: 0 3px 10px rgba(0,0,0,0.15);
}

.mobile-step-name {
	font-weight: 600;
	color: #333;
	font-size: 1em;
	text-align: center;
	line-height: 1.3;
}

/* Desktop layout (existing) */
.desktop-step-layout {
	position: relative;
	display: flex;
	align-items: center;
	gap: 1.5em;
	justify-content: center;
	background: linear-gradient(145deg, #f8faff 0%, #e3f2fd 100%);
	border-radius: 16px;
	padding: 1.5em;
	box-shadow: 0 6px 20px rgba(33,150,243,0.15);
	border: 1px solid rgba(33,150,243,0.1);
	width: 100%;
	overflow: hidden;
	box-sizing: border-box;
}

/* Filter toggle button */
.filter-toggle-btn {
	background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
	border: 2px solid #2196f3;
	color: #2196f3;
	font-size: 1.1em;
	font-weight: 600;
	border-radius: 12px;
	padding: 0.8em 1.5em;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
	box-shadow: 0 4px 15px rgba(33,150,243,0.1);
	display: flex;
	align-items: center;
	gap: 0.6em;
}

.filter-toggle-btn::before {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background: linear-gradient(90deg, transparent, rgba(33,150,243,0.1), transparent);
	transition: left 0.6s;
}

.filter-toggle-btn:hover {
	background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
	border-color: #1976d2;
	transform: translateY(-2px) scale(1.05);
	box-shadow: 0 8px 25px rgba(33,150,243,0.2);
}

.filter-toggle-btn:hover::before {
	left: 100%;
}

.filter-toggle-btn.active {
	background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
	color: #fff;
	border-color: #1976d2;
	box-shadow: 0 6px 20px rgba(33,150,243,0.3);
	transform: translateY(-1px);
}

.filter-toggle-btn .chevron {
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	font-size: 1.2em;
}

.filter-toggle-btn.active .chevron {
	transform: rotate(180deg);
}

/* Filter container animations */
.filter-container {
	overflow: hidden;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	margin-bottom: 1em;
}

.filter-container.hidden {
	max-height: 0;
	opacity: 0;
	transform: translateY(-20px);
	margin-bottom: 0;
}

.filter-container.visible {
	max-height: 200px;
	opacity: 1;
	transform: translateY(0);
	margin-bottom: 1em;
}

/* Filter bar styles */
.filter-bar {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 1.5em;
	margin: 0.5em auto 0 auto;
	padding: 1.2em 1.5em;
	background: linear-gradient(135deg, #fff 0%, #f8fafd 100%);
	border-radius: 16px;
	border: 2px solid #e3eaf3;
	box-shadow: 0 4px 20px rgba(33, 150, 243, 0.08);
	max-width: 500px;
	backdrop-filter: blur(10px);
}

.filter-group {
	display: flex;
	align-items: center;
	gap: 0.6em;
}

.filter-bar label {
	font-weight: 600;
	color: #555;
	font-size: 0.9em;
	white-space: nowrap;
	min-width: fit-content;
}

.filter-bar select {
	padding: 0.6em 0.8em;
	border: 2px solid #e0e7ff;
	border-radius: 8px;
	background: linear-gradient(135deg, #fff 0%, #f8faff 100%);
	font-size: 0.85em;
	font-weight: 500;
	min-width: 90px;
	max-width: 120px;
	color: #333;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 2px 8px rgba(33, 150, 243, 0.06);
}

.filter-bar select:focus {
	outline: none;
	border-color: #2196f3;
	box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.15), 0 4px 12px rgba(33, 150, 243, 0.1);
	background: #fff;
}

.filter-bar select:hover {
	border-color: #90caf9;
	box-shadow: 0 4px 12px rgba(33, 150, 243, 0.12);
}

#clearFiltersBtn {
	background: linear-gradient(135deg, #f44336 0%, #e53935 100%);
	color: white;
	border: none;
	border-radius: 8px;
	padding: 0.6em 1em;
	font-size: 0.85em;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	display: flex;
	align-items: center;
	gap: 0.4em;
	box-shadow: 0 4px 15px rgba(244, 67, 54, 0.25);
	white-space: nowrap;
}

#clearFiltersBtn:hover {
	background: linear-gradient(135deg, #e53935 0%, #d32f2f 100%);
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(244, 67, 54, 0.35);
}

#clearFiltersBtn:active {
	transform: translateY(0);
}

#clearFiltersBtn .material-icons {
	font-size: 1em;
}

@media (max-width: 768px) {
	.filter-bar {
		flex-wrap: wrap;
		gap: 1em;
		padding: 1em;
		max-width: 90%;
	}
	
	.filter-group {
		gap: 0.5em;
	}
	
	.filter-bar select {
		min-width: 70px;
		max-width: 90px;
		font-size: 0.8em;
	}
	
	.filter-toggle-btn {
		font-size: 1em;
		padding: 0.7em 1.2em;
	}
	
	/* Fix button container layouts on mobile */
	div[style*="display: flex"][style*="justify-content: center"] {
		flex-wrap: wrap !important;
		gap: 0.8em !important;
		padding: 0 0.5em !important;
		margin: 1em 0 !important;
	}
	
	/* Class buttons mobile styling */
	.class-btn {
		font-size: 0.9em !important;
		padding: 0.6em 1em !important;
		min-width: 90px !important;
		flex: 1 !important;
		max-width: 110px !important;
		white-space: nowrap !important;
		overflow: hidden !important;
		text-overflow: ellipsis !important;
		margin: 0.2em !important;
	}
	
	/* Hot button mobile styling */
	.hot-btn {
		font-size: 1em !important;
		padding: 0.7em 1.2em !important;
		min-width: 180px !important;
		max-width: 250px !important;
		margin: 0 auto !important;
		width: auto !important;
		flex: none !important;
	}
	
	/* Main container mobile padding */
	main {
		padding: 0 0.5em !important;
	}
	
	/* Header mobile adjustments */
	header h1 {
		font-size: 1.4em;
		padding: 0 0.5em;
	}
	
	.header-nav {
		padding: 0 0.5em;
	}
}

/* Mobile responsive login page */
@media (max-width: 768px) {
	.login-card {
		min-width: unset !important;
		max-width: 90vw !important;
		width: 90vw !important;
		margin: 1em !important;
		padding: 2em 1.5em 1.5em 1.5em !important;
		border-radius: 16px !important;
	}
	
	.login-card h2 {
		font-size: 1.8em !important;
		margin-bottom: 1em !important;
	}
	
	.form-group {
		margin-bottom: 1.2em !important;
	}
	
	.form-group label {
		font-size: 0.9em !important;
		margin-bottom: 0.3em !important;
	}
	
	.form-group input {
		padding: 0.8em !important;
		font-size: 16px !important; /* Prevents zoom on iOS */
	}
	
	.login-btn {
		padding: 0.8em 2em !important;
		font-size: 1em !important;
		width: 100% !important;
		max-width: 280px !important;
	}
	
	.login-footer p {
		font-size: 12px !important;
		margin-top: 1em !important;
		line-height: 1.4 !important;
	}
}

@media (max-width: 480px) {
	.login-card {
		width: 95vw !important;
		margin: 0.5em !important;
		padding: 1.5em 1em 1em 1em !important;
		border-radius: 12px !important;
	}
	
	.login-card h2 {
		font-size: 1.6em !important;
		margin-bottom: 0.8em !important;
	}
	
	.form-group {
		margin-bottom: 1em !important;
	}
	
	.form-group input {
		padding: 0.7em !important;
	}
	
	.login-btn {
		padding: 0.7em 1.5em !important;
		font-size: 0.95em !important;
	}
	
	.login-footer p {
		font-size: 11px !important;
		margin-top: 0.8em !important;
	}
}
