/* Start Variables */
:root {
    --main-color: #ff5945;
    --background-color: #eaeaea;
    --checked-color: #555;
}

/* End Variables */

/* Start Global Rules  */
* {
    margin: 0;
    padding: 0;
    font-family: "Work Sans", sans-serif;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

.container {
    display: flex;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(90deg,
            rgba(2, 0, 36, 1) 0%,
            rgba(9, 9, 121, 1) 35%,
            rgb(153, 0, 255) 100%);
}

.toDoApp {
    position: relative;
    padding: 40px 30px 70px;
    margin: 100px auto 20px;
    width: 100%;
    max-width: 540px;
    height: fit-content;
    border-radius: 10px;
    background: #fff;
    box-shadow: inset 0px 0px 8px 3px rgba(0, 0, 0, 0.6);
}

h2 {
    margin-bottom: 40px;
    color: #002765;
}

.tasksList li {
    position: relative;
    list-style: none;
    padding: 12px 8px 12px 50px;
    user-select: none;
    cursor: pointer;
    transition: 0.5s ease;
}

.tasksList li.add-anim {
    opacity: 0;
    transform: translateX(-10px);

}

.tasksList li.add-anim.show {
    opacity: 1;
    transform: translateX(0);
}

.tasksList li.remove-anim {
    opacity: 0;
    transform: translateX(20px) scale(0.85);
    transition: 0.5s cubic-bezier(.4, 0, .2, 1);
}

.tasksList li::before {
    font-family: "Font Awesome 5 Free";
    /* content: "\f00c"; */
    content: "\f111";
    font-weight: 900;
    margin-right: 10px;
    color: var(--main-color);
}

.tasksList li.checked .taskText {
    color: var(--checked-color);
    text-decoration: line-through;
    transition: 0.8s;
    opacity: 0.6;
}

.tasksList li.checked::before {
    font-family: "Font Awesome 5 Free";
    content: "\f00c";
    /* content: "\f111"; */
    font-weight: 900;
    margin-right: 10px;
    color: var(--main-color);
}

.tasksList li .remove {
    position: absolute;
    right: 0;
    top: 8px;
    width: 30px;
    height: 30px;
    font-size: 22px;
    color: #000;
    line-height: 32px;
    text-align: center;
    border-radius: 50%;
}

.tasksList li .remove:hover {
    background: var(--background-color);
}

.tasksList li.checked .remove {
    color: var(--checked-color);
}

.row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--background-color);
    border-radius: 30px;
    padding-left: 20px;
    margin-bottom: 25px;
}

.taskInput {
    flex: 1;
    padding: 10px 6px;
    border: none;
    outline: none;
    background: transparent;
    caret-color: var(--main-color);
}

.addTaskBtn {
    padding: 16px 40px;
    border: none;
    outline: none;
    background-color: var(--main-color);
    color: white;
    cursor: pointer;
    border-radius: 30px;
}

.error {
    position: absolute;
    top: 62px;
    left: 160px;
    background: var(--background-color);
    color: var(--main-color);
    padding: 12px 20px;
    border-radius: 30px;
    opacity: 0;
    transform: translateY(20px);
    transition: 0.8s ease;
}

.error.show {
    opacity: 1;
    transition: opacity 0.8s ease;
    transform: translateY(0);
}

.filterSelect {
    margin: 10px;
    display: flex;
    gap: 20px;
    accent-color: var(--main-color);
}

.clearTasksBtn {
    width: 150px;
    padding: 16px 20px;
    border: none;
    background-color: var(--main-color);
    color: white;
    border-radius: 30px;
    margin: 10px 0 15px;
    cursor: pointer;
}

.counter {
    display: inline-block;
    margin: 10px 10px 15px 120px;
}

.undo-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(40px);
    background: var(--background-color);
    color: #000;
    padding: 12px 20px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    pointer-events: none;
    transition: 0.4s ease;
    z-index: 999;
}

.undo-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(-10px);
    pointer-events: auto;
}

.undo-toast button {
    background: none;
    border: none;
    color: var(--main-color);
    font-weight: bold;
    cursor: pointer;
}

/* End Global Rules */