
#wrapper {
    display: flex;
    height: 100vh;
    width: 100%;
    position: fixed;
    overflow: hidden;
}

#sidebar-wrapper {
    background-color: #16418d;
    position: fixed;
    top: 70px; /* commence sous la navbar */
    left: 0;
    width: 200px;
    height: calc(100vh - 70px);
    z-index: 900;

}


.list-group-item {
    color: white;
    text-align: center; /* Centrer le texte */
    background-color: transparent; /* Boutons transparents */
    border: none; /* Enlève les lignes blanches */
    transition: background-color 0.3s ease; /* Transition douce pour l'effet hover et clic */

}

.list-group-item:hover {
    background-color: rgba(97, 230, 87, 0.809); /* Effet hover avec fond semi-transparent */
}

.list-group-item:focus,
.list-group-item:active {
    background-color: #61e657; /* Fond vert vif lors du clic ou focus */
}

.d-none {
    display: none;
}

/* Style pour centrer le contenu principal */
#page-content-wrapper {
    background-color: #9894948d;
    border-radius: 50px;
    margin-left: 200px;            /* Laisse la place à la sidebar */
    width: calc(100% - 200px);      /* La largeur totale moins la sidebar */
    height: calc(100vh - 70px);     /* La hauteur totale moins la navbar */
    background-color: #9894948d;   /* Votre fond gris */
    padding: 20px;
    overflow-y: auto;           


}

.content-section {
    padding: 20px;
    border-radius: 10px;
    height: 100%;
    display: flex;
    flex-direction: column;
    width: 100%; /* Assurez-vous que la section prend toute la largeur */
    overflow-y: auto;

}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 20px;
}

.section-content {
    display: flex;
    gap: 20px;
    height: calc(100vh - 100px);
    position: relative;
    width: 100%;
    overflow: hidden;
}

.vehicle-item {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;  /* Aligne les éléments en haut */
    transition: all 0.3s ease;
    overflow: hidden;  /* Assure que le contenu ne déborde pas */
}

.vehicle-item.active {
    background-color: #e6f7ff;
    border: 1px solid #1890ff;
}


.vehicle-list {
    flex: 1;
    overflow-y: auto; /* Ajoute une barre de défilement verticale si nécessaire */
    max-height: calc(100vh - 120px); /* Ajuste la hauteur maximale pour laisser de l'espace pour l'en-tête */
    padding-right: 10px; /* Espace pour la barre de défilement */
}

.vehicle-icon {
    width: 50px;
    height: 50px;
    margin-right: 15px;
    object-fit: cover;
    border-radius: 8px;  /* Pour une icône légèrement arrondie */
    flex-shrink: 0;  /* Empêche l'icône de rétrécir */
}

.vehicle-info {
    flex: 1;
    display: flex;
    flex-direction: column;  /* Empile les informations verticalement */
    min-width: 0;  /* Permet au texte de se rétrécir si nécessaire */
}


.vehicle-name, .vehicle-details {
    margin: 0;  /* Supprime les marges par défaut */
    word-wrap: break-word;  /* Permet au texte long de se couper */
    overflow-wrap: break-word;  /* Assure que les mots longs se coupent */
}


.vehicle-item {
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.vehicle-item:hover {
    background-color: #f0f0f0;
}


.vehicle-details {
    flex: 1;
    overflow-y: auto;
    max-height: calc(100vh - 140px);
    background-color: white;
    border-radius: 10px;
    padding: 20px;
}


.vehicle-details h3 {
    margin-top: 0;
    color: #333;
}

.vehicle-details p {
    margin: 10px 0;
    color: #666;
}

.content-section h2 {
    margin: 0;
}

.btn-add {
    /* Pas besoin de positionnement absolu maintenant */
    margin-left: auto; /* Pousse le bouton à droite */
}

/* Ajustez ces styles si nécessaire pour aligner correctement le contenu */
.content-section h1,
.content-section h2,
.content-section p {
    margin-left: 0; /* Supprimez le décalage négatif */
    text-align: left;
}


h1 {
    font-size: 2.5rem;
}

p {
    font-size: 1.2rem;
}

/* Styliser la barre de défilement pour les navigateurs WebKit (Chrome, Safari, etc.) */
.vehicle-list::-webkit-scrollbar {
    width: 8px;
}

.vehicle-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.vehicle-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.vehicle-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}


