/* Body Styling */
body {
    background-color: #f8f9fa;
    font-family: 'Arial', sans-serif;
    color: #343a40;
    margin: 0;
    padding: 0;
}

/* Header Styling */
h2 {
    color: #495057;
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Input Section Styling */
.input-group {
    max-width: 600px;
    margin: 0 auto;
}

#taskInput {
    border-radius: 8px 0 0 8px;
    padding: 15px;
    font-size: 1rem;
    border: 1px solid #ced4da;
}

#addTaskBtn {
    border-radius: 0 8px 8px 0;
    padding: 12px 20px;
    background-color: #007bff;
    color: white;
    border: 1px solid #007bff;
    font-size: 1rem;
}

#addTaskBtn:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

/* Task List Styling */
.list-group {
    max-width: 600px;
    margin: 30px auto;
    padding: 0;
}

.list-group-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid #ced4da;
    transition: all 0.3s ease;
}

.list-group-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Task Text Styling */
.task-text {
    flex-grow: 1;
    font-size: 1rem;
    color: #495057;
}

/* Strikethrough for completed tasks */
.task-done {
    text-decoration: line-through;
    color: #6c757d;
}

/* Button Styling */
.complete-btn,
.delete-btn {
    padding: 8px 12px;
    border-radius: 50%;
    font-size: 1.2rem;
    min-width: 35px;
    min-height: 35px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.complete-btn {
    background-color: #28a745;
    color: white;
    border: none;
}

.complete-btn:hover {
    background-color: #218838;
}

.delete-btn {
    background-color: #dc3545;
    color: white;
    border: none;
}

.delete-btn:hover {
    background-color: #c82333;
}

/* Responsive Design */
@media (max-width: 576px) {
    .input-group {
        flex-direction: column;
        width: 90%;
        margin: 0 auto;
    }

    #taskInput {
        border-radius: 8px;
        margin-bottom: 10px;
    }

    #addTaskBtn {
        border-radius: 8px;
    }

    .list-group-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .list-group-item div {
        display: flex;
        gap: 8px;
        margin-top: 10px;
    }
}
