* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(to right, #4e54c8, #8f94fb);
    font-family: 'Cairo', sans-serif;
    color: white;
    line-height: 1.6;
    direction: rtl;
    text-align: right;
}

#container {
    width: 90%;
    max-width: 600px;
    margin: 20px auto;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

h2, h3 {
    text-align: center;
    margin-bottom: 20px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

label {
    font-weight: bold;
}

input {
    padding: 10px;
    border-radius: 8px;
    border: none;
    font-size: 16px;
    text-align: right;
}

button {
    padding: 12px;
    background: gold;
    color: black;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s;
}

button:hover {
    background: orange;
}

#taskbox {
    margin-top: 30px;
}

#taskList {
    list-style: none;
    margin-top: 15px;
}

.taskItem {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 10px;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.taskItem.completed {
    opacity: 0;
    transform: translateX(50px);
}

.taskItem .motivation {
    font-size: 14px;
    color: #FFD700;
    margin-right: 10px;
}

.checkBox {
    width: 24px;
    height: 24px;
    border: 2px solid white;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.checkBox.checked::after {
    content: '\2713';
    color: gold;
    font-size: 18px;
}

@media (max-width: 600px) {
    #container {
        width: 100%;
        padding: 15px;
    }

    input, button {
        font-size: 14px;
    }

    .taskItem {
        flex-direction: column;
        align-items: flex-start;
    }

    .checkBox {
        margin-top: 10px;
    }
}