/* Basic Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f3f7f9;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

/* Container Styling */
.container {
    width: 100%;
    max-width: 600px;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
}

/* Header Styling */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

header h1 {
    font-size: 24px;
    color: #007BFF;
}

header input {
    padding: 8px 12px;
    border-radius: 5px;
    border: 1px solid #ccc;
    width: 60%;
}

/* Task Form Styling */
.task-form {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.05);
}

.task-form input,
.task-form textarea,
.task-form select {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

.task-form button {
    width: 100%;
    padding: 12px;
    background-color: #007BFF;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.task-form button:hover {
    background-color: #0056b3;
}

/* Task List Styling */
.task-list {
    margin-top: 20px;
}

.task-list h2 {
    font-size: 20px;
    color: #007BFF;
    margin-bottom: 15px;
}

.task-list ul {
    list-style-type: none;
    padding: 0;
}

.task-list li {
    background-color: #fff;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 10px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.2s ease;
}

.task-list li:hover {
    transform: scale(1.02);
}

.task-list li.completed {
    background-color: #d4edda;
    text-decoration: line-through;
    color: #155724;
    opacity: 0.8;
}

.task-list li div {
    max-width: 80%;
}

.task-list button {
    background-color: #ff6b6b;
    border: none;
    color: white;
    padding: 8px 10px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.task-list button:hover {
    background-color: #e63946;
}

.task-list button:first-child {
    background-color: #28a745;
}

.task-list button:first-child:hover {
    background-color: #218838;
}

/* Responsive Design */
@media (max-width: 480px) {
    .container {
        padding: 15px;
    }

    header h1 {
        font-size: 20px;
    }

    header input {
        width: 100%;
        margin-top: 10px;
    }

    .task-form input,
    .task-form textarea,
    .task-form select {
        font-size: 14px;
    }

    .task-form button {
        font-size: 14px;
    }

    .task-list h2 {
        font-size: 18px;
    }
}
