/* ====================================
   GLOBAL LAYOUT SYSTEM
   Responsive layout for navbar, sidebar, and main content
  ==================================== */

* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	background: #f5f5f5;
	overflow-x: hidden;
}

/* ====================================
   HEADER/NAVBAR - Fixed at Top
   ==================================== */
.header-container {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	display: flex;
	justify-content: space-between;
	background: #f6edfd;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	z-index: 2000;
	height: 68px;
}

.avolve-brand {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 320px;
	height: 70px;
	background-color: #fff;
	gap: 50px;
	border-radius: 0 50px 50px 0;
	box-shadow: #5C2D90 1.95px 1.95px 2.6px;
}

.sidebar-toggle {
	margin-right: 20px;
	width: 20px;
	height: 20px;
	cursor: pointer;
}

.logo {
	margin-left: 20px;
}

.avolve-logo {
	width: 150px;
}

.menubar {
	width: 16px;
	height: 16px;
	cursor: pointer;
}

.nav-right-block {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-right: 30px;
	gap: 25px;
}

.nav-right-icons {
	padding: 0;
	margin: 0;
	height: 100%;
	display: flex;
	align-items: center;
	cursor: pointer;
}

.nav-right-icons img {
	width: 30px;
	height: 30px;
}

.notifications {
	display: flex;
	justify-content: center;
	align-items: center;
	height: 40px;
	width: 40px;
	border-radius: 50%;
	transition: all 0.3s ease;
	cursor: pointer;
}

.notifications:hover {
	background-color: #f0e6fa;
}

.notifications:hover img {
	filter: brightness(0) saturate(100%) invert(20%) sepia(40%) saturate(700%) hue-rotate(255deg) brightness(90%) contrast(100%);
}

.notifications.active {
	background-color: #5C2D90;
}

.notifications.active img {
	filter: brightness(0) invert(1);
}

/* ====================================
   SIDEBAR - Fixed at Left
   ==================================== */
.sidebar {
	position: fixed;
	top: 68px;
	left: 0;
	width: 290px;
	height: calc(100vh - 68px);
	background: #fff;
	transition: all 0.4s ease;
	z-index: 1500;
	box-shadow: #5C2D90 1.95px 1.95px 2.6px;
	overflow-y: auto;
	overflow-x: hidden;
	scrollbar-width: thin;
	scrollbar-color: #9854CB #f1f1f1;
}

.sidebar::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.sidebar::-webkit-scrollbar-track {
	background: transparent;
}

.sidebar::-webkit-scrollbar-thumb {
	background: rgba(92, 45, 145, 0.5);
	border-radius: 4px;
}

.sidebar::-webkit-scrollbar-thumb:hover {
	background: rgba(92, 45, 145, 0.8);
}


/* Firefox scrollbar - overlay style */
.sidebar {
    scrollbar-width: thin;
    scrollbar-color: rgba(92, 45, 145, 0.5) transparent;
    scrollbar-gutter: stable;
}

/* Alternative: Force overlay scrollbar for Chromium browsers */
@supports (overflow: overlay) {
    .sidebar {
        overflow-y: overlay;
    }
}

/* Ensure sidebar nav has proper padding to prevent content from hiding under scrollbar */
.sidebar-nav {
    padding-right: 4px;
}


.sidebar.collapsed {
	width: 80px;
}

.sidebar-nav .nav-list {
	list-style: none;
	display: flex;
	gap: 12px;
	margin-top: 20px;
	padding: 0 3px 15px 12px;
	flex-direction: column;
	transition: 0.3s ease;
}

.sidebar-nav .nav-link {
	color: #5C2D91;
	display: flex;
	gap: 11px;
	white-space: nowrap;
	border-radius: 8px;
	padding: 10px 10px 10px 13px;
	font-weight: 600;
	font-size: 15px;
	margin-top: 5px;
	align-items: center;
	text-decoration: none;
	transition: 0.3s ease;
	cursor: pointer;
}

.icon-block img {
	width: 24px;
	height: 24px;
	transition: filter 0.3s ease;
}

.nav-link:hover .icon-block img {
	filter: brightness(0) invert(1);
}

.nav-item.active>.nav-link .icon-block img,
.nav-item.parent-active>.nav-link .icon-block img {
	filter: brightness(0) invert(1);
}

.sidebar.collapsed .sidebar-nav .nav-link {
	border-radius: 12px;
}

.sidebar .sidebar-nav .nav-link .nav-label {
	opacity: 1;
	transform: translateX(0);
	transition: opacity 0.3s ease 0.2s, transform 0.3s ease 0.2s;
}

.sidebar.collapsed .sidebar-nav .nav-link .nav-label {
	opacity: 0;
	transform: translateX(-20px);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

.sidebar-nav .nav-link:hover {
	color: #fff;
	background: #9854CB;
}

.nav-item.active>.nav-link,
.nav-item.parent-active>.nav-link {
	color: #fff;
	background: #9854CB;
}

.nav-item.has-children>.nav-link {
	position: relative;
}

.child-menu {
	list-style: none;
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.3s ease;
	padding-left: 0;
}

.nav-item.has-children.open .child-menu {
	max-height: 500px;
}

.child-menu .nav-link {
	padding-left: 47px;
	font-size: 14px;
}

.sidebar.collapsed .child-menu {
	display: none;
}

.expand-icon {
	margin-left: auto;
	display: flex;
	align-items: center;
	transition: transform 0.3s ease;
}

.nav-item.has-children.open .expand-icon svg {
	transform: rotate(180deg);
}

.nav-link:hover .expand-icon svg path {
	fill: #fff;
}

.nav-item.active>.nav-link .expand-icon svg path,
.nav-item.parent-active>.nav-link .expand-icon svg path {
	fill: #fff;
}

/* ====================================
   MAIN CONTENT AREA Tool Tip
====================================*/
.sidebar-nav .nav-tooltip {
	position: fixed;
	margin: -25px 0 0 90px;
	transform: translateY(-50%) translateX(-10px);
	color: #5C2D91;
	background: #fff;
	padding: 10px 14px;
	border-radius: 8px;
	white-space: nowrap;
	box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
	z-index: 1501;
	pointer-events: none;
	font-weight: 550;
	font-size: 16px;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s ease 0.5s,
		visibility 0.2s ease 1s,
		transform 0.2s ease 1s;
}

.sidebar.collapsed .nav-item {
	position: relative;
}

.sidebar:not(.collapsed) .nav-tooltip {
	display: none !important;
}

.sidebar.collapsed .nav-tooltip {
	display: block;
}

.sidebar.collapsed .nav-item:hover .nav-tooltip {
	opacity: 1;
	visibility: visible;
	transform: translateY(-50%) translateX(0);
	transition-delay: 1.2s;
}

.sidebar-nav .nav-tooltip::before {
	content: '';
	position: absolute;
	right: 100%;
	top: 50%;
	transform: translateY(-50%);
	border-width: 6px;
	border-style: solid;
	border-color: transparent #fff transparent transparent;
}
/* ====================================
   MAIN CONTENT AREA
   Responsive to navbar and sidebar
   ==================================== */
#main-content {
	margin-left: 80px;
	margin-top: 68px;
	min-height: calc(100vh - 68px);
	background: #f5f5f5;
	transition: margin-left 0.3s ease;
	padding: 0;
}

#main-content.expanded {
	margin-left: 290px;
}

/* ====================================
   PAGE WRAPPER - Standard Container
   Use this class in all page templates
   ==================================== */
.page-wrapper {
	width: 100%;
	min-height: calc(100vh - 68px);
	display: flex;
	flex-direction: column;
}

/* ====================================
   PAGE HEADER - Reusable Component
   ==================================== */
.page-header {
	background: #ffffff;
	padding: 24px 32px;
	border-bottom: 2px solid #5C2D91;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 20px;
	min-height: 80px;
}

.page-title {
	color: #6b4c9a;
	font-size: 28px;
	font-weight: 650;
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
}

.page-title i {
	color: #6b4c9a;
	font-size: 28px;
}

.page-title img {
	color: #6b4c9a;
	width: 29px;
    height: 29px;
}

.page-header-actions {
	display: flex;
	gap: 12px;
	align-items: center;
	flex-wrap: wrap;
}

/* Search box in header */
.search-box {
	position: relative;
	min-width: 280px;
}

.search-box input {
	width: 100%;
	padding: 12px 45px 12px 16px;
	border: 1px solid #e0e0e0;
	border-radius: 25px;
	outline: none;
	font-size: 15px;
	transition: all 0.3s ease;
}

.search-box input:focus {
	border-color: #6b4c9a;
	box-shadow: 0 0 0 3px rgba(107, 76, 154, 0.1);
}

.search-box i {
	position: absolute;
	right: 16px;
	top: 50%;
	transform: translateY(-50%);
	color: #999;
	font-size: 16px;
}

/* Action buttons in header */
.btn-header {
	padding: 10px 20px;
	font-size: 15px;
	font-weight: 600;
	color: #ffffff;
	background: #5c2d90;
	border: none;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.3s ease;
	display: flex;
	align-items: center;
	gap: 8px;
}

.btn-header:hover {
	background: #4a2473;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(92, 45, 144, 0.3);
}

.btn-header i {
	font-size: 16px;
}

/* ====================================
   PAGE BODY - Main Content Area
   ==================================== */
.page-body {
    flex: 1;
    padding: 20px;
    background: #fff;
    overflow: hidden; /* Changed from overflow-y: auto */
    display: flex;
    flex-direction: column;
}

