/* Général */
body {
    font-family: "Bungee", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 2rem;
    background: #062353;
    background: linear-gradient(125deg, rgba(6, 35, 83, 1) 0%, rgba(71, 137, 197, 1) 45%, rgba(190, 231, 244, 1) 100%);
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    color: #333;
}

/* Conteneur principal */
.app-container {
    /*background: #1C4D8D; */
    /* background: linear-gradient(190deg,rgba(28, 77, 141, .2) 20%, rgba(189, 232, 245, .2) 50%, rgba(28, 77, 141, .2) 80%); */
    background: #062353;
    background: linear-gradient(125deg, rgba(6, 35, 83, .3) 0%, rgba(71, 137, 197, .3) 45%, rgba(190, 231, 244, .3) 100%);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 3rem 2rem 2rem rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 100rem;
    text-align: center;
}

/* Titre */
.app-container h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #fefefe;
    font-weight: bold;
}

/* Formulaire */
#todo-form {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

#todo-input {
    flex: 1;
    font-family: "Bungee", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1.5rem;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 8px 0 0 8px;
    outline: none;
    transition: border-color 0.3s ease;
}

#todo-input:focus {
    border-color: #007bff;
}

button {
    font-family: "Bungee", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1rem;
    padding: 2rem 2rem;
    background: #062353;
    background: linear-gradient(125deg, rgba(6, 35, 83, 1) 0%, rgba(71, 137, 197, 1) 45%, rgba(190, 231, 244, 1) 100%);
    background-size: 200% auto;
    background-position: right center;
    color: #fefefe;
    border: none;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    transition: 0.5s;
}

button:hover {
    background-position: left center; /* change the direction of the change here */
    text-decoration: none;
}

/* Liste des tâches */
#todo-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

#todo-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #f9f9f9;
    transition: cubic-bezier(.5,1,.75,1) .2s;
}

#todo-list li:hover {
    transform: translateY(-10px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

#todo-list li.completed {
    text-decoration: line-through;
    color: #888;
    background: #e6e6e6;
}

/* Boutons */
.delete-btn {
    border: none;
    cursor: pointer;
    font-size: 1rem;
    transition: color 0.3s ease;
    background: -webkit-linear-gradient(125deg,rgba(83, 54, 6, 1) 0%, rgba(197, 131, 71, 1) 45%, rgba(244, 203, 190, 1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.delete-btn:hover {
    color: #c0392b;
}

/* Checkboxes */
.task-toggle {
    margin-right: 10px;
    transform: scale(1.2);
    cursor: pointer;
    accent-color: #007bff;
}

/* Responsivité */
@media (max-width: 480px) {
    #todo-form {
        flex-direction: column;
    }

    #todo-input {
        border-radius: 8px;
        margin-bottom: 10px;
    }

    button {
        border-radius: 8px;
    }
}