body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}

.container {
    background-color: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 600px;
    text-align: center;
}

h1 {
    color: #2563eb;
    margin-bottom: 25px;
    font-size: 2.2em;
}

.input-section {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

#task-input {
    flex-grow: 1;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

#task-input:focus {
    outline: none;
    border-color: #2563eb;
}

#add-task-btn {
    background-color: #2563eb;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#add-task-btn:hover {
    background-color: #1d4ed8;
    transform: translateY(-2px);
}

.filters {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.filter-btn {
    background-color: #e0e7ff;
    color: #2563eb;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9em;
    font-weight: 600;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.filter-btn.active {
    background-color: #2563eb;
    color: white;
}

.filter-btn:hover:not(.active) {
    background-color: #c7d2fe;
}

#task-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.task-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #f8fafc;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.task-item.completed {
    background-color: #e6ffe6;
    text-decoration: line-through;
    color: #6b7280;
}

.task-content {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-grow: 1;
    text-align: left;
}

.task-content input[type="checkbox"] {
    transform: scale(1.3);
    cursor: pointer;
}

.task-text {
    font-size: 1.1em;
    word-break: break-word;
}

.task-actions {
    display: flex;
    gap: 8px;
}

.task-actions button {
    background: none;
    border: none;
    cursor: pointer;
    color: #6b7280;
    font-size: 1.1em;
    transition: color 0.3s ease;
}

.task-actions button:hover {
    color: #1f2937;
}

.task-actions .edit-btn:hover {
    color: #fbbf24;
}

.task-actions .delete-btn:hover {
    color: #ef4444;
}

.stats {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    margin-bottom: 20px;
    padding: 15px;
    background-color: #e0e7ff;
    border-radius: 10px;
}

.stats p {
    font-size: 1em;
    color: #2563eb;
    font-weight: 600;
}

.stats span {
    font-size: 1.1em;
    font-weight: 700;
    margin-left: 5px;
}

#clear-completed-btn {
    background-color: #ef4444;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

#clear-completed-btn:hover {
    background-color: #dc2626;
    transform: translateY(-2px);
}

@media (max-width: 600px) {
    .input-section {
        flex-direction: column;
    }

    #add-task-btn {
        width: 100%;
        justify-content: center;
    }

    .filters {
        flex-wrap: wrap;
    }

    .stats {
        flex-direction: column;
        gap: 10px;
    }

    .task-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .task-actions {
        width: 100%;
        justify-content: flex-end;
    }
}
