html {
	scroll-behavior: smooth;
}

b, strong {
	font-weight: 500;
}

/* Cancel the bg white for dark mode */
body[data-theme-style="dark"].bg-white {
	background: var(--body-bg) !important;
}

/* App */
.app {
	background: hsl(210, 50%, 99%);
}

[data-theme-style="dark"].app {
	background: #0D0F11;
}

.app-container {
}

.app-overlay {
	position: fixed;
	width: 100%;
	height: 100%;
	background: var(--gray-100);
	z-index: 100;
	opacity: .5;
}

.app-sidebar {
	display: flex;
	flex-direction: column;
	min-width: 260px;
	max-width: 260px;
	background: var(--white);
	border: 1px solid var(--gray-100);
	border-radius: var(--border-radius);
	margin: 3rem 1.5rem 3rem -300px;
	transition: margin-left .15s linear, margin-right .15s linear;
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	z-index: 101;
}

[dir="rtl"] .app-sidebar {
	margin-left: initial;
	left: initial;
	right: 0;
	margin-right: -300px;
	border-left: 1px solid var(--gray-100);
	border-right: 0;
}

[dir="rtl"] [data-theme-style="dark"] .app-sidebar {
	border-right: 0;
	border-left: 1px solid var(--gray-100);
}

body.app-sidebar-opened .app-sidebar {
	margin-left: 1.5rem;
}

[dir="rtl"] body.app-sidebar-opened .app-sidebar {
	margin-right: 1.5rem;
}

@media (min-width: 992px) {
	.app-sidebar {
		margin-left: 1.5rem;
	}

	[dir="rtl"] .app-sidebar {
		margin-right: 1.5rem;
	}
}

.app-sidebar-title {
	display: flex;
	justify-content: center;
	align-items: center;
	padding: .5rem;
	margin: .5rem;
	height: 75px;
}

.app-sidebar-title a {
	font-size: 1.4rem;
	color: var(--gray-900);
	font-weight: 600;
}

.app-sidebar-title a:hover {
	text-decoration: none;
}

.app-sidebar-footer {
	width: 100%;
}

.app-sidebar-footer > a {
	width: 100%;
	padding: .75rem 1.75rem;
	border-top: 1px solid var(--gray-100);
	display: flex;
	align-items: center;
	color: var(--gray-500);
	font-size: .9rem;
	font-weight: 500;
	transition: background .3s;
	border-radius: var(--border-radius);
}

.app-sidebar-footer > a:hover {
	text-decoration: none;
	background: var(--gray-200);
	color: var(--gray-600);
}

.app-sidebar-links-wrapper {
	overflow-y: scroll;
	width: calc(100% - 6px);
	padding-bottom: .25rem;
	scrollbar-width: none;
}

.app-sidebar-links-wrapper:hover {
	width: 100%;
	scrollbar-color: var(--gray-200) var(--white) !important;
	scrollbar-width: thin !important;
}

.app-sidebar-links-wrapper::-webkit-scrollbar {
	background-color: transparent;
	width: 0;
}

.app-sidebar-links-wrapper::-webkit-scrollbar-thumb {
	background: var(--gray-200);
	border-radius: 10px;
}

.app-sidebar-links-wrapper:hover::-webkit-scrollbar {
	width: 6px;
}

.app-sidebar-links-wrapper:hover::-webkit-scrollbar-track {
	width: 6px;
}

.app-sidebar-links {
	display: flex;
	flex-direction: column;
	align-items: center;
	list-style: none;
	padding: 0;
	margin: 0;
}

.app-sidebar-links > li {
	width: 100%;
	padding: 0.25rem calc(1rem - 6px) 0.25rem 1rem;
}

.app-sidebar-links > .divider-wrapper {
	width: 100%;
	padding: 0 calc(0.75rem - 6px) 0 0.75rem;
	margin: .25rem 0;
}

.app-sidebar-links > .divider-wrapper > .divider {
	border-top: 1px solid var(--gray-100);
}

.app-sidebar-links > li > a {
	width: 100%;
	display: flex;
	align-items: center;
	color: var(--gray-600);
	border-radius: var(--border-radius);
	padding: 0.75rem 1rem;
	transition: background .3s;
	font-size: .9rem;
	font-weight: 500;
}

.app-sidebar-links > li > a:hover {
	text-decoration: none;
	background: var(--gray-200);
	color: var(--gray-600);
}

[data-theme-style="dark"] .app-sidebar-links > li > a:hover {
	background: var(--gray-200);
	color: var(--gray-800);
}

.app-sidebar-links > li.active > a:not(.default) {
	background: var(--primary);
	color: var(--white);
	font-weight: 500;
}

[data-theme-style="dark"] .app-sidebar-links > li.active > a:not(.default) {
	background: var(--primary-800);
	color: var(--white);
}

.app-sidebar-avatar {
	width: 35px;
	height: 35px;
	border-radius: 50%;
}

.app-sidebar-footer-block {
	max-width: 100%;
}

.app-sidebar-footer-text {
	color: var(--gray-600);
}

.app-content {
	margin-left: 0;
	flex-grow: 1;
}

[dir="rtl"] .app-content {
	margin-left: initial;
	margin-right: 0;
}

@media (min-width: 992px) {
	.app-content {
		margin-left: 300px;
	}
	[dir="rtl"] .app-content {
		margin-left: initial;
		margin-right: 300px;
	}
}

.app-navbar {
	min-height: 75px;
	border-bottom: 1px solid var(--gray-100);
}

[data-theme-style="dark"] .app-navbar {
	border-color: var(--gray-200);
}

/* Modal */
.modal-header {
	padding: 1rem;
	border-bottom: 0;
}

.modal-content {
	padding: 1rem;
	border: none;
	box-shadow: none;
	-webkit-box-shadow: none;
	border-radius: calc(2 * var(--border-radius));
}

/* Forms */
.input-group-text {
	font-size: 0.9rem;
}

.form-control-range {
	/* removing default appearance */
	-webkit-appearance: none;
	appearance: none;

	/*  slider progress trick  */
	overflow: hidden;

	/* creating a custom design */
	accent-color: var(--primary);
	background: var(--gray-200);
	border-radius: var(--border-radius);
	height: .5rem;
	margin: 0.75rem 0;
}

/* Track: webkit browsers */
.form-control-range::-webkit-slider-runnable-track, .form-control-range::-moz-range-track {
	background: var(--gray-200);
}

/* Thumb: webkit */
.form-control-range::-webkit-slider-thumb {
	/* removing default appearance */
	-webkit-appearance: none;
	appearance: none;

	/* creating a custom design */
	height: .75rem;
	width: .75rem;
	background-color: var(--primary);
	border-radius: 50%;
	border: 2px solid var(--white);

	/*  slider progress trick  */
	box-shadow: -2007px 0 0 2000px var(--primary-300);
}

.form-control-range::-moz-range-thumb {
	/* removing default appearance */
	-webkit-appearance: none;
	appearance: none;

	/* creating a custom design */
	height: .75rem;
	width: .75rem;
	background-color: var(--primary);
	border-radius: 50%;
	border: 2px solid var(--white);

	/*  slider progress trick  */
	box-shadow: -2007px 0 0 2000px var(--primary-300);
}

/* Footer */
.footer {
	margin: 3rem 0 3rem 0;
	padding-top: 3rem;
	padding-bottom: 3rem;
	background: var(--white);
}

.footer {
	color: var(--gray-700);
}

.footer a:not(.dropdown-item), .footer a:hover:not(.dropdown-item) {
	color: var(--gray-700);
}

.footer a.icon {
	color: var(--gray-700);
}

.footer button, .footer button:hover {
	color: var(--gray) !important;
}

.footer-logo {
	max-height: 2.5rem;
	height: 2.5rem;
}

.footer-heading {
	color: var(--black) !important;
}

/* App footer */
.app-footer {
	border: 1px solid var(--gray-100);
	border-radius: var(--border-radius);
	padding: 1.25rem;
}

/* Filters */
.filters-dropdown {
	width: 18rem;
	max-height: 30rem;
	overflow-y: auto;
}

/* Custom breadcrumbs */
.custom-breadcrumbs {
	list-style: none;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
}

.custom-breadcrumbs > li {
	margin-right: .5rem;
}

.custom-breadcrumbs > li > a {
	color: var(--gray);
}

