#time-tracking-container {
  background-color: #f4f4f9;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  font-family: 'Arial', sans-serif;
  max-width: 800px;
  margin: auto;
}

h2 {
  font-size: 24px;
  color: #333;
  margin-bottom: 20px;
  text-align: center;
}

#chrono-container {
  font-size: 40px;
  font-weight: bold;
  color: #4CAF50;
  text-align: center;
  margin-bottom: 20px;
}

#total-time {
  font-size: 20px;
  color: #333;
  text-align: center;
  margin-top: 20px;
}

#time-tracking-table table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
  table-layout: auto;
}

#time-tracking-table th, #time-tracking-table td {
  padding: 9px;
  text-align: left;
  border-bottom: 1px solid #333;
}

#time-tracking-table th {
  background-color: #4CAF50;
  color: white;
}

#time-tracking-table tr:hover {
  background-color: #f1f1f1;
}

#time-tracking-table td {
  background-color: #fff;
}

/* Style pour le select */
#sort-select {
  margin-left: 10px;
  padding: 8px 12px;
  font-size: 16px;
  cursor: pointer;
}

#sort-select:focus {
  outline: none;
}

/* Styles pour rendre la table responsive */
@media screen and (max-width: 768px) {
  #time-tracking-table table, 
  #time-tracking-table table thead, 
  #time-tracking-table table tbody, 
  #time-tracking-table table th, 
  #time-tracking-table table td, 
  #time-tracking-table table tr {
    display: block;
  }

  #time-tracking-table table tr {
    margin-bottom: 10px;
  }

  #time-tracking-table table th {
    display: none;
  }

  #time-tracking-table table td {
    display: block;
    text-align: right;
    position: relative;
    padding-left: 50%;
  }

  #time-tracking-table table td::before {
    content: attr(data-label);
    position: absolute;
    left: 10px;
    top: 10px;
    font-weight: bold;
  }

  /* Ajustement de la largeur pour un meilleur affichage */
  #time-tracking-table table td:nth-of-type(1) {
    width: 40%;
  }

  #time-tracking-table table td:nth-of-type(2) {
    width: 30%;
  }

  #time-tracking-table table td:nth-of-type(3) {
    width: 30%;
  }
}



/* Cibler les titres des champs select */
label[for="period-select"],
label[for="sort-select"] {
  text-transform: uppercase;  /* Met le texte en majuscule */
  font-weight: bold;          /* Met le texte en gras */
  text-align: left;           /* Décale à gauche */
  font-size: 14px;            /* Réduit la taille de la police */
  margin-bottom: 5px;         /* Ajoute un peu d'espace sous le label */
  display: block;             /* S'assure que le label soit sur une ligne */
  margin-left: 60px;         /* Décale le label encore plus à gauche */
}



#time-tracking-table th {
  text-transform: uppercase;  /* Met les titres du tableau en majuscules */
  font-weight: bold;          /* Rend les titres en gras (si ce n'est pas déjà fait) */
  background-color: #4CAF50;
  color: white;
  padding: 9px;
  text-align: left;
  border-bottom: 1px solid #333;
}