.vehicle-details {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    height: 100%;
}


.detail-box {
    background-color: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 10px 13px rgba(0,0,0,0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    max-width: 300px;
    width: fit-content;
    margin-left: 0;
}
.detail-value {
    font-weight: bold;
    color: #333;
    text-align: center; /* Assure que le texte est centré */

}


.detail-middle, .detail-bottom {
    flex-basis: 60%;
    max-width: 60%;
    margin-left: auto;
    margin-right: auto;
}
.detail-middle2 {
    flex-basis: 60%;
    max-width: 30%;
    margin-left: fixed;
    margin-right: auto;
}


.detail-bottom {
    flex-basis: 45%;
    max-width: 45%;
}








#toolbox-box {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Styles spécifiques pour chaque boîte */
#badge-box, #license-box, #fueltype-box {
    flex-basis: calc(33.333% - 10px); /* Distribue les éléments du haut équitablement */
}

#report-box, #fuelreport-box {
    margin-top: 10px;
    height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#uselog-box {
    margin-top: 10px;
    height: 275px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 90%; /* Ajustez cette valeur selon vos besoins */
    max-width: 1200px; /* Définit une largeur maximale si nécessaire */
    margin-left: auto;
    margin-right: auto;
    
}

.full-width {
    flex-basis: 100%;
    max-width: 100%;
}





#report-box .detail-value, #fuelreport-box .detail-value, #uselog-box .detail-value {
    overflow-y: auto;
    max-height: 100%;
}

#uselog-box {
    order: 1; /* Place la boîte uselog en dernier */
}

.scroll-box {
    background-color: #f8f9fa;
        border-radius: 8px;
        padding: 10px;
        margin-top: 10px;
        width: 100%;
        height: 280px;
        overflow-y: auto;
        box-shadow: inset 0 0 5px rgba(0,0,0,0.1);
}
.rounded-box {
        background-color: white;
        border-radius: 8px;
        padding: 10px;
        margin-bottom: 10px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        min-height: 50px; /* Ajustez selon vos besoins */
    }

.scroll-box p {
    margin: 0;
}










.toolbox-list {
    flex: 1;
    overflow-y: auto; /* Ajoute une barre de défilement verticale si nécessaire */
    max-height: calc(100vh - 120px); /* Ajuste la hauteur maximale pour laisser de l'espace pour l'en-tête */
    padding-right: 10px; /* Espace pour la barre de défilement */
}



.toolbox-item {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;  /* Aligne les éléments en haut */
    transition: all 0.3s ease;
    overflow: hidden;  /* Assure que le contenu ne déborde pas */
}

.toolbox-item.active {
    background-color: #e6f7ff;
    border: 1px solid #1890ff;
}

.toolbox-info {
    flex: 1;
    display: flex;
    flex-direction: column;  /* Empile les informations verticalement */
    min-width: 0;  /* Permet au texte de se rétrécir si nécessaire */
}

.toolbox-name, .toolbox-details {
    margin: 0;  /* Supprime les marges par défaut */
    word-wrap: break-word;  /* Permet au texte long de se couper */
    overflow-wrap: break-word;  /* Assure que les mots longs se coupent */
}

.toolbox-item {
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.toolbox-item:hover {
    background-color: #f0f0f0;
}



.toolbox-details {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    height: 85vh;
    flex: 1;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    padding: 20px;
    overflow-y: auto; /* Au cas où le contenu des détails serait long */

}

.toolbox-details h3 {
    margin-top: 0;
    color: #333;
}

.toolbox-details p {
    margin: 10px 0;
    color: #666;
}

.toolbox-section h2 {
    margin: 0;
}

.toolbox-list::-webkit-scrollbar {
    width: 8px;
}

.toolbox-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.toolbox-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.toolbox-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

#name-box, #type-box, #vehicle-box {
    flex-basis: calc(33.333% - 10px); /* Distribue les éléments du haut équitablement */
}

