body {
    font-family: Arial, sans-serif;
}

@media screen and (max-width: 600px) {
    #user-nav a {
        padding: 5px 10px; /* Réduire le padding */
        font-size: 0.8em; /* Réduire la taille de la police */
    }

    #user-nav {
        padding: 5px; /* Réduire le padding de la barre de navigation */
    }
}

#user-nav {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Permet aux éléments de passer à la ligne si nécessaire */
    gap: 5px; /* Ajouter un petit espace entre les éléments */
    text-align: center;
    margin-bottom: 10px;
    background-color: #f8f9fa;
    padding: 10px 0;
    border: 1px solid #007bff;
    border-radius: 5px; /* Arrondir les bords extérieurs */
    /*display: inline-block;  Regrouper la barre de navigation */
}

#user-nav a {
    margin: 0;
    padding: 5px 15px;
    text-decoration: none;
    color: #007bff;
    border-right: 1px solid #007bff; /* Bordure entre les boutons */
    transition: background-color 0.3s, color 0.3s;
}

#user-nav a:last-child {
    border-right: none; /* Pas de bordure sur le dernier bouton */
}

#user-nav a:hover {
    background-color: #d1e9ff;
    color: #0056b3;
}

#user-nav a.all-users {
    font-weight: bold;
    background-color: #e7f3ff;
}

#tabs {
    overflow: hidden;
    background-color: #f1f1f1;
    display: flex;
    justify-content: center;
}

.tab {
    background-color: inherit;
    float: left;
    border: none;
    outline: none;
    cursor: pointer;
    padding: 14px 16px;
    transition: background-color 0.3s;
}

.tab:hover {
    background-color: #ddd;
}

.tab-content {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* Espace entre les tuiles */
}

.task-tile {
    flex: 1;
    min-width: 200px; /* Largeur minimale de chaque tuile */
    max-width: 300px; /* Largeur maximale de chaque tuile */
    border: 1px solid #ccc;
    padding: 10px;
    border-radius: 5px;
    transition: background-color 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* Optionnel pour l'esthétique */
}

.task-tile.urgent {
    background-color: #ffdddd;
    border-color: red;
}

.task-tile.normal {
    background-color: #ddffdd;
    border-color: green;
}

.task-tile h3 {
    margin-top: 0;
}

.task-tile .due-date,
.task-tile .attachment {
    display: block;
    margin-top: 10px;
    font-size: 0.8em;
}

.task-tile .attachment {
    cursor: pointer;
}
