* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	line-height: 1.6;
	color: #333;
	background-color: #f5f7fa;
	padding: 20px;
	max-width: 800px;
	margin: 0 auto;
}

header {
	background: white;
	padding: 30px;
	border-radius: 12px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.9);
	text-align: center;
	margin-bottom: 30px;
}

header h1 {
	color: #2c3e50;
	margin-bottom: 15px;
	font-size: 2.2em;
}

header img {
	width: 120px;
	height: 120px;
	border-radius: 20%;
	object-fit: cover;
	border: 3px solid #3498db;
}

#add-todo {
	background: white;
	padding: 25px;
	border-radius: 12px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.5);
	margin-bottom: 30px;
}

#add-todo h2 {
	color: #2c3e50;
	margin-bottom: 20px;
	font-size: 1.5em;
}

#todo-form {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

input[type="text"], input[type="date"] {
	padding: 6px 6px;
	border: 2px solid #e1e8ed;
	border-radius: 8px;
	font-size: 16px;
	transition: border-color 0.3s ease;
}


input[type="text"]:focus, input[type="date"]:focus {
	outline: none;
	border-color: #3498db;
}

label {
	font-weight: 500;
	color: #555;
	margin-bottom: 5px;
}

button {
	background: #3498db;
	color: white;
	border: none;
	padding: 15px 25px;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.3s ease;
}

button:hover {
	background: #2980b9;
}

#todo-list {
	background: white;
	padding: 25px;
	border-radius: 12px;
	box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}


#todo-list h2 {
	color: #2c3e50;
	margin-bottom: 20px;
	font-size: 1.5em;
}

#todos {
	list-style: none;
}

#todos li {
	padding: 15px;
	border: 1px solid #e1e8ed;
	border-radius: 8px;
	margin-bottom: 10px;
	display: flex;
	align-items: flex-start;
	gap: 12px;
	background: #fafbfc;
	transition: background 0.2s ease;
}

#todos li:hover {
	background: #f1f3f5;
}

#todos input[type="checkbox"] {
	margin-top: 6px;
}

#todos input[type="checkbox"]:hover {
	transform: scale(1.2);
}

.todo-content {
	flex: 1;
}

.todo-content span {
	font-size: 1.1em;
	display: block;
}	

#todos li.todo-completed .todo-content span {
	text-decoration: line-through;
	color: #999;
}

#todos li.todo-completed {
	opacity: '0.6';
}

.person-name {
	color: #3490db;
	font-weight: 500;
}

.todo-dates {
	display: flex;
	gap: 15px;
	margin-top: 5px;
}

.todo-dates small {
	color: #666;
	font-size: 0.85em;
}

@media (max-width: 600px) {
	body {
		padding: 10px;
	}

	header, #add-todo, #todo-list {
		padding: 20px;
	}

	header h1 {
		font-size: 1.8em;
	}
	
	.todo-dates {
		flex-direction: column;
		gap: 5px;
	}

	#todo-form {
		gap: 12px;
	}

	input[type="text"], input[type="date"] {
		padding: 10px 12px;
	}

	button {
		padding: 12px 20px;
	}

}

.delete-btn {
	background: ;#2c3e50;
	color: white;
	border: none;
	border-radius: 4px;
	padding: 5px 8px;
	font-size: 14px;
	cursor: pointer;
	transition: background 0.2s ease;
}

.delete-btn:hover {
	background: #2d3e50;
}
