/* Todo Block Styles */

.todo-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

.todo-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.95rem;
}

.todo-checkbox {
    width: 20px;
    height: 20px;
    border: 2px solid var(--text-main);
    border-radius: 6px;
    cursor: pointer;
    appearance: none;
    display: flex;
    align-items: center;
    justify-content: center;
}

.todo-checkbox:checked {
    background: var(--text-main);
}

.todo-checkbox:checked::after {
    content: '✔';
    color: white;
    font-size: 14px;
}

.todo-divider {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: auto;
    /* Push to bottom naturally */
    padding-top: var(--space-md);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    /* Very subtle line */
    display: block;
}

.todo-divider::after {
    display: none;
}

/* --- New Interactive Styles --- */
.todo-item {
    position: relative;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.1s;
}

.todo-item:hover {
    background: rgba(0, 0, 0, 0.02);
}

.todo-handle {
    width: 16px;
    color: #ddd;
    cursor: grab;
    user-select: none;
    font-size: 1.2rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s;
    margin-right: 4px;
}

.todo-item:hover .todo-handle {
    opacity: 1;
}

.editable-todo {
    flex: 1;
    outline: none;
    border: none;
    background: transparent;
    font-family: inherit;
    color: var(--text-main);
    word-break: break-word;
    cursor: text;
}

.todo-item.drag-source {
    opacity: 0.4;
    background: #f5f5f5;
}

.todo-item.drag-over-top {
    border-top: 2px solid #2eaadc;
}

.todo-item.drag-over-bottom {
    border-bottom: 2px solid #2eaadc;
}