/* Reset & global settings */
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}
html, body {
	height: 100%;
	/* font-family: Arial, sans-serif; */
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

/* General Form Styles */
label {
	font-weight: bold;
	display: block;
	margin-top: 10px;
}
.form-small {
	padding: 20px;
	background-color: #fff;
	border: 1px solid #ddd;
	border-radius: 5px;
}
.form-elmt {
	width: 100%;
	padding: 8px;
	font-size: 16px;
	border: 1px solid #ccc;
	border-radius: 5px;
	height: 42px;
	background-color: #fff;
	appearance: none;
	/* background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20width='10'%20height='5'%3E%3Cpath%20fill='%23333'%20d='M0%200l5%205%205-5z'/%3E%3C/svg%3E"); */
	background-repeat: no-repeat;
	background-position: right 10px center;
	background-size: 10px 5px;
	padding-right: 30px;
}

/* Buttons */
button {
	margin-top: 15px;
	padding: 10px;
	background: green;
	color: white;
	border: none;
	cursor: pointer;
}

/* Sidebar */
.sidebar {
	width: 250px;
	height: 100vh;
	position: fixed;
	top: 75px;
	left: 0;
	background-color: #343a40;
	color: white;
	overflow-y: auto;
	transition: all 0.3s ease;
	z-index: 1000;
}

.sidebar ul {
	list-style: none;
	padding: 0;
}
.sidebar ul li {
	padding: 15px;
}
.sidebar ul li a {
	color: white;
	text-decoration: none;
	display: block;
}
.sidebar ul li a:hover {
	background: #3CC8AD;
}
.sidebar ul li.active > a {
	background-color: #007E65;
	border-left: 4px solid #fff;
}
.sidebar.collapsed {
	transform: translateX(-100%);
	width: 0;
    overflow: hidden
}

/* Hamburger */
.hamburger {
	position: fixed;
	top: 0;
	left: 15px;
	background-color: white;
	color: #343a40;
	border: none;
	font-size: 24px;
	padding: 5px 10px;
	cursor: pointer;
	z-index: 1100;
}

/* Bell */
.hamburger {
	position: fixed;
	top: 100;
	left: 15px;
	background-color: white;
	color: #343a40;
	border: none;
	border-radius: 5px;
	font-size: 24px;
	padding: 5px 10px;
	cursor: pointer;
	z-index: 1100;
}

/* Header */
.header {
	background: #2c3e50;
	color: white;
	padding: 10px 20px;
	text-align: center;
	width: 100%;
	height: 75px;
	position: fixed;
	top: 0;
	left: 0;
	z-index: 900;
	display: flex;
	align-items: center;
	justify-content: center;
}
.title {
	margin-top: 10px;
	color: white;
}
.title a {
	color: white;
	text-decoration: none;
}
.notification-bell {
    position: absolute;
    right: 20px;
    font-size: 24px;
    cursor: pointer;
}

.notification-bell .badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: red;
    color: white;
    font-size: 12px;
	padding: 2px 5px;
    border-radius: 50%;
}


/* Content */
.content {
	flex: 1;
	padding: 20px;
	padding-top: 70px; /* space for fixed header */
	z-index: 1;
	position: relative;
}

/* Footer */
.site-footer {
	background-color: #f1f1f1;
	text-align: center;
	padding: 15px 0;
	font-size: 14px;
	color: #555;
	margin-top: auto;
}

/* Responsive */
@media (max-width: 768px) {
	.sidebar {
		transform: translateX(-100%);
		position: fixed;
	}
	.sidebar.open {
		transform: translateX(0);
	}
	.content {
		margin-left: 0;
	}
}

/* Submenu */
.submenu {
	display: none;
	list-style: none;
}
.has-submenu.active > .submenu {
	display: block;
}
.has-submenu > a {
	display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
}
.has-submenu > a .fa-chevron-down {
	float: right;
	transform: rotate(0deg);
	transition: transform 0.3s;
}
.has-submenu.active > a .fa-chevron-down {
	transform: rotate(180deg);
}
.submenu a {
	text-decoration: none;
	color: #fff;
}
.submenu li a {
	display: block;
	margin-right: -15px;
}
.s-submenu li a {
	display: block;
	margin-right: -30px;
}

/* Utilitaires */
.error { color: red; }
.success { color: green; }
.product-img {
	width: 50px;
	height: 50px;
	object-fit: cover;
	border-radius: 5px;
	border: 1px solid #ddd;
}
.dataTables_filter {
	margin-bottom: 15px;
}
.no-select {
	pointer-events: none;
	user-select: none;
}
.my-card {
	border: 1px solid #dee2e6;
	padding: 10px;
}
.critical-product {
	background-color: red !important;
	color: white !important;
}
.action-btn {
	padding: 5px 10px;
	background-color: #007E65;
	color: white;
	text-decoration: none;
	border-radius: 5px;
	margin-right: 10px;
}
.delete-btn {
	background-color: #e74c3c;
}
.action-btn:hover {
	background-color: #16a085;
}
.delete-btn:hover {
	background-color: #c0392b;
}
