* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #667eea, #764ba2);
    padding: 20px;
}

.todo-card {
    width: 100%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    padding: 30px;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

h1 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 2rem;
}

.input-box {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.input-box input {
    flex: 1;
    padding: 14px 18px;
    border: none;
    border-radius: 12px;
    outline: none;
    font-size: 1rem;
}

.input-box button {
    padding: 14px 22px;
    border: none;
    border-radius: 12px;
    background: #00c853;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
}

.input-box button:hover {
    background: #00a844;
}

.stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

#taskList {
    list-style: none;
}

.task-item {
    background: rgba(255, 255, 255, 0.12);
    padding: 15px;
    border-radius: 15px;
    margin-bottom: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.task-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.task-left span {
    word-break: break-word;
}

.completed span {
    text-decoration: line-through;
    opacity: 0.6;
}

.task-actions {
    display: flex;
    gap: 10px;
}

.task-actions button {
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
}

.complete-btn {
    background: #2196f3;
    color: white;
}

.delete-btn {
    background: #ff5252;
    color: white;
}

.complete-btn:hover,
.delete-btn:hover {
    transform: scale(1.1);
}

@media (max-width: 500px) {
    .input-box {
        flex-direction: column;
    }

    .stats {
        flex-direction: column;
        gap: 8px;
    }
}