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

.container {
    max-width: 600px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

h1 {
    margin: 0 0 30px 0;
}

#addTaskForm {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 30px;
}

input, textarea {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
}

textarea {
    resize: vertical;
    min-height: 60px;
}

button {
    padding: 10px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background: #0056b3;
}

.task {
    display: flex;
    gap: 10px;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 10px;
    align-items: start;
}

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

.task-content {
    flex: 1;
}

.task h3 {
    margin: 0 0 5px 0;
    font-size: 16px;
}

.task p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.category-badge {
    display: inline-block;
    background: #007bff;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    margin-top: 5px;
}

.category-badge[data-category="Travail"] {
    background: #28a745;
}

.category-badge[data-category="Personnel"] {
    background: #17a2b8;
}

.category-badge[data-category="Urgent"] {
    background: #dc3545;
}

.category-badge[data-category="Projet"] {
    background: #6f42c1;
}

.category-badge[data-category="Général"] {
    background: #6c757d;
}

#filters {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #dee2e6;
}

#filters label {
    font-weight: bold;
    margin-right: 10px;
}

#filters select {
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 3px;
    margin-right: 10px;
}

#filters button {
    padding: 5px 10px;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
}

#filters button:hover {
    background: #5a6268;
}

select {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 14px;
    background: white;
}

/* Onglets */
.tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 2px solid #dee2e6;
}

.tab-button {
    padding: 10px 20px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.tab-button:hover {
    background: #f8f9fa;
}

.tab-button.active {
    border-bottom-color: #007bff;
    background: #f8f9fa;
}

.tab-content {
    display: block;
}

/* Sélection de catégories */
.category-selection {
    margin: 15px 0;
}

.category-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.category-checkbox {
    display: flex;
    align-items: center;
    gap: 5px;
}

.category-checkbox input[type="checkbox"] {
    margin: 0;
}

.category-checkbox label {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Actions des tâches */
.task-actions {
    display: flex;
    gap: 5px;
}

.edit-btn, .delete-btn {
    padding: 5px 8px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
}

.edit-btn {
    background: #ffc107;
    color: #000;
}

.delete-btn {
    background: #dc3545;
    color: white;
}

.edit-btn:hover {
    background: #e0a800;
}

.delete-btn:hover {
    background: #c82333;
}

/* Catégories des tâches */
.task-categories {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

/* Gestion des catégories */
.category-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 10px;
    background: white;
}

.category-actions {
    display: flex;
    gap: 5px;
}

/* Responsive */
@media (max-width: 600px) {
    .category-checkboxes {
        flex-direction: column;
    }
    
    .task-actions {
        flex-direction: column;
    }
    
    .tabs {
        flex-direction: column;
    }
}