/* Content sections within page body */
.content-section {
	background: #ffffff;
	border-radius: 12px;
	padding: 24px;
	margin-bottom: 24px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.section-title {
	font-size: 20px;
	font-weight: 650;
	color: #1e293b;
	margin-bottom: 16px;
	padding-bottom: 12px;
	border-bottom: 2px solid #f1f5f9;
}

/* ====================================
   PAGE FOOTER - Optional
   ==================================== */
.page-footer {
	background: #ffffff;
	padding: 16px 32px;
	border-top: 1px solid #e2e8f0;
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 12px;
	min-height: 60px;
}

.footer-info {
	font-size: 14px;
	color: #64748b;
}

.footer-actions {
	display: flex;
	gap: 12px;
}

/* ====================================
   GRID LAYOUTS - Reusable
   ==================================== */
.grid-container {
	display: grid;
	gap: 20px;
}

.grid-1 {
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.grid-2 {
	grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
}

.grid-3 {
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.grid-4 {
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
}

/* Card component */
.card {
	background: #ffffff;
	border-radius: 12px;
	padding: 10px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
	transition: all 0.3s ease;
	border: 2px solid transparent;
}

.card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(107, 76, 154, 0.15);
	border-color: #6b4c9a;
}

.card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 16px;
}

.card-title {
	font-size: 18px;
	font-weight: 650;
	color: #1e293b;
	margin: 0;
}

.card-body {
	font-size: 15px;
	padding: 10px;
	color: #475569;
	line-height: 1.6;
}

.card-footer {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid #f1f5f9;
	display: flex;
	justify-content: space-between;
	align-items: center;
}

/* ====================================
   NOTIFICATION BLOCK
   ==================================== */
.notification-block {
	position: fixed;
	top: 76px;
	right: 20px;
	width: 420px;
	max-width: 90vw;
	min-height: 280px;
	background: #ffffff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 5px 13px 0 13px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	opacity: 0;
	visibility: hidden;
	transform: translateY(-10px);
	transition: all 0.3s ease;
	z-index: 1000;
}

.notification-block.active {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.notification-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 12px 6px 4px;
	border-bottom: 1px solid #9854cb;
}

.notification-header h3 {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	color: #5C2D91;
}

.notification-content {
	max-height: 400px;
	overflow-y: auto;
}

.notification-empty {
	padding: 40px 20px;
	text-align: center;
	color: #999;
}

/* ====================================
   USER BLOCK
   ==================================== */
.user-block {
	position: fixed;
	top: 76px;
	right: 20px;
	width: 120px;
	background: #ffffff;
	border: 1px solid #e0e0e0;
	border-radius: 25px;
	padding: 10px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
	opacity: 0;
	visibility: hidden;
	text-align: center;
	transform: translateY(-10px);
	transition: all 0.3s ease;
	z-index: 1000;
}

.user-block.active {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.user-block a {
	text-decoration: none;
	font-size: 16px;
	font-weight: 600;
	letter-spacing: 0.3px;
	color: #5C2D91;
	width: 100%;
	display: block;
	padding: 8px;
	border-radius: 15px;
	transition: all 0.3s ease;
}

.user-block a:hover {
	background-color: #9854cb;
	color: #fff;
}

/* ====================================
   RESPONSIVE BREAKPOINTS
   ==================================== */

/* Large Desktop (1920px+) */
@media (min-width: 1920px) {
	.page-header {
		padding: 15px 30px 10px 30px;
	}
}

/* Desktop (1200px - 1919px) */
@media (max-width: 1919px) and (min-width: 1200px) {
	.page-header {
		padding: 15px 30px 10px 30px;
	}
}

/* Tablet Landscape (992px - 1199px) */
@media (max-width: 1199px) and (min-width: 992px) {

	.sidebar.collapsed {
		width: 80px;
	}

	.page-header {
		padding: 10px 24px 15px;
	}

	.page-title {
		font-size: 24px;
	}

	.grid-2,
	.grid-3,
	.grid-4 {
		grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	}
}

/* Tablet Portrait (768px - 991px) */
@media (max-width: 991px) and (min-width: 768px) {
	.header-container {
		height: 60px;
	}

	.sidebar.menu-active {
		transform: translateX(0);
	}

	.page-header {
		padding: 16px 20px;
		min-height: 70px;
	}

	.page-title {
		font-size: 22px;
	}

	.page-title i {
		font-size: 22px;
	}

	.search-box {
		min-width: 100%;
		width: 100%;
	}

	.grid-2,
	.grid-3,
	.grid-4 {
		grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	}

	.notification-block,
	.user-block {
		top: 66px;
	}
}

/* Mobile (481px - 767px) */
@media (max-width: 767px) and (min-width: 481px) {
	.header-container {
		height: 56px;
	}

	.avolve-logo {
		width: 120px;
	}


	.sidebar.menu-active {
		transform: translateX(0);
	}

	.page-wrapper {
		min-height: calc(100vh - 56px);
	}

	.page-header {
		padding: 16px;
		min-height: 60px;
		align-items: flex-start;
	}

	.page-footer {
		padding: 12px 16px;
		flex-direction: column;
	}

	.page-title {
		font-size: 20px;
	}

	.page-title i {
		font-size: 20px;
	}

	.search-box {
		min-width: 100%;
		width: 100%;
	}

	.btn-header {
		width: 100%;
		justify-content: center;
	}

	.grid-2,
	.grid-3,
	.grid-4 {
		grid-template-columns: 1fr;
	}

	.notification-block {
		top: 62px;
		width: calc(100vw - 32px);
		right: 16px;
	}

	.user-block {
		top: 62px;
		right: 16px;
	}
}

/* Small Mobile (< 480px) */
@media (max-width: 480px) {
	.header-container {
		height: 52px;
	}

	.avolve-logo {
		width: 100px;
	}

	.nav-right-block {
		gap: 15px;
		margin-right: 16px;
	}

	.nav-right-icons img {
		width: 24px;
		height: 24px;
	}



	.sidebar.menu-active {
		transform: translateX(0);
	}

	.page-wrapper {
		min-height: calc(100vh - 52px);
	}

	.page-header {
		padding: 12px;
		min-height: 56px;
		align-items: flex-start;
	}

	.page-footer {
		padding: 10px 12px;
		min-height: 50px;
		flex-direction: column;
		font-size: 12px;
	}

	.page-title {
		font-size: 18px;
	}

	.page-title i {
		font-size: 18px;
	}

	.search-box {
		min-width: 100%;
	}

	.search-box input {
		padding: 10px 40px 10px 14px;
		font-size: 14px;
	}


	.btn-header {
		width: 100%;
		justify-content: center;
		padding: 8px 16px;
		font-size: 14px;
	}

	.content-section {
		padding: 16px;
	}

	.section-title {
		font-size: 18px;
	}

	.grid-2,
	.grid-3,
	.grid-4 {
		grid-template-columns: 1fr;
		gap: 16px;
	}

	.card {
		padding: 10px;
	}

	.notification-block {
		top: 58px;
		width: calc(100vw - 24px);
		right: 12px;
	}

	.user-block {
		top: 58px;
		right: 12px;
	}
}

/* ====================================
   PRINT STYLES
   ==================================== */
@media print {

	.header-container,
	.sidebar,
	.page-header-actions,
	.page-footer {
		display: none;
	}

	#main-content {
		margin-left: 0;
		margin-top: 0;
	}

	.page-body {
		padding: 10px;
	}
}

/* ====================================
REPORT CARDS - Custom Styling
Add this to your kt-avolve-theme.css
==================================== */

.report-card {
	cursor: pointer;
	max-height: 80px;
	display: flex;
	flex-direction: row;
	justify-content: center;
	background: #9854CB26;
	transition: all 0.3s ease;
}

.report-card .card-body {
	display: flex;
	flex-direction: row;
	align-items: center;
	text-align: center;
	gap: 12px;
}

.report-card .card-icon {
	font-size: 27px;
	color: #5C2D91;
	transition: transform 0.3s ease;
}

.report-card .card-title {
	color: #5C2D91;
	font-size: 15px;
	font-weight: 600;
	margin: 0;
}

.report-card:hover {
	background: #e9ddf5;
	transform: translateY(-4px);
	box-shadow: 0 6px 16px rgba(107, 76, 154, 0.2);
}

.report-card:hover .card-icon {
	transform: scale(1.1);
}

.report-card.active {
	background: #5C2D91;
	border-color: #5C2D91;
}

.report-card.active .card-icon,
.report-card.active .card-title {
	color: #ffffff;
}

/* ====================================
   STAT CARDS - Dashboard Style
   ==================================== */

.stat-card {
	background: linear-gradient(135deg, #f5f0fb 0%, #ffffff 100%);
	border-left: 4px solid #5c2d90;
}

.stat-card .card-header {
	margin-bottom: 20px;
}

.stat-card .card-title {
	font-size: 14px;
	font-weight: 600;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.stat-value {
	font-size: 36px;
	font-weight: 700;
	color: #5c2d90;
	margin: 0;
	line-height: 1;
}

.stat-label {
	font-size: 14px;
	color: #64748b;
	margin: 12px 0 0 0;
}

.stat-trend {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 13px;
	font-weight: 600;
	padding: 4px 8px;
	border-radius: 4px;
	margin-top: 8px;
}

.stat-trend.positive {
	background: #dcfce7;
	color: #16a34a;
}

.stat-trend.negative {
	background: #fee2e2;
	color: #dc2626;
}

.stat-trend i {
	font-size: 12px;
}

/* ====================================
   TABLE STYLES - Responsive Tables
   ==================================== */

.table-container {
	width: 100%;
	overflow-x: auto;
	background: #ffffff;
	border-radius: 12px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.data-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}

.data-table thead {
	background: #f8fafc;
	border-bottom: 2px solid #e2e8f0;
}

.data-table th {
	padding: 12px 16px;
	text-align: center;
	font-weight: 650;
	color: #475569;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.data-table td {
	padding: 12px 16px;
	border-bottom: 1px solid #f1f5f9;
	color: #334155;
}

.data-table tbody tr {
	transition: background 0.2s ease;
}

.data-table tbody tr:hover {
	background: #f8fafc;
}

.data-table tbody tr:last-child td {
	border-bottom: none;
}

/* Table badges */
.table-badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.3px;
}

.table-badge.success {
	background: #dcfce7;
	color: #16a34a;
}

.table-badge.warning {
	background: #fef3c7;
	color: #d97706;
}

.table-badge.danger {
	background: #fee2e2;
	color: #dc2626;
}

.table-badge.info {
	background: #dbeafe;
	color: #2563eb;
}

/* ====================================
   FORM GROUPS - Consistent Forms
   ==================================== */

.form-row {
	display: grid;
	gap: 20px;
	margin-bottom: 20px;
}

.form-row.cols-2 {
	grid-template-columns: repeat(2, 1fr);
}

.form-row.cols-3 {
	grid-template-columns: repeat(3, 1fr);
}

.form-row.cols-4 {
	grid-template-columns: repeat(4, 1fr);
}

.form-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.form-label {
	font-size: 14px;
	font-weight: 600;
	color: #334155;
}

/* ====================================
   BOOTSTRAP FORM OVERRIDES
   ==================================== */
.form-label {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
}

.form-input,
.form-textarea,
.form-control,
.form-select {
    padding: 10px 14px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-size: 14px;
    color: #1e293b;
    background: #f8fafc;
    transition: all 0.2s ease;
    width: 100%;
}

.form-control:focus,
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
	outline: none;
	border-color: #5c2d90;
	box-shadow: 0 0 0 3px rgba(92, 45, 144, 0.1);
}

.form-hint {
	font-size: 13px;
	color: #64748b;
	margin-top: 4px;
}

/* Form validation states */
.form-input.error,
.form-select.error,
.form-textarea.error {
	border-color: #dc2626;
}

.form-input.success,
.form-select.success,
.form-textarea.success {
	border-color: #16a34a;
}

.form-error-message {
	font-size: 13px;
	color: #dc2626;
	margin-top: 4px;
}

/* ====================================
   ALERTS/NOTIFICATIONS - In-page
   ==================================== */

.alert {
	padding: 16px 20px;
	border-radius: 8px;
	margin-bottom: 16px;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	font-size: 14px;
	line-height: 1.5;
}

.alert-icon {
	font-size: 20px;
	flex-shrink: 0;
}

.alert-content {
	flex: 1;
}

.alert-title {
	font-weight: 650;
	margin-bottom: 4px;
}

.alert.info {
	background: #dbeafe;
	color: #1e40af;
	border-left: 4px solid #2563eb;
}

.alert.success {
	background: #dcfce7;
	color: #15803d;
	border-left: 4px solid #16a34a;
}

.alert.warning {
	background: #fef3c7;
	color: #a16207;
	border-left: 4px solid #d97706;
}

.alert.error {
	background: #fee2e2;
	color: #b91c1c;
	border-left: 4px solid #dc2626;
}

/* ====================================
   EMPTY STATES
   ==================================== */

.empty-state {
	text-align: center;
	padding: 60px 20px;
	color: #94a3b8;
}

.empty-state-icon {
	font-size: 64px;
	margin-bottom: 20px;
	opacity: 0.5;
}

.empty-state-title {
	font-size: 20px;
	font-weight: 650;
	color: #475569;
	margin-bottom: 8px;
}

.empty-state-message {
	font-size: 15px;
	margin-bottom: 24px;
}

.empty-state-action {
	margin-top: 20px;
}

/* ====================================
   RESPONSIVE ADJUSTMENTS
   ==================================== */

@media (max-width: 991px) {

	.form-row.cols-2,
	.form-row.cols-3,
	.form-row.cols-4 {
		grid-template-columns: 1fr;
	}

	.stat-value {
		font-size: 28px;
	}

	.report-card {
		min-height: 100px;
	}

	.report-card .card-icon {
		font-size: 28px;
	}
}

@media (max-width: 767px) {
	.table-container {
		border-radius: 8px;
	}

	.data-table {
		font-size: 13px;
	}

	.data-table th,
	.data-table td {
		padding: 10px 12px;
	}
}

@media (max-width: 480px) {
	.report-card {
		min-height: 90px;
	}

	.report-card .card-icon {
		font-size: 24px;
	}

	.report-card .card-title {
		font-size: 14px;
	}

	.stat-value {
		font-size: 24px;
	}

	.alert {
		padding: 12px 16px;
		font-size: 13px;
	}

	.empty-state {
		padding: 40px 16px;
	}

	.empty-state-icon {
		font-size: 48px;
	}
}


/* ====================================
   LOGIN PAGE STYLES - Professional & Responsive
   Based on Avolve Fleet Management Design
   ==================================== */

/* ====================================
   Reset & Base Styles
   ==================================== */
.login-body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.5;
}

