body {
    font-family: Arial, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: #f5f5f5;
}

.container {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    color: #333;
    text-align: center;
    margin-bottom: 20px;
}

.task-input-container {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    align-items: center;
    flex-wrap: wrap;
}

#new-task {
    flex: 1;
    min-width: 200px;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#new-theme {
    flex: 0 0 150px;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.priority-selector {
    display: flex;
    gap: 10px;
    align-items: center;
}

.priority-option {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.priority-option input[type="radio"] {
    margin: 0;
}

.priority-label {
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 4px;
}

.priority-urgent {
    color: #f44336;
    background-color: rgba(244, 67, 54, 0.1);
}

.priority-rapide {
    color: #ff9800;
    background-color: rgba(255, 152, 0, 0.1);
}

.priority-normal {
    color: #333;
    background-color: rgba(0, 0, 0, 0.05);
}

button {
    padding: 10px 15px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

button:hover {
    background-color: #45a049;
}

.add-theme-container {
    margin-bottom: 20px;
    display: flex;
    gap: 10px;
}

#new-theme-input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.theme-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.theme-tag {
    background-color: #e0e0e0;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.theme-tag.active {
    background-color: #4CAF50;
    color: white;
}

.theme-tag:hover {
    background-color: #d0d0d0;
}

.theme-section {
    margin-bottom: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    padding: 10px;
    background-color: white;
    position: relative;
}

.theme-title {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 10px;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.theme-title button {
    background-color: transparent;
    padding: 5px;
    border: none;
    cursor: pointer;
    color: #000;
    font-size: 16px;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-title button:hover {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
}

#incomplete-tasks {
    list-style-type: none;
    padding: 0;
}

#incomplete-tasks li {
    margin: 5px 0;
    padding: 10px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    position: relative;
    transition: all 0.2s;
}

/* Priorité Urgent */
#incomplete-tasks li.priority-urgent {
    background-color: #ffebee;
    border-left: 4px solid #f44336;
}

/* Priorité Rapide */
#incomplete-tasks li.priority-rapide {
    background-color: #fff3e0;
    border-left: 4px solid #ff9800;
}

/* Priorité Normal */
#incomplete-tasks li.priority-normal {
    background-color: #f9f9f9;
}

#incomplete-tasks li input[type="checkbox"] {
    margin-right: 10px;
    cursor: pointer;
}

.delete {
    background-color: transparent;
    color: #000;
    border: none;
    cursor: pointer;
    font-size: 16px;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 10px;
    padding: 0;
}

.delete:hover {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 50%;
}

.completed {
    opacity: 0.5;
    text-decoration: line-through;
}

.priority-toggle {
    margin-left: 10px;
    padding: 2px;
    border-radius: 4px;
    color: white;
    font-weight: bold;
    cursor: pointer;
    border: none;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 5px;
}

.priority-toggle:hover {
    opacity: 0.9;
}

/* Style pour l'icône de bulle de commentaire */
.comment-icon {
    margin-left: 10px;
    cursor: pointer;
    pointer-events: auto; /* Assure que l'icône est cliquable */
    font-size: 18px;
    display: flex;
    align-items: center;
}

/* Icône grise par défaut (pas de commentaire) */
.comment-icon:not(.has-comment) {
    color: #9E9E9E; /* Gris clair */
}

/* Icône bleue si commentaire existe */
.comment-icon.has-comment {
    color: #2196F3; /* Bleu */
}

.comment-icon:hover {
    opacity: 0.8;
}

/* Style pour la boîte de commentaire (popup) */
.comment-popup {
    display: block;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    max-width: 500px;
    width: 90%;
}

.comment-popup h3 {
    margin-top: 0;
    color: #333;
    text-align: center;
}

.comment-popup textarea {
    width: 100%;
    min-height: 120px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 15px;
    resize: vertical;
    font-family: Arial, sans-serif;
    font-size: 14px;
}

.comment-popup-buttons {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.comment-popup button {
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.comment-popup .save-btn {
    background-color: #4CAF50;
    color: white;
    border: none;
}

.comment-popup .save-btn:hover {
    background-color: #45a049;
}

.comment-popup .cancel-btn {
    background-color: #f44336;
    color: white;
    border: none;
}

.comment-popup .cancel-btn:hover {
    background-color: #d32f2f;
}

/* Style pour les icônes */
.i {
    font-style: normal;
}

/* Compteur de tâches réalisées */
.completed-counter {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #f0f0f0;
    border-radius: 5px;
}

.toggle-completed-btn {
    background-color: #2196F3;
    color: white;
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

.toggle-completed-btn:hover {
    background-color: #0b7dda;
}

/* Style pour les tâches réalisées (cachées par défaut) */
#incomplete-tasks li.completed {
    display: none;
}
