.bg-full-screen-image {
	background-image: url('../../app-assets/images/backgrounds/bg.png') !important;
}

/* 
   FIX FOR BLURRY/DIMMED AND UNCLICKABLE SCREEN
   This happens because the theme's overlays (sidenav & content) get stuck 
   or the modal backdrop doesn't clear properly.
*/

/* 1. Force hide the permanent overlays that dim the screen */
.sidenav-overlay,
.content-overlay {
	display: none !important;
	opacity: 0 !important;
	visibility: hidden !important;
	z-index: -1 !important;
	pointer-events: none !important;
}

/* 2. Fix for unclickable screen - ensure main content is always on top of stuck backdrops */
.app-content.content {
	position: relative;
	z-index: 1 !important;
	pointer-events: auto !important;
}

/* 3. Disable the blur effect if it exists */
body.modal-open .app-content,
body.modal-open .header-navbar,
body.modal-open .main-menu,
.app-content,
.header-navbar,
.main-menu {
	filter: none !important;
	-webkit-filter: none !important;
}

/* 4. Handle Modal Backdrops - if backdrops are getting stuck, we hide them 
   and rely on the modal container's own positioning. */
.modal-backdrop {
	display: none !important;
}

/* Ensure modals are actually visible and centered even without backdrop */
.modal {
	background: rgba(0, 0, 0, 0.5);
	/* Add semi-transparent background to the modal container itself */
	z-index: 1050 !important;
}

/* 5. Ensure body is clickable even if theme think it's loading */
body.modal-open,
html.loading body {
	overflow: auto !important;
	pointer-events: auto !important;
}

/* Specific fix for material theme blur */
.material-layout .content-overlay {
	background: transparent !important;
}

/* FIX: Ensure Modal is ALWAYS on top of everything, including fixed headers */
.modal {
	z-index: 11000 !important;
	/* Higher than any possible header z-index */
}

/* Professional Modal Styling - FORCE VISIBILITY */
.modal-content {
	border-radius: 15px !important;
	border: none !important;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2) !important;
	display: flex !important;
	flex-direction: column !important;
	background: #fff !important;
}

body .modal-header {
	background-color: #667eea !important;
	/* Fallback for older browsers */
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
	color: white !important;
	border-radius: 15px 15px 0 0 !important;
	padding: 1.2rem 1.5rem !important;
	border-bottom: none !important;
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	min-height: 60px !important;
	width: 100% !important;
	visibility: visible !important;
	position: relative !important;
	z-index: 1051 !important;
	flex-shrink: 0 !important;
	opacity: 1 !important;
}

body .modal-header .modal-title {
	font-weight: 700 !important;
	font-size: 1.25rem !important;
	color: white !important;
	margin-bottom: 0 !important;
	line-height: 1.5 !important;
	visibility: visible !important;
	display: block !important;
}

.modal-header .close {
	color: white !important;
	opacity: 0.9 !important;
	text-shadow: none !important;
	background: transparent !important;
	border: none !important;
	font-size: 1.5rem !important;
	padding: 0 1rem !important;
	margin: -1rem -1rem -1rem auto !important;
	line-height: 1 !important;
	outline: none !important;
	cursor: pointer !important;
}

.modal-header .close:hover {
	opacity: 1 !important;
	transform: rotate(90deg) !important;
	color: #ffeaea !important;
}

.modal-body {
	padding: 1.5rem !important;
	background: #fff !important;
}

.form-group label {
	font-weight: 600 !important;
	color: #555 !important;
	margin-bottom: 0.5rem !important;
}

.form-control {
	border-radius: 8px !important;
	border: 1px solid #ddd !important;
	padding: 0.6rem 1rem !important;
	transition: all 0.3s !important;
}

/* Ensure padding is correct when icons are present */
.has-icon-left .form-control {
	padding-left: 3.5rem !important;
}

.has-icon-right .form-control {
	padding-right: 3.5rem !important;
}

/* Vertically center the icons */
.form-control-position {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	height: 100% !important;
	top: 0 !important;
	width: 3.5rem !important;
}

