@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;

}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.todoContainer{
    background: white;
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(44, 62, 80, 0.15);
    padding: 2.5rem 2rem 2rem 2rem;
    width: 100%;
    max-width: 400px;
    min-width: 320px;
    animation: fadeIn 1s cubic-bezier(0.4, 0, 0.2, 1);

}

.todoContainer h1{
	text-align: center;
	color: #764ba2;
	margin-bottom: 1.5rem;
	font-weight: 700;
	letter-spacing: 1px;

}

.emoji{
    font-size: 1.2rem;
}

.inputSection{
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;

}

#todoInput{
    flex: 1;
	padding: 0.7rem 1rem;
	border: 1.5px solid #764ba2;
	border-radius: 8px;
	font-size: 1rem;
	outline: none;
	transition: border-color 0.2s;
}

#todoInput:focus{
    border-color: #667eea;
}

#addBtn{
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 0 1.2rem;
	font-size: 1rem;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s, transform 0.1s;
	box-shadow: 0 2px 8px rgba(44, 62, 80, 0.08);
}

#addBtn:hover{
	background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
	transform: translateY(-2px) scale(1.05);
}

#todoList{
    list-style: none;
    
}

#todoList li{
    background: #f3f0fa;
	color: #333;
	margin-bottom: 0.7rem;
	padding: 0.9rem 1rem;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	box-shadow: 0 2px 8px rgba(44, 62, 80, 0.04);
	font-size: 1rem;
	opacity: 1;
	transform: translateY(0);
	transition: opacity 0.3s, transform 0.3s;
	position: relative;
	animation: slideIn 0.4s cubic-bezier(.4,0,.2,1);

}

#todoList li.completed{
    text-decoration: line-through;
    color: #aaa;
    background: #e0d7f7;
    opacity: 0.7;
}

#todoList li.removing{
    opacity: 0;
    transform: translateX(60px) scale(0.95);
    transition: opacity 0.3s, transform 0.3s;

}

.deleteBtn:hover{
    color: #d7263d;
    transform: scale(1.2);
}

.checkBtn:hover{
    color: #764ba2;
    transform: scale(1.2);


}


@keyframes fadeIn {
	from { opacity: 0; transform: scale(0.95); }
	to { opacity: 1; transform: scale(1); }
}

@keyframes slideIn {
	from { opacity: 0; transform: translateY(30px); }
	to { opacity: 1; transform: translateY(0); }
}


@media (max-width: 600px) {
    .todoContainer {
        max-width: 98vw;
        min-width: unset;
        padding: 1.2rem 0.5rem 1.2rem 0.5rem;
    }
    .inputSection {
        flex-direction: column;
        gap: 0.7rem;
    }
    #addBtn {
        width: 100%;
        padding: 0.7rem 0;
        font-size: 1rem;
    }
    #todoInput {
        width: 100%;
        font-size: 1rem;
        padding: 0.7rem 0.8rem;
    }
    #todoList li {
        font-size: 0.98rem;
        padding: 0.8rem 0.7rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}

@media (max-width: 400px) {
    .todoContainer h1 {
        font-size: 1.2rem;
    }
    #todoInput, #addBtn {
        font-size: 0.95rem;
    }
    #todoList li {
        font-size: 0.92rem;
        padding: 0.7rem 0.5rem;
    }
}