:root {
    --color-primary-1: #536DFE;
     --color-primary-2: #FFFFFF;

     --color-primary-1-hover: #7552f5;

}

body {
    background-color: var(--color-primary-1);
    font-family: "Roboto", sans-serif;
}

.todo-container {
    background-color: var(--color-primary-2);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 30px auto;
}

.title {
    font-size: 28px;
    font-weight: 900;
    color: var(--color-primary-1);
    text-align: center;
    width: 100%;
    margin: 5px 0 25px 0;
}

.title:hover {
    color: var(--color-primary-1-hover);
}

.input {
    width: 100%;
    height: 40px;
    display: flex;
    margin-bottom: 10px;
    justify-content: space-between;
}


input,
button {
    outline: none;
}

input {
    width: 100%;
    background-color: #EEEEEE;
    color: #86847F;
    border: none;
    border-radius: 5px;
    padding: 10px 15px;
    margin-right: 5px;
}

.sort-btns {
    display: flex;
    width: 100%;
    justify-content: space-between;
}

[data-add-todo-btn], .sort-btn {
    background-color: var(--color-primary-1);
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;

    transition: background-color 0.3s ease;
}
[data-add-todo-btn]:hover, .sort-btn:hover {
    background-color: var(--color-primary-1-hover);
}

[data-add-todo-btn] {
    aspect-ratio: 1 / 1;
    font-size: 22px;
}

.sort-btn {
    width: 32%;
    padding: 10px 5px;
}

.todo-list {
    display: flex;
    flex-direction: column;
}

.task {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.task-text {
    position: relative;
    padding-left: 35px;
    width: 80%;
}


.task-text input[type="checkbox"] {
    position: absolute;
    left: 0;
    top: 0;
    width: 18px;
    height: 18px;
    accent-color: var(--color-primary-1);
}

.task button {
    border: none;
    border-radius: 50%;
    width: 35px;
    aspect-ratio: 1 / 1;
    margin-left: 10px;

    background-color: #db755e;
    cursor: pointer;

    position: relative; 
}

.task button::before,
.task button::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 60%;
    height: 2px;
    border-radius: 5px;
    background-color: rgb(255, 255, 255);
    transform-origin: center;
}

.task button::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.task button::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}