.form-control-position i {
	font-size: 1.3rem !important;
	color: #667eea !important;
}



.form-control:focus {
	box-shadow: 0 0 0 3px rgba(118, 75, 162, 0.1) !important;
	border-color: #764ba2 !important;
}

.modal-footer,
.form-actions {
	background: #f8f9fa !important;
	border-radius: 0 0 15px 15px !important;
	padding: 1rem 1.5rem !important;
	border-top: 1px solid #eee !important;
}

/* Ensure backdrop doesn't cover modal */
.modal-backdrop {
	z-index: 10999 !important;
	/* Just below modal */
	background-color: rgba(0, 0, 0, 0.5) !important;
}

/* Custom transitions for modals */
.modal-dialog {
	margin-top: 100px !important;
	/* Ensure it's not stuck behind fixed header */
}

.modal.fade .modal-dialog {
	transform: scale(0.95);
	transition: transform 0.3s ease-out;
}

.modal.show .modal-dialog {
	transform: scale(1);
}

/* Settings Page Enhancements - COMPACT & ONE SCREEN VIEW */
.card-header.bg-hexagons {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
	color: white;
	border-radius: 12px 12px 0 0;
	padding: 0.8rem 1.2rem;
	/* Reduced padding */
	margin-bottom: 0;
}

.card-header.bg-hexagons h4 {
	color: white !important;
	font-size: 1.1rem;
	margin: 0;
}

.card-body {
	padding: 1rem !important;
	/* Reduced padding */
}

.form-section {
	color: #667eea;
	border-bottom: 1px solid #eee;
	padding-bottom: 8px;
	/* Reduced specific padding */
	margin-bottom: 15px;
	/* Reduced margin */
	margin-top: 5px;
	/* Reduced margin */
	font-weight: 700;
	text-transform: uppercase;
	font-size: 0.95rem;
	/* Smaller font */
}

.form-section i {
	margin-right: 8px;
	background: rgba(102, 126, 234, 0.1);
	padding: 5px;
	border-radius: 6px;
	font-size: 0.9rem;
}

.form-group {
	margin-bottom: 10px !important;
	/* Compact spacing between inputs */
}

.form-group label {
	font-size: 0.85rem !important;
	/* Smaller label font */
	margin-bottom: 3px !important;
	font-weight: 600;
}

.form-control {
	background-color: #f9f9f9;
	border: 1px solid #eee;
	height: calc(2.2rem + 2px) !important;
	/* Much shorter inputs */
	padding: 0.25rem 0.5rem !important;
	/* Compact padding */
	font-size: 0.9rem !important;
}

.form-control:focus {
	background-color: #fff;
	border-color: #764ba2;
	box-shadow: 0 0 0 0.15rem rgba(118, 75, 162, 0.15);
}

/* Reduce spacing for descriptions */
.text-muted {
	font-size: 0.8rem !important;
	margin-bottom: 0.25rem !important;
}

/* Compact Button */
.btn-primary {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
	border: none !important;
	padding: 0.6rem 2rem !important;
	font-size: 0.95rem !important;
	font-weight: 600 !important;
	color: white !important;
	box-shadow: 0 4px 12px rgba(118, 75, 162, 0.3) !important;
	text-transform: uppercase !important;
	letter-spacing: 0.5px !important;
}

.btn-primary:hover {
	transform: translateY(-2px) !important;
	box-shadow: 0 6px 15px rgba(118, 75, 162, 0.4) !important;
}

.btn-warning {
	background: #ffc107 !important;
	border: none !important;
	color: #212529 !important;
	font-weight: 600 !important;
	padding: 0.6rem 2rem !important;
	text-transform: uppercase !important;
}

hr {
	margin-top: 0.5rem;
	margin-bottom: 0.5rem;
	border-top: 1px solid rgba(0, 0, 0, 0.05);
}

/* Alert Styling */
.alert-warning {
	background-color: #fff9e6;
	border-color: #ffecb5;
	color: #856404;
	border-radius: 8px;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}