/* Reset and box-sizing */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* General body styling */
body {
    font-family: Arial, sans-serif;
    background: linear-gradient(135deg, #7647c2, #b3c5ec);
    color: #f3f4f6;
    margin: 0;
    padding: 20px;
}

/* Container styling */
.container {
    max-width: 600px;
    margin: auto;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    color: #fff;
}

/* Heading */
h1 {
    text-align: center;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #ff8a00, #e52e71);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 2rem;
    font-weight: bold;
}

/* Form styling */
.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #f0f0f0;
}

input,
textarea,
select,
button {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: none;
    border-radius: 5px;
}

input,
textarea,
select {
    background: linear-gradient(135deg, #ffffff, #dbe4ff);
    color: #333;
}

/* Button styling */
button {
    background: linear-gradient(90deg, #11998e, #38ef7d);
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

button:hover {
    background: linear-gradient(90deg, #38ef7d, #11998e);
}

/* Task list styling */
.task-list {
    margin-top: 20px;
}

.task {
    background: linear-gradient(135deg, #1d976c, #93f9b9);
    padding: 15px;
    margin-bottom: 10px;
    border-radius: 5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    color: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.task.completed {
    background: linear-gradient(135deg, #16a085, #27ae60);
    text-decoration: line-through;
}

.task button {
    margin-left: 10px;
    padding: 5px 10px;
    font-size: 12px;
}

/* Filters */
.filter {
    margin-bottom: 20px;
    display: flex;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.filter select {
    width: auto;
    padding: 8px;
    margin-left: 10px;
    background: linear-gradient(135deg, #ffffff, #dbe4ff);
    border: none;
    border-radius: 5px;
}

/* Specific button styles */
.edit {
    background: linear-gradient(90deg, #ff6f61, #ff9068);
}

.complete {
    background: linear-gradient(90deg, #56ab2f, #a8e063);
}

.deleteOne,
.delete {
    background: linear-gradient(90deg, #ff512f, #dd2476);
}

/* Responsive Design */
@media (max-width: 768px) {

    /* Adjust container for smaller screens */
    .container {
        padding: 15px;
    }

    /* Adjust task list items for better wrapping */
    .task {
        flex-direction: column;
        align-items: flex-start;
    }

    .task button {
        margin-left: 0;
        margin-top: 5px;
        width: 100%;
    }

    /* Form elements */
    input,
    textarea,
    select,
    button {
        width: 100%;
    }

    /* Filters */
    .filter {
        flex-direction: column;
    }

    .filter select {
        margin-left: 0;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {

    /* Reduce padding and font size for very small screens */
    body {
        padding: 10px;
    }

    .container {
        padding: 10px;
    }

    h1 {
        font-size: 1.5rem;
    }

    input,
    textarea,
    select,
    button {
        font-size: 14px;
    }

    .task {
        padding: 10px;
    }

    .task button {
        font-size: 10px;
        padding: 5px;
    }
}