#topdrawer-box, #drawer1-box, #drawer2-box,  #drawer3-box,  #drawer4-box,  #drawer5-box,  #drawer6-box{
    margin-top: 10px;
    height: 350px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}


#topdrawer-box .detail-value, #drawer1-box .detail-value, #drawer2-box .detail-value, #drawer3-box .detail-value, #drawer4-box .detail-value, #drawer5-box .detail-value, #drawer6-box .detail-value {
    overflow-y: auto;
    max-height: 100%;
}










.users-item {
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;  /* Aligne les éléments en haut */
    transition: all 0.3s ease;
    overflow: hidden;  /* Assure que le contenu ne déborde pas */
}

.users-item.active {
    background-color: #e6f7ff;
    border: 1px solid #1890ff;
}

.users-info {
    flex: 1;
    display: flex;
    flex-direction: column;  /* Empile les informations verticalement */
    min-width: 0;  /* Permet au texte de se rétrécir si nécessaire */
}

.users-name  {
    margin: 0;  /* Supprime les marges par défaut */
    word-wrap: break-word;  /* Permet au texte long de se couper */
    overflow-wrap: break-word;  /* Assure que les mots longs se coupent */
}

.users-item {
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.users-item:hover {
    background-color: #f0f0f0;
}





.users-section h2 {
    margin: 0;
}

.users-list {
    flex: 1;
    overflow-y: auto; /* Ajoute une barre de défilement verticale si nécessaire */
    max-height: calc(100vh - 120px); /* Ajuste la hauteur maximale pour laisser de l'espace pour l'en-tête */
    padding-right: 10px; /* Espace pour la barre de défilement */
}

.users-list::-webkit-scrollbar {
    width: 8px;
}

.users-list::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.users-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.users-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.users-details {
    flex: 1;
    overflow-y: auto;
    max-height: calc(100vh - 140px);
    background-color: white;
    border-radius: 10px;
    padding: 20px;
}

.users-details h3 {
    margin-top: 0;
    color: #333;
}

.users-details p {
    margin: 10px 0;
    color: #666;
}


.user-detail-item {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 20px;
    margin-bottom: 15px;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}

.detail-label {
    font-weight: bold;
    color: #555;
    text-align: left;
}

.detail-value {
    color: #333;
    text-align: left;
    background-color: #f8f9fa;
    padding: 8px 15px;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.editable-field {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 8px 15px;
    width: 100%;
    background-color: #f8f9fa;
}

.editable-field:focus {
    outline: none;
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0,123,255,.25);
}





/* Fuel Report Section */
.report-list {
    flex: 1;
    padding-right: 15px;
}

.report-item {
    background: white;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: transform 0.2s;
    cursor: pointer;
}

.report-item:hover {
    transform: translateY(-2px);
}

.filter-controls {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1 1 200px;
}

.report-details {
    width: 40%;
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}




/* Container principal */
#fuelreport-section {
    padding: 20px;
    background-color: #f0f0f0;
}

/* Conteneur des filtres */
.filter-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

/* Style des select */
.form-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    width: 100%;
}

/* Liste des rapports */
.report-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Carte de rapport */
.report-card {
    background-color: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.report-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.badge {
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9em;
}

.report-content h5 {
    margin: 0 0 5px 0;
    font-size: 1.1em;
}

.report-content p {
    margin: 0 0 10px 0;
    color: #666;
}

/* Barre de progression */
.progress {
    height: 20px;
    background-color: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    background-color: #0d6efd;
    transition: width 0.3s ease;
}


.dropdown-menu {
    z-index: 9999;
}



/* ***********************
   Styles pour la liste des iPads
   (similaire aux véhicules/toolbox)
***************************/

/* Conteneur de la liste d’iPads */
/* Conteneur de la liste d’iPads (affichage en flex wrap) */
/* --- Styles pour les cartes iPad --- */
.ipad-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 10px;
  }
  
  .card-digital {
    background: linear-gradient(135deg, #1c1c1c, #000);
    border: 1px solid #444;
    border-radius: 25px;
    width: 200px;
    height: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
  }
  
  .card-digital:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.7);
  }
  
  /* Effet de reflet */
  .card-digital::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(ellipse at top, rgba(255, 255, 255, 0.15), transparent);
    pointer-events: none;
  }
  
  /* Titre : nom de l’iPad en blanc */
  .card-digital h2 {
    color: white;
    font-family: 'Roboto', sans-serif;
    text-align: center;
    margin: 0;
    z-index: 1;
    padding: 0 10px;
  }
  
  /* Optionnel : Bouton Home en bas (si vous souhaitez ajouter un bouton décoratif) */
  .home-button {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #555, #222);
    border: 1px solid #666;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 2;
  }
  