.custom-breadcrumbs > li > svg {
	color: var(--gray-400);
	margin-left: .5rem;
}

.custom-breadcrumbs > li.active {
}

/* Helper classes */
.list-style-none {
	list-style: none;
	padding: 0;
}

img {
	vertical-align: inherit !important;
}

.icon-favicon {
	width: .95rem;
	height: auto;
}

.icon-favicon-small {
	width: .75rem;
	height: auto;
}

/* Dropdown */
.dropdown-item:hover, .dropdown-item:focus, .dropdown-item.active {
	border-radius: var(--border-radius);
}

.dropdown-item svg {
	color: var(--gray-600);
}

.dropdown-item:active svg, .dropdown-item.active svg {
	color: var(--white);
}

/* Navbar */
.navbar-main {
	min-height: 0 !important;
	background: var(--white);
	border-bottom: 1px solid var(--gray-100);
}

.navbar-main .navbar-nav > li {
	padding: .5rem 0 !important;
}

@media (min-width: 992px) {
	.navbar-main .navbar-nav > li {
		padding: .5rem !important;
	}
}

.navbar-logo {
	max-height: 2.5rem;
	height: 2.5rem;
}

.navbar-logo-mini {
	max-height: 1.25rem;
	height: 1.25rem;
}

.navbar-avatar {
	width: 20px;
	height: 20px;
	border-radius: 50%;
}

.navbar-custom-toggler {
	padding: 0.5rem .8rem;
	font-size: 1.25rem;
	line-height: 1;
	background-color: transparent;
	border-radius: var(--border-radius);

	color: var(--gray-700);
	border-color: var(--gray-300);
}

.navbar-dark .navbar-nav .nav-link {
	color: rgba(255,255,255,.85);
}

.chart-container {
	position: relative;
	margin: auto;
	height: 275px;
	width: 100%;
}

@media print {
	.chart-container canvas {
		min-height: 100%;
		max-width: 100%;
		max-height: 100%;
		height: auto!important;
		width: auto!important;
	}
}

/* Dropdown */
.dropdown-toggle-simple::after {
	display:none;
}

/* Index */
.index {
	background: #f9fcff;
}

[data-theme-style="dark"].index {
	background: var(--body-bg);
}

.index .navbar-main .btn {
	border-radius: 5rem;
	padding: 0.5rem 1rem;
}

.index-container-content {
	/* margin-top: 6rem; */
	margin-bottom: 4rem;
}

.index-container {
	width: 100%;
	/* padding: 0 0 4rem 0; */
}

@media (min-width: 992px) {
	.index-container {
		/* padding: 0 0 8rem 0; */
	}
}

.index-image {
	width: 100%;
	height: 100%;
	position: absolute;
}


.index-header {
	font-size: 3rem;
	font-weight: bold;
	color: var(--black);
}

@media (min-width: 1375px) {
	.index-header {
		font-size: 5rem;
		font-weight: bold;
		color: var(--black);
	}
}

.index-subheader {
	font-size: 1.35rem;
}

.index-button {
	padding: 1.2rem 2.2rem;
	font-size: 1rem;
	font-weight: 600;
	text-transform: uppercase;
	transition: all .3s ease-in-out;
} 

.index-button-white, .index-button-white:hover {
	color: white;
}

swiper-container {
	width: 280px;
	height: 550px;
  }

@media (max-width: 660px) {
	swiper-container {
		width: 190px;
		height: 400px;
	  }
}

swiper-slide {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 22px;
	font-weight: bold;
	color: #fff;
	overflow: hidden;
	border-radius: 2.5rem;
	border: 10px solid black;
	position: relative;
	box-shadow: 0 0 30px rgba(0,0,0,0.20); 
	pointer-events: none;
}
  
.index-card-image {
	max-width: 100%;
	height: auto;
	object-fit: cover;
	box-shadow: 10px 10px 0 #ebf5ff;
	border: 1px solid var(--gray-300);
	transition: all .3s ease-in-out;
}

.index-card-image:hover {
	box-shadow: 0 0 0 var(--gray-300);
}

.index-highly-rounded {
	border-radius: 1rem;
}

.index-fade {
	position: absolute;
	background: linear-gradient(0deg, var(--body-bg), hsla(0, 0%, 100%, 0)) !important;
	bottom: 0;
	top: 0;
	right: 0;
	left: 0;
	z-index: 1;
}

/* Index testimonial */
.index-testimonial-avatar {
	width: 85px;
	height: 85px;
	border-radius: 50%;
	transform: translateY(-70%);
	border: 4px solid var(--white);
	position: absolute;
	left: 50%;
	margin-left: -52px;
}

/* Index FAQ */
.index-faq svg {
	transition: all .15s;
	color: var(--primary-800);
}

.index-faq .btn-lg {
	backdrop-filter: none !important;
	-webkit-backdrop-filter: none !important;
	box-shadow: none !important;
}

.index-faq .btn-lg:hover {
	box-shadow: none !important;
}

/* Index call to action */
.index-cta {
	background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" version="1.1" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svgjs="http://svgjs.dev/svgjs" viewBox="0 0 1920 1080" width="1920" height="1080"><defs><linearGradient gradientTransform="rotate(0, 0.5, 0.5)" x1="50%" y1="0%" x2="50%" y2="100%" id="ffflux-gradient"><stop stop-color="%230063ef" stop-opacity="1" offset="0%"></stop><stop stop-color="%23aa02b4" stop-opacity="1" offset="100%"></stop></linearGradient><filter id="ffflux-filter" x="-20%" y="-20%" width="140%" height="140%" filterUnits="objectBoundingBox" primitiveUnits="userSpaceOnUse" color-interpolation-filters="sRGB"><feTurbulence type="fractalNoise" baseFrequency="0.005 0.003" numOctaves="1" seed="131" stitchTiles="stitch" x="0%" y="0%" width="100%" height="100%" result="turbulence"></feTurbulence><feGaussianBlur stdDeviation="20 0" x="0%" y="0%" width="100%" height="100%" in="turbulence" edgeMode="duplicate" result="blur"></feGaussianBlur><feBlend mode="color-dodge" x="0%" y="0%" width="100%" height="100%" in="SourceGraphic" in2="blur" result="blend"></feBlend></filter></defs><rect width="1920" height="1080" fill="url(%23ffflux-gradient)" filter="url(%23ffflux-filter)"></rect></svg>');
	background-repeat: no-repeat;
	background-size: cover;
	color: white !important;
}

.index-cta a.btn {
	color: white;
	background: var(--dark);
	border-color: var(--dark);
	padding: 1.1rem 4rem;
	font-size: 1.15rem;
}

.index-cta a.btn:hover {
	background: var(--primary-900);
	border-color: var(--primary-900);
}

[data-theme-style="dark"] .index-cta a.btn {
	background: var(--light);
	border-color: var(--light);
}

.user-avatar {
	border-radius: 50%;
	max-width: 80px;
	max-height: 80px;
}

/* Link Settings page */
.link-background-type-preset {
	width: 100%;
	height: 5rem;
	border-radius: var(--border-radius);
	transition: .3s transform, opacity;
}

.link-background-type-preset:hover {
	cursor: pointer;
	transform: scale(1.025);
}

input[type="radio"]:checked ~ .link-background-type-preset {
	transform: scale(1.05);
	opacity: .25;
}

/* Biolink directory */
.link-directory-avatar {
	width: 60px;
	height: 60px;
	object-fit: cover;
}

/* Biolink theme */
.link-biolink-theme {
	transition: .3s transform, .3s opacity, .3s border-color;
	height: 10rem !important;
}

.link-biolink-theme:hover {
	cursor: pointer;
	transform: scale(1.025);
}

input[type="radio"]:checked ~ .link-biolink-theme {
	transform: scale(1.05);
	border-color: var(--primary);
}

.link-biolink-theme-custom {
	background: linear-gradient(to left, var(--body-bg), var(--primary-100));
}

.link-btn-straight {
	border-radius: 0;
}

.link-btn-round {
	border-radius: 50px;
}

.link-btn-rounded {
	border-radius: .6rem;
}


/* Biolink preview iframe */
.biolink-preview {
	position: relative;
	margin: 0 auto;
	height: auto;
	width: auto;
	display: inline-block;
	text-align: left;
}

