body {
    padding-top: 50px;
    padding-bottom: 20px;
}

/* Set padding to keep content from hitting the edges */
.body-content {
    padding-left: 15px;
    padding-right: 15px;
}

/* Set width on the form input elements since they're 100% wide by default */
input,
select,
textarea {
    max-width: 280px;
}

/* styles for validation helpers */
.field-validation-error {
    color: #b94a48;
}

.field-validation-valid {
    display: none;
}

input.input-validation-error {
    border: 1px solid #b94a48;
}

input[type="checkbox"].input-validation-error {
    border: 0 none;
}

.validation-summary-errors {
    color: #b94a48;
}

.validation-summary-valid {
    display: none;
}


.camera-buttons {
    margin-top: 10px;
    display: flex;
    justify-content: space-around;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: #f9f9f9; /* Couleur pour les lignes impaires */
}
.table-striped tbody tr:nth-of-type(even) {
    background-color: #e9e9e9; /* Couleur pour les lignes paires */
}


#company {
    max-width: 30em; 
    border: none;
    outline: none;
}


.green-theme .button {
    background: rgba(7, 116, 80, 0.805);
    color: white;
}


.orange-theme .button {
    background: rgba(216, 113, 22, 0.85); 
    color: white;
}

.jaune-theme .button {
    background: rgb(243, 246, 40); 
    color: white;
}

.bleu-theme .button {
    background: rgba(38, 54, 177, 0.85); 
    color: white;
}


.button-container {
    display: flex;
    align-items: center;
    position: relative;
}



.button, .sub-button {
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 17px;
    padding: 1em 2.7em;
    font-weight: 500;
    border: none;
    position: relative;
    overflow: hidden;
    border-radius: 0.6em;
    cursor: pointer;
    width: 200px;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s, transform 0.3s, opacity 0.3s; /* Smooth transitions */
}

.button-plus {
    width: 35px; 
    height: 35px;    
    margin-left: 10px;
}

.button-plus .label, .sub-button .label {
    font-size: 24px;
}

.sub-buttons {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: visibility 0s linear 0.3s, opacity 0.3s, transform 0.3s;
}

.button-container:hover .sub-buttons {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0s; /* Remove delay when showing */
}

.gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    border-radius: 0.6em;
    margin-top: -0.25em;
    background-image: linear-gradient(
        rgba(0, 0, 0, 0),
        rgba(0, 0, 0, 0),
        rgba(0, 0, 0, 0.3)
    );
}

.label {
    position: relative;
    top: -1px;
}

.transition {
    transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
    transition-duration: 500ms;
    background-color: #1f2937;
    border-radius: 9999px;
    width: 0;
    height: 0;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.button:hover .transition {
    width: 14em;
    height: 14em;
}

.button:active {
    transform: scale(0.97);
}

.graph-box {
    position: absolute;
    right: 200px; 
    top: 420px;
    transform: translateY(-50%);
    width: 250px; 
    height: 400px; 
    padding: 10px;

}


/* Styles pour les cartes */
.card {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease-in-out;
    width: 100%; /* Assure que les cartes utilisent toute la largeur disponible */
    text-align: center; /* Centre le texte à l'intérieur des cartes */
    height: 110px;
}
.card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.card-header {
    background-color: #f7f7f7;
    border-bottom: 1px solid #e7e7e7;
    font-size: 18px;
    font-weight: bold;
}
.card-body {
    padding: 20px;
    font-size: 16px;
}
.card-title {
    font-size: 22px;
    font-weight: bold;
    color: #0056b3;
}

.card-container {
    display: flex;
    justify-content: center; /* Centre les cartes horizontalement */
    align-items: center; /* Centre les cartes verticalement */
    min-height: 150px; /* Assure une hauteur minimum pour un meilleur visuel */
}

.card-flex {
    display: flex;
    align-items: center;
    justify-content: space-around;
    white-space: nowrap;
    overflow: hidden;
}
.card-flex .card-title {
    flex: 1;
    text-overflow: ellipsis;
    overflow: hidden;
    font-size: 1vw; /* Commencez par ajuster ceci en fonction de votre design */
}


.profile-container {
    max-width: 600px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 8px;
    background-color: #f9f9f9;
}


.profile-circle {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #007BFF; /* Bleu par défaut */
    color: white !important; /* Garde la lettre en blanc */
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    margin-top: 5px;
    transition: background-color 0.3s;
    position: relative; /* Ajouté pour le positionnement de la lettre */
}

.profile-circle::after {
    content: attr(data-letter); /* Utilise un attribut pour la lettre */
    position: absolute;
    left: 50%; /* Centré horizontalement par défaut */
    top: 50%; /* Centré verticalement par défaut */
    transform: translate(-50%, -50%); /* Décale la lettre à gauche et vers le haut */
    color: white;
}

.navbar-right .profile-circle {
    text-decoration: none; /* Enlève tout soulignement */
}

.navbar-right .profile-circle:hover {
    background-color: #1a5ba1 !important; /* Maintient la couleur de fond au survol */
    color: white; /* Assure que la couleur du texte reste blanche */
}



.dashboard {
    display: grid;
    grid-template-columns: repeat(2, 0.20fr); 
    gap: 20px;
    padding: 20px;
    margin-left: 250px;
    width: 80%;
    max-width: 1200px;
}

.module {
    background-size: cover;
    background-position: center;
    height: 250px;  /* Hauteur ajustée pour correspondre à la largeur estimée précédemment */
    width: 250px;  /* Ajouté pour maintenir explicitement la largeur, utile si le conteneur change de dimension */
    display: flex;
    align-items: flex-end;
    justify-content: center;
    cursor: pointer;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease-in-out;
}

.module:hover {
    transform: scale(1.05);
}

.module-content {
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    text-align: center;
    padding: 10px 0;
    font-size: 20px;
    border-radius: 0 0 8px 8px;
}

.mb-3 {
    margin-bottom: 10px;
}

.empty-label {
    height: 15px;
}

@media (max-width: 768px) {
    .empty-label {
        display: none;
    }
}