body {
    font-family: "Libertinus Math", system-ui;
    background-color: #f4f7f6;
    display: flex; 
    justify-content: center; 
    align-items: flex-start; 
    min-height: 100vh; 
    margin: 0;
    padding-top: 50px; 
}

.container {
    background: #d8d6d6;
    padding: 30px 40px;
    border-radius: 10px;
    box-shadow: 0 10px 30px #000000;
    width: 100%;
    max-width: 500px; 
    box-sizing: border-box; 
}

h1 {
    text-align: center;
    color: #000000;
    margin-bottom: 30px;
    font-size: 2.2em;
}

.input-section {
    display: flex;
    margin-bottom: 25px;
    gap: 10px;
}

#taskInput {
    flex-grow: 1; 
    padding: 12px 5px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1em;
    outline: none; 
}

#taskInput:focus {
    border-color: #4CAF50; 
}

#addTaskButton {
    background: linear-gradient(to bottom, #ff99cc 9%, #0066ff 100%); 
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer; 
    font-size: 1em;
    transition: background-color 0.3s ease; /
}

#addTaskButton:hover {
    background: linear-gradient(to bottom, #0066ff 9%, #ff99cc 100%); 
}

#taskList {
    list-style: none; 
    padding: 0;
    margin-top: 20px;
}

#taskList li {
    background-color: #fff;
    height: 40px;
    display: flex;
    align-items: center;
    padding:12px 20px;
    border-bottom: 5px solid#eee;
    border-radius: 7px;
    transition: background-color  0.3s ease;
    
}
#taskList li:last-child {
    border-bottom: none;
}

#taskList li.completed {
    background-color: #88f7a2; 
    text-decoration: line-through; 
    color: #888;
}

.task-checkbox {
    margin-right: 15px; /* Απόσταση από το κείμενο */
    width: 20px; /* Μέγεθος του checkbox */
    height: 20px;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 2px solid #ccc;
    border-radius: 4px;
    outline: none;
    transition: all 0.2s ease;
}
.task-checkbox:checked {
    background-color: #4CAF50; 
    border-color: #4CAF50;
}

.task-checkbox:checked::before {
    content: '✔'; /*check icon*/
    display: block;
    color: white;
    font-size: 14px;
    text-align: center;
    line-height: 18px; 
}

.task-text {
    flex-grow: 1; 
    word-wrap: break-word; 
    font-size: 1.1em;
    color: #333;
}

#taskList li.completed .task-text {
    text-decoration: line-through; 
    color: #e90b0b; 
}

.delete-button {
    background-color: #f44336; 
    border: none;
    padding: 9px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s ease; 
    flex-shrink: 0; 
}

.delete-button:hover {
    background-color: #d32f2f; /
}

/* Media Queries για καλύτερη εμφάνιση σε μικρότερες οθόνες */
@media (max-width: 600px) {
    #taskList li {
        padding: 10px;
    }
    .container{
        padding: 10px;
        width: 95%;
    } 
   #taskInput{
    padding: 1px;
    width: 95%;
   }
    .task-checkbox {
        margin-right: 10px;
    }

    .task-text {
        font-size: 1em;
        margin-right: 10px;
    }

    .delete-button {
        padding: 6px 10px;
        font-size: 0.85em;
    }
}