* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1a2e;
}

.app {
    width: 100%;
    max-width: 500px;
    padding: 20px;
}

/* CARD */
.todo-input {
    background: #16213e;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* TITLE */
h1 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
    text-align: center;
    letter-spacing: 2px;
    margin-bottom: 8px;
}

/* INPUTS */
input[type="text"] {
    width: 100%;
    padding: 12px 16px;
    border-radius: 10px;
    border: none;
    background: #0f3460;
    color: #fff;
    font-size: 1rem;
    outline: none;
    transition: background 0.2s;
}

input[type="text"]::placeholder {
    color: #aaa;
}

input[type="text"]:focus {
    background: #1a4a80;
}

/* ADD BUTTON */
#addBtn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 10px;
    background: #e94560;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
}

#addBtn:hover {
    background: #c73652;
}

#addBtn:active {
    transform: scale(0.97);
}

/* FILTER BUTTONS */
.filter-buttons {
    display: flex;
    gap: 8px;
}

button[onclick] {
    flex: 1;
    padding: 8px;
    border: none;
    border-radius: 8px;
    background: #0f3460;
    color: #aaa;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
}

button[onclick]:hover {
    background: #e94560;
    color: #fff;
}

/* TODO LIST */
.list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
    max-height: 350px;
    overflow-y: auto;
}

.list li {
    background: #0f3460;
    padding: 12px 16px;
    border-radius: 10px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.95rem;
}

.list li.done {
    text-decoration: line-through;
    color: #aaa;
    background: #1a1a2e;
}

/* LI BUTTONS */
.list li button {
    padding: 5px 10px;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.15s;
    background: #1a1a2e;
    color: #fff;
    white-space: nowrap;
}

.list li button:hover {
    background: #e94560;
}

/* SCROLLBAR */
.list::-webkit-scrollbar {
    width: 4px;
}

.list::-webkit-scrollbar-track {
    background: transparent;
}

.list::-webkit-scrollbar-thumb {
    background: #e94560;
    border-radius: 10px;
}

/* MOBILE */
@media (max-width: 480px) {
    .todo-input {
        padding: 20px;
    }

    h1 {
        font-size: 1.2rem;
    }

    .list li {
        flex-wrap: wrap;
        font-size: 0.85rem;
    }
}