*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background-color: #f7f8ff;
    color: #10194f;
    min-height: 100vh;
    padding: 60px 20px;
}

/* Main Container */

.container {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 40px;

    background-color: white;

    border: 1px solid #e0e2f0;
    border-radius: 22px;

    box-shadow: 0 15px 45px rgba(45, 55, 120, 0.12);
}

/* Header */

.header {
    display: flex;
    align-items: center;
    gap: 25px;

    padding-bottom: 30px;
    border-bottom: 2px solid #e5e7f2;
    margin-bottom: 30px;
}

/* Header Icon */

.header-icon {
    width: 85px;
    height: 85px;

    background-color: #4842c9;
    color: white;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 55px;
    font-weight: bold;
}

/* Header Text */

.header-text h1 {
    font-size: 32px;
    font-weight: 800;
    color: #10194f;
    
    margin-bottom: 8px;
}

.header-text p {
    font-size: 18px;
    color: #9299b2;
}

/* Input Section */

.input-section {
    display: flex;
    align-items: center;
    gap: 20px;

    margin-bottom: 40px;
}

/* Task Input */

.input-section input {
    flex: 1;
    height: 70px;

    padding: 0 25px;

    border: 2px solid #dfe1ee;
    border-radius: 18px;

    font-family: inherit;
    font-size: 20px;
    color: #10194f;

    outline: none;
}

/* Input Placeholder */

.input-section input::placeholder {
    color: #9ba1b8;
}

/* Add Button */

.input-section button {
    height: 70px;
    padding: 0 35px;

    background-color: #5145e5;
    color: white;

    border: none;
    border-radius: 18px;

    font-family: inherit;
    font-size: 23px;
    font-weight: 700;

    cursor: pointer;
}

/* Button Hover */

.input-section button:hover {
    background-color: #4035c9;
}

/* Task Info */

.task-info {
    display: flex;
    align-items: center;
    gap: 18px;

    margin-bottom: 18px;
}

.task-info h2 {
    font-size: 23px;
    font-weight: 700;
    color: #10194f;
}

.task-info span {
    min-width: 85px;
    padding: 10px 20px;

    background-color: #e9e5ff;
    color: #5145e5;

    border-radius: 30px;

    font-size: 22px;
    font-weight: 800;
    text-align: center;
}

/* Task List */

#taskList {
    list-style: none;

    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Task Item */

.task-item {
    display: flex;
    align-items: center;
    gap: 15px;

    min-height: 95px;
    padding: 15px 22px;

    background-color: white;

    border: 2px solid #e3e5f0;
    border-radius: 20px;

    transition: background-color 0.2s ease,
                border-color 0.2s ease;
}

/* Task Text */

.task-text {
    flex: 1;

    font-size: 21px;
    font-weight: 500;
    color: #10194f;
}

/* Complete Button */

.complete-btn {
    width: 42px;
    height: 42px;

    border: 3px solid #b7bdce;
    border-radius: 50%;

    background-color: white;
    color: white;

    font-size: 23px;
    font-weight: bold;

    cursor: pointer;
}

/* Delete Button */

.delete-btn {
    min-width: 130px;
    padding: 10px 20px;

    background-color: #ffe5e7;
    color: #d52f36;

    border: none;
    border-radius: 40px;

    font-family: inherit;
    font-size: 19px;
    font-weight: 700;

    cursor: pointer;
}

/* Completed Task */

.task-item.completed {
    background-color: #f3f0ff;
    border-color: #d8d2ff;
}

.task-item.completed .complete-btn {
    background-color: #5145e5;
    border-color: #5145e5;
}

.task-item.completed .task-text {
    color: #10194f;
}


/* Footer */

.footer {
    margin-top: 25px;
    padding-top: 22px;

    border-top: 2px solid #e5e7f2;

    text-align: center;
}

.footer p {
    color: #9299b2;
    font-size: 19px;
    font-weight: 500;
}




/* =========================
   Mobile Responsive
========================= */

@media (max-width: 640px) {

    /* Body */
    body {
        padding: 20px 12px;
    }

    /* Main Container */
    .container {
        padding: 22px 16px;
        border-radius: 18px;
    }

    /* Header */
    .header {
        gap: 14px;
        padding-bottom: 22px;
        margin-bottom: 24px;
    }

    .header-icon {
        width: 58px;
        height: 58px;
        font-size: 36px;
        flex-shrink: 0;
    }

    .header-text h1 {
        font-size: 23px;
    }

    .header-text p {
        font-size: 14px;
        line-height: 1.8;
    }

    /* Input Section */
    .input-section {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        margin-bottom: 30px;
    }

    .input-section input {
        width: 100%;
        height: 55px;
        font-size: 16px;
        padding: 10px 16px;
    }

    .input-section button {
        width: 100%;
        height: 55px;
        font-size: 18px;
    }

    /* Task Info */
    .task-info {
        gap: 12px;
        margin-bottom: 15px;
    }

    .task-info h2 {
        font-size: 19px;
    }

    .task-info span {
        min-width: 55px;
        padding: 7px 14px;
        font-size: 17px;
    }

    /* Task List */
    .task-item {
        gap: 10px;
        min-height: 75px;
        padding: 12px;
        border-radius: 15px;
    }

    .task-text {
        font-size: 15px;
        line-height: 1.8;
        overflow-wrap: anywhere;
    }

    .complete-btn {
        width: 34px;
        height: 34px;
        flex-shrink: 0;
        font-size: 19px;
    }

    .delete-btn {
        min-width: auto;
        padding: 9px 12px;
        font-size: 14px;
        flex-shrink: 0;
    }

    /* Footer */
    .footer {
        margin-top: 22px;
        padding-top: 18px;
    }

    .footer p {
        font-size: 14px;
        line-height: 1.8;
    }

}
