* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --background: #000430;
    --secondaryBackground: #171c48;
    --text: #fff;
    --purple: #828dff;
    --teal: #24feee;
}

body {
    background-color: var(--background);
    color: var(--text);
    font-family: Arial, sans-serif;
}

.container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 100px auto;
    max-width: 500px;
}

.stats-container {
    padding: 30px;
    border-radius: 20px;
    border: 2px solid var(--purple);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#progressBar {
    width: 100%;
    height: 10px;
    background-color: var(--secondaryBackground);
    border-radius: 5px;
    margin-top: 15px;
}

#progress {
    height: 100%;
    width: 0%;
    background-color: var(--teal);
    border-radius: 5px;
    transition: width 0.4s ease-in-out;
}

#numbers {
    width: 100px;
    height: 100px;
    background-color: var(--purple);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 28px;
    font-weight: bold;
}

form {
    display: flex;
    gap: 10px;
}

input {
    flex: 1;
    padding: 15px;
    border-radius: 10px;
    background-color: var(--secondaryBackground);
    border: 1px solid var(--purple);
    color: var(--text);
}

button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background-color: var(--purple);
    color: white;
    font-size: 28px;
    cursor: pointer;
}

button:hover {
    transform: scale(1.1);
    transition: transform 0.2s ease;
}

#task-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.taskItem {
    background-color: var(--secondaryBackground);
    padding: 12px;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.task {
    display: flex;
    gap: 10px;
    align-items: center;
}

.task.completed p {
    text-decoration: line-through;
    color: var(--teal);
}

.icons img {
    width: 22px;
    cursor: pointer;
    margin-left: 10px;
}


/* Mobile */
@media (max-width: 600px) {
    .container {
        margin: 40px 15px;
    }

    .stats-container {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    #numbers {
        width: 80px;
        height: 80px;
        font-size: 22px;
    }

    form {
        flex-direction: row;
    }

    input {
        font-size: 16px;
    }

    button {
        width: 48px;
        height: 48px;
    }

    .taskItem {
        padding: 15px;
    }

    .icons img {
        width: 26px;
    }
}