.biolink-preview-iframe-container {
	overflow: hidden;
	width: 380px;
	height: 825px;
	border-radius: 2.5rem;
	border: 10px solid black;
	position: relative;
	box-shadow: 0 0 30px rgba(0,0,0,0.20);
}

.biolink-preview-iframe-loading {
	width: 100%;
	height: 100%;
	background: hsla(0, 0%, 0%, .7);
	position: absolute;
	display: flex;
	justify-content: center;
	align-items: center;
}

.biolink-preview-iframe {
	width: 100%;
	height: 100%;
	border: 0;
	margin: 0;
	padding: 0;
}

/* Mobile preview iframe (same style as desktop) */
.biolink-preview-iframe-mobile {
	width: 100%;
	height: 100%;
	border: 0;
	margin: 0;
	padding: 0;
}

/* Others */
.container-disabled {
	pointer-events: none;
	opacity: .5;
}

.container-disabled-simple {
	pointer-events: none;
}

.pwa-row {
 margin: 10px 2rem 0px 2rem;
}
@media (min-width: 1600px) {
.pwa-row {
	margin: 10px 18rem 0px 18rem;
}
}

/* Glassmorphism Card Styles */
.custom-row {
	position: relative;
	background: rgba(255, 255, 255, 0.1);
	box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
	padding: 1rem;
	margin-bottom: 1rem;
	transition: all 0.3s ease;
	border-radius: var(--border-radius);
	border: 1px solid color-mix(in srgb, var(--gray-300), transparent 80%);
}

.custom-row-side-controller {
	right: 100%;
	top: 25%;
	font-size: 1.2em;
	padding: .2em .2em;
}

.custom-row:hover,
.custom-row:focus-within {
	box-shadow: 0 12px 48px 0 color-mix(in srgb, var(--gray-900), transparent 80%);
	transform: translateY(-2px);
	z-index: 100;
}

.custom-row-inactive {
	opacity: 0.6;
}

.custom-row-inactive:focus,
.custom-row-inactive:focus-within,
.custom-row-inactive:has(.dropdown.show),
.custom-row-inactive:has(.show) {
	opacity: 1;
}

.custom-row-active {
	z-index: 100 !important;
	position: relative;
}

.custom-row-header {
	display: flex;
	align-items: center;
	margin-bottom: 0;
	padding-right: 0;
}

@media (max-width: 767.98px) {
	.custom-row-header {
		margin-bottom: 0.5rem;
	}
}

.custom-row-icon {
	flex-shrink: 0;
	margin-right: .3rem;
}

.custom-row-content {
	flex: 1;
	min-width: 0;
}

.custom-row-title {
	font-size: 1.125rem;
	font-weight: 700;
	margin-bottom: 0;
}

.custom-row-url {
	opacity: 0.75;
	font-size: 0.8rem;
}

.custom-row-actions {
	display: flex;
	align-items: center;
}

.custom-row-btn {
	background: color-mix(in srgb, var(--gray-200), transparent 10%);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border: 1px solid var(--gray-50);
	border-radius: var(--border-radius);
	padding: 0.3rem;
	min-width: 44px;
	min-height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	transition: all 0.2s ease;
	color: var(--primary-900);
	text-decoration: none;
}

.custom-row-btn:hover {
	background: color-mix(in srgb, var(--gray-300), transparent 0%);
	transform: scale(1.05);
	color: var(--gray-900);
	text-decoration: none;
}

.custom-row-dropdown-menu {
	background: color-mix(in srgb, var(--gray-100), transparent 5%);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border: 1px solid color-mix(in srgb, var(--gray-100), transparent 97%);
	border-radius: 1rem;
	box-shadow: 0 8px 32px 0 color-mix(in srgb, var(--gray-300), transparent 10%); 
	min-width: 200px;
	padding: 0.5rem;
}

.custom-row-dropdown-menu .dropdown-item {
	padding: 0.75rem 1.25rem;
	transition: background 0.2s ease;
	border-radius: 0.5rem;
	margin: 0.25rem 0;
}

.custom-row-dropdown-menu .dropdown-item:hover {
	background: color-mix(in srgb, var(--gray-900), transparent 95%);
}

/* Pagination within custom-row */
.custom-row .page-link {
	background: color-mix(in srgb, var(--white), transparent 99%);
	border-color: rgba(255, 255, 255, 0.2);
	color: var(--gray-700);
	backdrop-filter: blur(4px);
}

.custom-row .page-item.disabled .page-link {
	background: color-mix(in srgb, var(--white), transparent 95%);
	color: var(--gray-500);
}

.custom-row .page-item.active .page-link {
	background: var(--primary);
	border-color: var(--primary);
	color: var(--white);
}

.custom-row .page-link:hover {
	background: color-mix(in srgb, var(--white), transparent 98%);
	color: var(--gray-900);
}


[dir="rtl"] .custom-row-side-controller {
	right: initial;
	left: 100%;
}

@media (min-width: 992px) {
	.custom-row-side-controller {
		position: absolute;
		padding: .4em .8em;
    }
}

@media (min-width: 600px) {
	.custom-row-content {
	margin-left: 1.5rem;
    }
}

.custom-row-side-controller-grab {
	cursor: grab;
}

.custom-row .badge-light {
	font-size: 60%;
}

/* Mobile Actions - Ligne 2 avec les 3 boutons */
.custom-row-mobile-actions {
	margin-top: 1rem;
	gap: 0.5rem;
}

.custom-row-mobile-actions .btn-outline-secondary:not([class*="admin-"]) {
	font-size: 0.875rem;
	padding: 0.5rem 0.75rem;
	white-space: nowrap;
	background: color-mix(in srgb, var(--gray-200), transparent 0%);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	border-radius: var(--border-radius);
	color: var(--gray-800);
	font-weight: 500;
	transition: all 0.2s ease;
}