/* ***********************
   Styles pour les détails d’un iPad
   (structure identique à celle des véhicules)
***************************/

/* Conteneur de la zone de détail iPad */
.ipad-details {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    height: 100%;
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 10px 13px rgba(0,0,0,0.05);
    gap: 10px;
}

/* La boîte de détail (même style que .detail-box) */
.ipad-details .detail-box {
    background-color: white;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 10px 13px rgba(0,0,0,0.05);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    max-width: 300px;
    width: fit-content;
}

/* Le texte à l'intérieur de la boîte de détail */


/* Pour le nom de l’iPad, on utilise le style "detail-top" */
.ipad-details .detail-name {
    order: -1;
    margin-right: 10px;
}

/* Pour les zones "UseLog" et "Report", on utilise le même système que pour les véhicules */
.ipad-details .detail-uselog,
.ipad-details .detail-report {
    flex-basis: 45%;
    max-width: 45%;
    margin-left: auto;
    margin-right: auto;
}


/* Overlay global */
.ipad-detail-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
  }
  
  /* La boîte centrale avec coins arrondis */
  .ipad-detail-box {
    background: #fff;
    border-radius: 15px;
    width: 80%;
    max-width: 600px;
    padding: 20px;
    position: relative;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  }
  
  /* Bouton de fermeture en haut à droite */
  .ipad-detail-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    line-height: 1;
    border: none;
    background: transparent;
    cursor: pointer;
  }
  
  /* Style général pour les boxes de détail */
  .ipad-detail-content .detail-box {
    background-color: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  }
  
  .detail-row {
    display: flex;
    gap: 20px;         /* Espace horizontal entre les boîtes */
    margin-bottom: 20px;
  }

  /* Pour le nom de l’iPad, on reprend le style "detail-top" */
  .detail-top {
    text-align: center;
  }
  
  /* Le texte dans la box de détail */
  .detail-value {
    font-weight: bold;
    color: #333;
  }
  
  /* Label dans les détails */
  .detail-label {
    display: block;
    font-size: 0.9rem;
    color: #555;
    margin-bottom: 5px;
  }
  
  /* Zone scrollable pour logs et reports */
  .scroll-box {
    background-color: #fff;
    border-radius: 8px;
    padding: 10px;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #ddd;
  }
  
  /* Style pour chaque "rounded-box" inséré dans les scroll-box */
  .rounded-box {
    background-color: #e9ecef;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 10px;
    text-align: center;
    font-size: 0.9rem;
    color: #333;
  }
  
  /* Style pour le sélecteur de position */

  

.ipad-detail-content {
    display: flex;       /* Pour disposer les .detail-box côte à côte */
    flex-wrap: wrap;     /* Permet de passer sur une autre ligne si l'espace est trop réduit */
    gap: 20px;           /* Espace horizontal entre les boîtes */
    justify-content: space-around; /* ou space-between, selon vos préférences */
}

#ipadPositionSelect {
  border-radius: 8px;
  padding: 8px;
  border: 1px solid #ddd;
}
#ipad-logs-box,
#ipad-reports-box {
  display: flex;
  flex-direction: column;  /* label au-dessus de la scroll-box */
  align-items: center; /* ou center, si vous préférez */
  justify-content: flex-start;
  flex: 1;
  width: 45%;             /* ou .half-width si vous aviez déjà un style */
  margin: 10px;
}

#ipad-logs-box .detail-value,
#ipad-reports-box .detail-value {
  margin-bottom: 10px; /* écart entre le label et la scroll-box */

}
  