#checklist-items {
    list-style-type: none;
    padding: 0;
}

.checklist-item.parent-task {
    position: relative;
    padding-left: 20px;
    margin-bottom: 5px;
    list-style-type: none;
}

.subtask {
    margin-left: 0px;  /* Indent subtasks */
    border-left: 2px solid #ccc;
    padding-left: 0px;
    margin-top: 5px;
}

.subtasks {
    display: block;  /* Ensure subtasks appear on new lines */
    margin: 5px 0 5px 20px;
    padding-left: 15px;
}

.task-checkbox, .subtask-checkbox {
    margin-right: 8px;
}

.checklist-item.selected {
    background-color: rgba(0, 150, 255, 0.2);
}

.task-checkbox {
    margin-right: 10px;
}

.task-text {
    flex-grow: 1;
    outline: none;
    cursor: text;
    color: var(--text-color, white);
}

.task-text:focus {
    background-color: rgba(255, 255, 255, 0.1);
}

.row1,
.row2 {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
}

.checklist-controls button {
    width: 120px;
    padding: 10px 5px 8px;
    background: rgba(var(--button-color, 0, 0, 0), 0.2);
    border: none;
    border-radius: 10px;
    color: var(--text-color, white);
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    font-family: 'Bahnschrift', sans-serif; 
}

.checklist-controls button:hover {
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px);
}

.checklist-controls button:active {
    transform: translateY(1px);
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
}
