/* Réinitialisation de quelques styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Global */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f7f6;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    flex-direction: column;
    padding: 20px;
}

button {
    padding: 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #0056b3;
}

/* Tâches */
#task {
    width: 100%;
    max-width: 600px;
    margin-bottom: 30px;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

li {
    display: flex;
    align-items: center;
    padding: 12px;
    margin-bottom: 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

li:hover {
    background-color: #efefef;
    transform: scale(1.02);
}

label {
    font-size: 18px;
    margin-left: 12px;
    display: flex;
    align-items: center;
    width: 100%;
}

input[type="checkbox"] {
    margin-right: 12px;
    width: 20px;
    height: 20px;
}

/* Priorité des tâches */
.priority-high {
    color: red;
}

.priority-normal {
    color: green;
}

.priority-low {
    color: blue;
}

/* Section d'ajout de tâche */
#add {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

input[type="text"],
select,
input[type="file"] {
    padding: 10px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 6px;
    width: 100%;
    margin-bottom: 10px;
    transition: border 0.3s ease;
}

input[type="text"]:focus,
select:focus {
    border-color: #007bff;
    outline: none;
}

/* Boutons côte à côte */
.button-container {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

/* Barre de recherche avec bouton emoji loop */
.search-container {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 15px;
}

#searchBar {
    padding: 10px;
    font-size: 16px;
    width: 100%;
    border-radius: 6px;
    border: 2px solid #ddd;
    transition: border 0.3s ease;
}

#searchBar:focus {
    border-color: #007bff;
    outline: none;
}

#searchButton {
    font-size: 20px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

#searchButton:hover {
    transform: rotate(360deg);
}

/* Notification */
#notification {
    font-size: 16px;
    margin-top: 10px;
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    display: none;
    transition: opacity 0.3s ease;
}

/* Notification pour ajout */
#notification.added {
    background-color: #dff0d8;
    color: #3c763d;
    opacity: 1;
}

/* Notification pour suppression */
#notification.deleted {
    background-color: #f8d7da;
    color: #a94442;
    opacity: 1;
}

/* Masquer la notification */
#notification.hide {
    opacity: 0;
}


/* Conteneur d'image zoomée */
#zoomedImageContainer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none; /* Caché par défaut */
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Pour qu'il soit au-dessus des autres éléments */
}

/* Style de l'image zoomée */
#zoomedImageContainer img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain; /* Garder l'image proportionnelle */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease; /* Animation fluide lors du zoom */
}

/* Animation du zoom */
#zoomedImageContainer img:hover {
    transform: scale(1.2); /* Augmenter la taille de l'image lors du survol */
}

/* Responsive Design */
@media (max-width: 768px) {
    #task, #add {
        width: 100%;
        padding: 15px;
    }

    input[type="text"],
    select {
        font-size: 14px;
    }

    li {
        font-size: 16px;
    }
}
