/* ✅ Style général de la navbar */
body{
    background-color: #ffffff;
}
.custom-navbar {
    background-color: #ffffff !important;
    padding: 12px 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* ✅ Logo */
.logo {
    transition: transform 0.3s ease-in-out;
}

.logo:hover {
    transform: scale(1.05);
}

/* ✅ Items du menu */
.navbar-nav .nav-link {
    font-size: 16px;
    font-weight: 500;
    color: rgb(51, 51, 51) !important;
    padding: 10px 15px;
    position: relative;
    transition: all 0.3s ease-in-out;
}

.navbar-nav .nav-link:hover {
    color: #0e9f68 !important;
}

/* ✅ Effet soulignement minimaliste */
.navbar-nav .nav-link::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: #0e9f68;
    transition: all 0.3s ease-in-out;
    transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
    width: 100%;
}

/* ✅ Icônes */
.navbar-nav .nav-link i {
    margin-right: 8px;
    font-size: 16px;
}

/* ✅ Style du bouton Déconnexion */
.logout-link {
    color: #d9534f !important;
    font-weight: 500;
}

.logout-link:hover {
    color: #ff4d4d !important;
}

/* ✅ Style de l'utilisateur connecté */
.user-info {
    font-weight: 500;
    color: rgb(51, 51, 51);
}

.user-info i {
    color: #0e9f68;
    margin-right: 8px;
    font-size: 18px;
}

/* ✅ Bouton burger personnalisé */
.custom-toggler {
    border: none;
    outline: none;
    transition: transform 0.3s ease-in-out;
}

.custom-toggler:focus {
    box-shadow: none;
}

.custom-toggler .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='rgba(14,159,104,1)' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
}

/* ✅ Responsive */
@media screen and (max-width: 992px) {
    .navbar-nav {
        text-align: center;
        flex-direction: column;
        gap: 10px;
    }

    .navbar-collapse {
        background: #ffffff;
        padding: 20px;
        border-radius: 8px;
    }

    .nav-link {
        font-size: 18px;
    }
}

/* Tableau principal */
.table {
    width: 100%;
    border-collapse: collapse; /* Empêche le chevauchement des bordures */
    font-family: 'Arial', sans-serif;
    font-size: 0.9rem; /* Taille de texte plus petite et claire */
    margin-top: 15px;
}

/* En-têtes du tableau */
.table thead {
    background-color: #0e9f68 !important; /* Couleur principale pour l'en-tête */
    color: white; /* Texte blanc pour contraster avec l'en-tête */
    font-weight: bold;
    text-align: left; /* Aligne le texte à gauche */
}

.table thead th {
    padding: 12px 15px;
}

/* Lignes alternées du tableau */
.table tbody tr:nth-child(odd) {
    background-color: #f7f7f7; /* Gris clair pour une ligne sur deux */
}

.table tbody tr:nth-child(even) {
    background-color: #ffffff; /* Fond blanc pour l'autre ligne */
}

/* Cellules du tableau */
.table tbody td {
    padding: 10px 15px;
    border-bottom: 1px solid #ddd; /* Bordure légère pour les lignes */
    text-align: left;
    vertical-align: middle; /* Assure que le texte est bien aligné verticalement */
}

/* Cellules avec survol */
.table tbody tr:hover {
    background-color: #eaf1e3; /* Changement de fond au survol pour faciliter la navigation */
    cursor: pointer; /* Indique que l'on peut interagir */
}

/* Amélioration de la lisibilité pour les cellules numéraires */
.table tbody td.text-muted {
    color: #888; /* Légèrement plus foncé pour les informations moins importantes */
}

/* Réduction de la taille du tableau pour le rendre plus compact */
.table-sm tbody td, .table-sm thead th {
    padding: 8px; /* Réduit l'espacement pour un effet plus compact */
}