.custom-row-mobile-actions .btn-outline-secondary:not([class*="admin-"]):hover {
	background: color-mix(in srgb, var(--gray-300), transparent 0%);
	transform: translateY(-1px);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.custom-row-mobile-actions .btn i {
	font-size: 0.875rem;
}

/* Modal backdrop with blur effect */
.modal.show {
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.modal-backdrop.show {
	opacity: 0.3;
}

/* Glassmorphism modal content */
.modal-content {
	background: color-mix(in srgb, var(--white), transparent 50%);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border: 1px solid color-mix(in srgb, var(--white), transparent 80%);
	border-radius: var(--border-radius);
	box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15),
	            0 2px 8px 0 rgba(0, 0, 0, 0.1);
	overflow: hidden;
}

/* Modal header */
.modal-header {
	background: color-mix(in srgb, var(--white), transparent 80%);
	border: 1px solid color-mix(in srgb, var(--gray-100), transparent 95%);
	padding: 1.5rem;
	border-radius: var(--border-radius);
}

/* Modal body */
.modal-body {
	padding: 1.5rem;
	background: transparent;
}

/* Modal title styling */
.modal-title {
	font-weight: 600;
	font-size: 1.25rem;
	color: var(--gray-900);
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

.modal-title i {
	opacity: 0.7;
}

/* Close button */
.modal-header .close {
	padding: 0.5rem;
	margin: -0.5rem -0.5rem -0.5rem auto;
	opacity: 0.6;
	transition: all 0.2s ease;
	border-radius: 0.5rem;
	width: 2.5rem;
	height: 2.5rem;
	display: flex;
	align-items: center;
	justify-content: center;
}

.modal-header .close:hover {
	opacity: 1;
	transform: rotate(90deg);
}

/* Modal footer */
.modal-footer {
	background: color-mix(in srgb, var(--white), transparent 80%);
	border: 1px solid color-mix(in srgb, var(--gray-100), transparent 95%);
	padding: 1.5rem;
	border-radius: var(--border-radius);
}

/* Form elements in modals */
.modal-body .form-control,
.modal-body .altum-file-input,
.modal-body .custom-select,
.modal-body select,
.modal-body textarea,
.modal-body .input-group-text,
.modal-body .select2-container--default .select2-selection--single,
.modal-body .select2-container--default .select2-selection--multiple,
.modal-body .select2-dropdown,
.modal-body .select2-dropdown .select2-container--open .select2-dropdown--below {
	background: color-mix(in srgb, var(--gray-400), transparent 90%) !important;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid color-mix(in srgb, var(--gray-100), transparent 40%) !important;
	border-radius: var(--border-radius);
	transition: all 0.2s ease;
}

.modal-body .form-control:focus,
.modal-body .custom-select:focus,
.modal-body select:focus,
.modal-body textarea:focus,
.modal-body .select2-container--default:focus,
.modal-body .select2-dropdown:focus,
.modal-body input:focus {
	background: color-mix(in srgb, var(--white), transparent 10%) !important;
	border-color: var(--primary) !important;
	box-shadow: 0 0 0 0.2rem rgba(var(--primary-rgb), 0.15);
}

/* Input groups in modals */
/* .modal-body .input-group-prepend .input-group-text,
.modal-body .input-group-append .input-group-text {
	background: color-mix(in srgb, var(--gray-100), transparent 30%);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid color-mix(in srgb, var(--gray-100), transparent 40%);
	color: var(--gray-700);
} */

/* Color picker in modals */
.modal-body .pickr {
	background: color-mix(in srgb, var(--white), transparent 20%) !important;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid color-mix(in srgb, var(--gray-100), transparent 40%) !important;
	border-radius: var(--border-radius);
} 

.modal-body .pickr .pcr-button {
	border-radius: var(--border-radius);
	border: 1px solid color-mix(in srgb, var(--gray-100), transparent 40%);
}

/* Buttons in modals */
.modal-body .btn,
.modal-footer .btn {
	background: color-mix(in srgb, var(--white), transparent 90%);
	backdrop-filter: blur(1px);
	-webkit-backdrop-filter: blur(10px);
	font-weight: 500;
	transition: all 0.2s ease;
	border: 1px solid color-mix(in srgb, var(--gray-100), transparent 40%);
	border-radius: var(--border-radius);
}

.modal-body .btn:hover,
.modal-footer .btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Danger button special styling */
.modal-body .btn-danger,
.modal-footer .btn-danger {
	background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
	border: 1px solid color-mix(in srgb, var(--gray-100), transparent 40%);
	border-radius: var(--border-radius);
}

.modal-body .btn-danger:hover,
.modal-footer .btn-danger:hover {
	background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
}

/* Primary button special styling */
.modal-body .btn-primary,
.modal-footer .btn-primary {
	background: linear-gradient(135deg, var(--primary) 0%, var(--primary-800) 100%);
	border: 1px solid color-mix(in srgb, var(--gray-100), transparent 40%);
	border-radius: var(--border-radius);
}

.modal-body .btn-primary:hover,
.modal-footer .btn-primary:hover {
	background: linear-gradient(135deg, var(--primary-800) 0%, var(--primary-900) 100%);
}

/* Modal text styling */
.modal-body .text-muted {
	color: var(--gray-600) !important;
	line-height: 1.6;
}

/* Animation for modal appearance */
.modal.fade .modal-dialog {
	transition: transform 0.3s ease-out, opacity 0.3s ease-out;
	transform: scale(0.9) translateY(-50px);
	opacity: 0;
}

.modal.show .modal-dialog {
	transform: scale(1) translateY(0);
	opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 576px) {
	.modal-content {
		border-radius: 1rem;
	}
	
	.modal-header,
	.modal-footer {
		padding: 1rem;
	}
	
	.modal-body {
		padding: 1rem;
	}
}

/* Dropdown menu glassmorphism - Exclut les dropdowns admin */
.dropdown-menu:not(.admin-dropdown):not([class*="admin-"]) {
	background: color-mix(in srgb, var(--white), transparent 30%);
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	border: 1px solid color-mix(in srgb, var(--gray-100), transparent 30%);
	border-radius: var(--border-radius);
	box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15),
	            0 2px 8px 0 rgba(0, 0, 0, 0.1);
	padding: 0.5rem;
}

/* Dropdown items */
.dropdown-menu:not(.admin-dropdown):not([class*="admin-"]) .dropdown-item {
	padding: 0.75rem 1rem;
	border-radius: calc(var(--border-radius) - 2px);
	margin: 0.15rem 0;
	color: var(--gray-700);
}

.dropdown-menu:not(.admin-dropdown):not([class*="admin-"]) .dropdown-item:hover,
.dropdown-menu:not(.admin-dropdown):not([class*="admin-"]) .dropdown-item:focus {
	background: color-mix(in srgb, var(--gray-900), transparent 95%);
	color: var(--gray-900);
	transform: translateX(2px);
}

.dropdown-menu:not(.admin-dropdown):not([class*="admin-"]) .dropdown-item:active {
	background: color-mix(in srgb, var(--primary), transparent 85%);
	color: var(--primary);
}

/* Dropdown divider */
.dropdown-menu:not(.admin-dropdown):not([class*="admin-"]) .dropdown-divider {
	border-top: 1px solid color-mix(in srgb, var(--gray-100), transparent 50%);
	margin: 0.5rem 0;
}

/* Dropdown header */
.dropdown-menu:not(.admin-dropdown):not([class*="admin-"]) .dropdown-header {
	padding: 0.5rem 1rem;
	color: var(--gray-600);
	font-weight: 600;
	font-size: 0.875rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

/* Filters dropdown special styling */
.filters-dropdown {
	background: color-mix(in srgb, var(--white), transparent 50%) !important;
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	border: 1px solid color-mix(in srgb, var(--gray-100), transparent 30%);
	box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.15);
}

/* Dropdown toggle buttons */
.dropdown-toggle,
.dropdown-toggle-simple {
	transition: all 0.2s ease;
}

.dropdown-toggle:hover,
.dropdown-toggle-simple:hover {
	transform: translateY(-1px);
}

/* Dropdown icons */
.dropdown-menu:not(.admin-dropdown):not([class*="admin-"]) .dropdown-item i,
.dropdown-menu:not(.admin-dropdown):not([class*="admin-"]) .dropdown-item svg {
	opacity: 0.7;
}

.dropdown-menu:not(.admin-dropdown):not([class*="admin-"]) .dropdown-item:hover i,
.dropdown-menu:not(.admin-dropdown):not([class*="admin-"]) .dropdown-item:hover svg {
	opacity: 1;
}

/* Dropdown text colors */
.dropdown-menu:not(.admin-dropdown):not([class*="admin-"]) .dropdown-item.text-danger:hover {
	background: color-mix(in srgb, #dc3545, transparent 90%);
	color: #dc3545;
}

.dropdown-menu:not(.admin-dropdown):not([class*="admin-"]) .dropdown-item.text-success:hover {
	background: color-mix(in srgb, #28a745, transparent 90%);
	color: #28a745;
}

.dropdown-menu:not(.admin-dropdown):not([class*="admin-"]) .dropdown-item.text-warning:hover {
	background: color-mix(in srgb, #ffc107, transparent 90%);
	color: #856404;
}

/* Animation for dropdown appearance */
.dropdown-menu.show {
	animation: dropdownFadeIn 0.2s ease-out;
}

/* Exclusion explicite des dropdowns admin */
body[class*="admin"] .dropdown-menu,
.admin-dropdown,
[class*="admin-"] .dropdown-menu {
	background: var(--white) !important;
	backdrop-filter: none !important;
	-webkit-backdrop-filter: none !important;
	border: 1px solid var(--gray-200) !important;
	box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* Buttons primary with glassmorphism */
.btn-primary:not([class*="admin-"]) {
	background: linear-gradient(135deg, 
		color-mix(in srgb, var(--primary), transparent 10%) 0%, 
		color-mix(in srgb, var(--primary-600), transparent 10%) 100%);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid color-mix(in srgb, var(--primary), transparent 30%);
	box-shadow: 0 4px 15px 0 rgba(var(--primary-rgb), 0.2);
	transition: all 0.3s ease;
}

.btn-primary:not([class*="admin-"]):hover {
	background: linear-gradient(135deg, 
		var(--primary) 0%, 
		var(--primary-800) 100%);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px 0 rgba(var(--primary-rgb), 0.3);
}

.btn-primary:not([class*="admin-"]):active {
	transform: translateY(0);
	box-shadow: 0 2px 10px 0 rgba(var(--primary-rgb), 0.2);
}

/* Bulk selection checkbox styling */
.custom-row-bulk {
	margin-right: 1rem;
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
}

/* Bulk select all styling */
#bulk_group .custom-control-checkbox {
	display: flex;
	align-items: center;
	margin-bottom: 0;
}

#bulk_group .custom-control-label {
	font-size: 0.9rem;
	color: var(--black);
	margin-bottom: 0;
	padding-left: 0.5rem;
}

/* Mobile bulk group adjustments */
@media (max-width: 767px) {
	#bulk_group {
		flex-wrap: nowrap;
		align-items: center;
	}
	
	#bulk_group .btn {
		padding: 0.375rem 0.5rem;
		font-size: 0.875rem;
	}
	
	#bulk_group .custom-control-checkbox {
		margin-right: 0.5rem;
		min-width: auto;
	}
}