/* ====================================
   Main Container
   ==================================== */
.login-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* ====================================
   LEFT PANEL - Login Form Section
   ==================================== */
.login-panel {
    flex: 0 0 480px;
    width: 480px;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    z-index: 2;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.05);
}

.login-block {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    flex: 1;
}

.login-content {
    width: 100%;
    max-width: 380px;
}

/* ====================================
   Logo Section
   ==================================== */
.login-logo {
    text-align: center;
    margin-bottom: 48px;
}

.logo-img {
    max-width: 190px;
    height: auto;
    display: inline-block;
}

/* ====================================
   FORM STYLES
   ==================================== */
.login-form {
    width: 100%;
}

/* ====================================
   INPUT GROUP - GENERIC REUSABLE CLASS
   Use this class throughout your application
   ==================================== */
.input::placeholder {
    font-family: "Poppins", sans-serif;
    font-size: 14px;
    color: #999;
}

.input-group {
    margin-bottom: 24px;
    width: 100%;
}

.input-group.hide {
    display: none;
}

/* Input Labels */
.input-label {
    display: block;
    font-size: 14px;
    font-weight: 620;
    color: #1e293b;
    margin-bottom: 8px;
    transition: color 0.2s ease;
}

/* Label Row with Action Link */
.input-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0;
    padding: 0;
    margin-bottom: 24px;
}

/* ====================================
   INPUT WRAPPER - For inputs with icons
   ==================================== */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

/* Input Icon Container */
.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.input-icon img {
    width: 20px;
    height: 20px;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

/* ====================================
   INPUT FIELD - GENERIC REUSABLE CLASS
   Use .input-field for all text inputs
   ==================================== */
.input-field {
    width: 100%;
    height: 48px;
    padding: 12px 16px 12px 48px;
    font-size: 15px;
    font-weight: 400;
    color: #1e293b;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 13px;
    outline: none;
    transition: all 0.2s ease;
    font-family: inherit;
}

/* Input without icon */
.input-wrapper:not(:has(.input-icon)) .input-field,
.input-group:not(:has(.input-wrapper)) .input-field {
    padding-left: 16px;
}

/* Placeholder styling */
.input-field::placeholder {
    color: #5c2d90;
	font-size: 14px;
    font-weight: 400;
}

/* Focus state */
.input-field:focus {
    background: #ffffff;
    border-color: #5c2d90;
    box-shadow: 0 0 0 4px rgba(92, 45, 144, 0.1);
}

.input-field:focus+.input-icon img {
    opacity: 1;
}

/* Hover state */
.input-field:hover:not(:focus) {
    border-color: #cbd5e1;
    background: #ffffff;
}

/* Disabled state */
.input-field:disabled {
    background: #f1f5f9;
    color: #94a3b8;
    cursor: not-allowed;
    opacity: 0.6;
}

/* ====================================
   INPUT VALIDATION STATES - GENERIC
   ==================================== */

/* Error State */
.input-field.error {
    border-color: #dc2626;
    background: #fef2f2;
}

.input-field.error:focus {
    border-color: #dc2626;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

.error-message {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #dc2626;
    font-weight: 500;
}

/* Success State */
.input-field.success {
    border-color: #16a34a;
    background: #f0fdf4;
}

.input-field.success:focus {
    border-color: #16a34a;
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.1);
}

.success-message {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: #16a34a;
    font-weight: 500;
}

/* ====================================
   CHECKBOX GROUP - GENERIC
   ==================================== */
.input-group-checkbox {
    display: flex;
    align-items: center;
    justify-content: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    font-size: 12px;
    color: #475569;
    cursor: pointer;
    user-select: none;
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    width: 13px;
    height: 13px;
    margin-right: 8px;
    cursor: pointer;
    accent-color: #5c2d90;
    border-radius: 4px;
}

/* ====================================
   BUTTONS - GENERIC REUSABLE CLASSES
   ==================================== */


/* Primary Button */
.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(92, 45, 144, 0.2);
}

.btn-primary:disabled {
    background: #94a3b8;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    opacity: 0.6;
}

.btn-primary:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(92, 45, 144, 0.2);
}

/* Loading State */
.btn-primary.loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn-primary.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spinner 0.6s linear infinite;
}

@keyframes spinner {
    to {
        transform: rotate(360deg);
    }
}

/* Secondary Button */

.btn-secondary:hover {
    background: #5c2d90;
    transform: translateY(-1px);
	color: white
}

.btn-secondary:active {
    transform: translateY(0);
}

.btn-secondary:focus {
    outline: none;
    box-shadow: 0 0 0 4px rgba(92, 45, 144, 0.1);
}

/* Tertiary/Ghost Button */
.btn-ghost {
    width: 100%;
    height: 48px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    color: #5c2d90;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
}

.btn-ghost:hover {
    background: #f8f4fc;
}

/* ====================================
   LINKS
   ==================================== */
.forgot-link {
    font-size: 12px;
    font-weight: 600;
    color: #5c2d90;
    text-decoration: none;
    transition: all 0.2s ease;
}

.forgot-link:hover {
    color: #4a2473;
    text-decoration: underline;
}

.forgot-link:focus {
    outline: 2px solid #5c2d90;
    outline-offset: 2px;
    border-radius: 2px;
}

/* ====================================
   DIVIDER
   ==================================== */
