.sidebar {
	position: fixed;
	top: 0;
	bottom: 0;
	left: 0;
	z-index: 100;
	padding: 5px 0 0;
	box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

.sidebar .nav-link {
	font-weight: 500;
	color: #333;
	padding: 0.3rem 1.5rem;
}

.sidebar .nav-link.active {
	color: #007bff;
	background-color: #f8f9fa;
}

.sidebar .nav-link:hover {
	color: #007bff;
}

.sidebar .nav-link i {
	margin-right: 0.5rem;
}

.sidebar .site-title {
	padding: 0.1rem 0 0.3rem 0 !important;
}

.content-wrapper {
	padding: 2rem 0;
}

/* Mobile Sidebar Styles */
@media (max-width: 991.98px) {
	.sidebar {
		position: static;
		padding-top: 1rem;
		box-shadow: none;
	}

	#mobileSidebar {
		position: fixed;
		top: 56px; /* Height of mobile navbar */
		left: 0;
		right: 0;
		z-index: 1000;
		background: white;
		box-shadow: 0 2px 10px rgba(0,0,0,0.1);
		max-height: calc(100vh - 56px);
		overflow-y: auto;
	}

	#mobileSidebar .sidebar {
		position: static;
		padding: 1rem;
	}

	#mobileSidebar .site-title {
		display: none !important;
	}

	#mobileSidebar .site-title img {
		width: 80px !important;
		height: 80px !important;
	}

	.content-wrapper {
		padding: 1rem 0;
	}
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
	.sidebar {
	    position: static;
	    padding-top: 1rem;
	}

	.content-wrapper {
	    padding: 1rem 0;
	}
}

/* Variables de couleurs */
:root {
	--primary-color: #ff6b6b;
	--secondary-color: #ff8e8e;
	--accent-color: #ff4757;
	--background-color: #f5f5dc;
	--text-color: #2d3436;
	--card-bg: rgba(255, 255, 255, 0.95);
}

/* Style général */
body {
	background: linear-gradient(135deg, var(--background-color), #ffe0e0);
	min-height: 100vh;
	color: var(--text-color);
	font-family: 'Poppins', sans-serif;
}

/* Style de la carte */
.card {
	border: none;
	border-radius: 20px;
	box-shadow: 0 10px 30px rgba(255, 107, 107, 0.1);
	backdrop-filter: blur(10px);
	background: var(--card-bg);
	transition: transform 0.3s ease;
}

.card:hover {
	transform: translateY(-5px);
}

.card-header {
	background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
	color: white;
	border-radius: 20px 20px 0 0 !important;
	padding: 1.5rem;
	border: none;
}

.card-header h3 {
	margin: 0;
	font-weight: 600;
	font-size: 1.8rem;
}

.card-body {
	padding: 2rem;
}

/* Style des formulaires */
.form-control {
	border-radius: 10px;
	border: 2px solid #f1f1f1;
	padding: 0.8rem 1rem;
	transition: all 0.3s ease;
}

.form-control:focus {
	border-color: var(--primary-color);
	box-shadow: 0 0 0 0.2rem rgba(255, 107, 107, 0.25);
}

.form-label {
	font-weight: 500;
	color: var(--text-color);
	margin-bottom: 0.5rem;
}

/* Style des boutons */
.btn-primary {
	background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
	border: none;
	border-radius: 10px;
	padding: 0.8rem 1.5rem;
	font-weight: 600;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(255, 107, 107, 0.2);
}

.btn-primary:hover {
	background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(255, 107, 107, 0.3);
}

/* Style des liens */
a {
	color: var(--accent-color);
	text-decoration: none;
	transition: all 0.3s ease;
}

a:hover {
	color: var(--primary-color);
	text-decoration: none;
}

/* Style des messages d'alerte */
.alert {
	border-radius: 10px;
	border: none;
	padding: 1rem;
}

.alert-danger {
	background-color: #ffe0e0;
	color: #ff4757;
}

.alert-success {
	background-color: #e0ffe0;
	color: #2ed573;
}

/* Style des icônes */
.fas {
	color: var(--primary-color);
}

/* Animation de chargement */
@keyframes fadeIn {
	from {
	    opacity: 0;
	    transform: translateY(20px);
	}
	to {
	    opacity: 1;
	    transform: translateY(0);
	}
}

.card {
	animation: fadeIn 0.5s ease-out;
}

/* Style responsive */
@media (max-width: 768px) {
	.card {
	    margin: 1rem;
	}

	.card-header h3 {
	    font-size: 1.5rem;
	}

	.card-body {
	    padding: 1.5rem;
	}
}

/* Style pour les placeholders en italiques */
.form-control::placeholder,
.form-select::placeholder {
	font-style: italic;
	color: #A0A0A0;
}

/* Support pour les navigateurs plus anciens */
.form-control::-webkit-input-placeholder {
	font-style: italic;
	color: #A0A0A0;
}
.form-control::-moz-placeholder {
	font-style: italic;
	color: #A0A0A0;
}
.form-control:-ms-input-placeholder {
	font-style: italic;
	color: #A0A0A0;
}
.form-control::-ms-input-placeholder {
	font-style: italic;
	color: #A0A0A0;
}

/* Dashboard admin compact styles */
.dashboard-menu-bar {
    margin-bottom: 0.5rem;
    gap: 0.5rem;
}
.dashboard-compact-input {
    height: 32px !important;
    padding-top: 2px !important;
    padding-bottom: 2px !important;
    font-size: 0.95rem;
}
.dashboard-compact-btn {
    height: 32px !important;
    padding: 2px 12px !important;
    font-size: 0.95rem;
}
.dashboard-compact-row .card {
    margin-bottom: 0.5rem !important;
}
.dashboard-compact-row .card-body {
    padding-top: 0.7rem !important;
    padding-bottom: 0.7rem !important;
}
.dashboard-compact-title {
    margin-top: 0.2rem !important;
    margin-bottom: 0.2rem !important;
    font-size: 1.1rem !important;
}
.dashboard-compact-row {
    margin-bottom: 0.7rem !important;
}
.dashboard-date-input {
    max-width: 130px !important;
    min-width: 110px !important;
    width: 100%;
    flex: 0 0 130px;
}