.custom-row-bulk .custom-control-input:checked ~ .custom-control-label::before {
	background-color: var(--primary);
	border-color: var(--primary);
}

.custom-row-bulk .custom-control-label::before {
	background: color-mix(in srgb, var(--white), transparent 20%);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid color-mix(in srgb, var(--gray-300), transparent 40%);
	border-radius: var(--border-radius);
}

/* Buttons secondary with glassmorphism */
.btn-secondary:not([class*="admin-"]),
.btn-outline-secondary:not([class*="admin-"]) {
	background: color-mix(in srgb, var(--gray-200), transparent 30%);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid color-mix(in srgb, var(--gray-300), transparent 40%);
	color: var(--gray-700);
	transition: all 0.3s ease;
}

.btn-secondary:not([class*="admin-"]):hover,
.btn-outline-secondary:not([class*="admin-"]):hover {
	background: color-mix(in srgb, var(--gray-300), transparent 20%);
	color: var(--gray-900);
	transform: translateY(-2px);
	box-shadow: 0 4px 15px 0 rgba(0, 0, 0, 0.1);
}

/* Buttons light with glassmorphism - Only for specific contexts */
/* Apply to buttons in custom-row cards and filter/export buttons */
.custom-row .btn-light:not([class*="admin-"]),
.custom-row .btn-outline-light:not([class*="admin-"]),
.filters-button.btn-light:not([class*="admin-"]),
.dropdown .btn-light:not([class*="admin-"]):not(.link-content .btn-light),
.btn-outline-light:not([class*="admin-"]):not(.link-content .btn-outline-light) {
	background: color-mix(in srgb, var(--white), transparent 10%);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid color-mix(in srgb, var(--primary-200), transparent 40%);
	color: var(--gray-700);
	transition: all 0.3s ease;
}

.custom-row .btn-light:not([class*="admin-"]):hover,
.custom-row .btn-outline-light:not([class*="admin-"]):hover,
.filters-button.btn-light:not([class*="admin-"]):hover,
.dropdown .btn-light:not([class*="admin-"]):not(.link-content .btn-light):hover,
.btn-outline-light:not([class*="admin-"]):not(.link-content .btn-outline-light):hover {
	background: color-mix(in srgb, var(--white), transparent 10%);
	color: var(--gray-900);
	transform: translateY(-2px);
	box-shadow: 0 4px 15px 0 rgba(0, 0, 0, 0.08);
}