.divider {
    display: flex;
    align-items: center;
    margin: 32px 0;
    color: #94a3b8;
    font-size: 14px;
    font-weight: 500;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.divider span {
    padding: 0 16px;
}

/* ====================================
   GOOGLE SIGN IN CONTAINER
   ==================================== */
#g_id_onload,
.g_id_signin {
    width: 100%;
    display: flex;
    justify-content: center;
}

/* ====================================
   FOOTER
   ==================================== */
.login-footer {
    margin: 28px 0 10px 0;
    text-align: center;
    flex: 0 0 auto;
}

.copyright {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 12px;
    font-weight: 500;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 50px;
    font-size: 15px;
    flex-wrap: wrap;
}

.footer-links p {
    margin: 0;
    padding: 0;
    color: #5c2d90;
}

.footer-links a {
    color: #5c2d90;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.footer-links a:hover {
    color: #4a2473;
    text-decoration: underline;
}

.footer-links a:focus {
    outline: 2px solid #5c2d90;
    outline-offset: 2px;
    border-radius: 2px;
}

.footer-links .separator {
    color: #cbd5e1;
    font-weight: 400;
}

/* ====================================
   RIGHT PANEL - Hero Image Section
   ==================================== */
.hero-panel {
    flex: 1;
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    position: relative;
    overflow: hidden;
    min-height: 100vh;
}

.hero-content {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 100vh;
}

.hero-image {
    width: 100%;
    height: 100%;
    min-height: 100vh;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.85) 0%, rgba(14, 165, 233, 0.85) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.hero-text {
    max-width: 600px;
    color: #ffffff;
    text-align: left;
}

.hero-title {
    font-size: 64px;
    font-weight: 300;
    line-height: 1.2;
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.hero-highlight {
    font-weight: 700;
    font-style: italic;
}

.hero-subtitle {
    font-size: 20px;
    font-weight: 500;
    opacity: 0.95;
    line-height: 1.6;
}

/* ====================================
   RESPONSIVE DESIGN
   ==================================== */

/* Large Desktop (1440px+) */
@media (min-width: 1440px) {
    .login-panel {
        flex: 0 0 640px;
        width: 640px;
        padding: 20px;
    }

    .login-content {
        max-width: 420px;
    }

    .hero-overlay {
        padding: 80px;
    }

    .hero-title {
        font-size: 72px;
    }

    .hero-subtitle {
        font-size: 22px;
    }
}

/* Desktop (1024px - 1439px) */
@media (max-width: 1439px) and (min-width: 1024px) {
    .login-panel {
        flex: 0 0 440px;
        width: 440px;
        padding: 40px 32px;
    }

    .login-content {
        max-width: 360px;
    }

    .hero-title {
        font-size: 56px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .footer-links {
        gap: 10px;
    }

}

/* Tablet (768px - 1023px) */
@media (max-width: 1023px) and (min-width: 768px) {
    .login-container {
        flex-direction: column;
    }

    .login-panel {
        flex: 1;
        width: 100%;
        min-height: auto;
        border-radius: 50px;
        padding: 40px 24px;
    }

    .login-content {
        max-width: 400px;
        margin: 0 auto;
    }

    .hero-panel {
        min-height: 320px;
        max-height: 40vh;
        order: -1;
    }

    .hero-content {
        min-height: 320px;
    }

    .hero-image {
        min-height: 320px;
    }

    .hero-overlay {
        padding: 40px 24px;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .login-logo {
        margin-bottom: 32px;
    }

    .logo-img {
        max-width: 140px;
    }

    .input-field {
        height: 44px;
        font-size: 14px;
    }

    .footer-links {
        gap: 10px;
    }
}

/* Small Tablet (600px - 767px) */
@media (max-width: 767px) {
    .login-container {
        flex-direction: column;
    }

    .login-panel {
        flex: 1;
        width: 100%;
        min-height: auto;
        border-radius: 50px;
        padding: 40px 24px;
    }

    .login-content {
        max-width: 400px;
        margin: 0 auto;
    }

    .hero-panel {
        min-height: 320px;
        max-height: 40vh;
        order: -1;
    }

    .hero-content {
        min-height: 320px;
    }

    .hero-image {
        min-height: 320px;
    }

    .hero-overlay {
        padding: 40px 24px;
    }

    .hero-title {
        font-size: 40px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .login-logo {
        margin-bottom: 32px;
    }

    .logo-img {
        max-width: 140px;
    }

    .input-field {
        height: 44px;
        font-size: 14px;
    }
}

/* Mobile (480px - 599px) */
@media (max-width: 599px) {
    .login-panel {
        padding: 32px 20px;
    }

    .login-content {
        max-width: 100%;
    }

    .hero-panel {
        min-height: 280px;
        max-height: 35vh;
    }

    .hero-content,
    .hero-image {
        min-height: 280px;
    }

    .hero-overlay {
        padding: 32px 20px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .login-logo {
        margin-bottom: 28px;
    }

    .logo-img {
        max-width: 130px;
    }

    .input-group {
        margin-bottom: 20px;
    }

    .input-label {
        font-size: 13px;
    }

    .forgot-link {
        font-size: 12px;
    }

    .divider {
        margin: 24px 0;
        font-size: 13px;
    }

    .login-footer {
        margin-top: 32px;
    }

    .copyright,
    .footer-links {
        font-size: 12px;
    }

    .footer-links {
        flex-direction: column;
        gap: 8px;
    }

    .footer-links .separator {
        display: none;
    }
}

/* Extra Small Mobile (< 480px) */
@media (max-width: 479px) {
    .login-panel {
        padding: 24px 16px;
    }

    .hero-panel {
        min-height: 240px;
        max-height: 30vh;
    }

    .hero-content,
    .hero-image {
        min-height: 240px;
    }

    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 14px;
    }

    .login-logo {
        margin-bottom: 24px;
    }

    .logo-img {
        max-width: 120px;
    }

    .input-field {
        height: 42px;
        font-size: 14px;
        padding-left: 44px;
    }

    .input-icon {
        left: 14px;
    }

    .input-icon img {
        width: 18px;
        height: 18px;
    }
}

@media (min-height: 550px) {
    .login-body {
        overflow: hidden;
        height: 100vh;
    }
    
    .login-container {
        overflow: hidden;
        height: 100vh;
    }
    
    .login-panel {
        overflow-y: auto;
        max-height: 100vh;
    }
}

/* ====================================
   REPORT CATEGORY SECTIONS
   ==================================== */

.report-category-section {
	margin-bottom: 32px;
	transition: opacity 0.3s ease;
}

.report-category-section .section-title {
	display: flex;
	align-items: center;
	color: #5c2d90;
	margin-bottom: 20px;
}

.report-category-section .section-title iconify-icon {
	color: #5c2d90;
}

/* Report card link styling */
a.report-card {
	text-decoration: none;
	color: inherit;
}

a.report-card:hover {
	text-decoration: none;
}

/* Search highlighting effect */
.report-card.search-hidden {
	display: none;
}

/* Enhanced search box */
.search-box {
	position: relative;
	min-width: 320px;
}

.search-box input:focus + i {
	color: #5c2d90;
}

/* Loading state */
.report-loading {
	text-align: center;
	padding: 40px;
	color: #64748b;
}

.report-loading i {
	font-size: 32px;
	animation: spin 1s linear infinite;
}

@keyframes spin {
	from { transform: rotate(0deg); }
	to { transform: rotate(360deg); }
}

/* No results state */
.no-results {
	text-align: center;
	padding: 60px 20px;
	color: #94a3b8;
}

.no-results i {
	font-size: 48px;
	margin-bottom: 16px;
	opacity: 0.5;
}

.no-results h3 {
	font-size: 18px;
	font-weight: 600;
	color: #475569;
	margin-bottom: 8px;
}

.no-results p {
	font-size: 14px;
	color: #64748b;
}

/* Responsive adjustments */
@media (max-width: 768px) {
	.report-category-section {
		margin-bottom: 24px;
	}
	
	.search-box {
		min-width: 100%;
	}
}
/* ====================================
   REPORT FILTER STYLES
   ==================================== */

.filter-wrapper {
	background: #fff;
	overflow: hidden;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	opacity: 1;
	transform: translateY(0);
	will-change: max-height; /* Optimize animation performance */
}

/* Hidden state - initial load */
.filter-wrapper.filter-hidden {
	max-height: 0;
	margin-bottom: 0;
	opacity: 0;
	transform: translateY(-8px);
	pointer-events: none;
	border-width: 0;
}

/* Visible state */
.filter-wrapper.filter-visible {
	max-height: 2000px;
	opacity: 1;
	transform: translateY(0);
	pointer-events: auto;
}

.filter-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 10px 20px 10px 24px;
	user-select: none;
	transition: background 0.3s ease;
}

.filter-title {
	font-size: 18px;
	font-weight: 650;
	color: #5c2d90;
	margin: 0;
	cursor: pointer;
	display: flex;
	align-items: center;
	gap: 10px;
	position: relative;
}

.filter-title i {
	font-size: 16px;
}

/* Filter count badge */
.filter-count-badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 24px;
	height: 24px;
	padding: 0 8px;
	background: #5c2d90;
	color: #ffffff;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 700;
	margin-left: 4px;
	animation: badgePop 0.3s ease;
}

@keyframes badgePop {
	0% {
		transform: scale(0);
	}
	50% {
		transform: scale(1.2);
	}
	100% {
		transform: scale(1);
	}
}

.filter-toggle {
	background: #ffffff;
	border: 2px solid #5c2d90;
	border-radius: 50%;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s ease;
	color: #5c2d90;
	cursor: pointer;
}

.filter-toggle:hover {
	background: #5c2d90;
	color: #ffffff;
	transform: scale(1.05);
}

.filter-toggle i {
	transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-wrapper.filter-collapsed .filter-toggle i {
	transform: rotate(180deg);
}

.filter-body {
    padding: 5px 24px;
    background: #ffffff;
    max-height: 2000px;
    opacity: 1;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), 
                padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease 0.1s;
    overflow: hidden;
    will-change: max-height, padding;
}

.filter-toggle:focus {
    outline: 2px solid #5c2d90;
    outline-offset: 2px;
}

.filter-wrapper.filter-collapsed .filter-body {
	max-height: 0;
	padding: 0 24px;
}

.filter-wrapper,
.filter-body,
.filter-toggle i {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.filter-row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: 20px;
	background: #f6edfd;
	margin-bottom: 24px;
	padding: 20px;
	border-radius: 15px;
}

.filter-group {
	display: flex;
	flex-direction: column;
	gap: 8px;
	opacity: 1;
	transform: translateY(0);
	transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Stagger animation for filters appearing */
.filter-wrapper.filter-visible .filter-group {
	animation: filterSlideIn 0.4s ease forwards;
}

.filter-wrapper.filter-visible .filter-group:nth-child(1) { animation-delay: 0.05s; }
.filter-wrapper.filter-visible .filter-group:nth-child(2) { animation-delay: 0.1s; }
.filter-wrapper.filter-visible .filter-group:nth-child(3) { animation-delay: 0.15s; }
.filter-wrapper.filter-visible .filter-group:nth-child(4) { animation-delay: 0.2s; }
.filter-wrapper.filter-visible .filter-group:nth-child(5) { animation-delay: 0.25s; }
.filter-wrapper.filter-visible .filter-group:nth-child(6) { animation-delay: 0.3s; }
.filter-wrapper.filter-visible .filter-group:nth-child(7) { animation-delay: 0.35s; }
.filter-wrapper.filter-visible .filter-group:nth-child(8) { animation-delay: 0.4s; }
.filter-wrapper.filter-visible .filter-group:nth-child(9) { animation-delay: 0.45s; }
.filter-wrapper.filter-visible .filter-group:nth-child(10) { animation-delay: 0.5s; }

@keyframes filterSlideIn {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.filter-label {
	font-size: 14px;
	font-weight: 600;
	color: #334155;
	margin: 0;
}

/* Select Wrapper */
.select-wrapper {
	position: relative;
}

/* Text Input */
.filter-input {
	width: 100%;
	height: 44px;
	padding: 10px 14px;
	font-size: 14px;
	color: #1e293b;
	background: #f8fafc;
	border: 2px solid #e2e8f0;
	border-radius: 10px;
	outline: none;
	transition: all 0.2s ease;
	font-family: inherit;
}

.filter-input:focus {
	background: #ffffff;
	border-color: #5c2d90;
	box-shadow: 0 0 0 3px rgba(92, 45, 144, 0.1);
}

.filter-input:hover:not(:focus) {
	border-color: #cbd5e1;
	background: #ffffff;
}
/*
.filter-input::placeholder {
	color: #94a3b8;
}
*/
/* Date Input Wrapper */
.date-input-wrapper {
	position: relative;
}

.date-input {
	padding-right: 40px;
	cursor: pointer;
}

.date-icon {
	position: absolute;
	right: 14px;
	top: 50%;
	transform: translateY(-50%);
	color: #64748b;
	pointer-events: none;
	font-size: 16px;
}

.filter-input:focus ~ .date-icon {
	color: #5c2d90;
}

/* Filter Actions */
.filter-right {
	display: flex;
	align-items: center;
	gap: 12px;
}

/* Filter Actions */
.filter-actions {
	display: flex;
	gap: 12px;
	align-items: center;
	opacity: 1;
	transform: translateY(0);
	transition: opacity 0.3s ease 0.5s, transform 0.3s ease 0.5s;
}

/* ====================================
   CHECKBOX FILTER STYLING
   Aligned with Avolve theme design
   ==================================== */

.filter-checkbox {
	display: flex;
	flex-direction: column;
	gap: 8px;
	justify-content: center;
	min-height: 44px;
}

/* Checkbox Wrapper - Container for checkbox */
.checkbox-wrapper {
	display: flex;
	align-items: center;
	position: relative;
	cursor: pointer;
	user-select: none;
}

/* Hide the native checkbox */
.filter-checkbox {
	cursor: pointer;
	height: 0;
	width: 0;
	margin-left: 5px;
}

/* Custom Checkbox Label */
.checkbox-label-custom {
	display: flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	margin: 0;
	padding: 0;
	transition: all 0.2s ease;
}

/* Custom Checkbox Icon Container */
.checkbox-icon {
	position: relative;
	width: 20px;
	height: 20px;
	background: #f8fafc;
	border: 2px solid #e2e8f0;
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	flex-shrink: 0;
}

/* Checkmark Icon - Hidden by default */
.checkbox-icon i {
	color: #ffffff;
	font-size: 12px;
	opacity: 0;
	transform: scale(0.5);
	transition: all 0.2s ease;
}

/* Checkbox Text Label */
.checkbox-text {
	font-size: 14px;
	font-weight: 500;
	color: #334155;
	transition: color 0.2s ease;
}

/* ====================================
   CHECKBOX STATES
   ==================================== */

/* Hover State */
.checkbox-wrapper:hover .checkbox-icon {
	border-color: #cbd5e1;
	background: #ffffff;
}

.checkbox-wrapper:hover .checkbox-text {
	color: #5c2d90;
}

/* Focus State */
.filter-checkbox:focus + .checkbox-label-custom .checkbox-icon {
	border-color: #5c2d90;
	box-shadow: 0 0 0 3px rgba(92, 45, 144, 0.1);
}

/* Checked State */
.filter-checkbox:checked + .checkbox-label-custom .checkbox-icon {
	background: #5c2d90;
	border-color: #5c2d90;
}

.filter-checkbox:checked + .checkbox-label-custom .checkbox-icon i {
	opacity: 1;
	transform: scale(1);
}

.filter-checkbox:checked + .checkbox-label-custom .checkbox-text {
	color: #5c2d90;
	font-weight: 600;
}

/* Checked + Hover State */
.filter-checkbox:checked + .checkbox-label-custom:hover .checkbox-icon {
	background: #4a2473;
	border-color: #4a2473;
}

/* Disabled State */
.filter-checkbox:disabled + .checkbox-label-custom {
	cursor: not-allowed;
	opacity: 0.5;
}

.filter-checkbox:disabled + .checkbox-label-custom .checkbox-icon {
	background: #f1f5f9;
	border-color: #e2e8f0;
}

/* ====================================
   ANIMATION ENHANCEMENTS
   ==================================== */

/* Ripple effect on click */
.checkbox-icon::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	border-radius: 50%;
	background: rgba(92, 45, 144, 0.2);
	transform: translate(-50%, -50%);
	transition: width 0.3s ease, height 0.3s ease;
}

.filter-checkbox:active + .checkbox-label-custom .checkbox-icon::after {
	width: 40px;
	height: 40px;
}

/* ====================================
   CHECKBOX GROUP VARIATIONS
   ==================================== */

/* Multiple Checkboxes in a Group */
.checkbox-group {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* Horizontal Checkbox Layout */
.checkbox-group-horizontal {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	gap: 16px;
}

/* Checkbox with Description */
.checkbox-label-with-desc {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.checkbox-description {
	font-size: 12px;
	color: #64748b;
	padding-left: 30px;
	line-height: 1.4;
}

/* ====================================
   FILTER ROW INTEGRATION
   Ensure proper alignment with other filters
   ==================================== */

.filter-row .filter-checkbox {
	align-self: center;
}

/* Full width checkbox in filter group */
.filter-group.filter-checkbox-full {
	grid-column: 1 / -1;
}

/* ====================================
   RESPONSIVE ADJUSTMENTS
   ==================================== */

@media (max-width: 991px) {
	.checkbox-icon {
		width: 18px;
		height: 18px;
	}

	.checkbox-icon i {
		font-size: 11px;
	}

	.checkbox-text {
		font-size: 13px;
	}
}

@media (max-width: 767px) {
	.checkbox-wrapper {
		padding: 4px 0;
	}

	.checkbox-label-custom {
		gap: 8px;
	}

	.checkbox-text {
		font-size: 13px;
	}
}

@media (max-width: 480px) {
	.checkbox-icon {
		width: 16px;
		height: 16px;
	}

	.checkbox-icon i {
		font-size: 10px;
	}

	.checkbox-text {
		font-size: 12px;
	}

	.checkbox-label-custom {
		gap: 6px;
	}
}


/* ====================================
   ACCESSIBILITY ENHANCEMENTS
   ==================================== */

/* Focus-visible support for keyboard navigation */
.filter-checkbox:focus-visible + .checkbox-label-custom .checkbox-icon {
	outline: 2px solid #5c2d90;
	outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
	.checkbox-icon {
		border-width: 3px;
	}

	.filter-checkbox:checked + .checkbox-label-custom .checkbox-icon {
		border-width: 3px;
	}
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
	.checkbox-icon,
	.checkbox-icon i,
	.checkbox-text {
		transition: none;
	}

	.checkbox-icon::after {
		display: none;
	}
}

.btn-filter {
	padding: 10px 24px;
	font-size: 15px;
	font-weight: 600;
	border-radius: 50px;
	cursor: pointer;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	gap: 8px;
	border: 2px solid transparent;
	font-family: inherit;
}

.btn-filter i {
	font-size: 14px;
}

.btn-load {
	background: #5c2d90;
    color: #ffffff;
    border-radius: 25px;
    padding: 6px 15px;
	transition: opacity 0.3s ease
}

.btn-load:hover {
	background: #4a2473;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(92, 45, 144, 0.3);
}

.btn-reset {
	background: #ffffff;
	color: #5c2d90;
}

.btn-reset:hover {
	background: #f8f4fc;
	transform: translateY(-1px);
}

.btn-filter:active {
	transform: translateY(0);
}

.btn-filter:disabled {
	opacity: 0.5;
	cursor: not-allowed;
	transform: none !important;
}

/* Back Event Block */
.back-event-block {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 20px;
	font-size: 15px;
	font-weight: 600;
	color: #5c2d90;
	background: #ffffff;
	border-radius: 10px;
	cursor: pointer;
	transition: all 0.2s ease;
	text-decoration: none;
}

.back-event-block:hover {
	background: #f8f4fc;
	transform: translateX(-2px);
	text-decoration: none;
	color: #5c2d90;
}

.back-event-block i {
	font-size: 16px;
}

/* Responsive */
@media (max-width: 1199px) {
	.filter-row {
		grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
		gap: 16px;
	}
}

@media (max-width: 991px) {
	.filter-row {
		grid-template-columns: repeat(2, 1fr);
		gap: 16px;
	}

	.filter-actions {
		flex-direction: row;
	}

	.btn-filter {
		width: 100%;
		justify-content: center;
	}
}

@media (max-width: 767px) {
	.filter-wrapper {
		border-radius: 12px;
	}

	.filter-header {
		padding: 16px 20px;
	}

	.filter-body {
		padding: 20px;
	}

	.filter-row {
		grid-template-columns: 1fr;
		gap: 16px;
		margin-bottom: 20px;
	}

	.filter-title {
		font-size: 16px;
	}

	.filter-toggle {
		width: 32px;
		height: 32px;
	}
}

@media (max-width: 480px) {
	.filter-header {
		padding: 14px 16px;
	}

	.filter-body {
		padding: 16px;
	}

	.filter-label {
		font-size: 13px;
	}

	.filter-select,
	.filter-input {
		height: 42px;
		font-size: 13px;
	}

	.btn-filter {
		padding: 9px 20px;
		font-size: 14px;
	}

	.back-event-block {
		padding: 9px 16px;
		font-size: 14px;
	}
}

/* ====================================
   SELECT2 CUSTOM THEME OVERRIDE
   Matches Avolve theme design
   ==================================== */

/* Container */
.select2-container {
    box-sizing: border-box;
    display: block;
    width: 100% !important;
    margin: 0;
    position: relative;
    vertical-align: middle;
}

/* ====================================
   SINGLE SELECT STYLING
   ==================================== */
.select2-container--default .select2-selection--single {
    background-color: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    display: block;
    height: 44px;
    user-select: none;
    -webkit-user-select: none;
    transition: all 0.2s ease;
}

.select2-container--default .select2-selection--single:hover {
    border-color: #cbd5e1;
    background: #ffffff;
}

.select2-container--default.select2-container--open .select2-selection--single,
.select2-container--default.select2-container--focus .select2-selection--single {
    background: #ffffff;
    border-color: #5c2d90;
    box-shadow: 0 0 0 3px rgba(92, 45, 144, 0.1);
    outline: none;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #1e293b;
    line-height: 40px;
    padding-left: 14px;
    padding-right: 40px;
    font-size: 14px;
    font-weight: 400;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: #5C2D90;
	font-size: 14px;
    font-weight: 400;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 40px;
    position: absolute;
    top: 2px;
    right: 14px;
    width: 20px;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: #64748b transparent transparent transparent;
    border-style: solid;
    border-width: 5px 4px 0 4px;
    height: 0;
    left: 50%;
    margin-left: -4px;
    margin-top: -2px;
    position: absolute;
    top: 50%;
    width: 0;
    transition: all 0.2s ease;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    border-color: transparent transparent #5c2d90 transparent;
    border-width: 0 4px 5px 4px;
}

.select2-container--default .select2-selection--single .select2-selection__clear {
    cursor: pointer;
    float: right;
    font-weight: bold;
    height: 40px;
    margin-right: 30px;
    padding-right: 0px;
    position: relative;
    color: #64748b;
    font-size: 18px;
    line-height: 40px;
}

.select2-container--default .select2-selection--single .select2-selection__clear:hover {
    color: #dc2626;
}

/* ====================================
   MULTIPLE SELECT STYLING
   ==================================== */
.select2-container--default .select2-selection--multiple {
    background-color: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    cursor: text;
    display: block;
    min-height: 44px;
    user-select: none;
    -webkit-user-select: none;
    transition: all 0.2s ease;
    padding: 4px 8px;
}

.select2-container--default .select2-selection--multiple:hover {
    border-color: #cbd5e1;
    background: #ffffff;
}

.select2-container--default.select2-container--open .select2-selection--multiple,
.select2-container--default.select2-container--focus .select2-selection--multiple {
    background: #ffffff;
    border-color: #5c2d90;
    box-shadow: 0 0 0 3px rgba(92, 45, 144, 0.1);
    outline: none;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    box-sizing: border-box;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.select2-container--default .select2-selection--multiple .select2-selection__placeholder {
    color: #5C2D90;
    margin-top: 6px;
    font-size: 14px;
    font-weight: 400;
}

/* Selected Choice Tags */
.select2-container--default .select2-selection--multiple .select2-selection__choice {
    background-color: #e9ddf5;
    border: 1px solid #d4b5f0;
    border-radius: 6px;
    cursor: default;
    color: #5c2d90;
    float: none;
    margin: 0;
    padding: 4px 8px;
    font-weight: 600;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice:hover {
    background-color: #d4b5f0;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #5c2d90;
    cursor: pointer;
    display: inline-block;
    font-weight: bold;
    margin-right: 0;
    font-size: 16px;
    line-height: 1;
    transition: color 0.2s ease;
    order: 2;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove:hover {
    color: #dc2626;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__display {
    cursor: default;
    padding-left: 0;
    padding-right: 0;
}

/* Search Input inside Multiple Select */
.select2-container--default .select2-search--inline {
    float: none;
    display: inline-block;
    margin: 0;
}

.select2-container--default .select2-search--inline .select2-search__field {
    box-sizing: border-box;
    border: none;
    font-size: 14px;
    margin: 0;
    padding: 6px 0;
    background: transparent;
    color: #1e293b;
    outline: none;
    min-width: 120px;
}

.select2-container--default .select2-search--inline .select2-search__field::placeholder {
    color: #5C2D90;
    font-size: 14px;
    font-weight: 400;
}

.select2-container--default .select2-search--inline .select2-search__field::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

/* ====================================
   DROPDOWN STYLING
   ==================================== */
.select2-dropdown {
    background-color: #ffffff;
    border: 2px solid #5c2d90;
    border-radius: 10px;
    box-sizing: border-box;
    left: -100000px;
    width: 100%;
    z-index: 1051;
    margin-top: 70px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.select2-container--open .select2-dropdown {
    left: 0;
}

.select2-container--open .select2-dropdown--above {
    border-bottom: 2px solid #5c2d90;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    margin-top: 0;
    margin-bottom: 4px;
}

.select2-container--open .select2-dropdown--below {
    border-top: 2px solid #5c2d90;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

/* ====================================
   SEARCH BOX IN DROPDOWN
   ==================================== */
.select2-search--dropdown {
    display: block;
    padding: 12px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.select2-search--dropdown .select2-search__field {
    padding: 8px 12px;
    width: 100%;
    box-sizing: border-box;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    outline: none;
    font-size: 14px;
    color: #1e293b;
    background: #ffffff;
    transition: all 0.2s ease;
}

.select2-search--dropdown .select2-search__field:focus {
    border-color: #5c2d90;
    box-shadow: 0 0 0 3px rgba(92, 45, 144, 0.1);
}

.select2-search--dropdown .select2-search__field::placeholder {
    color: #94a3b8;
}

input.filter-input.date-input.form-control.input::placeholder {
    color: #5c2d90;
	font-size: 14px;
	font-weight: 500;
}

.select2-search--dropdown .select2-search__field::-webkit-search-cancel-button {
    -webkit-appearance: none;
}

.select2-search--dropdown.select2-search--hide {
    display: none;
}

/* ====================================
   RESULTS/OPTIONS STYLING
   ==================================== */
.select2-results {
    display: block;
}

.select2-results__options {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    max-height: 280px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(92, 45, 144, 0.3) transparent;
}

.select2-results__options::-webkit-scrollbar {
    width: 6px;
}

.select2-results__options::-webkit-scrollbar-track {
    background: transparent;
}

.select2-results__options::-webkit-scrollbar-thumb {
    background: rgba(92, 45, 144, 0.3);
    border-radius: 3px;
}

.select2-results__options::-webkit-scrollbar-thumb:hover {
    background: rgba(92, 45, 144, 0.5);
}

.select2-results__option {
    padding: 10px 16px;
    user-select: none;
    -webkit-user-select: none;
    font-size: 14px;
    color: #1e293b;
    cursor: pointer;
    transition: all 0.15s ease;
}

.select2-results__option[aria-selected] {
    cursor: pointer;
}

.select2-results__option[aria-disabled=true] {
    color: #94a3b8;
    cursor: not-allowed;
    background: transparent;
}

.select2-results__option--highlighted[aria-selected] {
    background-color: #f0e6fa;
    color: #5c2d90;
}

.select2-results__option[aria-selected=true] {
    background-color: #e9ddf5;
    color: #5c2d90;
    font-weight: 600;
}

.select2-results__option[aria-selected=true]:hover {
    background-color: #d4b5f0;
}

/* Loading State */
.select2-results__option.loading-results {
    padding: 20px;
    text-align: center;
    color: #64748b;
    font-style: italic;
}

/* No Results Message */
.select2-results__message {
    padding: 20px;
    text-align: center;
    color: #64748b;
    font-style: italic;
}

/* ====================================
   DISABLED STATE
   ==================================== */
.select2-container--default.select2-container--disabled .select2-selection--single,
.select2-container--default.select2-container--disabled .select2-selection--multiple {
    background-color: #f1f5f9;
    cursor: not-allowed;
    opacity: 0.6;
}

.select2-container--default.select2-container--disabled .select2-selection__choice__remove {
    display: none;
}

/* ====================================
   HIDDEN ACCESSIBLE (Screen Readers)
   ==================================== */
.select2-hidden-accessible {
    border: 0 !important;
    clip: rect(0 0 0 0) !important;
    height: 1px !important;
    margin: -1px !important;
    overflow: hidden !important;
    padding: 0 !important;
    position: absolute !important;
    width: 1px !important;
}

/* ====================================
   CLOSE MASK (Mobile)
   ==================================== */
.select2-close-mask {
    border: 0;
    margin: 0;
    padding: 0;
    display: block;
    position: fixed;
    left: 0;
    top: 0;
    min-height: 100%;
    min-width: 100%;
    height: auto;
    width: auto;
    opacity: 0;
    z-index: 99;
    background-color: #000;
    filter: alpha(opacity=0);
}

/* ====================================
   RESPONSIVE ADJUSTMENTS
   ==================================== */
@media (max-width: 767px) {
    .select2-container--default .select2-selection--single,
    .select2-container--default .select2-selection--multiple {
        height: auto;
        min-height: 42px;
    }

    .select2-container--default .select2-selection--single .select2-selection__rendered {
        line-height: 38px;
        font-size: 13px;
    }

    .select2-container--default .select2-selection--multiple .select2-selection__choice {
        font-size: 12px;
        padding: 3px 6px;
    }

    .select2-dropdown {
        border-radius: 8px;
    }

    .select2-results__options {
        max-height: 200px;
    }

    .select2-results__option {
        padding: 8px 12px;
        font-size: 13px;
    }
}

/* ====================================
   FILTER GROUP INTEGRATION
   Ensure proper spacing within filter groups
   ==================================== */
.filter-group .select2-container {
    width: 100% !important;
}

.filter-group .select-wrapper {
    position: relative;
    width: 100%;
}

/* Remove the custom select icon when using Select2 */
.filter-group .select-wrapper .select-icon {
    display: none;
}

/* ====================================
   ANIMATION ENHANCEMENTS
   ==================================== */
.select2-dropdown {
    animation: dropdownSlideIn 0.2s ease;
}

@keyframes dropdownSlideIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ====================================
   FOCUS VISIBLE SUPPORT
   ==================================== */
.select2-container--default .select2-selection--single:focus-visible,
.select2-container--default .select2-selection--multiple:focus-visible {
    outline: 2px solid #5c2d90;
    outline-offset: 2px;
}

/* ====================================
   CLEAR BUTTON ENHANCEMENT
   ==================================== */
.select2-selection__clear {
    transition: transform 0.2s ease;
}

.select2-selection__clear:hover {
    transform: scale(1.1);
}

/* ====================================
   Info Header Stats Component
   Global Reusable Theme for Statistics Display
   ==================================== */

/* Main Container */
.info-stats-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    justify-content: center;
    padding: 20px 20px 10px 20px;
    background: #fff;
    width: 100%;
}

/* ====================================
   Stats Group Variants
   ==================================== */

/* Base Stats Group */
.info-stats-group {
    display: flex;
    align-items: center;
    gap: 25px;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    width: auto;
    overflow: hidden;
}

/* Violet/Purple Gradient Background */
.info-stats-group--violet {
	background: #FEF1FD;
}

/* White Background */
.info-stats-group--white {
	background: #ffffff;
	border: 1px solid #f0f0f0;
}

/* Grey Background */
.info-stats-group--grey {
	background: #f5f5f7;
}

/* Light Background (for contained sections) */
.info-stats-group--light {
	background: #fafafa;
}

/* ====================================
   Stats Item
   ==================================== */

.info-stats-item {
    text-align: center;
    padding: 10px 20px;
    transition: transform 0.2s ease;
    position: relative;
	cursor: pointer;
}

.info-stats-item:hover {
	transform: translateY(-2px);
}

/* Divider between items */
.info-stats-item:not(:last-child)::after {
	content: '';
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	height: 60%;
	width: 1px;
	background: rgba(0, 0, 0, 0.1);
}

/* Violet theme divider */
.info-stats-group--violet .info-stats-item:not(:last-child)::after {
	background: rgba(147, 51, 234, 0.15);
}

/* White theme divider */
.info-stats-group--white .info-stats-item:not(:last-child)::after {
	background: #e5e7eb;
}

/* Grey theme divider */
.info-stats-group--grey .info-stats-item:not(:last-child)::after {
	background: #d1d5db;
}

/* ====================================
   Stats Label & Value
   ==================================== */

.info-stats-label {
	display: block;
	font-size: 14px;
	font-weight: 500;
	color: #6b7280;
	margin-bottom: 8px;
	text-transform: capitalize;
	letter-spacing: 0.3px;
}

.info-stats-value {
    display: block;
    font-size: 24px;
    font-weight: 650;
    line-height: 1.1;
    color: #111827;
}

/* Value Color Variants */
.info-stats-value--primary {
	color: #111827;
}

.info-stats-value--success {
	color: #10b981;
}

.info-stats-value--danger {
	color: #ef4444;
}

.info-stats-value--warning {
	color: #f59e0b;
}

.info-stats-value--info {
	color: #3b82f6;
}

.info-stats-value--purple {
	color: #9333ea;
}

/* Legacy support for .black and .red classes */
.info-stats-value.black {
	color: #111827;
}

.info-stats-value.red {
	color: #ef4444;
}

/* ====================================
   Split Layout Container (Left + Right Groups)
   ==================================== */

.info-stats-split-container {
    background: linear-gradient(135deg, #ffeef8 0%, #f3e7ff 100%);
    border-radius: 20px;
    padding: 15px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: auto;
    align-items: center;
}

.info-stats-split-wrapper {
    display: flex;
    gap: 45px;
	justify-content: center;
    flex-wrap: wrap;
}

/* Left Group - Transparent with border */
.info-stats-split-left {
    width: auto;
    display: flex;
    align-items: center;
    gap: 45px;
	justify-content: center;
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
}
.info-stats-split-left .info-stats-item {
	background: transparent;
}

.info-stats-split-left .info-stats-item:not(:last-child)::after {
	background: rgba(255, 255, 255, 0.4);
}

/* Right Group - White background cards */
.info-stats-split-right {
    width: auto;
    display: flex;
    gap: 45px;
	justify-content: center;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    padding: 0 30px;
}

.info-stats-split-right .info-stats-item {
    background: #ffffff;
    padding: 20px;
}

.info-stats-split-right .info-stats-item:not(:last-child)::after {
	background: rgba(208, 192, 216, 0.3);
}

/* ====================================
   Compact Size Modifier
   ==================================== */

.info-stats-group--compact .info-stats-item {
	padding: 12px 16px;
}

.info-stats-group--compact .info-stats-label {
	font-size: 13px;
	margin-bottom: 6px;
}

.info-stats-group--compact .info-stats-value {
	font-size: 24px;
}

/* ====================================
   Responsive Design
   ==================================== */

/* Large tablets and smaller desktops */
@media (max-width: 1200px) {
	.info-stats-item {
		padding: 14px 16px;
	}

	.info-stats-value {
		font-size: 28px;
	}

	.info-stats-label {
		font-size: 13px;
	}
}

/* Tablets */
@media (max-width: 968px) {
	.info-stats-container {
		gap: 16px;
		padding: 16px;
	}

	.info-stats-group {
		min-width: 100%;
		flex-wrap: wrap;
		padding: 20px;
	}

	.info-stats-split-wrapper {
		flex-direction: column;
	}

	.info-stats-split-left,
	.info-stats-split-right {
		min-width: 100%;
		flex-wrap: wrap;
	}

	.info-stats-item {
		min-width: 140px;
	}

	/* Remove alternate dividers on wrap */
	.info-stats-item:nth-child(even)::after {
		display: none;
	}
}

/* Mobile landscape */
@media (max-width: 640px) {
	.info-stats-container {
		padding: 12px;
		gap: 12px;
	}

	.info-stats-group {
		padding: 16px;
		flex-direction: column;
		gap: 8px;
	}

	.info-stats-item {
		flex: 1 1 100%;
		padding: 12px;
		min-width: 100%;
	}

	/* Remove all dividers on mobile */
	.info-stats-item::after {
		display: none !important;
	}

	.info-stats-label {
		font-size: 12px;
		margin-bottom: 4px;
	}

	.info-stats-value {
		font-size: 24px;
	}

	.info-stats-split-container {
		padding: 16px;
		border-radius: 16px;
	}

	.info-stats-split-wrapper {
		gap: 12px;
	}
}

/* Small mobile */
@media (max-width: 480px) {
	.info-stats-value {
		font-size: 22px;
	}

	.info-stats-label {
		font-size: 11px;
	}

	.info-stats-group {
		padding: 12px;
		border-radius: 12px;
	}
}

/* ====================================
   Utility Classes
   ==================================== */

/* Full width */
.info-stats-group--full {
	flex: 1 1 100%;
	min-width: 100%;
}

/* No shadow */
.info-stats-group--no-shadow {
	box-shadow: none;
}

/* Bordered variant */
.info-stats-group--bordered {
	border: 2px solid #e5e7eb;
}

/* Hover effect */
.info-stats-group--hoverable {
	transition: all 0.3s ease;
	cursor: pointer;
}

.info-stats-group--hoverable:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 16px rgba(0, 0, 0, 0.12);
}

/* Equal width items */
.info-stats-group--equal .info-stats-item {
	flex: 1 1 0;
	min-width: 0;
}

/* Print styles */
@media print {
	.info-stats-group {
		box-shadow: none;
		border: 1px solid #e5e7eb;
		page-break-inside: avoid;
	}

	.info-stats-item:hover {
		transform: none;
	}
}
/* ====================================
    MODAL OVERLAY & CONTAINER
==================================== */
.mdl-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
    backdrop-filter: blur(4px);
    padding: 20px;
}

.mdl-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cust-mdl {
    background: #ffffff;
    border-radius: 15px;
    max-width: 900px;
    width: 100%;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.4s ease;
    overflow: hidden;
    z-index: 5001;
}

.mdl-overlay.active .cust-mdl {
    transform: scale(1) translateY(0);
}

/* Modal Sizes */
.cust-mdl.mdl-sm {
    max-width: 500px;
}

.cust-mdl.mdl-md {
    max-width: 700px;
}

.cust-mdl.mdl-lg {
    max-width: 900px;
}

.cust-mdl.mdl-xl {
    max-width: 1200px;
}

.cust-mdl.mdl-full {
    max-width: 95vw;
    max-height: 95vh;
}

/* ====================================
    MODAL HEADER
==================================== */
.mdl-header-block {
    padding: 0 10px;
    display: flex;
    justify-content: center;
    width: 100%;
}

.mdl-header {
    width: 95%;
    padding: 19px 22px 19px 10px;
    color: #5c2d90;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    border-bottom: 2px solid #4a2473;
}

.mdl-title {
    color: #5c2d90;
    position: relative;
    margin: 0;
    padding: 0;
}

.mdl-title i {
    font-size: 22px;
}

.mdl-close {
    border: 2px solid #4a2473;
    color: #5c2d90;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 20px;
}

.mdl-close:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: rotate(90deg);
}

/* ====================================
    MODAL BODY
==================================== */
.mdl-body {
    padding: 32px;
    overflow-y: auto;
    flex: 1;
}

.mdl-body::-webkit-scrollbar {
    width: 8px;
}

.mdl-body::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.mdl-body::-webkit-scrollbar-thumb {
    background: rgba(92, 45, 144, 0.3);
    border-radius: 4px;
}

.mdl-body::-webkit-scrollbar-thumb:hover {
    background: rgba(92, 45, 144, 0.5);
}

/* ====================================
    MODAL FOOTER
==================================== */
.mdl-footer {
    padding: 20px 32px;
    border-top: 2px solid #f1f5f9;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-shrink: 0;
    background: #fafafa;
}

/* ====================================
    SELECT2 INSIDE MODALS - Level 5
==================================== */
/* When Select2 is inside a modal, increase z-index */
.mdl-overlay .select2-container {
    z-index: 1;
}

.mdl-overlay .select2-dropdown {
    z-index: 10000 !important;
}

.mdl-overlay .select2-container--open {
    z-index: 10000 !important;
}

/* Alternative: Direct descendant selectors */
.cust-mdl .select2-dropdown {
    z-index: 10000 !important;
}

.cust-mdl .select2-container--open {
    z-index: 10000 !important;
}

.mdl-overlay .select2-close-mask {
    z-index: 9999;
}

/* ====================================
    FORM ELEMENTS
==================================== */
.mdl-form-row {
    display: grid;
    gap: 20px;
    margin-bottom: 24px;
}

.mdl-form-row.cols-1 {
    grid-template-columns: 1fr;
}

.mdl-form-row.cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.mdl-form-row.cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.mdl-form-row.cols-4 {
    grid-template-columns: repeat(4, 1fr);
}

.mdl-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mdl-form-label {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mdl-form-label .required {
    color: #ef4444;
    font-size: 16px;
}

.mdl-form-control {
    width: 100%;
    height: 44px;
    padding: 10px 14px;
    font-size: 14px;
    color: #1e293b;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    outline: none;
    transition: all 0.2s ease;
    font-family: inherit;
}

.mdl-form-control:focus {
    background: #ffffff;
    border-color: #6f42c1;
    box-shadow: 0 0 0 3px rgba(111, 66, 193, 0.15);
}

.mdl-form-control:hover:not(:focus) {
    border-color: #cbd5e1;
    background: #ffffff;
}

.mdl-form-control.error {
    border-color: #ef4444;
    background: #fef2f2;
}

textarea.mdl-form-control {
    min-height: 100px;
    resize: vertical;
}

.mdl-form-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
    cursor: pointer;
}

.error-message {
    font-size: 13px;
    color: #ef4444;
    margin-top: 4px;
}

.msl-form-hint {
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
}

/* ====================================
    BUTTONS
==================================== */
.mdl-btn {
    padding: 12px 28px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 25px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: inherit;
}

.mdl-btn i {
    font-size: 14px;
}

.mdl-btn-primary {
    background: #5c2d90;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(92, 45, 144, 0.2);
}

.mdl-btn-primary:hover {
    background: #4a2473;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(92, 45, 144, 0.3);
}

.mdl-btn-secondary {
    background: #ffffff;
    color: #5c2d90;
    border: 2px solid #5c2d90;
}

.mdl-btn-secondary:hover {
    background: #f8f4fc;
    transform: translateY(-1px);
}

.mdl-btn-danger {
    background: #ef4444;
    color: #ffffff;
}

.mdl-btn-danger:hover {
    background: #dc2626;
}

.mdl-btn-success {
    background: #10b981;
    color: #ffffff;
}

.mdl-btn-success:hover {
    background: #059669;
}

.mdl-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* ====================================
           STEP WIZARD
        ==================================== */
.step-wizard {
    margin-bottom: 32px;
}

.step-wizard-nav {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.step-wizard-nav::before {
    content: '';
    position: absolute;
    top: 24px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: #e2e8f0;
    z-index: 0;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    position: relative;
    z-index: 1;
}

.step-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e2e8f0;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    transition: all 0.3s ease;
    border: 3px solid #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.step-item.active .step-circle {
    background: linear-gradient(135deg, #6f42c1 0%, #5c2d90 100%);
    color: #ffffff;
    transform: scale(1.1);
}

.step-item.completed .step-circle {
    background: #10b981;
    color: #ffffff;
}

.step-label {
    margin-top: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #64748b;
    text-align: center;
}

.step-item.active .step-label {
    color: #5c2d90;
}

.step-content {
    display: none;
}

.step-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.step-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 2px solid #f1f5f9;
}

/* ====================================
           TABLE FORM
        ==================================== */
.mdl-table-form-container {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.mdl-table-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.mdl-table-form-title {
    font-size: 16px;
    font-weight: 650;
    color: #1e293b;
}

.mdl-table-responsive {
    overflow-x: auto;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.mdl-table-form {
    width: 100%;
    border-collapse: collapse;
}

.mdl-table-form thead {
    background: linear-gradient(135deg, #f8f4fc 0%, #f0e6fa 100%);
}

.mdl-table-form th {
    padding: 14px 12px;
    text-align: left;
    font-weight: 650;
    font-size: 13px;
    color: #5c2d90;
    border-bottom: 2px solid #e9ddf5;
    white-space: nowrap;
}

.mdl-table-form th .required {
    color: #ef4444;
}

.mdl-table-form td {
    padding: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.mdl-table-form tbody tr {
    transition: background 0.2s ease;
}

.mdl-table-form tbody tr:hover {
    background: #f8fafc;
}

.mdl-table-form .mdl-form-control {
    height: 38px;
    font-size: 13px;
    margin: 0;
}

.mdl-table-form .mdl-form-select {
    height: 38px;
    font-size: 13px;
}

.mdl-btn-icon {
    padding: 8px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.mdl-btn-add-row {
    background: #10b981;
    color: white;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.mdl-btn-add-row:hover {
    background: #059669;
    transform: translateY(-1px);
}

/* ====================================
           CHECKBOX & RADIO
        ==================================== */
.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #5c2d90;
}

.form-check-label {
    font-size: 14px;
    color: #334155;
    cursor: pointer;
}

/* ====================================
           FILE UPLOAD
        ==================================== */
.file-upload-wrapper {
    position: relative;
}

.file-upload-input {
    opacity: 0;
    position: absolute;
    z-index: -1;
}

.file-upload-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 17px;
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    cursor: pointer;
    transition: all 0.2s ease;
}

.file-upload-label:hover {
    border-color: #6f42c1;
    background: #f0e6fa;
}

.file-upload-label i {
    font-size: 32px;
    color: #6f42c1;
}

.file-upload-text {
    text-align: center;
}

.file-upload-text strong {
    display: block;
    font-size: 15px;
    color: #1e293b;
    margin-bottom: 4px;
}

.file-upload-text span {
    font-size: 13px;
    color: #64748b;
}

.file-list {
    margin-top: 16px;
}

.file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 8px;
    margin-bottom: 8px;
}

.file-item-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.file-item-icon {
    width: 40px;
    height: 40px;
    background: #e9ddf5;
    color: #5c2d90;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* ====================================
           RESPONSIVE
        ==================================== */
@media (max-width: 768px) {
    .cust-mdl {
        max-width: 100%;
        max-height: 100%;
        border-radius: 0;
    }

    .mdl-header {
        padding: 20px 24px;
    }

    .mdl-title {
        font-size: 20px;
    }

    .mdl-body {
        padding: 24px;
    }

    .mdl-form-row.cols-2,
    .mdl-form-row.cols-3,
    .mdl-form-row.cols-4 {
        grid-template-columns: 1fr;
    }

    .step-wizard-nav {
        flex-direction: column;
        gap: 16px;
    }

    .step-wizard-nav::before {
        display: none;
    }

    .step-item {
        flex-direction: row;
        justify-content: flex-start;
    }

    .step-label {
        margin-top: 0;
        margin-left: 12px;
        text-align: left;
    }

    .mdl-footer {
        flex-direction: column;
    }

    .mdl-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Header Section */
.ticket-header {
	background: #ffffff;
	padding: 20px 22px 8px;
	border-bottom: 3px solid #5C2D90;
	border-radius: 12px 12px 0 0;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
	display: flex;
	justify-content: space-between;
	align-items: center;
	flex-wrap: wrap;
	gap: 20px;
}

.ticket-header-left {
	display: flex;
	align-items: center;
	gap: 16px;
}

.back-btn {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #f8fafc;
	border: 2px solid #e2e8f0;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s ease;
	color: #5C2D90;
}

.back-btn:hover {
	background: #5C2D90;
	color: #ffffff;
	border-color: #5C2D90;
}

.ticket-title-block h1 {
	font-size: 28px;
	color: #5C2D90;
	font-weight: 650;
	margin-bottom: 4px;
}

.ticket-subtitle {
	font-size: 14px;
	color: #64748b;
}

.ticket-header-actions {
	display: flex;
	gap: 12px;
	width: 280px;
	justify-content: space-between;
}

.ticket-note-header-actions {
	display: flex;
	gap: 12px;
	width: 100px;
	justify-content: space-between;
}

/* Main Content Layout */
.ticket-content {
	display: grid;
	grid-template-columns: 1fr 350px;
	gap: 14px;
	padding: 15px;
}

/* Left Column - Main Details */
.ticket-main {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

.ticket-card {
	background: #ffffff;
	border-radius: 12px;
	padding: 20px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.ticket-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

.ticket-card-title {
	font-size: 18px;
	font-weight: 650;
	color: #1e293b;
	display: flex;
	align-items: center;
	gap: 10px;
}

.ticket-card-title i {
	color: #5C2D90;
}

/* Info Grid */
.ticket-info-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
}

.info-item {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.info-label {
	font-size: 13px;
	font-weight: 600;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.info-value {
	font-size: 15px;
	color: #1e293b;
	font-weight: 500;
}

.priority-badge {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 600;
}

.priority-high {
	background: #fee2e2;
	color: #dc2626;
}

.priority-medium {
	background: #fef3c7;
	color: #d97706;
}

.priority-low {
	background: #dbeafe;
	color: #2563eb;
}

/* Description Section */
.description-section {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e2e8f0;
}

.description-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.description-title {
    font-size: 15px;
    font-weight: 650;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 8px;
}

.description-title i {
    color: #5C2D90;
    font-size: 14px;
}

.ticket-description-content {
    font-size: 14px;
    line-height: 1.7;
    color: #475569;
    background: #f8fafc;
    padding: 16px;
    border-radius: 8px;
}

.status-note {
	background: #e3f2fd;
	color: #1976d2;
}

.ticket-logs-table {
	width: 100%;
	border-collapse: collapse;
	margin-top: 1rem;
}

.ticket-logs-table thead {
	background: #f5f5f5;
}

.ticket-logs-table th {
	padding: 12px;
	text-align: left;
	font-weight: 600;
	border-bottom: 2px solid #ddd;
}

.ticket-logs-table td {
	padding: 8px;
	border-bottom: 1px solid #eee;
	vertical-align: top;
	font-size: 14px;
}

.ticket-logs-table tbody tr:hover {
	background: #f9f9f9;
}

.note-cell {
	max-width: 400px;
	word-wrap: break-word;
}

.ticket-logs-table .empty-state {
	text-align: center;
	padding: 2rem;
}

/* Timeline Section */
.timeline {
	position: relative;
	padding-left: 30px;
}

.timeline::before {
	content: '';
	position: absolute;
	left: 8px;
	top: 6px;
	bottom: 0;
	width: 3px;
	background: #e2e8f0;
}

.timeline-item {
	position: relative;
	margin-bottom: 24px;
}

.timeline-item::before {
content: '';
    position: absolute;
    left: -28px;
    top: 6px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffffff;
    border: 3px solid #5C2D90;
    z-index: 1;
}

.timeline-item.completed::before {
	background: #10b981;
	border-color: #10b981;
}

.timeline-item.pending::before {
	background: #ffffff;
	border-color: #cbd5e1;
}

.timeline-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	margin-bottom: 8px;
}

.timeline-status {
	font-size: 15px;
	font-weight: 650;
	color: #1e293b;
}

.timeline-date {
	font-size: 13px;
	font-style: italic;
	color: #64748b;
}

.timeline-user {
	font-size: 14px;
	color: #64748b;
	margin-bottom: 4px;
}

.timeline-note {
	font-size: 14px;
	color: #475569;
	background: #f8fafc;
	padding: 12px;
	border-radius: 6px;
	margin-top: 8px;
}

/* Right Sidebar */
.ticket-sidebar {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

/* Action Buttons */
.ticket-action-buttons {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	align-items: stretch;
}

/* Common button styling */
.ticket-action-buttons .btn,
.ticket-action-buttons .btn-secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 140px;
	padding: 5px 15px;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
	transition: all 0.2s ease;
	cursor: pointer;
}

/* Quick Info ticket-Cards */
.ticket-quick-info-card {
	background: linear-gradient(135deg, #f5f0fb 0%, #ffffff 100%);
	border-left: 4px solid #5C2D90;
	padding: 12px;
	border-radius: 8px;
}

.ticket-card-group {
	display: flex;
	justify-content: space-between;
	padding: 10px;
}

.ticket-quick-info-label {
	font-size: 12px;
	font-weight: 600;
	color: #64748b;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 8px;
}

.quick-info-value {
	font-size: 16px;
	font-weight: 700;
	color: #5C2D90;
}

/* Notes Section */
.ticket-notes-list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.ticket-note-item {
	background: #f8fafc;
	padding: 14px;
	border-radius: 8px;
	border-left: 3px solid #5C2D90;
}

.ticket-note-header {
	display: flex;
	justify-content: space-between;
	margin-bottom: 8px;
}

.ticket-note-user {
	font-size: 13px;
	font-weight: 600;
	color: #1e293b;
}

.ticket-note-date {
	font-size: 12px;
	color: #64748b;
}

.ticket-note-content {
	font-size: 14px;
	color: #475569;
	line-height: 1.6;
}

.empty-state {
	text-align: center;
	padding: 40px 20px;
	color: #94a3b8;
}

.empty-state i {
	font-size: 48px;
	margin-bottom: 12px;
	opacity: 0.5;
}

/* Responsive */
@media (max-width: 1024px) {
	.ticket-content {
		grid-template-columns: 1fr;
	}

	.ticket-sidebar {
		order: -1;
	}

	.ticket-info-grid {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 1449px) {
	.ticket-info-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 768px) {
	.ticket-header {
		padding: 20px;
	}

	.ticket-header-left {
		width: 100%;
	}

	.ticket-header-actions {
		width: 100%;
	}

	.ticket-card {
		padding: 16px;
	}
}

/* Attachments Section */
.ticket-attachments-card {
	background: #ffffff;
	border-radius: 12px;
	padding: 24px;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.ticket-attachments-list {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
}

.attachment-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	background: #f8fafc;
	border-radius: 10px;
	border: 2px solid #e2e8f0;
	overflow: hidden;
	transition: all 0.3s ease;
	cursor: pointer;
	max-width: 250px;
	height: 155px;
}

.attachment-item:hover {
	border-color: #5C2D90;
	box-shadow: 0 4px 12px rgba(92, 45, 144, 0.15);
	transform: translateY(-2px);
}

.attachment-preview {
	width: 160px !important;
	height: 75px;
	align-items: center;
	background: #ffffff;
}

.attachment-preview-image {
	background: #f8fafc;
}

.attachment-preview-icon {
	display: flex;
	align-items: center;
	justify-content: center;
}

.attachment-preview-icon i {
	font-size: 38px;
	line-height: 1;
	background-image: linear-gradient(135deg, #5C2D90 0%, #7c3aed 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.attachment-item:hover .attachment-preview-icon i {
	transform: translateY(-1px);
}

.attachment-thumbnail {
	width: 100%;
	height: 100%;
	object-fit: contain;
	cursor: pointer;
	transition: transform 0.3s ease;
}

.attachment-info {
	padding: 12px 14px;
	display: flex;
	width: 100%;
	flex-direction: column;
	gap: 3px;
	background: #ffffff;
}

.attachment-name {
	font-size: 12px;
	font-weight: 600;
	text-align: center;
	color: #1e293b;
	line-height: 1.4;
}

.attachment-actions {
	flex-direction: column;
	display: flex;
	gap: 8px;
	margin-top: 4px;
}

.attachment-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	flex: 1;
	padding: 6px 10px;
	font-size: 12px;
	font-weight: 600;
	color: #5C2D90;
	background: #f1f5f9;
	border: none;
	border-radius: 6px;
	text-decoration: none;
	transition: all 0.2s ease;
	cursor: pointer;
}

.attachment-link:hover {
	background: #5C2D90;
	color: #ffffff;
	transform: translateY(-1px);
}

.attachment-link i {
	font-size: 11px;
}

.attachment-view-btn {
	background: #ddd6fe;
	color: #5C2D90;
}

.attachment-view-btn:hover {
	background: #5C2D90;
	color: #ffffff;
}

/* Status badge styling */
.status-badge {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 600;
}

.status-started {
	background: #dbeafe;
	color: #2563eb;
}

.status-assigned {
	background: #fef3c7;
	color: #d97706;
}

.status-progress {
	background: #ddd6fe;
	color: #7c3aed;
}

.status-completed {
	background: #d1fae5;
	color: #059669;
}

.status-failed {
	background: #fee2e2;
	color: #dc2626;
}

.status-reopened {
	background: #fed7aa;
	color: #ea580c;
}

.status-unknown {
	background: #e2e8f0;
	color: #64748b;
}

/* Print-specific styles */
@media print {
	body * {
		visibility: hidden;
	}

	#main-content,
	#main-content * {
		visibility: visible;
	}

	#main-content {
		position: absolute;
		left: 0;
		top: 0;
		width: 100%;
	}

	.ticket-header-actions,
	.back-btn,
	.ticket-action-buttons {
		display: none !important;
	}

	.ticket-card {
		page-break-inside: avoid;
		box-shadow: none;
		border: 1px solid #e2e8f0;
	}

	.ticket-content {
		grid-template-columns: 1fr !important;
	}

	.ticket-sidebar {
		display: block;
		margin-top: 20px;
	}

	@page {
		margin: 1cm;
		size: A4;
	}
}

/* Responsive Attachments */
@media (max-width: 768px) {
	.ticket-attachments-list {
		gap: 12px;
	}

	.attachment-preview {
		height: 180px;
	}
}

/* Viewer.js custom styling to match theme */
.viewer-backdrop {
	background-color: rgba(0, 0, 0, 0.9);
}

.viewer-button {
	background-color: rgba(92, 45, 144, 0.8);
	border-radius: 6px;
}

.viewer-button:hover {
	background-color: #5C2D90;
}

.viewer-title {
	color: #ffffff;
	font-weight: 600;
}

/* Style 1: Default Modern Checkbox */
.checkbox-wrapper-1 {
	display: flex;
	align-items: center;
	margin-bottom: 1rem;
}

.checkbox-wrapper-1 input[type="checkbox"] {
	appearance: none;
	width: 20px;
	height: 20px;
	border: 2px solid #d1d5db;
	border-radius: 4px;
	cursor: pointer;
	position: relative;
	transition: all 0.2s ease;
	background: white;
}

.checkbox-wrapper-1 input[type="checkbox"]:hover {
	border-color: #3b82f6;
}

.checkbox-wrapper-1 input[type="checkbox"]:checked {
	background: #3b82f6;
	border-color: #3b82f6;
}

.checkbox-wrapper-1 input[type="checkbox"]:checked::after {
	content: '';
	position: absolute;
	left: 6px;
	top: 2px;
	width: 5px;
	height: 10px;
	border: solid white;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.checkbox-wrapper-1 label {
	margin-left: 0.5rem;
	cursor: pointer;
	user-select: none;
	color: #374151;
}

/* Style 2: Rounded Checkbox */
.checkbox-wrapper-2 {
	display: flex;
	align-items: center;
	margin-bottom: 1rem;
}

.checkbox-wrapper-2 input[type="checkbox"] {
	appearance: none;
	width: 22px;
	height: 22px;
	border: 2px solid #cbd5e1;
	border-radius: 50%;
	cursor: pointer;
	position: relative;
	transition: all 0.3s ease;
	background: white;
}

.checkbox-wrapper-2 input[type="checkbox"]:hover {
	border-color: #10b981;
	transform: scale(1.05);
}

.checkbox-wrapper-2 input[type="checkbox"]:checked {
	background: #10b981;
	border-color: #10b981;
}

.checkbox-wrapper-2 input[type="checkbox"]:checked::after {
	content: '';
	position: absolute;
	left: 6px;
	top: 2px;
	width: 5px;
	height: 10px;
	border: solid white;
	border-width: 0 2.5px 2.5px 0;
	transform: rotate(45deg);
}

.checkbox-wrapper-2 label {
	margin-left: 0.75rem;
	cursor: pointer;
	user-select: none;
	color: #1f2937;
}

/* Style 3: Toggle Switch Checkbox */
.checkbox-wrapper-3 {
	display: flex;
	align-items: center;
	margin-bottom: 1rem;
}

.checkbox-wrapper-3 input[type="checkbox"] {
	appearance: none;
	width: 50px;
	height: 26px;
	background: #cbd5e1;
	border-radius: 13px;
	cursor: pointer;
	position: relative;
	transition: all 0.3s ease;
}

.checkbox-wrapper-3 input[type="checkbox"]::before {
	content: '';
	position: absolute;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: white;
	top: 3px;
	left: 3px;
	transition: all 0.3s ease;
	box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.checkbox-wrapper-3 input[type="checkbox"]:checked {
	background: #8b5cf6;
}

.checkbox-wrapper-3 input[type="checkbox"]:checked::before {
	left: 27px;
}

.checkbox-wrapper-3 label {
	margin-left: 0.75rem;
	cursor: pointer;
	user-select: none;
	color: #374151;
}

/* Style 4: Material Design Checkbox */
.checkbox-wrapper-4 {
	display: flex;
	align-items: center;
	margin-bottom: 1rem;
}

.checkbox-wrapper-4 input[type="checkbox"] {
	appearance: none;
	width: 20px;
	height: 20px;
	border: 2px solid #9ca3af;
	border-radius: 2px;
	cursor: pointer;
	position: relative;
	transition: all 0.15s ease;
	background: white;
}

.checkbox-wrapper-4 input[type="checkbox"]:hover {
	border-color: #ef4444;
	box-shadow: 0 0 0 8px rgba(239, 68, 68, 0.1);
}

.checkbox-wrapper-4 input[type="checkbox"]:checked {
	background: #ef4444;
	border-color: #ef4444;
	animation: check-bounce 0.3s ease;
}

@keyframes check-bounce {

	0%,
	100% {
		transform: scale(1);
	}

	50% {
		transform: scale(1.15);
	}
}

.checkbox-wrapper-4 input[type="checkbox"]:checked::after {
	content: '';
	position: absolute;
	left: 5px;
	top: 1px;
	width: 6px;
	height: 11px;
	border: solid white;
	border-width: 0 2px 2px 0;
	transform: rotate(45deg);
}

.checkbox-wrapper-4 label {
	margin-left: 0.75rem;
	cursor: pointer;
	user-select: none;
	color: #1f2937;
}

/* Style 5: Bordered Checkbox with Label */
.checkbox-wrapper-5 {
	margin-bottom: 1rem;
}

.checkbox-wrapper-5 input[type="checkbox"] {
	display: none;
}

.checkbox-wrapper-5 label {
	display: flex;
	align-items: center;
	padding: 0.75rem 1rem;
	border: 2px solid #e5e7eb;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s ease;
	user-select: none;
	color: #374151;
}

.checkbox-wrapper-5 label:hover {
	border-color: #f59e0b;
	background: #fffbeb;
}

.checkbox-wrapper-5 input[type="checkbox"]:checked+label {
	border-color: #f59e0b;
	background: #fef3c7;
}

.checkbox-wrapper-5 label::before {
	content: '';
	width: 20px;
	height: 20px;
	border: 2px solid #d1d5db;
	border-radius: 4px;
	margin-right: 0.75rem;
	transition: all 0.2s ease;
	flex-shrink: 0;
}

.checkbox-wrapper-5 input[type="checkbox"]:checked+label::before {
	background: #f59e0b;
	border-color: #f59e0b;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='10' viewBox='0 0 12 10'%3E%3Cpolyline points='1.5 6 4.5 9 10.5 1' fill='none' stroke='white' stroke-width='2'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
}

/* Disabled State for all styles */
input[type="checkbox"]:disabled {
	cursor: not-allowed;
	opacity: 0.5;
}

label:has(input[type="checkbox"]:disabled) {
	cursor: not-allowed;
	opacity: 0.6;
}

.divider {
	height: 1px;
	background: #e5e7eb;
	margin: 2rem 0;
}