/* Global Font Family - Prompt (using local fonts) */
@import url("/fonts/fonts.css");
body {
	font-family: "Prompt", sans-serif !important;
}

/* User Info Section Min Width */
.navbar-nav.ml-auto {
	min-width: auto;
	flex-shrink: 0;
	position: relative;
	z-index: 1;
}

.navbar-nav.ml-auto > .nav-item {
	display: flex;
	align-items: center;
}

#layout-user-info-link {
	display: flex;
	align-items: center;
}

#layout-user-role-badge,
.user-role-badge {
	display: inline-block;
	width: auto;
	font-weight: normal !important;
	font-size: 0.65rem !important;
	padding: 0.25rem 0.5rem !important;
	line-height: 1.2 !important;
	background-color: #1f5099 !important;
	color: #ffffff !important;
}

.navbar-nav.ml-auto .nav-link[id="menuNotification"] {
	display: flex;
	align-items: center;
	height: 100%;
}

/* Hide scrollbar for cleaner look (optional) */
#navbarCollapse::-webkit-scrollbar {
	height: 4px;
}

#navbarCollapse::-webkit-scrollbar-track {
	background: transparent;
}

#navbarCollapse::-webkit-scrollbar-thumb {
	background: rgba(0, 0, 0, 0.2);
	border-radius: 2px;
}

#navbarCollapse::-webkit-scrollbar-thumb:hover {
	background: rgba(0, 0, 0, 0.3);
}

/**
 * EPMS Maintenance Mode Styles
 * Global styles for maintenance mode overlay on login page
 */
.epms-maintenance-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #395586 0%, #4a6a9a 50%, #5b7fae 100%);
	z-index: 9999;
	display: flex;
	justify-content: center;
	align-items: center;
	color: #fff;
}

.epms-maintenance-container {
	text-align: center;
	max-width: 37.5rem;
	width: 100%;
	padding: 3.125rem 2.5rem;
	background-color: #ffffff;
	border-radius: 1rem;
	box-shadow: 0 0.625rem 2.5rem rgba(0, 0, 0, 0.25);
	color: #333;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

/**
 * Password Toggle Styles
 * Reusable styles for password show/hide toggle functionality
 */
.password-input-wrapper {
	position: relative;
}

.password-input-wrapper .form-control {
	padding-right: 40px;
}

/* Adjust padding when validation classes are present */
.password-input-wrapper .form-control.is-valid,
.password-input-wrapper .form-control.is-invalid {
	padding-right: 60px;
	background-position: right calc(0.375em + 0.1875rem + 30px) center;
}

.password-toggle {
	position: absolute;
	right: 10px;
	top: 50%;
	transform: translateY(-50%);
	cursor: pointer;
	color: #6c757d;
	user-select: none;
	padding: 5px;
	z-index: 1;
}

.password-toggle:hover {
	color: #495057;
}

.password-toggle.active i.fa-eye {
	display: none;
}

.password-toggle.active i.fa-eye-slash {
	display: inline;
}

.password-toggle i.fa-eye-slash {
	display: none;
}

/* Full screen white card on mobile */
@media (max-width: 768px) {
	.epms-maintenance-overlay {
		padding: 0;
		background: linear-gradient(135deg, #395586 0%, #4a6a9a 50%, #5b7fae 100%) !important;
		align-items: stretch;
		justify-content: flex-start;
		height: 100vh;
		overflow: hidden;
	}

	.epms-maintenance-container {
		max-width: 100% !important;
		width: 100% !important;
		height: 100vh !important;
		min-height: 100vh !important;
		border-radius: 0 !important;
		padding: 2.5rem 1.875rem;
		margin: 0 !important;
		box-shadow: none !important;
		background-color: #ffffff !important;
		display: flex;
		flex-direction: column;
		justify-content: center;
		align-self: stretch;
	}
}

.epms-maintenance-logo img {
	max-width: 12.5rem;
	height: auto;
	display: block;
	margin: 0 auto;
}

.epms-maintenance-icon {
	line-height: 1;
	padding: 1.25rem 0;
	text-align: center;
}

.epms-maintenance-icon img {
	max-width: 100%;
	width: clamp(200px, 40vw, 400px);
	height: auto;
	display: block;
	margin: 0 auto;
}

.epms-maintenance-title {
	font-size: 1.5rem;
	font-weight: 600;
	color: #1a1a1a;
	line-height: 1.5;
}

.epms-maintenance-content {
	font-size: 1rem;
	color: #4a4a4a;
	line-height: 1.8;
	margin-bottom: 0;
}

.dropdown-item {
	padding: 0.5rem 1rem;
}

.dropdown-profile {
	min-width: 230px;
}

/* Badge font weight */
.badge {
	font-weight: 500;
}

/* Select2 responsive container - removes min-width constraint for better column fitting */
.select2-responsive .select2-container {
	min-width: 0 !important;
	width: 100% !important;
}

.select2-responsive .select2-dropdown {
	max-width: 100%;
}