/* Buttons danger with glassmorphism */
.btn-danger:not([class*="admin-"]),
.btn-outline-danger:not([class*="admin-"]) {
	background: linear-gradient(135deg, 
		color-mix(in srgb, #dc3545, transparent 10%) 0%, 
		color-mix(in srgb, #c82333, transparent 10%) 100%);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid color-mix(in srgb, #dc3545, transparent 30%);
	box-shadow: 0 4px 15px 0 rgba(220, 53, 69, 0.2);
	transition: all 0.3s ease;
}

.btn-danger:not([class*="admin-"]):hover,
.btn-outline-danger:not([class*="admin-"]):hover {
	background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px 0 rgba(220, 53, 69, 0.3);
}

/* Buttons success with glassmorphism */
.btn-success:not([class*="admin-"]),
.btn-outline-success:not([class*="admin-"]) {
	background: linear-gradient(135deg, 
		color-mix(in srgb, #28a745, transparent 10%) 0%, 
		color-mix(in srgb, #218838, transparent 10%) 100%);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid color-mix(in srgb, #28a745, transparent 30%);
	box-shadow: 0 4px 15px 0 rgba(40, 167, 69, 0.2);
	transition: all 0.3s ease;
}

.btn-success:not([class*="admin-"]):hover,
.btn-outline-success:not([class*="admin-"]):hover {
	background: linear-gradient(135deg, #28a745 0%, #218838 100%);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px 0 rgba(40, 167, 69, 0.3);
}

/* Buttons warning with glassmorphism */
.btn-warning:not([class*="admin-"]),
.btn-outline-warning:not([class*="admin-"]) {
	background: linear-gradient(135deg, 
		color-mix(in srgb, #ffc107, transparent 10%) 0%, 
		color-mix(in srgb, #e0a800, transparent 10%) 100%);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid color-mix(in srgb, #ffc107, transparent 30%);
	box-shadow: 0 4px 15px 0 rgba(255, 193, 7, 0.2);
	transition: all 0.3s ease;
	color: var(--gray-900);
}

.btn-warning:not([class*="admin-"]):hover,
.btn-outline-warning:not([class*="admin-"]):hover {
	background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px 0 rgba(255, 193, 7, 0.3);
	color: var(--gray-900);
}

/* Buttons info with glassmorphism */
.btn-info:not([class*="admin-"]),
.btn-outline-info:not([class*="admin-"]) {
	background: linear-gradient(135deg, 
		color-mix(in srgb, #17a2b8, transparent 10%) 0%, 
		color-mix(in srgb, #138496, transparent 10%) 100%);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid color-mix(in srgb, #17a2b8, transparent 30%);
	box-shadow: 0 4px 15px 0 rgba(23, 162, 184, 0.2);
	transition: all 0.3s ease;
}

.btn-info:not([class*="admin-"]):hover,
.btn-outline-info:not([class*="admin-"]):hover {
	background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px 0 rgba(23, 162, 184, 0.3);
}

/* =============================================
   STATISTICS REDESIGN
   ============================================= */

/* Impact cards */
.impact-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1rem;
	margin-bottom: 1.75rem;
}
@media (min-width: 768px) {
	.impact-grid { grid-template-columns: repeat(3, 1fr); }
}

.impact-card {
	border-radius: 1rem;
	padding: 1.5rem;
	border: 1px solid;
	position: relative;
	overflow: hidden;
	transition: transform 0.2s, box-shadow 0.2s;
}
.impact-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.impact-card-emerald { background: #ecfdf5; border-color: #d1fae5; }
.impact-card-blue    { background: #eff6ff; border-color: #dbeafe; }
.impact-card-sky     { background: #f0f9ff; border-color: #e0f2fe; }

.impact-card-icon {
	width: 40px; height: 40px;
	border-radius: 0.75rem;
	background: white;
	display: flex; align-items: center; justify-content: center;
	font-size: 1.125rem;
	box-shadow: 0 1px 3px rgba(0,0,0,0.06);
	margin-bottom: 1rem;
}
.impact-card-icon.emerald { color: #059669; }
.impact-card-icon.blue    { color: #3b82f6; }
.impact-card-icon.sky     { color: #0ea5e9; }

.impact-card-label {
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--gray-600);
	margin-bottom: 0.25rem;
}
.impact-card-value {
	font-size: 1.75rem;
	font-weight: 700;
	color: var(--gray-900);
	line-height: 1.1;
}
.impact-card-value small {
	font-size: 0.875rem;
	font-weight: 600;
	color: var(--gray-600);
}
.impact-card-subtitle {
	font-size: 0.75rem;
	font-weight: 500;
	color: var(--gray-500);
	margin-top: 0.5rem;
}
.impact-card-bg {
	position: absolute;
	right: -1rem; bottom: -1rem;
	font-size: 4.5rem;
	opacity: 0.07;
	pointer-events: none;
}
.impact-footnote {
	font-size: 0.75rem;
	color: var(--gray-400);
	margin-bottom: 1.75rem;
	display: flex;
	align-items: center;
	gap: 0.375rem;
}

/* Chart section — uses Bootstrap card */
.stats-chart-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	flex-wrap: wrap;
	gap: 1rem;
	margin-bottom: 1rem;
}
.stats-chart-header h2 {
	font-size: 1.0625rem;
	font-weight: 600;
	margin: 0;
}
.stats-chart-header p {
	font-size: 0.8125rem;
	color: var(--gray-500);
	margin: 0.125rem 0 0;
}
.stats-chart-kpi {
	text-align: right;
}
.stats-chart-kpi .kpi-value {
	font-size: 1.75rem;
	font-weight: 700;
	line-height: 1;
}
.stats-chart-kpi .kpi-trend {
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--primary);
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 0.25rem;
	margin-top: 0.25rem;
}

/* Stat panels — use Bootstrap card structure */
.stat-panel {
	display: flex;
	flex-direction: column;
	height: 100%;
}
.stat-panel-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 1.25rem;
}
.stat-panel-header h3 {
	font-size: 1rem;
	font-weight: 600;
	margin: 0;
}
.stat-panel-body {
	flex: 1;
}
.stat-panel-footer {
	margin-top: 1.25rem;
	padding-top: 0.75rem;
	border-top: 1px solid var(--gray-200);
}
.stat-panel-footer a {
	font-size: 0.8125rem;
	font-weight: 500;
	color: var(--primary);
	text-decoration: none;
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	transition: color 0.15s;
}
.stat-panel-footer a:hover {
	color: var(--primary-600);
	text-decoration: none;
}

/* Progress bars inside stat panels */
.stat-progress {
	margin-bottom: 1.125rem;
}
.stat-progress:last-child { margin-bottom: 0; }

.stat-progress-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 0.375rem;
	font-size: 0.8125rem;
}
.stat-progress-label {
	display: flex;
	align-items: center;
	gap: 0.375rem;
	min-width: 0;
	flex: 1;
	margin-right: 0.5rem;
	font-weight: 500;
	color: var(--gray-700);
}
.stat-progress-label a,
.stat-progress-label span {
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.stat-progress-label a {
	color: var(--gray-700);
	text-decoration: none;
}
.stat-progress-label a:hover {
	color: var(--primary);
}
.stat-progress-count {
	flex-shrink: 0;
	color: var(--gray-500);
	font-size: 0.8125rem;
}
.stat-progress-count strong {
	color: var(--gray-700);
	font-weight: 600;
}

.stat-progress-track {
	height: 0.625rem;
	background: var(--gray-100);
	border-radius: 9999px;
	overflow: hidden;
}
.stat-progress-fill {
	height: 100%;
	border-radius: 9999px;
	background: var(--primary);
	transition: width 0.8s ease-out;
}

/* Entries table */
.stats-entries-wrap {
	background: white;
	border-radius: 1rem;
	border: 1px solid var(--gray-100);
	box-shadow: 0 1px 3px rgba(0,0,0,0.04);
	overflow: hidden;
}
.stats-entries-header {
	padding: 1.5rem;
	border-bottom: 1px solid var(--gray-100);
}
.stats-entries-header h2 {
	font-size: 1.0625rem;
	font-weight: 600;
	color: var(--gray-800);
	margin: 0;
}
.stats-entries-header p {
	font-size: 0.8125rem;
	color: var(--gray-500);
	margin: 0.25rem 0 0;
}

.stats-entries-table {
	width: 100%;
	font-size: 0.8125rem;
	text-align: left;
}
.stats-entries-table thead {
	background: var(--gray-50, #f8fafc);
}
.stats-entries-table thead th {
	padding: 0.875rem 1.5rem;
	font-weight: 500;
	color: var(--gray-500);
	border: none;
	white-space: nowrap;
}
.stats-entries-table tbody tr {
	border-top: 1px solid var(--gray-100);
	transition: background 0.1s;
}
.stats-entries-table tbody tr:hover {
	background: var(--gray-50, #f8fafc);
}
.stats-entries-table tbody td {
	padding: 0.875rem 1.5rem;
	vertical-align: middle;
	color: var(--gray-600);
	border: none;
}
.stats-entries-table .entry-location {
	display: flex;
	align-items: center;
	gap: 0.5rem;
}
.stats-entries-table .entry-location img {
	width: 18px;
	border-radius: 2px;
}
.stats-entries-table .entry-location .location-name {
	font-weight: 500;
	color: var(--gray-700);
}
.stats-entries-table .entry-device-stack {
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
}
.stats-entries-table .entry-device-stack .sub {
	font-size: 0.75rem;
	color: var(--gray-400);
}

/* Mobile entry cards (used on small screens) */
.stats-entry-card {
	background: white;
	border: 1px solid var(--gray-100);
	border-radius: 0.75rem;
	padding: 1rem 1.125rem;
	margin-bottom: 0.5rem;
	display: grid;
	grid-template-columns: auto 1fr auto;
	gap: 0.75rem;
	align-items: start;
	transition: background 0.1s;
}
.stats-entry-card:hover {
	background: var(--gray-50, #f8fafc);
}
.stats-entry-card-flag {
	width: 20px;
	border-radius: 2px;
	margin-top: 2px;
}
.stats-entry-card-body { min-width: 0; }
.stats-entry-card-location {
	font-size: 0.8125rem;
	font-weight: 600;
	color: var(--gray-700);
	margin-bottom: 0.25rem;
}
.stats-entry-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
}
.stats-entry-card-badge {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	font-size: 0.6875rem;
	padding: 0.125rem 0.5rem;
	border-radius: 9999px;
	background: var(--gray-100);
	color: var(--gray-600);
	white-space: nowrap;
}
.stats-entry-card-badge a {
	color: var(--gray-600);
	text-decoration: none;
}
.stats-entry-card-badge a:hover { color: var(--primary); }
.stats-entry-card-time {
	font-size: 0.6875rem;
	color: var(--gray-400);
	white-space: nowrap;
	padding-top: 2px;
}

/* Responsive: show cards on mobile, table on desktop for entries */
.stats-entries-table-wrap { display: none; }
.stats-entries-cards { display: block; }
@media (min-width: 768px) {
	.stats-entries-table-wrap { display: block; }
	.stats-entries-cards { display: none; }
}

/* Stats header buttons — match app border-radius */
.stats-page-header .btn,
.stats-entries-header .btn {
	border-radius: var(--border-radius);
}

/* Fade-in animation */
@keyframes statsFadeIn {
	from { opacity: 0; transform: translateY(8px); }
	to   { opacity: 1; transform: translateY(0); }
}
.stats-animate {
	animation: statsFadeIn 0.3s ease-out both;
}

/* Buttons dark with glassmorphism */
.btn-dark:not([class*="admin-"]),
.btn-outline-dark:not([class*="admin-"]) {
	background: linear-gradient(135deg, 
		color-mix(in srgb, var(--gray-700), transparent 10%) 0%, 
		color-mix(in srgb, #1d2124, transparent 10%) 100%);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border: 1px solid color-mix(in srgb, var(--dark), transparent 30%);
	box-shadow: 0 4px 15px 0 rgba(52, 58, 64, 0.2);
	transition: all 0.3s ease;
}

.btn-dark:not([class*="admin-"]):hover,
.btn-outline-dark:not([class*="admin-"]):hover {
	background: linear-gradient(135deg, var(--dark) 0%, #1d2124 100%);
	transform: translateY(-2px);
	box-shadow: 0 6px 20px 0 rgba(52, 58, 64, 0.3);
}

/* Buttons link with effet subtil */
.btn-link:not([class*="admin-"]) {
	transition: all 0.2s ease;
}

.btn-link:not([class*="admin-"]):hover {
	transform: translateX(2px);
}

/* Buttons lg */
.btn-lg:not([class*="admin-"]) {
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	box-shadow: 0 6px 20px 0 rgba(0, 0, 0, 0.15);
}

.btn-lg:not([class*="admin-"]):hover {
	box-shadow: 0 8px 25px 0 rgba(0, 0, 0, 0.2);
}

/* Buttons disabled */
.btn:disabled:not([class*="admin-"]),
.btn.disabled:not([class*="admin-"]) {
	opacity: 0.5;
	backdrop-filter: blur(5px);
	-webkit-backdrop-filter: blur(5px);
	transform: none !important;
	box-shadow: none !important;
}

/* Buttons block */
.btn-block:not([class*="admin-"]) {
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

/* Buttons dans les button groups */
.btn-group:not([class*="admin-"]) .btn {
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

/* Exclusion explicite des Buttons admin */
body[class*="admin"] .btn,
.admin-btn,
[class*="admin-"] .btn {
	background: initial !important;
	backdrop-filter: none !important;
	-webkit-backdrop-filter: none !important;
	border: initial !important;
	box-shadow: initial !important;
}

/* Tables */
.table-custom-container {
	border-radius: var(--border-radius);
	border: 1px solid var(--gray-100);
}

.table-custom {
	margin-bottom: 0;
}

.table-custom thead th {
	border-top: 0;
	border-bottom: 0;
	background: var(--white);
	color: var(--gray-900)
}

.table-custom th {
	padding: 1.25rem 1rem;
}

.table-custom td {
	padding: 1.55rem 1rem;
	background: var(--white);
	vertical-align: middle;
}

/* Helpers */
.appearance-none {
	appearance: none;
	-moz-appearance: none;
	-webkit-appearance: none;
}

/* Pricing */
.pricing-plan {
	border: 1px solid var(--gray-100);
	height: 100%;
	display: flex;
	flex-direction: column;
}

.pricing-header {
	display: flex;
	flex-direction: column;
	align-items: center;
	padding: 2.2rem 2.2rem 0 2.2rem;
	background: var(--white);
	border-bottom: 1px solid var(--gray-100);
    justify-content: space-evenly;
}

[data-theme-style="dark"] .pricing-header {
	border-color: var(--gray-100);
}

.pricing-name {
	background: var(--primary-200);
	padding: .15rem 1.25rem;
	color: var(--primary-600);
	font-size: .85rem;
	font-weight: 600;
	text-transform: uppercase;
	border-radius: var(--border-radius);
	align-self: center;
	width: fit-content;
}

.pricing-price {
	margin: 1rem 0;
}

.pricing-price-amount {
	font-size: 3.3rem;
	font-weight: bold;
}

.pricing-price-currency {
	font-size: .9rem;
	color: var(--gray);
}

.pricing-details {
	text-align: center;
	font-size: .85rem;
	color: var(--primary-800);
	margin-bottom: 1.5rem;
}

.pricing-body {
	padding: 0 2.2rem 2.2rem 2.2rem;
	background: var(--white);
	height: 100%;
}

.pricing-features {
	margin: 3rem 0;
	list-style: none;
	padding: 0;
}

.pricing-features li {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin: 1rem 0;
}

/* Featured Plan */
.pricing-plan-featured {
	border: 2px solid var(--primary) !important;
	box-shadow: 0 8px 30px rgba(var(--primary-rgb, 59, 130, 246), 0.15);
	transform: scale(1.04);
	z-index: 2;
	position: relative;
	overflow: hidden;
	border-radius: var(--border-radius) !important;
}

.pricing-badge-popular {
	background: var(--primary);
	color: #fff;
	text-align: center;
	padding: 0.35rem 1.25rem;
	font-size: 0.78rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin: -1px -1px 0 -1px;
}

.pricing-savings-badge {
	background: #d4edda;
	color: #155724;
	padding: 0.2rem 0.75rem;
	font-size: 0.75rem;
	font-weight: 600;
	border-radius: 50px;
	white-space: normal;
	text-align: center;
	margin-top: 0.5rem;
}

.pricing-cta-featured {
	font-weight: 700;
	font-size: 1.05rem;
	box-shadow: 0 4px 14px rgba(var(--primary-rgb, 59, 130, 246), 0.3);
	transition: all 0.2s ease;
}

.pricing-cta-featured:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 20px rgba(var(--primary-rgb, 59, 130, 246), 0.4);
}

/* Upgrade Banner */
.upgrade-banner {
	color: white;
	border-radius: var(--border-radius);
	overflow: hidden;
}

.upgrade-banner .btn-upgrade {
	background: white;
	color: var(--primary);
	font-weight: 700;
	border: none;
	transition: all 0.2s ease;
}

.upgrade-banner .btn-upgrade:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* PRO Badge Overlay */
.pro-badge-overlay {
	position: absolute;
	top: 0.5rem;
	right: 0.5rem;
	z-index: 10;
	text-decoration: none !important;
}

.pro-badge-overlay .badge {
	transition: transform 0.2s ease;
	font-size: 0.7rem;
}

.pro-badge-overlay:hover .badge {
	transform: scale(1.15);
}

/* Progress bars for limits */
.limit-progress {
	height: 4px;
	border-radius: 2px;
	background: var(--gray-100);
}

/* Sticky Pay Bar */
.pay-sticky-bar {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 1030;
	background: var(--white);
	border-top: 1px solid var(--gray-100);
	padding: 0.75rem 0;
	box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
}

[data-theme-style="dark"] .pay-sticky-bar {
	background: var(--gray-900);
	border-color: var(--gray-800);
}

/* Navbar upgrade badge */
.badge-upgrade-pulse {
	animation: upgrade-pulse 2s infinite;
}

@keyframes upgrade-pulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.6; }
}

/* Custom Radio Boxes */
.custom-radio-box {
	cursor: pointer;
}

.custom-radio-box .custom-radio-box-main-text {
	font-size: 1.15rem;
	font-weight: bold;
}

.custom-radio-box .custom-radio-box-main-icon {
	font-size: 1.25rem;
}

.custom-radio-box input[type="radio"] + div {
	transition: all .3s ease-in-out;
	border: 1px solid var(--gray-100);
	background: var(--white);
}

.custom-radio-box input[type="radio"]:checked + div {
	border: 1px solid var(--primary);
}

.custom-radio-box input[type="radio"]:hover + div {
	border: 1px solid var(--primary);
}

/* QR Codes */
.qr-code {
	width: 100rem;
}

.qr-code-loading {
	animation: opacity-loading 3s infinite ease-in-out;
}

@keyframes opacity-loading {
	0% { opacity: 1; }
	50% { opacity: 0.5; }
	100% { opacity: 1; }
}

.qr-code-avatar {
	width: 65px;
	height: 65px;
	border-radius: var(--border-radius);
	padding: .25rem;
	border: 1px solid var(--gray-100);
}

/* Round circles */
.round-circle-md {
	width: 2.5rem;
	height: 2.5rem;
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 50%;
}

.round-circle-lg {
	width: 4.5rem;
	height: 4.5rem;
	display: flex;
	justify-content: center;
	align-items: center;
	border-radius: 50%;
}

/* Badge colors */
.badge {
	padding: 0.45em 0.9em;
}

.badge-primary {
	color: var(--primary-700);
	background: var(--primary-100);
}

[data-theme-style="dark"] .badge-primary {
	background: var(--primary-800);
	color: var(--primary-100);
}

.badge-secondary {
	color: hsl(208, 7%, 35%);
	background-color: hsl(208, 7%, 85%);
}

[data-theme-style="dark"] .badge-secondary {
	background-color: hsl(208, 7%, 35%);
	color: hsl(208, 7%, 85%);
}

.badge-success {
	color: hsla(134, 50%, 30%, 1);
	background-color: hsla(134, 50%, 85%, 1);
}

[data-theme-style="dark"] .badge-success {
	background-color: hsla(134, 50%, 30%, 1);
	color: hsla(134, 50%, 85%, 1);
}

.badge-danger {
	color: hsla(354, 70%, 35%, 1);
	background-color: hsla(354, 70%, 85%, 1);
}

[data-theme-style="dark"] .badge-danger {
	background-color: hsla(354, 70%, 35%, 1);
	color: hsla(354, 70%, 85%, 1);
}

.badge-warning {
	background-color: hsla(45, 100%, 85%, 1);
	color: hsla(40, 80%, 30%, 1);
}

[data-theme-style="dark"] .badge-warning {
	background-color: hsla(50, 10%, 20%, 1);
	color: hsla(45, 100%, 85%, 1);
}

.badge-info {
	color: hsla(188, 60%, 30%, 1);
	background-color: hsla(188, 78%, 85%, 1);
}

[data-theme-style="dark"] .badge-info {
	background-color: hsla(188, 60%, 30%, 1);
	color: hsla(188, 78%, 85%, 1);
}

.badge-light {
	color: hsla(210, 15%, 35%, 1);
	background-color: hsl(210, 17%, 95%);
}

[data-theme-style="dark"] .badge-light {
	background-color: hsla(210, 15%, 35%, 1);
	color: hsl(210, 17%, 95%);
}

.badge-dark {
	color: hsla(210, 10%, 90%, 1);
	background-color: hsla(210, 10%, 20%, 1);
}

[data-theme-style="dark"] .badge-dark {
	background-color: hsla(210, 10%, 90%, 1);
	color: hsla(210, 10%, 20%, 1);
}

/* Invoice css */
.invoice-table th {
	border-top: 0 !important;
}

.invoice-table td {
	vertical-align: baseline !important;
}

@media print {
	.invoice-logo {
		filter: grayscale(100%);
	}
}

/* Base animation */
.altum-animate {
	-webkit-animation-duration:500ms;
	animation-duration:500ms;
}

.altum-animate-fill-both {
	-webkit-animation-fill-mode:both;
	animation-fill-mode:both;
}

.altum-animate-fill-none {
	-webkit-animation-fill-mode:none;
	animation-fill-mode:none;
}

@-webkit-keyframes fadeIn{
	0% {
		opacity:0
	}
	to {
		opacity:1
	}
}
@keyframes fadeIn{
	0% {
		opacity:0
	}
	to {
		opacity:1
	}
}
.altum-animate-fade-in {
	-webkit-animation-name:fadeIn;
	animation-name:fadeIn
}


/* Custom button */
.btn-custom {
	padding: .5rem 1.5rem;
	color: var(--gray);
	border-radius: var(--border-radius);
	border: 1px solid var(--gray-100);
	font-size: .9rem;
	background: var(--white);
}

.btn-custom:hover {
	color: var(--gray);
	border: 1px solid var(--gray-200);
}

.btn-custom.active {
	color: var(--primary);
	border: 1px solid var(--primary);
}

/* Blog */
.blog-post-image {
	max-height: 20rem;
	object-fit: contain;
}

.blog-post-image-small {
	height: 13rem;
	max-height: 13rem;
	object-fit: contain;
}

/* File input */
.altum-file-input {
	padding: 1rem;
	background: var(--gray-100);
	border: 1px solid var(--gray-100);
	border-radius: 0.25rem;
	cursor: pointer;
	font-size: .9rem;
}

.altum-file-input:hover {
	border-color: var(--gray-300);
}

.altum-file-input::file-selector-button {
	border: 0;
	padding: .4rem .75rem;
	border-radius: var(--border-radius);
	background-color: var(--white);
	cursor: pointer;
	font-size: .9rem;
	margin-right: 1rem;
}

/* File input preview */
.altum-file-input-preview {
	max-width: 100%;
	max-height: 68px;
	min-height: 68px;
	object-fit: cover;
}

/* File input preview */
.altum-file-input-preview {
	max-width: 100%;
	max-height: 68px;
	min-height: 68px;
	object-fit: cover;
}

.sticky {
	position: sticky !important;
	top: 1rem;
	height: min-content;
}

/* Icons on links animations */
a svg {
	transition: transform .15s;
}

a:hover svg {
	transform: scale(1.1);
}

a:active svg {
	transform: scale(.9);
}

/* Helper zoom class for icons */
.icon-zoom-animation svg {
	transition: transform .15s;
}

.icon-zoom-animation:hover svg {
	transform: scale(1.1);
}

/* Self zoom */
.zoom-animation {
	transition: transform .15s;
}

.zoom-animation:hover {
	transform: scale(1.05);
}

.zoom-animation:active {
	transform: scale(.95);
}

.zoom-animation-subtle {
	transition: transform .3s;
}

.zoom-animation-subtle:hover {
	transform: scale(1.025);
}

/* Color picker */
@media print {
	.pcr-app {
		display: none;
	}
}

.pcr-button {
	border: 1px solid white !important;
	outline: 1px solid var(--gray-300) !important;
	height: calc(var(--input-padding-y) + var(--input-padding-x) + var(--input-font-size) + calc(var(--input-font-size) / 2.75)) !important;
	border-radius: var(--border-radius) !important;
	width: 100% !important;
}

.pcr-button::before, .pcr-button::after {
	border-radius: var(--border-radius) !important;
}

/* Width fit content */
.w-fit-content {
	width: fit-content !important;
}

/* Signatures */
.signature-avatar {
	width: 50px;
	height: 50px;
	max-width: 50px;
	max-height: 50px;
}

/* Ajax loading overlay */
.loading-overlay {
	padding: 1.25rem;
	border-radius: var(--border-radius);
	display: flex;
	justify-content: center;
	align-items: center;
	position: absolute;
	width: 100%;
	height: 100%;
	background: var(--white);
	z-index: 100;
	opacity: 0.8;
}

[data-theme-style="dark"] .loading-overlay {
	background: var(--gray-50);
}

/* Input group button */
.input-group > .input-group-append > .btn {
	font-size: .9rem;
}

/* AIX */
.ai-chat-avatar {
	width: 35px;
	height: 35px;
}

.ai-chat-big-avatar {
	width: 50px;
	height: 50px;
}

.chat-messages {
	height: 25rem;
	overflow-y: scroll;
}

.chat-image > img {
	max-height: 15rem;
}

.chat-content {
	word-break: break-word;
}

/* Shiki code highlighter */
.shiki {
	overflow: auto;
	border-radius: var(--border-radius);
	padding: 1.5rem;
	font-size: .9rem;
	line-height: 1.5rem;
}

.shiki code {
	background: initial !important;
}

/* Fa stack small */
.fa-stack-small {
	font-size: 0.65rem;
	vertical-align: middle;
}

/* Btn group */
.btn-group-custom {
	border: 1px solid var(--gray-100);
	padding: 0.5rem 0;
	border-radius: var(--border-radius);
}

.btn-group-custom .btn {
	margin: 0 .5rem;
	border-radius: var(--border-radius) !important;
	background: var(--gray-200);
}

.btn-group-custom .btn.active {
	background: var(--dark);
	color: var(--white);
}

/* Custom scrollbar */
body * {
    scrollbar-color: transparent transparent !important;
    scrollbar-width: thin !important;
}

body *::-webkit-scrollbar-thumb  {
    background: transparent;
    border-radius: 10px;
    width: 6px;
    height: 6px;
}

body *::-webkit-scrollbar, body *::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
    width: 6px;
    height: 6px;
}

/* Notification bell */
.internal-notification-icon {
	animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
	0% {
		box-shadow: 0 0 0 0px var(--danger);
	}
	100% {
		box-shadow: 0 0 0 20px rgba(0, 0, 0, 0);
	}
}

/* Gradient text */
.text-gradient-primary {
	background: linear-gradient(135deg, var(--gradient-one), var(--gradient-two));
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

/* Gradient background */
.bg-gradient {
	animation: bg-gradient-animation 3s ease infinite alternate;
	background: linear-gradient(60deg,#f79533,#f37055,#ef4e7b,#a166ab,#5073b8,#1098ad,#07b39b,#6fba82);
	background-size: 300% 300%;
}

@keyframes bg-gradient-animation {
	0% {
		background-position: 0 50%;
	}
	50% {
		background-position: 100% 50%;
	}
	100% {
		background-position: 0 50%;
	}
}

/* Teams */
.team-delegate-access-wrapper {
	margin: .75rem;
	border-radius: .5rem;
}

@media (min-width: 992px) {
	.team-delegate-access-wrapper {
		border-radius: 5rem;
	}
}

/* Announcements */
.announcement-wrapper {
	margin: .75rem;
	border-radius: .5rem;
	opacity: 0;
	transition: opacity .3s ease-in;
	animation: ac-fade-in-down .3s ease-in .6s forwards;
}

@media (min-width: 992px) {
	.announcement-wrapper {
		border-radius: 5rem;
	}
}

@keyframes ac-fade-in-down {
	from {
		opacity: 0;
		transform: translate3d(0, -100%, 0);
	}

	to {
		opacity: 1;
		transform: translate3d(0, 0, 0);
	}
}

/* PWA */
.pwa-wrapper {
	position: fixed;
	bottom: 0;
	width: calc(100% - 1.5rem);
	z-index: 1000;
}

/* Button hover stupid bootstrap fix */
.btn:hover {
	border-color: transparent !important;
}

.rounded-2x {
	border-radius: calc(2*var(--border-radius));
}

.rounded-3x {
	border-radius: calc(3*var(--border-radius));
}

/* Toolkit */
.tool-icon {
	min-width: 2.75rem;
	max-height: 2.75rem;
	width: 2.75rem;
	height: 2.75rem;
}

.tool-icon-wrapper {
	padding: 0 1.25rem;
}

.link-table-logo {
    width: 2.5rem;
    height: 2.5rem;
    max-width: 2.5rem;
    max-height: 2.5rem;
    object-fit: cover;
    background: var(--white);
	border-radius: 50%;
}
