* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 60px 20px;
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
    font-family: 'Segoe UI', Arial, sans-serif;
}

.container {
    background: #ffffff;
    width: 100%;
    max-width: 480px;
    padding: 32px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

h1 {
    margin: 0 0 4px;
    font-size: 26px;
    color: #222;
    text-align: center;
}

.subtitle {
    text-align: center;
    color: #888;
    font-size: 14px;
    margin-bottom: 24px;
}

.todo-form {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.todo-form input[type="text"] {
    flex: 1;
    min-width: 150px;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s;
}

.todo-form input[type="text"]:focus {
    border-color: #6a11cb;
}

.todo-form button {
    padding: 12px 20px;
    background: #6a11cb;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
}

.todo-form button:hover {
    background: #560fae;
}

.btn-cancel {
    padding: 12px 16px;
    color: #888;
    text-decoration: none;
    font-size: 14px;
    align-self: center;
}

.todo-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.todo-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 10px;
    border-bottom: 1px solid #f0f0f0;
}

.todo-list li:last-child {
    border-bottom: none;
}

.todo-list li.empty {
    justify-content: center;
    color: #aaa;
    padding: 30px 0;
}

.check-btn {
    text-decoration: none;
    font-size: 18px;
    line-height: 1;
}

.task-text {
    flex: 1;
    font-size: 15px;
    color: #333;
    word-break: break-word;
}

.todo-list li.done .task-text {
    text-decoration: line-through;
    color: #bbb;
}

.actions {
    display: flex;
    gap: 10px;
}

.actions a {
    text-decoration: none;
    font-size: 16px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.actions a:hover {
    opacity: 1;
}

@media (max-width: 480px) {
    .container {
        padding: 24px 18px;
    }
}
