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

:root {
    --bg: #1a1a2e;
    --surface: #16213e;
    --primary: #e94560;
    --text: #eee;
    --text-muted: #999;
    --border: #333;
    --success: #4ade80;
}

html, body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100dvh;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    padding: 1rem;
}

nav {
    background: var(--surface);
    padding: 1rem;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

nav h1 {
    font-size: 1.25rem;
    font-weight: 600;
}

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: border-color 0.15s;
}

.card:hover {
    border-color: var(--primary);
}

.card h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.card .meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.item-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.item-row.completed .item-title {
    text-decoration: line-through;
    color: var(--text-muted);
}

.item-row input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: var(--primary);
}

.btn {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 0.375rem;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    cursor: pointer;
}

.btn:active {
    opacity: 0.8;
}

input[type="text"] {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.9rem;
    width: 100%;
}

input[type="text"]::placeholder {
    color: var(--text-muted);
}

.input-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.input-row input {
    flex: 1;
}

.empty-state {
    text-align: center;
    color: var(--text-muted);
    padding: 3rem 1rem;
}
